openSUSE / hwinfo

Hardware information tool
GNU General Public License v2.0
259 stars 70 forks source link

Hang on hd_list, hw_disk #122

Open Johnparke888 opened 2 years ago

Johnparke888 commented 2 years ago

I am getting a hang on SUSE Linux Enterprise Server 12 SP3, when trying to retrieve hw_disk info,

Using gdb, I can see that it is hanging on ioctl:

`#0 0x00002ac618c16327 in ioctl () from /lib64/libc.so.6

1 0x0000000000605d61 in add_scsi_sysfs_info (hd_data=hd_data@entry=0x1e4f6c0, hd=hd@entry=0x1e9f1b0,

sf_dev=sf_dev@entry=0x1e9e9a0 "/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/host9/target9:0:0/9:0:0:0") at block.c:999

2 0x0000000000607579 in add_scsi_sysfs_info (

sf_dev=0x1e9e9a0 "/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/host9/target9:0:0/9:0:0:0", hd=0x1e9f1b0,
hd_data=0x1e4f6c0) at block.c:773

3 get_block_devs (hd_data=hd_data@entry=0x1e4f6c0) at block.c:388

4 0x0000000000608ae7 in hd_scan_sysfs_block (hd_data=hd_data@entry=0x1e4f6c0) at block.c:83

5 0x00000000005d9455 in hd_scan_no_hal (hd_data=0x1e4f6c0) at hd.c:2093

6 hd_scan (hd_data=hd_data@entry=0x1e4f6c0) at hd.c:1924

7 0x00000000005da07c in hd_list (hd_data=0x1e4f6c0, item=hw_disk, rescan=, hd_old=0x0) at hd.c:3302`

Any ideas as to what causes this, and is there a workaround?

Thanks for any help.

John