Bug 13502 - etc-update triggers segmentation fault with sdiff
Bug#: 13502 Product:  Gentoo Linux Version: 1.4_rc2 Platform: All
OS/Version: All Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: nall@themountaingoats.net Reported By: mguertin@macdiscussion.com
Component: Core system
URL: 
Summary: etc-update triggers segmentation fault with sdiff
Keywords:  
Status Whiteboard: 
Opened: 2003-01-08 10:35 0000
Description:   Opened: 2003-01-08 10:35 0000
/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 From Mark Guertin 2003-01-08 11:54:48 0000 -------
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 From Mark Guertin 2003-02-03 10:51:06 0000 -------
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 From Jonathan Nall 2003-02-03 10:55:39 0000 -------
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 From Mark Guertin 2003-02-03 11:05:35 0000 -------
I am using the defaults, it should be set to sdiff of some sort, and it happens
every time.

------- Comment #5 From Jonathan Nall 2003-02-04 21:15:17 0000 -------
diffutils-2.8.4-r3 (committed in CVS) fixes this bug in sdiff. 

------- Comment #6 From SpanKY 2003-02-22 03:42:26 0000 -------
if you have '-mabi=altivec -maltivec' in CFLAGS, sdiff also segfaults ...
however, if you have just one or the other, sdiff works :)

------- Comment #7 From Martin Holzer (RETIRED) 2003-05-05 12:24:17 0000 -------
fixed