Bug 176724

Summary: kudzu - segmentation fault during a boot time
Product: [Fedora] Fedora Reporter: Damian Wrobel <dwrobel>
Component: kudzuAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: maxer1, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: 1.2.17-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-01-01 07:03:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
kudzu coredump
none
/etc/sysconfig/hwconf
none
/etc/sysconfig/kudzu
none
lspci output none

Description Damian Wrobel 2005-12-30 22:43:20 UTC
Description of problem:
kudzu is failing to run with the segmentation fault during a boot time.

Version-Release number of selected component (if applicable):
1.2.16-1

How reproducible:
always

Steps to Reproduce:
1. run kudzu without any options

callstack:

#0  0x4c31b466 in free () from /lib/libc.so.6
#1  0x0804e03f in freeDevice (dev=0x80d1150) at kudzu.c:195
#2  0x08051df6 in pciFreeDevice (dev=0x80d1150) at pci.c:62
#3  0x0805283a in pciProbe (probeClass=CLASS_UNSPEC, probeFlags=Variable
"probeFlags" is not available.
) at pci.c:528
#4  0x080506e6 in probeDevices (probeClass=CLASS_UNSPEC, probeBus=-9,
    probeFlags=1) at kudzu.c:808
#5  0x0804d394 in main (argc=Cannot access memory at address 0x4
) at hwconf.c:1010
#6  0x4c2ce59e in __libc_start_main () from /lib/libc.so.6
#7  0x0804a4c1 in _start ()


valgrind says:

Invalid free() / delete / delete[]
==2516==    at 0x1B90215D: free (vg_replace_malloc.c:235)
==2516==    by 0x804E03E: freeDevice (kudzu.c:195)
==2516==    by 0x8051DF5: ??? (pci.c:62)
==2516==    by 0x8052839: ??? (pci.c:528)
==2516==    by 0x80506E5: ??? (kudzu.c:808)
==2516==    by 0x804D393: ??? (hwconf.c:1010)
==2516==    by 0x4C2CE59D: __libc_start_main (in /lib/libc-2.3.90.so)
==2516==    by 0x804A4C0: (within /sbin/kudzu)
==2516==  Address 0x8068FC0 is not stack'd, malloc'd or (recently) free'd

Comment 1 Damian Wrobel 2005-12-30 22:43:21 UTC
Created attachment 122647 [details]
kudzu coredump

Comment 2 Damian Wrobel 2005-12-30 22:44:40 UTC
Created attachment 122648 [details]
/etc/sysconfig/hwconf

Comment 3 Damian Wrobel 2005-12-30 22:45:19 UTC
Created attachment 122649 [details]
/etc/sysconfig/kudzu

Comment 4 Damian Wrobel 2005-12-30 22:47:27 UTC
Created attachment 122651 [details]
lspci output

Comment 5 Bill Nottingham 2006-01-01 06:47:50 UTC
01:05.0 RAID bus controller: <pci_lookup_name: buffer too small> (rev 13)

Niiiiiiice. If you edit the 1283:8212 entry in /usr/share/hwdata/pci.ids to be
shorter, does it stop segfaulting?

Comment 6 Bill Nottingham 2006-01-01 07:02:49 UTC
*** Bug 176490 has been marked as a duplicate of this bug. ***

Comment 7 Bill Nottingham 2006-01-01 07:03:36 UTC
Fixed in 1.2.17-1.

Comment 8 Damian Wrobel 2006-01-01 21:33:23 UTC
(In reply to comment #5)
> Niiiiiiice. If you edit the 1283:8212 entry in /usr/share/hwdata/pci.ids to be
> shorter, does it stop segfaulting?
Yes it does.