Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107673 - emerge of python 2.4.1 segfaults when using gcc 4.0.1 and CFLAG -fomit-frame-pointer
Summary: emerge of python 2.4.1 segfaults when using gcc 4.0.1 and CFLAG -fomit-frame-...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-29 22:34 UTC by Danoz
Modified: 2005-12-02 20:28 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 Danoz 2005-09-29 22:34:13 UTC
when the CFLAG of -fomit-leaf-frame pointer is used in conjuction with GCC
4.0.1, an emerge of python 2.4.1-r1 will fail with a segfault.

Reproducible: Always
Steps to Reproduce:
1. CFLAGS="-fomit-frame-pointer"
2. emerge python
3. *segfault*

Actual Results:  
/bin/sh: line 1: 29363 Segmentation fault     
LD_LIBRARY_PATH=/var/tmp/portage/python-2.4.1-r1/work/Python-2.4.1:
CC='i686-pc-linux-gnu-gcc -pthread' LDSHARED='i686-pc-linux-gnu-gcc -pthread
-shared' OPT='-DNDEBUG -O3 -march=pentium3 -mtune=pentium3 -pipe -fforce-addr 
-fomit-frame-pointer -ffast-math -mfpmath=sse -mmmx -msse -funroll-loops
-momit-leaf-frame-pointer' ./python -E ./setup.py build
make: *** [sharedmods] Error 139

!!! ERROR: dev-lang/python-2.4.1-r1 failed.
!!! Function src_compile, Line 166, Exitcode 2
!!! Parallel make failed
!!! If you need support, post the topmost build error, NOT this status message.


Expected Results:  
emerge succesfully.

Portage 2.0.52-r1 (default-linux/x86/2005.1, gcc-4.0.1, glibc-2.3.5.20050722-r0,
2.6.10-lxnay3 i686)
=================================================================
System uname: 2.6.10-lxnay3 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5-r2, 2.4.1-r1
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r2, 1.9.6
sys-devel/binutils:  2.16.91.0.3
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium3 -mtune=pentium3 -mmmx -msse -mfpmath=sse -pipe
-ftracer -fforce-addr -fomit-frame-pointer -momit-leaf-frame-pointer -funroll-loops
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -mtune=pentium3 -mmmx -msse -mfpmath=sse -pipe
-ftracer -fforce-addr -fomit-frame-pointer -momit-leaf-frame-pointer -funroll-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict usersandbox"
GENTOO_MIRRORS="http://mirror.internode.on.net/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://mirror.internode.on.net/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts crypt cups eds emboss encode
foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 jpeg kde
libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis
opengl oss pam pdflib perl png python qt quicktime readline sdl spell ssl tcpd
truetype truetype-fonts type1-fonts vorbis xml2 xmms xv zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 SpanKY gentoo-dev 2005-09-30 05:54:58 UTC
try gcc-4.0.2
Comment 2 Ovidiu Ghinet 2005-09-30 06:16:17 UTC
some problem here he difference is that i have gcc-4.0.2
Comment 3 Danoz 2005-10-02 06:06:36 UTC
the same problem occurs with the new python 2.4.2 ebuild. i havent tested gcc
4.0.2 yet though.
Comment 4 Mark Loeser (RETIRED) gentoo-dev 2005-10-02 11:21:02 UTC
(In reply to comment #2)
> some problem here he difference is that i have gcc-4.0.2

And your CFLAGS?


Could you try with a sane set of CFLAGS, something like "-O2 -march=pentium3
-fomit-frame-pointer -pipe".  I personally have not had the problems described
here yet, and I haven't heard from others that I know to be running gcc-4
describing this problem.
Comment 5 Paweł Mielechowicz 2005-11-05 08:14:53 UTC
I get the same with python 2.4.2.

Mabey its's because I use glibc-2.3.5-r3.
Mabey I should use glibc-2.3.5.20050421 or newer

my flags:

CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
Comment 6 SpanKY gentoo-dev 2005-12-02 20:28:55 UTC
get back to us