Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 135101
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Games <games@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Mark Riedesel <mriedesel@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 135101 depends on: Show dependency tree
Bug 135101 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-05-31 20:53 0000
Blender causes a segfault at startup. I tested 3 versions of Blender and
experienced a segfault shortly after it prints the Python version string.
Versions tested were an old one I had laying around (2.36), current version
from portage (2.41), as well as a fresh CVS checkout.

I finally narrowed it down to SDL 1.2.10, reverting to version 1.2.9
immediately  made the segfault go away and now everything works perfectly.

The same segfault problem was encountered on two systems, the segfault problem
was resolved by reverting to SDL 1.2.9 in both cases. Both systems were using
ATI Radeon 9800 graphics cards, using the closed-source ati-drivers installed
from portage, it wouldn't surprise me if that had something to do with the
problem.

Portage 2.1_rc3-r3 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r3,
2.6.16-gentoo-r1 i686)
=================================================================
System uname: 2.6.16-gentoo-r1 i686 AMD Athlon(tm) XP 3000+
Gentoo Base System version 1.12.0
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[enabled]
dev-lang/python:     2.3.4-r1, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
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-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distcc distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/xgl-coffee"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X alsa apache2 apm arts avi berkdb bitmap-fonts cairo
cg cli crypt cups devil distcc dri dvd dvdr dvdread eds emboss encode esd
ffmpeg foomaticdb fortran gdbm gif glitz gnome gphoto2 gpm gstreamer gtk gtk2
imlib ipv6 isdnlog jpeg libg++ libwww mad mikmod mmx mmxext motif mozdevelop
mp3 mpeg ncurses nls nptl nptlonly objc ogg openal opengl oss pam pcre pdflib
perl png pppd python quicktime readline reflection sdl session spell spl sse
ssl tcpd tetex theora truetype truetype-fonts type1-fonts udev vorbis
win32codecs xine xml xmms xorg xv xvid zlib elibc_glibc input_devices_wacom
input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux
userland_GNU video_cards_vesa video_cards_fbdev video_cards_ati
video_cards_fglrx"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #1 From Mark Riedesel 2006-05-31 20:55:03 0000 -------
additional `emerge --info` of other problematic box.

Gentoo Base System version 1.12.0
Portage 2.1_rc3-r2 (default-linux/amd64/2006.0, gcc-3.4.4, glibc-2.3.5-r2,
2.6.16-rt25 x86_64)
=================================================================
System uname: 2.6.16-rt25 x86_64 AMD Athlon(tm) 64 Processor 3200+
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
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-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ABI="amd64"
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE=""
ALSA_CARDS="emu10k1"
ARCH="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CDEFINE_amd64="__x86_64__"
CDEFINE_x86="__i386__"
CFLAGS="-march=k8 -O2 -pipe"
CFLAGS_x86="-m32 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
CONFIG_PROTECT="/etc /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CVS_RSH="ssh"
CXXFLAGS="-march=k8 -O2 -pipe"
DEFAULT_ABI="amd64"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--verbose"
EMERGE_WARNING_DELAY="10"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -P ${DISTDIR} ${URI}"
GCC_SPECS=""
GDK_USE_XFT="1"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
G_BROKEN_FILENAMES="1"
G_FILENAME_ENCODING="UTF-8"
HOME="/home/ralith"
INFOPATH="/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.16.1/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4/info"
INPUT_DEVICES="keyboard mouse"
KERNEL="linux"
LADSPA_PATH="/usr/lib64/ladspa"
LDFLAGS_x86="-m elf_i386 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIBDIR_amd64="lib64"
LIBDIR_x86="lib32"
LIBGL_DRIVERS_PATH="/usr/lib32/xorg/modules/dri/:/usr/lib64/xorg/modules/dri"
LOGNAME="ralith"
MAIL="/var/mail/ralith"
MAKEOPTS="-j2"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.16.1/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4/man:/usr/qt/3/doc/man"
MOZILLA_FIVE_HOME="/usr/lib64/mozilla"
MULTILIB_ABIS="x86 amd64"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib /usr/lib /usr/kde/*/lib /usr/qt/*/lib
/usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|eclipse-3|debug|portage)"
OPENGL_PROFILE="ati"
PAGER="/usr/bin/less"
PATH="/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.4:/opt/ati/bin:/usr/qt/3/bin"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc s390 amd64 ppc64 x86-fbsd m68k arm sparc sh mips ia64
alpha ppc-macos hppa x86"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib/portage/bin"
PORTAGE_CALLER="emerge"
PORTAGE_CONFIGROOT="/"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_MAILFROM="portage"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_PYM_PATH="/usr/lib/portage/pym"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/pro-audio
/usr/portage/local/layman/portage-xgl"
PRELINK_PATH=""
PRELINK_PATH_MASK="/usr/lib/gstreamer-0.10"
PWD="/home/ralith"
PYTHONPATH="/usr/lib/portage/pym"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -P ${DISTDIR} ${URI}"
ROOT="/"
RPMDIR="/usr/portage/rpm"
SHELL="/bin/bash"
SHLVL="1"
SSH_CLIENT="192.168.0.5 3476 22"
SSH_CONNECTION="192.168.0.5 3476 192.168.0.42 22"
SSH_TTY="/dev/pts/1"
SYMLINK_LIB="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
TERM="Eterm"
USE="amd64 X a52 aac acpi alsa apm avi berkdb bitmap-fonts bzip2 cdr clamav cli
crypt cups curl curlwrappers dbus dri dvd dvdr eds emboss encode ethereal
ffmpeg foomaticdb fortran gcj gif gnome gpm gstreamer gtk gtk2 imagemagick
imlib ipv6 isdnlog jack jikes jpeg lirc lzw lzw-tiff mp3 mpeg ncurses nls nocd
nptl ogg opengl pam pcre pdflib perl png pppd python quicktime readline
reflection sdl session spell spl ssl svg tcpd tiff truetype-fonts type1-fonts
usb v4l vorbis xmms xorg xosd xpm xv zlib elibc_glibc input_devices_keyboard
input_devices_mouse kernel_linux userland_GNU video_cards_radeon
video_cards_fglrx video_cards_vesa"
USER="ralith"
USERLAND="GNU"
USE_EXPAND="DVB_CARDS ELIBC FCDSL_CARDS FRITZCAPI_CARDS INPUT_DEVICES KERNEL
LINGUAS USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults"
VIDEO_CARDS="radeon fglrx vesa"
XARGS="xargs -r"
_="/usr/bin/emerge"

