Bug 101559

Summary: Building from kernel src.rpm segfaults at debug
Product: [Retired] Red Hat Linux Beta Reporter: Zenon Panoussis <redhatbugs>
Component: elfutilsAssignee: Jeff Johnson <jbj>
Status: CLOSED RAWHIDE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: beta1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-08-19 13:44:45 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:

Description Zenon Panoussis 2003-08-03 18:51:09 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030703

Description of problem:
On an older Duron 600 with a completely virgin severn installation:

# rpm -hiv kernel-2.4.21-20.1.2024.2.1.nptl.src.rpm
# rpmbuild -bb --target athlon /usr/src/redhat/SPECS/kernel.spec 

This builds correctly until the end, and then runs haywire with messages like 

/usr/lib/rpm/find-debuginfo.sh: line 25: 22221 Segmentation fault
/usr/lib/rpm/debugedit -b $RPM_BUILD_DIR -d /usr/src/[every single module] "is
not a shared library"

I ^C'ed after a while, so I don't know what rpm would do if I had let it run. 

How reproducible:
Didn't try

Comment 1 Zenon Panoussis 2003-08-03 19:09:17 UTC
Perhaps I cut a bit too much from the error messages; here is one in its entirety:

/usr/lib/rpm/find-debuginfo.sh: line 25: 22221 Segmentation fault
/usr/lib/rpm/debugedit -b $RPM_BUILD_DIR -d /usr/src/debug -l $SOURCEFILE $f
extracting debug info from
/var/tmp/kernel-2.4.21-20.1.2024.2.1.nptl-root/lib/modules/2.4.21-20.1.2024.2.1.nptlsmp/unsupported/drivers/scsi/sym53c416.o
/usr/lib/debugedit:
"/var/tmp/kernel-2.4.21-20.1.2024.2.1.nptl-root/lib/modules/2.4.21-20.1.2024.2.1.nptlsmp/unsupported/drivers/scsi/sym53c416.o"
is not a shared library
is
not a shared library"

For the rest, I'm not at all sure whether this should be filed against the
kernel or against rpm. 




Comment 2 Jeff Johnson 2003-08-19 13:44:45 UTC
I believe this is fixed in very latest rpm+elfutils from Raw Hide.

Reopen if not.