Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13502 - etc-update triggers segmentation fault with sdiff
Summary: etc-update triggers segmentation fault with sdiff
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Jonathan Nall
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-08 10:35 UTC by Mark Guertin
Modified: 2003-05-05 12:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Guertin 2003-01-08 10:35:02 UTC
/usr/sbin/etc-update: line 18: 26072 Segmentation fault      `echo
"${merge_command}" |
                 sed -e "s:%merged:${mfile}:g"                   -e
"s:%orig:${ofile}:g"                         -e "s:%new:${file}:g"`

emerge, nano, sed all work fine here, not sure what triggered this one.

This was trying to do an interactive update.

Also some good documentation in the man page would be appreciated (like how to
adjust it to go into dialog mode, etc).
Comment 1 Mark Guertin 2003-01-08 11:54:48 UTC
hmm possibly an issue with sdiff?  I don't have time to fight with it quite yet,
but will revisit this one when I have some time with more details
Comment 2 Mark Guertin 2003-02-03 10:51:06 UTC
Nall:

Can you try this out when you have a chance?   Run etc-update and try to interactively merge the diffs and it should trigger it.
Comment 3 Jonathan Nall 2003-02-03 10:55:39 UTC
yeah, i'll take it. what's your diff command set to in etc-update.conf or whereever? (so i can get the same behavior). 

does this happen every time?
Comment 4 Mark Guertin 2003-02-03 11:05:35 UTC
I am using the defaults, it should be set to sdiff of some sort, and it happens every time.
Comment 5 Jonathan Nall 2003-02-04 21:15:17 UTC
diffutils-2.8.4-r3 (committed in CVS) fixes this bug in sdiff. 
Comment 6 SpanKY gentoo-dev 2003-02-22 03:42:26 UTC
if you have '-mabi=altivec -maltivec' in CFLAGS, sdiff also segfaults ...
however, if you have just one or the other, sdiff works :)
Comment 7 Martin Holzer (RETIRED) gentoo-dev 2003-05-05 12:24:17 UTC
fixed