------- Comment #2 From SpanKY 2006-06-04 08:21:39 0000 -------
*** Bug 135163 has been marked as a duplicate of this bug. ***

------- Comment #3 From Martin Capitanio 2006-06-04 18:44:12 0000 -------
Same segfault here (nvidia driver), evoked at:
intern/ghost/intern/GHOST_SystemX11.cpp:107 --> m_display = XOpenDisplay(NULL);

After reemerge all dependecies

media-libs/freetype-2.1.10
media-libs/libpng-1.2.8-r1
media-libs/jpeg-6b-r7
media-libs/openal-20050504-r2
media-libs/libsdl-1.2.10 !!!

blender works again :-)

------- Comment #4 From Martin Capitanio 2006-06-04 19:02:12 0000 -------
(In reply to comment #3)
> Same segfault here (nvidia driver), evoked at:
> intern/ghost/intern/GHOST_SystemX11.cpp:107 --> m_display = XOpenDisplay(NULL);
> 
> After reemerge all dependecies
> 
> media-libs/freetype-2.1.10
> media-libs/libpng-1.2.8-r1
> media-libs/jpeg-6b-r7
> media-libs/openal-20050504-r2
> media-libs/libsdl-1.2.10 !!!
+ media-libs/ftgl-2.1.2-r1

------- Comment #5 From SpanKY 2006-06-08 02:39:42 0000 -------
looks like http://bugzilla.libsdl.org/show_bug.cgi?id=242

------- Comment #6 From Martin Sandsmark 2006-06-08 07:50:54 0000 -------
Simply re-emerging all the depencies doesn't work here (at least not only those
previously mentioned).
With ati-drivers and amd64.

