Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#26392 - [hwinfo] Segmentation fault

Attached to Project: Community Packages
Opened by Roman Widmann (archme) - Tuesday, 11 October 2011, 08:28 GMT
Last edited by Alexander F. Rødseth (xyproto) - Tuesday, 11 October 2011, 13:53 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Kaiting Chen (kaitocracy)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
hwinfo crashes with "Segmentation fault"
note: only tested on x86_64

Additional info:
* hwinfo 18.5-1
* dmesg reports:
hwinfo[25290]: segfault at 190 ip 00007f1d7e1deaeb sp 00007fffb1ee87d0 error 4 in libhd.so.18.5[7f1d7e1b2000+9b000]


Steps to reproduce:
just run hwinfo
This task depends upon

Closed by  Alexander F. Rødseth (xyproto)
Tuesday, 11 October 2011, 13:53 GMT
Reason for closing:  Fixed
Additional comments about closing:  http://www.youtube.com/watch?v=j54yGxuk0 yo
Comment by Alexander F. Rødseth (xyproto) - Tuesday, 11 October 2011, 11:20 GMT
Can reproduce, segfaults here as well. I also see that hwinfo 19 is out (and the link for the 18.5 download is dead).
Flagged hwinfo as out of date.
Comment by Alexander F. Rødseth (xyproto) - Tuesday, 11 October 2011, 11:58 GMT
Updated the package to 19.0, but it still segfaults. Will try to figure out why.
Comment by Alexander F. Rødseth (xyproto) - Tuesday, 11 October 2011, 12:41 GMT
After compiling hwinfo with -g and -DDEBUG this is the backtrace I get with gdb:

Reading symbols from /home/alexander/archpackages/community/hwinfo/trunk/src/hwinfo-19.0/hwinfo...done.
(gdb) r
Starting program: /home/alexander/archpackages/community/hwinfo/trunk/src/hwinfo-19.0/hwinfo
> pci.5: xen
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7a39a9a in progress () from /usr/lib/libhd.so.19
(gdb) backtrace full
#0 0x00007ffff7a39a9a in progress () from /usr/lib/libhd.so.19
No symbol table info available.
#1 0x00007ffff7a5dc0c in hd_scan_sysfs_pci () from /usr/lib/libhd.so.19
No symbol table info available.
#2 0x00007ffff7a3ee75 in hd_scan () from /usr/lib/libhd.so.19
No symbol table info available.
#3 0x00000000004022ba in main (argc=0, argv=0x7fffffffdab0) at hwinfo.c:417
hd_data = 0x608010
hd = <optimized out>
f = 0x0
i = <optimized out>
first_probe = <optimized out>
Comment by Alexander F. Rødseth (xyproto) - Tuesday, 11 October 2011, 13:52 GMT
Fixed it! :)
Added CFLAGS+="-fPIC -I${srcdir}/${pkgname}-${pkgver}/src/hd"

Loading...