Bug 137834

Summary: anaconda segfaults
Product: [Fedora] Fedora Reporter: Bill Nottingham <notting>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED RAWHIDE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: jbj, katzj, pnasrat, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-11-02 05:04:44 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Bug Depends On:    
Bug Blocks: 130887    
Attachments:
Description Flags
rpm diffs between -13 and -20
none
the patch none

Description Bill Nottingham 2004-11-01 16:50:09 EST
anaconda[318]: segfault at 0000000000000060 rip 0000002a95e03052 rsp
0000007fbfffd8b0 error 4

Or, on another box:

anaconda[332]: segfault at 00000000003f9065 rip 0000002a95e02fec rsp
0000007fbfffd8d0 error 4

According to tty 3:

moving (I1) to step installpackages
setting file_context_path to
/etc/selinux/targeted/contexts/files/file_contexts
Comment 1 Bill Nottingham 2004-11-01 17:06:08 EST
Created attachment 106050 [details]
rpm diffs between -13 and -20

Here's the rpm changes between -13 and -20, just for reference.

poptI.c and psm.c look obviously safe.

Which leaves rpmts-py.c (#137116) and lib/formats.c (#135389)
Comment 2 Bill Nottingham 2004-11-01 17:23:35 EST
Note - the rpmIncreaseVerbosity needs to go away.
Comment 3 Bill Nottingham 2004-11-01 17:26:52 EST
Erm, bug 135859 is the lib/formats.c bug fixed, just for reference.
Comment 4 Bill Nottingham 2004-11-01 17:33:54 EST
Happens on i386 too.
Comment 5 Bill Nottingham 2004-11-01 21:27:10 EST
And, your backtrace is....

Program received signal SIGSEGV, Segmentation fault
0xb7eb7dec in pthread_mutex_lock () from /lib/libpthread.so.0
(gdb) bt
#0 0xb7eb7dec in pthread_mutex_lock () from /lib/libpthread.so.0
#1 0xb7eba94e in flockfile () from /lib/libpthread.so.0
#2 0xb7dc2d26 in fputs () from /lib/libc.so.6
#3 0xb795a523 in rpmlogSetFile () from /usr/lib/librpmio-4.3.so
...
Comment 6 Bill Nottingham 2004-11-01 21:42:09 EST
... annnd, in fact, removing the rpmIncreaseVerbosity calls gets rid
of the segfault. Will add a patch to the FC3 branch in package cvs;
Jeff, you probably want to hit CVS with the fix.
Comment 7 Bill Nottingham 2004-11-01 21:44:19 EST
Created attachment 106056 [details]
the patch
Comment 8 Bill Nottingham 2004-11-01 22:07:51 EST
4.3.2-21 built.
Comment 9 Jeff Johnson 2004-11-02 05:04:44 EST
iAdded to CVS. Thanks for the patch, apologies for the bother.