Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 228905 - dev-lang/python-2.5.2-r4 : test-str segfault
Summary: dev-lang/python-2.5.2-r4 : test-str segfault
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Python Gentoo Team
Depends on:
Blocks: gcc-4.3
  Show dependency tree
Reported: 2008-06-22 14:47 UTC by Olivier Huber
Modified: 2008-06-24 13:54 UTC (History)
1 user (show)

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

bt full (python.test.2,7.85 KB, text/plain)
2008-06-22 14:49 UTC, Olivier Huber
patch proposal (python.ebuild.patch,372 bytes, patch)
2008-06-22 21:59 UTC, Olivier Huber
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Huber 2008-06-22 14:47:43 UTC
[ebuild   R   ] dev-lang/python-2.5.2-r4  USE="berkdb gdbm ipv6 ncurses readline sqlite ssl threads tk ucs2 -bootstrap -build -doc -examples -wininst" 0 kB

During test phase :

make: *** [test] Erreur de segmentation (it means segmentation fault)

Then I emerge python with -ggdb, so I can get an bt (see attachement).

Note that this occur during an emerge -e world, because I'm upgrading to glibc 2.8 and gcc-4.3.1 && I added as-neede to my LDFLAGS 

I have emerged this package one month ago on this box and it pass tests.

emerge --info :

Portage 2.2_pre8 (default-linux/x86/2007.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r1 i686)
System uname: Linux-2.6.25-gentoo-r1-i686-Intel-R-_Pentium-R-_M_processor_1.86GHz-with-glibc2.0
Timestamp of tree: Tue, 17 Jun 2008 20:45:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r4, 2.5.2-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
CFLAGS="-O2 -march=pentium-m -pipe "
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -pipe "
FEATURES="ccache distlocks parallel-fetch preserve-libs sandbox sfperms strict test unmerge-orphans userfetch"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/usr/local/overlays/proaudio/proaudio /usr/local/overlays/local"
USE="3d X X509 Xaw3d a52 aac aalib acl acpi ada adns adplug afs aiglx aio akode alsa amrnb amrwb animation apache2 apm arts artswrappersuid asf atm audiofile avahi bash-completion bashlogger beagle bench berkdb bidi bindist bl bonjour bootsplash border branding browserplugin bs bzip2 cairo caps cdda cddb cdio cdparanoia cdr cgi chardet chipcard chroot cjk cli compositor console copacity cpudetection cracklib crashhandler crypt ctype cups curl curlwrappers cvs cyrillic d daap dbus dc1394 dedicated dg dga dia directfb disk-partition djvu dlloader dmi dmx dock dri dssi dts dv dvb dvd dvdnav dvdr dvdread dvi dynagraph edl elf emboss enca encode esd evo exif extra extra-algorithms extrafilters fam fame fbcon fbcondecor fbsplash ffmpeg fftw firefox flac flash float font-server fortran fpx ftp fuse gcj gcrypt gd gdbm ggi gif gimp git glib glitz glut gmp gnutls gphoto2 gpm graphics graphviz group gs gstreamer gtk gtk2 hal hardened hash hbci howl-compat httpd hybrid i8x0 iconv idea idn ieee1394 imagemagick imlib immqt inkjar inquisitio iontruetype iproute2 ipv6 isdnlog jack jack-tmpfs java javascript jbig jingle jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kerberos kig-scripting kpathsea l7filter ladcca ladspa lame laptop lash lcms ldap lesstif libcaca libgcrypt libnotify libsamplerate lilypond live lm_sensors logitech-mouse logrotate loop-aes lua lzma lzo mad matroska md5sum mdnsresponder-compat meanwhile midi mikmod miniwin mjpeg mktemp mmap mmx mmxext mng mod modplug mono motif mozilla mozsha1 mozsvg mp2 mp3 mp4 mpeg msn mtp mudflap multislot multitarget musepack music musicbrainz nas nat ncurses neXt neg nemesi netboot nethack netjack network network-cron nis nls nntp nptl nptlonly nsplugin ntp objc objc++ objc-gc ofx ogg oggvorbis omega openal openexr opengl openmp openntpd osc oss pam pam_chroot pam_timestamp pango parse-clocks pascal passwdqc pcap pccts pch pcmcia pcre pdf perforce perl perlsuid pertty php pic pkcs11 plotutils plugins png pnm portage portaudio postgres postscript povray ppds pppd profile pstricks publishers pulseaudio put pvr python qa qq qt qt3 qt3support qt4 quicktime quotes radio rar rc5 rdesktop readline real reflection regex rpm rtc rtsp ruby samba sasl scanner science script sdl sdl-image sensord server session sftplogging shout showdesktop sidspoof-source silc skey slang smi smux sndfile snmp soap sox speex spell spl sql sqlite sqlite3 srt sse sse2 ssl startup-notification state stream subversion suhosin svg svga svnserve swat sysfs taglib tcltk tcpd teletext test tetex tex4ht tga theora threads threadsafe tidy tiff timidity toolbar trailfocus truetype tta twolame ucs2 unicode upnp usb v4l v4l2 vcd vda vesa-tng vesafb-tng vga vidix vim vim-pager vim-syntax vim-with-x visualization vlm vorbis vorbis-psy vst wallpaper wavpack webdav widget wifi win32codecs wma wmf wmlreadere wxwindows x11 x264 x86 xanim xattr xcb xcomposite xetex xine xinerama xml xml2 xmlwriter xorg xosd xprint xsl xv xvid xvmc yv12 zeroconf zip zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev mouse keyboard synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" USERLAND="GNU" VIDEO_CARDS="v4l vga vesa radeon fbdev fglrx"
Comment 1 Olivier Huber 2008-06-22 14:49:30 UTC
Created attachment 158007 [details]
bt full
Comment 2 Santiago M. Mola (RETIRED) gentoo-dev 2008-06-22 16:51:51 UTC
Python team, this is
Comment 3 Olivier Huber 2008-06-22 21:58:19 UTC
(In reply to comment #2)
> Python team, this is

Thanks! I have find why we were affected by this bug : CFLAGS is set by the ebuild and so it lack -fwrapv. It seems that we need to enable this for gcc 4.x : In :

        # For gcc 4.x we need to use -fwrapv so lets check if its supported
        if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then

I have patched the ebuild and it work flawlessy.
Comment 4 Olivier Huber 2008-06-22 21:59:46 UTC
Created attachment 158049 [details, diff]
patch proposal
Comment 5 Ali Polatel (RETIRED) gentoo-dev 2008-06-24 13:54:42 UTC
Fixed in python-2.5.2-r5, thanks for reporting.