Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 84317 - merge of broken sed 4.1.4 causes segmentation faults on ppc
Summary: merge of broken sed 4.1.4 causes segmentation faults on ppc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on: 86857
Blocks:
  Show dependency tree
 
Reported: 2005-03-06 10:25 UTC by Nicolas Vilz
Modified: 2009-07-16 17:55 UTC (History)
2 users (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 Nicolas Vilz 2005-03-06 10:25:19 UTC
everytime I try to merge sed-4.1.4 on my ppc, it merges correctly, but after that i get a broken sed which causes segmentation faults in every configure script which uses sed.

Reproducible: Always
Steps to Reproduce:
1. emerge sed
2. emerge xmms # e.g.

Actual Results:  
sed merges, but xmms gets caught in a segmentation fault in the configure script.

./configure: line 1383: 13749 Segmentation fault sed -n
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 

thats on several packages which use sed in the configure-script. the
Segmentation fault is the same, only the line-numbers change.

Expected Results:  
should merge sed and all other packages afterwards.

niv@pr0llb00k ~ $ emerge info
Portage 2.0.51.19 (default-linux/ppc/2005.0, gcc-3.4.3-20050110,
glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r6 ppc)
=================================================================
System uname: 2.6.10-gentoo-r6 ppc 7410, altivec supported
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 19 2005, 09:08:41)]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.4_p6, 1.6.3, 1.5, 1.9.5
sys-devel/binutils:  2.15.90.0.3-r4
sys-devel/libtool:   1.5.10-r5
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec -fno-strict-aliasing"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec -fno-strict-aliasing"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache cvs distlocks sandbox sfperms
userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://gentoo-distfiles.local.nil.nul/gentoo-portage"
USE="X aalib aim alsa altivec apache2 arts bash-completion berkdb bidi
bitmap-fonts bluetooth bonobo bzip2 cddb cdr cdrom cjk clamav crypt cups curl
dba directfb divx4linux dlloader dmx dvd dvdr dvdread eep emboss escreen esd
etwin f77 fam fbcon fla flac font-server foomaticdb fortran ftp gd gdbm gif
gimpprint gpm gstreamer gtk gtk2 hardened hardenedphp iconv icq imagemagick imap
imlib ipv6 ipv6arpa irda irmc jabber jack jack-tmpfs java jpeg junit ldap libwww
mad maildir motif mozilla mp3 mpeg mpeg4 msn mysql ncurses nethack nls odbc
oggvorbis opengl oscar pam pcmcia pda perl php png pnp postgres ppc ppds psyco
pthreads python qt quicktime radeon readline samba screenshot sdl session slang
soap spell sqlite ssl svg tcltk tcpd tetex tiff truetype truetype-fonts type1
type1-fonts unicode vhosts vim-with-x wmf xine xinerama xml xml2 xmms xprint xsl
xv xvid yahoo zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
--

Calculating dependencies  ...done!
[ebuild   R   ] sys-apps/sed-4.1.4  -bootstrap -build -debug -nls -static 0 kB 

Total size of downloads: 0 kB

---
Thx to JoseJX i got a working replacement, but that is not a solution for that
problem, because everytime i remerge sed, i get the same error.
Comment 1 SpanKY gentoo-dev 2005-03-08 16:25:52 UTC
if you emerge it with CFLAGS="-pipe" does it work ?
Comment 2 Nicolas Vilz 2005-03-09 22:43:11 UTC
sounds good... i merged sed with CFLAGS="-pipe" and tried to merge pam... looks very good... i'm creating libtool now... if i have any problems with pam, I will tell you :)
Comment 3 Nicolas Vilz 2005-03-10 15:18:49 UTC
looks good :) thx for that hint... no problems yet. merging now all other packages (thats alot)
Comment 4 Lars Weiler (RETIRED) gentoo-dev 2005-04-02 06:45:20 UTC
So, this bug could be considered as fixed.
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2005-08-13 13:11:36 UTC
I don't understand how it can be considered fixed when no CFLAGS are being
stripped in the ebuild, yet using pretty reasonable CFLAGS breaks it on ppc.

I just emerged this and now I'm kinda stuck, because the sed configure script
uses sed, so I can't downgrade without grabbing a binary package.

CFLAGS="-O2 -mcpu=7450 -fno-strict-aliasing -pipe -fomit-frame-pointer 
-fstack-protector"
Comment 6 nixnut (RETIRED) gentoo-dev 2005-08-13 13:25:42 UTC
(In reply to comment #5)
> I don't understand how it can be considered fixed when no CFLAGS are being
> stripped in the ebuild, yet using pretty reasonable CFLAGS breaks it on ppc.
> 
> I just emerged this and now I'm kinda stuck, because the sed configure script
> uses sed, so I can't downgrade without grabbing a binary package.
> 
> CFLAGS="-O2 -mcpu=7450 -fno-strict-aliasing -pipe -fomit-frame-pointer 
> -fstack-protector"

Do you have hardened in your use flags perhaps? 
Solar's patch works for me: https://bugs.gentoo.org/show_bug.cgi?id=86857#c6
Comment 7 Lars Weiler (RETIRED) gentoo-dev 2006-01-21 06:24:56 UTC
What is the status of this bug?
Comment 8 Nicolas Vilz 2006-01-21 07:57:32 UTC
well, i don't have that selinux-ppc installation on my powerbook at the moment, i have some backup somewhere but don't have the time now to reroll it. I'd guess a "won't fix" or "can't fix", or quite "fixed with a work-around" would be the status...
Comment 9 nixnut (RETIRED) gentoo-dev 2006-02-04 01:02:04 UTC
(In reply to comment #7)
> What is the status of this bug?
 
1. Status FIXED in bug #83549, but that's probably because the true character of 
   the problem was not recognised there.
2. A workaround here: https://bugs.gentoo.org/show_bug.cgi?id=86857#c6
3. And a comment that says "Don't do that" in comment #9 of the same bug.

The choice seems to be between applying solars patch or not using pie.

I've applied solars patch and haven't had any problems with it so far.
Comment 10 Joe Jezak (RETIRED) gentoo-dev 2006-02-17 09:18:19 UTC
This is a hardened bug, re-assigning to them.
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2007-06-30 22:37:04 UTC
Is this still even remotely relevant?
Comment 12 Gordon Malm (RETIRED) gentoo-dev 2009-07-16 17:55:30 UTC
Haven't heard back and pretty sure this is fixed, so closing as such.  Re-open if it isn't.