Emerge info:
Portage 2.1_rc4-r4 (default-linux/amd64/2006.0, gcc-3.4.6/amd64-vanilla,
glibc-2.4-r3, 2.6.16-beyond4-tripleseven x86_64)
=================================================================
System uname: 2.6.16-beyond4-tripleseven x86_64 AMD Athlon(tm) 64 Processor
3000+
Gentoo Base System version 1.12.1
ccache version 2.4 [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r1
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
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-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64 -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild
/etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -pipe -march=athlon64 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache confcache distlocks metadata-transfer
parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.linux.ee/pub/gentoo/distfiles/
http://ds.thn.htu.se/linux/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirror.gentoo.no/"
LINGUAS="nb"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/mine"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac alsa apache2 arts asf avi bash-completition berkdb
bitmap-fonts bzip2 cdparanoia cdr clamav cli crypt cups dri dv dvd dvdr eds
emboss emul-linux-x86 encode exif ffmpeg foomaticdb fortran ftp gd gif glut
gphoto2 gpm gtk2 hal ieee1394 imlib isdnlog jpeg jpeg2k kde libcaca libvisual
lirc lzw lzw-tiff mad matroska mmap mng mp3 mpeg msn ncurses nls nptl nptlonly
offensive ogg oggvorbis openal opengl pam pcre pda pdf pdflib perl png posix
pppd python qt quicktime readline reflection samba sdl session speex spell spl
ssl tcpd theora tiff truetype-fonts type1-fonts usb v4l vcd videos vorbis xine
xorg xpm xv xvid xvmc zlib elibc_glibc input_devices_keyboard
input_devices_mouse input_devices_evdev kernel_linux linguas_nb
lirc_devices_atiusb userland_GNU video_cards_ati video_cards_fglrx"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #7 From charly 2006-06-08 08:46:06 0000 -------
As mentionned on bugs marqued dupliquate of this one, this version of sdl
produce segfault with other apps than blender (like links on my system).
reverting to 1.2.9 fixes. Emerging all depedencies (emerge -e blender) didnt
work here.

Regards

Charly

------- Comment #8 From Kai Blaschke 2006-06-12 08:28:12 0000 -------
Other affected apps which are affected by this bug:

- BitTornado (GUI version only, should be the same issue with python as the
Blender problem)
- VLC
- GNU gnash

It seems almost every dynamically linked SDL app segfaults when using
libsdl-1.2.10.

------- Comment #9 From Andreas Arens 2006-06-13 12:54:23 0000 -------
Please add "e-uae" and "avidemux" to the list of affected apps.

I think bug 136291 and 136353 are dupes of this.

USE=-sdl emerge ... made both avidemux2 and e-uae work again for me. e-uae gets
past the first segfault (it fails later, but that may due to the fact that I
don't have any data to use it with).

------- Comment #10 From Florian Dufour 2006-06-14 00:51:04 0000 -------
Please add "ekiga" and "audacity", also affected by the segfault. When I
downgrade libsdl (1.2.9-r1 instead of 1.2.10), the segfault disappears.

------- Comment #11 From MAL 2006-06-14 03:36:08 0000 -------
Also amule, see bug 135250

------- Comment #12 From Luca Barbato 2006-06-14 04:01:08 0000 -------
revdep-rebuild should fix the issue.

------- Comment #13 From MAL 2006-06-14 04:12:39 0000 -------
(In reply to comment #12)
> revdep-rebuild should fix the issue.

Please read the bug - this is a fault caused by libsdl-1.2.10, not by apps
being linked to the wrong version.  Rebuilding all the deps makes no
difference.

------- Comment #14 From SpanKY 2006-06-14 22:02:37 0000 -------
*** Bug 135250 has been marked as a duplicate of this bug. ***

------- Comment #15 From SpanKY 2006-06-15 19:50:31 0000 -------
*** Bug 136509 has been marked as a duplicate of this bug. ***

------- Comment #16 From Mr. Bones. 2006-06-20 08:32:09 0000 -------
*** Bug 137368 has been marked as a duplicate of this bug. ***

------- Comment #17 From Jakub Moc (RETIRED) 2006-06-20 11:08:09 0000 -------
*** Bug 137397 has been marked as a duplicate of this bug. ***

------- Comment #18 From Martin Capitanio 2006-06-20 14:46:50 0000 -------
see http://bugzilla.libsdl.org/show_bug.cgi?id=242

"ugh, the OpenGL library is resolving the X11 symbols from the SDL library,
instead of from the X11 library.  When SDL unloads the X11 library, those
symbols are no longer available."

That seem to be also the bug here - previously I saw in the debuger 
that sdl was somehow hijacking the symbol for the XOpenDisplay(NULL)
blender's call to libX11.so and instead going thru null pointer
witch certainly segfaults.

How ever, now the bug mysteriously disappeared and I _have_
(see Comment #3) latest nvidia's opengl and for the unbelievers: ;-)

equery b /usr/lib/libSDL-1.2.so.0.7.3
[ Searching for file(s) /usr/lib/libSDL-1.2.so.0.7.3 in *... ]
media-libs/libsdl-1.2.10 (/usr/lib/libSDL-1.2.so.0.7.3)

and realy, audacity or blender runs without any problems ...

------- Comment #19 From Mike Vanecek 2006-06-24 19:52:36 0000 -------
I reverted back to 1.2.9-r1 and Blender is happy again. From what I understand
from the SDL bug report, they're tweaking things to get it to work, so
hopefully 1.2.10-r1 will have a solution integrated in... 
gcc 3.4, i915 driver on modular X with a fresh install of Gentoo.

------- Comment #20 From SpanKY 2006-06-27 00:03:55 0000 -------
1.2.11 now in portage

------- Comment #21 From Diego E. 'Flameeyes' Pettenò 2006-07-28 00:09:00 0000 -------
*** Bug 136291 has been marked as a duplicate of this bug. ***

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug