Hide Forgot
Description of problem: running /usr/sbin/lsusb on a ppc64 system with no USB results in a seg fault: 0 root@auto-ppcp-003 ~]# /usr/sbin/lsusb *** glibc detected *** /usr/sbin/lsusb: double free or corruption (out): 0x00000fffd78313e0 *** ======= Backtrace: ========= /lib64/libc.so.6[0x80190bfdb4] /lib64/libc.so.6[0x80190c2e0c] /usr/lib64/libusb-1.0.so.0(libusb_free_device_list-0x1dcdc)[0x801971662c] /usr/sbin/lsusb[0x1000b05c] /usr/sbin/lsusb[0x1000b5a8] /lib64/libc.so.6[0x801905c0a8] /lib64/libc.so.6(__libc_start_main-0x1852e8)[0x801905c2a0] ======= Memory map: ======== 10000000-10020000 r-xp 00000000 fd:00 951226 /usr/bin/lsusb 10020000-10030000 rw-p 00010000 fd:00 951226 /usr/bin/lsusb 10030000-10040000 rw-p 00010000 fd:00 951226 /usr/bin/lsusb 19710000-19830000 rw-p 00000000 00:00 0 [heap] 8018fc0000-8018ff0000 r-xp 00000000 fd:00 2494345 /lib64/ld-2.12.so 8018ff0000-8019000000 r--p 00020000 fd:00 2494345 /lib64/ld-2.12.so 8019000000-8019010000 rw-p 00030000 fd:00 2494345 /lib64/ld-2.12.so 8019010000-80191d0000 r-xp 00000000 fd:00 2494346 /lib64/libc-2.12.so 80191d0000-80191e0000 r--p 001b0000 fd:00 2494346 /lib64/libc-2.12.so 80191e0000-8019200000 rw-p 001c0000 fd:00 2494346 /lib64/libc-2.12.so 8019300000-8019320000 r-xp 00000000 fd:00 2494353 /lib64/libpthread-2.12.so 8019320000-8019330000 r--p 00010000 fd:00 2494353 /lib64/libpthread-2.12.so 8019330000-8019340000 rw-p 00020000 fd:00 2494353 /lib64/libpthread-2.12.so 8019370000-8019380000 r-xp 00000000 fd:00 2494396 /lib64/librt-2.12.so 8019380000-8019390000 r--p 00000000 fd:00 2494396 /lib64/librt-2.12.so 8019390000-80193a0000 rw-p 00010000 fd:00 2494396 /lib64/librt-2.12.so 8019710000-8019730000 r-xp 00000000 fd:00 953040 /usr/lib64/libusb-1.0.so.0.1.0 8019730000-8019740000 rw-p 00010000 fd:00 953040 /usr/lib64/libusb-1.0.so.0.1.0 fff8cab0000-fff8cac0000 rw-p 00000000 00:00 0 fff8cac0000-fff8cae0000 r-xp 00000000 00:00 0 [vdso] fffd76f0000-fffd7840000 rw-p 00000000 00:00 0 [stack] Aborted (core dumped) Version-Release number of selected component (if applicable): usbutils-003-5.el6.ppc64 How reproducible: always Steps to Reproduce: 1.run lsusb on ppc64 system with no USB present. 2. 3. Actual results: seg fault Expected results: error or some other message indicating no USB bus could be found Additional info: usb-devices script from the same package reports no output and exits with $? to 1 lsusb.py produces no output and exits with $? set to 0
*** Bug 1317025 has been marked as a duplicate of this bug. ***
... for RHEL7 was it maybe this bugzilla ...? LTC bug 107852 - RH1092490- STC810:Tuleta:COFP1 - RHEL 7.0 - lsusb command core dumps when there are no valid USB devices (usbutils) ...?
We need this patch: https://github.com/gregkh/usbutils/commit/fc2b9edc19565ff5f5a7b113756e99f5b31a77d1
It is already 6.8 beta and only exceptions are accepted, so postponing to 6.9.
Verified usbutils-003-6.el6 fixes the segfault issue on systems with no USB
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-0805.html