Bug 158189

Summary: makedbz segfault in %post script
Product: [Fedora] Fedora Reporter: Joe Orton <jorton>
Component: coreutilsAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
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: 2005-05-20 13:14:04 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Joe Orton 2005-05-19 10:10:38 EDT
Today's Raw Hide snapshot sees this error in install.log:

Installing inn-2.4.2-3.i386.
/var/tmp/rpm-tmp.42047: line 2:  9233 Segmentation fault      su news -c
'/usr/lib/news/bin/makedbz -i -o'
Comment 1 Martin Stransky 2005-05-20 04:14:49 EDT
Did you install inn package or did you upgrade it?
Makedbz segfaults if you have an old index data
(see https://bugzilla.redhat.com/bugzilla-old/show_bug.cgi?id=157802)
Comment 2 Joe Orton 2005-05-20 04:41:41 EDT
It was a completely fresh install.
Comment 3 Martin Stransky 2005-05-20 06:01:07 EDT
What happens if you run makedbz as root from command line?
Which files do you have in /var/lib/news ?
Comment 4 Joe Orton 2005-05-20 06:14:53 EDT
Ah, sorry, it's actually su which is segfaulting.

Tim this is reproducible on every rpm --erase inn / rpm -ivh inn invocation on a
Raw Hide box.  gdb says the crash is at:

(gdb) bt full
#0  0x009867e2 in main (argc=4, argv=0xbfe8d8c4) at su.c:344
        optc = Variable "optc" is not available.

coreutils-5.2.1-45
Comment 5 Tim Waugh 2005-05-20 08:30:57 EDT
This seems to be because ttyname(0) returns NULL.

Fixed package is coreutils-5.2.1-47.
Comment 6 Joe Orton 2005-05-20 09:11:21 EDT
Works for me, thanks Tim.