Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33675 - problem emerging glibc with propolice (segfault while compiling)
Summary: problem emerging glibc with propolice (segfault while compiling)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc Linux
: High normal (vote)
Assignee: Sparc Porters
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-17 07:39 UTC by Alexey Bazhin
Modified: 2006-02-04 06:05 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 Alexey Bazhin 2003-11-17 07:39:16 UTC
I have been trying to emerge sys-libs/glibc-2.3.2-r1 with propolice and got error:
 
CPP='gcc -E -x c-header' 
/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/elf/ld-linux.so.2
--library-path
/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/math:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/elf:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/dlfcn:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/nss:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/nis:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/rt:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/resolv:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/crypt:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/linuxthreads
/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/sunrpc/rpcgen -Y
../scripts -h rpcsvc/bootparam_prot.x -o
/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/sunrpc/rpcsvc/bootparam_prot.T
touch
/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/sunrpc/xbootparam_prot.stmp
CPP='gcc -E -x c-header' 
/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/elf/ld-linux.so.2
--library-path
/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/math:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/elf:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/dlfcn:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/nss:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/nis:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/rt:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/resolv:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/crypt:/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/linuxthreads
/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/sunrpc/rpcgen -Y
../scripts -c rpcsvc/nlm_prot.x -o
/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/sunrpc/xnlm_prot.T
make[2]: ***
[/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/sunrpc/rpcsvc/bootparam_prot.stmp]
Segmentation fault
make[2]: *** Waiting for unfinished jobs....
stdout: Broken pipe
/bin/sh ../scripts/move-if-change
/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/sunrpc/xnlm_prot.T
/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/sunrpc/xnlm_prot.c
make[2]: *** Waiting for unfinished jobs....
touch
/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/sunrpc/xnlm_prot.stmp
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.3.2-r1 failed.
!!! Function src_compile, Line 419, Exitcode 2
!!! (no error message)

I tryed to emerge it several times and sometimes I got Bus error insted of
segfault(in the same place). Without -fstack-protector it compiles nicely.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




my hardware: Sun Enterprise 250
my emerge info:
Portage 2.0.49-r15 (default-sparc64-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22-sparc-r0)
=================================================================
System uname: 2.4.22-sparc-r0 sparc64 sun4u
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="sparc"
AUTOCLEAN="yes"
CFLAGS="-mcpu=ultrasparc -O2 -pipe -fstack-protector"
CHOST="sparc-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=ultrasparc -O2 -pipe -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FEATURES="userpriv -ccache -sandbox -usersandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="sparc apache2 berkdb gd imap ldap maildir mysql ncurses nls pam perl png
python readline sasl ssl xml xml2 zlib"
Comment 1 Sven Blumenstein (RETIRED) gentoo-dev 2003-11-30 10:36:20 UTC
glibc-2.3.2-r1 got removed from portage. Please test with glibc-2.3.2-r3 (worked for me).


Portage 2.0.49-r18 (gcc33-sparc64-1.4, gcc-3.3.2, glibc-2.3.2-r8, 2.4.22)
=================================================================
System uname: 2.4.22 sparc64 sun4u
Gentoo Base System version 1.4.3.11
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="sparc ~sparc"
AUTOCLEAN="yes"
CFLAGS="-mcpu=ultrasparc -O2 -pipe -fstack-protector"
CHOST="sparc-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=ultrasparc -O2 -pipe -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache sandbox"
GENTOO_MIRRORS="ftp://24.217.0.21/ ftp://gentoo.mirrors.pair.com/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j50"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://24.217.0.21/gentoo-portage"
USE="sparc X berkdb crypt cscope esd gif gtk gtk2 jpeg maildir mpeg ncurses oggvorbis pam png quicktime readline ssl tiff truetype xml2 xv zlib"

---


BTW, Bus error and segfault look more like dead ram or some other problem to me. Overheating might be the reason too (had this on my Ultra5 with a too slow cpu fan).
Comment 2 Sven Blumenstein (RETIRED) gentoo-dev 2003-12-25 07:03:08 UTC
Does this problem still exist?
Comment 3 Alexey Bazhin 2003-12-25 08:15:39 UTC
sorry, i had some problems with other apps too so i decided not to use propolice this time
Comment 4 Jason Wever (RETIRED) gentoo-dev 2003-12-31 16:56:22 UTC
Adding the hardened folks so they are aware of the problem and can perhaps make some suggestions.
Comment 5 solar (RETIRED) gentoo-dev 2003-12-31 20:25:25 UTC
Weeve,

Sven said it works for him.

But can you confirm it's all good now by rebuilding your glibc-2.3.2-r3 with 
-fstack-protector enabled in your CFLAGS. You should anyway!!! Either or -r2 or -r3 fixes bugs in ssp.
If it fails to build then we just need to make sure we have a 
"use sparc && filter-flags -fstack-protector" in the glibc ebuild for this arch..
Comment 6 Gustavo Zacarias (RETIRED) gentoo-dev 2004-01-29 18:07:19 UTC
glibc-2.3.2-r3 builds fine with propolice on sparc64.
we still have to check #39725 - e2fsprogs doesn't like propolice on sparc yet, i had that same problem.
thanks.