Calculating dependencies ...done! >>> emerge (1 of 1) media-gfx/blender-2.36-r1 to / >>> md5 files ;-) blender-2.35.ebuild >>> md5 files ;-) blender-2.36-r1.ebuild >>> md5 files ;-) blender-2.34.ebuild >>> md5 files ;-) blender-2.36.ebuild >>> md5 files ;-) blender-2.34-r1.ebuild >>> md5 files ;-) files/blender.png >>> md5 files ;-) files/configure-fix.patch >>> md5 files ;-) files/digest-blender-2.34-r1 >>> md5 files ;-) files/digest-blender-2.36-r1 >>> md5 files ;-) files/digest-blender-2.34 >>> md5 files ;-) files/digest-blender-2.35 >>> md5 files ;-) files/digest-blender-2.36 >>> md5 files ;-) files/blender.desktop >>> md5 files ;-) files/blender-2.36-dirs.patch >>> md5 files ;-) files/blender-2.32.patch >>> md5 src_uri ;-) blender-2.36.tar.gz >>> Unpacking source... >>> Unpacking blender-2.36.tar.gz to /var/tmp/portage/blender-2.36-r1/work * Applying blender-2.36-dirs.patch ... [ ok ] >>> Source unpacked. scons: Reading SConscript files ... Creating new config file: config.opts scons: done reading SConscript files. scons: Building targets ... scons: building terminated because of errors. * enabling game engine * enabling internationalization scons: Reading SConscript files ... Using config file: config.opts scons: done reading SConscript files. scons: Building targets ... gcc -pipe -funsigned-char -march=opteron -O3 -mmmx -m3dnow -mfpmath=sse,387 -ffast-math -pipe -funroll-loops -fomit-frame-pointer -fforce-addr -fprefetch-loop-arrays -Wall -W -DGAMEBLENDER=1 -DUSE_SUMO_SOLID -DNDEBUG -DBUILD_TIME='"15:56:34"' -DBUILD_DATE='"2005-05-11"' -DBUILD_TYPE='"dynamic"' -DNAN_BUILDINFO -DBUILD_PLATFORM='"linux2"' -I/usr/include -c -o /var/tmp/portage/blender-2.36-r1/work/build/linux2/source/creator/player_buildinfo.o source/creator/buildinfo.c *** glibc detected *** double free or corruption (out): 0x00000000407f9f50 *** scons: *** [/var/tmp/portage/blender-2.36-r1/work/build/linux2/source/creator/player_buildinfo.o] Error -6 scons: *** [/var/tmp/portage/blender-2.36-r1/work/build/linux2/source/creator/player_buildinfo.o] Error -6 scons: building terminated because of errors. g++ -pipe -funsigned-char -march=opteron -O3 -mmmx -m3dnow -mfpmath=sse,387 -ffast-math -pipe -funroll-loops -fomit-frame-pointer -fforce-addr -fprefetch-loop-arrays -Wall -W -DGAMEBLENDER=1 -DUSE_SUMO_SOLID -DNDEBUG -I/var/tmp/portage/blender-2.36-r1/work/build/linux2/source/gameengine/GamePlayer/ghost -Isource/gameengine/GamePlayer/ghost -Isource/gameengine/GamePlayer/ghost -Iintern/string -Iintern/ghost -Iintern/guardedalloc -Iintern/bmfont -Iintern/moto/include -Iintern/SoundSystem -Isource/gameengine/Rasterizer/RAS_OpenGLRasterizer -Isource/kernel/gen_system -Isource/kernel/gen_messaging -Isource/gameengine/Converter -Isource/blender/imbuf -Isource/gameengine/Ketsji -Isource/blender/blenlib -Isource/blender/blenkernel -Isource/blender/readblenfile -Isource/blender -Isource/blender/include -Isource/blender/makesdna -Isource/gameengine/Rasterizer -Isource/gameengine/GameLogic -Isource/gameengine/Expressions -Isource/gameengine/Network -Isource/gameengine/SceneGraph -Isource/gameengine/Physics/common -Isource/gameengine/Physics/Sumo -Isource/gameengine/Physics/Sumo/Fuzzics/include -Isource/gameengine/Network/LoopBackNetwork -Isource/gameengine/GamePlayer/common -Isource/blender/misc -Isource/blender/blenloader -I/usr/include/python2.3 -Iextern/solid -c -o /var/tmp/portage/blender-2.36-r1/work/build/linux2/source/gameengine/GamePlayer/ghost/GPG_Application.o source/gameengine/GamePlayer/ghost/GPG_Application.cpp *** glibc detected *** double free or corruption (out): 0x0000000040ffaf50 *** !!! ERROR: media-gfx/blender-2.36-r1 failed. !!! Function src_compile, Line 99, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Portage 2.0.51.21-r1 (default-linux/amd64/2005.0, gcc-3.4.3-20050110, glibc-2.3.5-r0, 2.6.11-gentoo-r8 x86_64) ================================================================= System uname: 2.6.11-gentoo-r8 x86_64 AMD Opteron(tm) Processor 242 Gentoo Base System version 1.6.11 dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.5-r1 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r8 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.11 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=opteron -O3 -mmmx -m3dnow -mfpmath=sse,387 -ffast-math -pipe -funroll-loops -fomit-frame-pointer -fforce-addr -fprefetch-loop-arrays" **** I have also tried with only "-march=opteron -O2" CHOST="x86_64-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="-march=opteron -O3 -mmmx -m3dnow -mfpmath=sse,387 -ffast-math -pipe -funroll-loops -fomit-frame-pointer -fforce-addr -fprefetch-loop-arrays" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 3dnowext 3ds S3TC X aac aalib acpi ada aim alsa amr apache2 apm arts artworkextra async bdf bitmap-fonts blender-game bmp bzip2 cdda cddb cdio cdparanoia cdr cdrom cle266 cpudetection crypt css cups curl curlwrappers custom-cflags dio directfb dpms dv dvd dvdr dvdread dxr3 emul-linux-x86 escreen fam fb fbcon ffmpeg firefox flac flash fluidsynth fmod font-server foomaticdb fortran fping fpx freetype ftp gd gif gimp gimpprint gnome gphoto2 gpm gs gstreamer gtk gtk2 gtkhtml icq ieee1394 imagemagick imlib imlib2 irc jabber java javascript joystick jp2 jpeg kde libcaca lj lm_sensors lzw lzw-tiff mad mng monkey motif mp3 mpeg mpeg4 mplayer msn ncurses net nfs nis nls nntp no-old-linux nptl nvidia offensive ogg openal opengl oscar oss pam pdflib perforce perl plotutils png povray ppds python qt quicktime rar rdesktop readline real reiserfs rrdtool rss samba sdl sftp sftplogging spell ssl stencil-buffer subp subtitles svg tcpd tga theora threads tiff toolbar transcode truetype truetype-fonts type1-fonts underscores usb userlocales v4l v4l2 vcd vorbis xml2 xmms xpm xrandr xv xvid xvmc yahoo zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY Reproducible: Always Steps to Reproduce: 1.emerge -u blender
Same problem here.
try to emerge again scons
I tried emerging SCONS versions 94 through 96.1, with very conservative compile flags, but this did not fix the problem
These lines in the output: *** glibc detected *** double free or corruption (out): 0x00000000407f9f50 *** *** glibc detected *** double free or corruption (out): 0x0000000040ffaf50 *** look like gcc problems since they follow the invocations of gcc and g++ respectively which SCons continues to run. It looks like SCons is doing the right thing. Try invoking the compiler independently of SCons to see if the bug occurs, i.e. do: cd /var/tmp/portage/blender-2.36-r1/work gcc -pipe -funsigned-char -march=opteron -O3 -mmmx -m3dnow -mfpmath=sse,387 -ffast-math -pipe -funroll-loops -fomit-frame-pointer -fforce-addr -fprefetch-loop-arrays -Wall -W -DGAMEBLENDER=1 -DUSE_SUMO_SOLID -DNDEBUG -DBUILD_TIME='"15:56:34"' -DBUILD_DATE='"2005-05-11"' -DBUILD_TYPE='"dynamic"' -DNAN_BUILDINFO -DBUILD_PLATFORM='"linux2"' -I/usr/include -c -o /var/tmp/portage/blender-2.36-r1/work/build/linux2/source/creator/player_buildinfo.o If you get the same error then it's a gcc problem (not surprising if you compiled gcc with the same aggressive flags that you're trying compile Blender with!). If you don't get the error then it might be a SCons or a Python problem.
The following worked fine cd /var/tmp/portage/blender-2.36-r1/work/blender gcc -pipe -funsigned-char -march=opteron -O3 -mmmx -m3dnow -mfpmath=sse,387 -ffast-math -pipe -funroll-loops -fomit-frame-pointer -fforce-addr -fprefetch-loop-arrays -Wall -W -DGAMEBLENDER=1 -DUSE_SUMO_SOLID -DNDEBUG -DBUILD_TIME='"15:56:34"' -DBUILD_DATE='"2005-05-11"' -DBUILD_TYPE='"dynamic"' -DNAN_BUILDINFO -DBUILD_PLATFORM='"linux2"' -I/usr/include -c -o /var/tmp/portage/blender-2.36-r1/work/build/linux2/source/creator/player_buildinfo.o source/creator/buildinfo.c ls -la /var/tmp/portage/blender-2.36-r1/work/build/linux2/source/creator/player_buildinfo.o -rw-r--r-- 1 root root 1464 May 13 11:17 /var/tmp/portage/blender-2.36-r1/work/build/linux2/source/creator/player_buildinfo.o Slightly different from your exact commands, but I think this is what you were aiming for. My entire system, from GGC its self, to wine, kde, gnome, apache, gimp, etc. have been built with these flags. While these flags may be too aggressive for some things, but if GCC was the problem, I think I would have run in to something by now. I will try rebuilding GCC with more conservative flags, but, if I remember correctly, GCC gets built with specific flags anyway.
Hmm, weird. SCons is 100% Python, so it shouldn't be able to cause "double free or corruption"s unless there's a problem with the underlying Python interpreter. Have you seen any Python misbehaviour on your machine?
I don't know. It's a new build. I should install plone and play with that, see if it breaks. I tried rebuilding GCC, python, scons, and then blender, but with no luck. All using very conservative compile options. :-/
Here is a verbatim copy of the scons error: ---8<---8<--- scons: *** [/var/tmp/portage/blender-2.36-r1/work/build/linux2/source/creator/player_buildinfo.o] Error -6 scons: building terminated because of errors. Exception in thread Thread-2 (most likely raised during interpreter shutdown): Traceback (most recent call last): File "/usr/lib/python2.3/threading.py", line 442, in __bootstrap File "/usr/lib/scons/SCons/Job.py", line 156, in run File "/usr/lib/scons/SCons/Taskmaster.py", line 218, in exception_set File "/usr/lib/scons/SCons/Taskmaster.py", line 437, in exception_set exceptions.AttributeError: 'NoneType' object has no attribute 'exc_info' Unhandled exception in thread started by Error in sys.excepthook: Original exception was: ---8<---8<---
I tried reducing the number of threads/jobs use from -j3 to -j1. When I used to make LFS, I would run in to packages that didn't like to build more than one thing at a time, so, I gave it a try. I got the same error, but the output is much cleaner. Might be more helpful. Calculating dependencies ...done! >>> emerge (1 of 1) media-gfx/blender-2.36-r1 to / >>> md5 files ;-) blender-2.35.ebuild >>> md5 files ;-) blender-2.36-r1.ebuild >>> md5 files ;-) blender-2.34.ebuild >>> md5 files ;-) blender-2.36.ebuild >>> md5 files ;-) blender-2.34-r1.ebuild >>> md5 files ;-) files/blender.png >>> md5 files ;-) files/configure-fix.patch >>> md5 files ;-) files/digest-blender-2.34-r1 >>> md5 files ;-) files/digest-blender-2.36-r1 >>> md5 files ;-) files/digest-blender-2.34 >>> md5 files ;-) files/digest-blender-2.35 >>> md5 files ;-) files/digest-blender-2.36 >>> md5 files ;-) files/blender.desktop >>> md5 files ;-) files/blender-2.36-dirs.patch >>> md5 files ;-) files/blender-2.32.patch >>> md5 src_uri ;-) blender-2.36.tar.gz >>> Unpacking source... >>> Unpacking blender-2.36.tar.gz to /var/tmp/portage/blender-2.36-r1/work * Applying blender-2.36-dirs.patch ... [ ok ] >>> Source unpacked. scons: Reading SConscript files ... Creating new config file: config.opts scons: done reading SConscript files. scons: Building targets ... scons: building terminated because of errors. * enabling game engine * enabling internationalization scons: Reading SConscript files ... Using config file: config.opts scons: done reading SConscript files. scons: Building targets ... gcc -pipe -funsigned-char -march=opteron -O3 -mmmx -m3dnow -mfpmath=sse,387 -ffast-math -pipe -funroll-loops -fomit-frame-pointer -fforce-addr -fprefetch-loop-arrays -Wall -W -DGAMEBLENDER=1 -DUSE_SUMO_SOLID -DNDEBUG -DBUILD_TIME='"17:19:26"' -DBUILD_DATE='"2005-05-16"' -DBUILD_TYPE='"dynamic"' -DNAN_BUILDINFO -DBUILD_PLATFORM='"linux2"' -I/usr/include -c -o /var/tmp/portage/blender-2.36-r1/work/build/linux2/source/creator/player_buildinfo.o source/creator/buildinfo.c *** glibc detected *** double free or corruption (out): 0x00007fffffff6f80 *** scons: *** [/var/tmp/portage/blender-2.36-r1/work/build/linux2/source/creator/player_buildinfo.o] Error -6 scons: building terminated because of errors. !!! ERROR: media-gfx/blender-2.36-r1 failed. !!! Function src_compile, Line 99, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message.
OK, I built blender by untaring it and running scons by hand. I don't know how scons works, so I haven't installed blender yet, but I can execute the program by typing /usr/portage/distfiles/blender and it fires right up. Wish I understood this scons stuff. I'd probably be much more helpful.
error in previous post, I start the program using: /usr/portage/distfiles/blender/blender To detail what I did cd /usr/portage/distfiles/ tar -xzvf blender-2.36.tar.gz cd blender scons *eat pizza* /usr/portage/distfiles/blender/blender
I added 'warn=all' to both scons calls in the ebuild and tried to emerge blender using FEATURES=-strict. Both calls to scons generated warnings. BEGIN "1st call" scons: warning: No dependency generated for file: config.h (included from: source/creator/buildinfo.c) -- file not found File "/usr/bin/scons", line 144, in ? scons: warning: No dependency generated for file: winbuildinfo.h (included from: source/creator/buildinfo.c) -- file not found File "/usr/bin/scons", line 144, in ? scons: building terminated because of errors. END "1st call" BEGIN "2nd call" scons: warning: No dependency generated for file: config.h (included from: source/creator/buildinfo.c) -- file not found File "/usr/bin/scons", line 144, in ? scons: warning: No dependency generated for file: winbuildinfo.h (included from: source/creator/buildinfo.c) -- file not found File "/usr/bin/scons", line 144, in ? gcc -pipe -funsigned-char -march=athlon64 -mtune=athlon64 -O2 -pipe -Wall -W -DGAMEBLENDER=1 -DUSE_SUMO_SOLID -DNDEBUG -DBUILD_TIME='"00:39:45"' -DBUILD_DATE='"2005-05-17"' -DBUILD_TYPE='"dynamic"' -DNAN_BUILDINFO -DBUILD_PLATFORM='"linux2"' -I/usr/include -c -o /var/tmp/portage/blender-2.36-r1/work/build/linux2/source/creator/player_buildinfo.o source/creator/buildinfo.c *** glibc detected *** double free or corruption (out): 0x00000000407f9df0 *** scons: warning: No dependency generated for file: config.h (included from: source/gameengine/GamePlayer/ghost/GPG_Application.cpp) -- file not found File "/usr/bin/scons", line 144, in ? scons: warning: No dependency generated for file: windows.h (included from: source/gameengine/GamePlayer/ghost/GPG_Application.cpp) -- file not found File "/usr/bin/scons", line 144, in ? scons: warning: No dependency generated for file: OpenGL/gl.h (included from: source/gameengine/GamePlayer/ghost/GPG_Application.cpp) -- file not found File "/usr/bin/scons", line 144, in ? scons: warning: No dependency generated for file: OpenGL/glu.h (included from: source/gameengine/GamePlayer/ghost/GPG_Application.cpp) -- file not found File "/usr/bin/scons", line 144, in ? scons: warning: No dependency generated for file: GL/gl.h (included from: source/gameengine/GamePlayer/ghost/GPG_Application.cpp) -- file not found File "/usr/bin/scons", line 144, in ? scons: warning: No dependency generated for file: GL/glu.h (included from: source/gameengine/GamePlayer/ghost/GPG_Application.cpp) -- file not found File "/usr/bin/scons", line 144, in ? scons: warning: No dependency generated for file: iostream (included from: source/gameengine/GamePlayer/ghost/GPG_Application.cpp) -- file not found File "/usr/bin/scons", line 144, in ? scons: warning: No dependency generated for file: assert.h (included from: source/gameengine/GamePlayer/ghost/GPG_Application.cpp) -- file not found File "/usr/bin/scons", line 144, in ? scons: warning: No dependency generated for file: vector (included from: intern/string/STR_String.h) -- file not found File "/usr/bin/scons", line 144, in ? scons: warning: No dependency generated for file: limits.h (included from: intern/string/STR_String.h) -- file not found File "/usr/bin/scons", line 144, in ? scons: warning: No dependency generated for file: vector (included from: source/gameengine/GameLogic/SCA_IActuator.h) -- file not found File "/usr/bin/scons", line 144, in ? scons: warning: No dependency generated for file: windows.h (included from: source/gameengine/GamePlayer/common/GPC_RenderTools.h) -- file not found File "/usr/bin/scons", line 144, in ? scons: warning: No dependency generated for file: GL/gl.h (included from: source/gameengine/GamePlayer/common/GPC_RenderTools.h) -- file not found File "/usr/bin/scons", line 144, in ? scons: warning: No dependency generated for file: AGL/gl.h (included from: source/gameengine/GamePlayer/common/GPC_RenderTools.h) -- file not found File "/usr/bin/scons", line 144, in ? scons: warning: No dependency generated for file: GL/gl.h (included from: source/gameengine/GamePlayer/common/GPC_RenderTools.h) -- file not found File "/usr/bin/scons", line 144, in ? scons: warning: No dependency generated for file: wtypes.h (included from: source/gameengine/GamePlayer/ghost/GPG_Application.h) -- file not found File "/usr/bin/scons", line 144, in ? scons: warning: No dependency generated for file: vector (included from: source/gameengine/Ketsji/KX_KetsjiEngine.h) -- file not found File "/usr/bin/scons", line 144, in ? ...and a whole bunch more END "2nd call" Notice that it says "scons: building terminated because of errors." after the first call to scons. Can a scons-expert maybe look into this? Between, I tried unsuccesfully to build blender-{2.34,2.34-r1,2.36,2.36-r1}. They all fail with a glibc corruption message. Something is definitively broken here.
Unable to reproduce those errors here - have been using blender for quite some time. I would like to stabilise blender-2.36-r1 on amd64 and want to confirm that this bug is just due to a single broken system. Those CFLAGS are very aggressive, and I guess would be the cause of this issue, possibly try rebuilding python and scons with '-march=opteron -O2 -pipe'.
I have the same problem with 2.37 emerge, I didn't have any problems emerging 2.3.6 and 2.3.6-r1 (and I never changed my $CFLAGS,...): gcc -pthread -o /var/tmp/portage/blender-2.37/work/build/linux2/makesdna /var/tmp/portage/blender-2.37/work/build/linux2/source/blender/makesdna/intern/makesdna.o -L/var/tmp/portage/blender-2.37/work/build/linux2/lib -Llib -lblender_guardedalloc ../build/linux2/makesdna /var/tmp/portage/blender-2.37/work/build/linux2/source/blender/makesdna/intern/dna.c *** glibc detected *** double free or corruption (out): 0x00007fffffff7030 *** scons: *** [/var/tmp/portage/blender-2.37/work/build/linux2/source/blender/makesdna/intern/dna.c] Error -6 scons: building terminated because of errors. Something to note, I was on glibc-2.3.4.20050125-r1 when I compiled successfully 2.3.6[-r1]. Now I'm on glibc-2.3.5 My emerge info: Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 2.6.11-gentoo-r9 x86_64) ================================================================= System uname: 2.6.11-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3700+ Gentoo Base System version 1.6.12 ccache version 2.4 [disabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.8 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.16-r1 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.11-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer" CHOST="x86_64-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/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LANG="fr_FR@euro" LC_ALL="fr_FR" LINGUAS="fr fr_FR" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="amd64 X aalib acpi aim alsa apache2 avi bash-completion berkdb bitmap-fonts bonobo bzlib cdb cdr crypt cups curl curlwrappers dga dio dvb dvd dvdr dvdread eds encode exif fam fastcgi ffmpeg fftw flac font-server foomaticdb fortran ftp gb gcj gd gdbm gif glut gnome gnustep gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile iconv imagemagick imap imlib ipv6 jabber java joystick jp2 jpeg junit kde libcaca libwww live lzw lzw-tiff mad matroska mbox mikmod mime mng motif mozilla mp3 mpeg msn nas ncurses nls nptl nptlonly nvidia objc offensive ogg oggvorbis openal opengl oscar oss pam pcmcia pcre pda pdflib perl php pic png posix ppds python qt quicktime readline real recode samba scanner sdl shared sharedmem simplexml slang snmp sockets socks5 speex spell ssl svg tcltk tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts unicode usb userlocales v4l vcd vorbis wifi wxwindows xface xine xinerama xml xml2 xmlrpc xmms xosd xpm xrandr xv xvid yahoo zlib linguas_fr linguas_fr_FR userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS
emerge again python scons and gcc
Now I check on 2.37 I am getting that exact error too, gcc -pthread -o /mnt/gentoo/var/tmp/portage/portage/blender-2.37/work/build/linux2/makesdna /mnt/gentoo/var/tmp/portage/portage/blender-2.37/work/build/linux2/source/blender/makesdna/intern/makesdna.o -L/mnt/gentoo/var/tmp/portage/portage/blender-2.37/work/build/linux2/lib -Llib -lblender_guardedalloc ../build/linux2/makesdna /mnt/gentoo/var/tmp/portage/portage/blender-2.37/work/build/linux2/source/blender/makesdna/intern/dna.c *** glibc detected *** double free or corruption (out): 0x0000000040ffb3a0 *** scons: *** [/mnt/gentoo/var/tmp/portage/portage/blender-2.37/work/build/linux2/source/blender/makesdna/intern/dna.c] Error -6 scons: building terminated because of errors. Also using glibc-2.3.5. CCing amd64 herd on this - can arch testers please test and comment? Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 2.6.11-gentoo-r9 x86_64) ================================================================= System uname: 2.6.11-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.12 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.8 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r2, 2.16-r1 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-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.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/texmf/web2c /etc/env.d" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache collision-protect cvs digest distlocks mutlilib-strict sandbox sfperms sign strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LINGUAS="en_GB" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/mnt/gentoo/var/tmp/portage" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X aalib acpi aim alsa apache2 arts audiofile avi bash-completion berkdb bitmap-fonts blas bootsplash bzlib cdparanoia cdr crypt cscope cups curl dbus directfb doc dvd dvdr dvdread encode esd ethereal evo fam fbcon fftw flac flash font-server foomaticdb fortran gb gd gdbm ggi gif gimpprint ginac gmp gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal icq imagemagick imap imlib innodb ipv6 jabber java jikes joystick jp2 jpeg jpeg2k junit kde kdeenablefinal kerberos lcms ldap libg++ libwww lm_sensors lzw lzw-tiff mad mcal motif mp3 mpeg mpi msn mysql ncurses netcdf nls nptl nvidia octave odbc offensive ogg oggvorbis openexr opengl oscar oss pam pcre pdflib perl plotutils png postgres povray ppds python qt quicktime readline rtc ruby samba sasl scanner sdl snmp spell sqlite ssl svg tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb vhosts videos vorbis wmf wxwindows xine xinerama xml2 xmms xpm xrandr xscreensaver xv xvid yahoo zeroconf zlib linguas_en_GB userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
I got a backtrace from the python crash, and it's a problem in sandbox, apparently. (gdb) bt #0 0x00002aaaab7c1b69 in raise () from /lib/tls/libc.so.6 #1 0x00002aaaab7c300e in abort () from /lib/tls/libc.so.6 #2 0x00002aaaab7f5c90 in __fsetlocking () from /lib/tls/libc.so.6 #3 0x00002aaaab7fae90 in malloc_usable_size () from /lib/tls/libc.so.6 #4 0x00002aaaab7fb996 in free () from /lib/tls/libc.so.6 #5 0x00002aaaaabc633a in execve () from /usr/lib/libsandbox.so #6 0x00002aaaaad77129 in PyOS_AfterFork () from /usr/lib/libpython2.3.so.1.0 My stable chroot with the old portage-including-sandbox (2.0.51.19) builds fine. Here's my emerge info on the failing box: Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.3-20050110, glibc-2.3.5-r0, 2.6.11-gentoo-r8 x86_64) ================================================================= System uname: 2.6.11-gentoo-r8 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.12 dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.8 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.16-r1 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.11-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=athlon64 -pipe -g -Wstrict-aliasing -Wreturn-type -Wimplicit -Wformat -Werror" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon64 -pipe -g -Wstrict-aliasing -Wreturn-type -Wimplicit -Wformat -Werror" DISTDIR="/storage/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/home/portage" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/home/portage/overlays/ebuilds" SYNC="rsync://rsync.fprintf.net/gentoo-portage" USE="amd64 X aac acpi alsa apache2 avi berkdb bitmap-fonts cdr crypt cscope cups curl dga dvd dvdr eds encode esd ethereal fam flac font-server foomaticdb gd gdbm gif gnome gnutls gpm gstreamer gtk gtk2 guile hal imagemagick imap imlib ipv6 jabber jp2 jpeg ldap libclamav libg++ libwww lzo lzw lzw-tiff mad maildir matroska mikmod mime mmap mng motif mozilla mp3 mpeg mpi mysql ncurses nls nptl nptlonly odbc offensive ogg oggvorbis opengl oscar oss pam pdflib perl php png python quicktime readline real rtc samba sasl sdl sharedmem slang soap speex spell ssl svg tcltk tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales vorbis wmf xface xine xinerama xml2 xpm xrandr xsl xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Created attachment 60476 [details, diff] Don't free a variable allocated on the stac k The problem with sandbox was that it was freeing a character array allocated on the stack. This patch fixes that.
Just to confirm I have been working with dang on this, and indeed my test systems compile fine with a FEATURES=-sandbox. They are all using the latest ~amd64 split sandbox.
duping to a less cluttered bug ... *** This bug has been marked as a duplicate of 94020 ***