Hi, with 3ddesktop-0.2.9, xorg-server-1.0.1-r4, mesa-6.4.2-r1, if I run "3ddeskd -v" it segfaults with this messages: Verbose is ON load_conf: opened /etc/3ddesktop.conf Found view: goright Found view: goleft Found view: slide Found view: nozoom Found view: linear Found view: linearzip Found view: bigmoney vdesktops: making best guess... c=0, r=0, nc=4, nr=1 Segmentation fault I've recompiled 3ddesktop with debug information and this is the stack I've obtained: #0 0x00002aaaab70d9bf in glClearColor () from //usr/lib64/opengl/xorg-x11/lib/libGL.so.1 #1 0x00000000004089bb in gl_init () at 3ddeskd.cpp:2122 #2 0x00000000004094b8 in initialize_3ddesktop () at 3ddeskd.cpp:2415 #3 0x0000000000409b84 in main (argc=3, argv=0x7ffffff48e58) at 3ddeskd.cpp:2518 I'm using the radeon opensource driver with xorg-x11 opengl drivers in software rendering mode (since my card, a Radeon Xpress 200m, isn't supported yet). This is my emerge --info: Portage 2.1_pre4-r1 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.15-archck4 x86_64) ================================================================= System uname: 2.6.15-archck4 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.12.0_pre16 ccache version 2.4 [disabled] dev-lang/python: 2.4.2-r1 sys-apps/sandbox: 1.2.17 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-r1 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=athlon64 -pipe" 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.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind /var/qmail/control /var/service" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -march=athlon64 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy distlocks parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.unina.it/pub/linux/distributions/gentoo ftp://ftp.unina.it/pub/linux/distributions/gentoo http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ http://ibiblio.org/pub/Linux/MIRRORS.html " LANG="it_IT@euro" LC_ALL="it_IT" LINGUAS="it" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="amd64 3dnow 3dnowext X a52 aac aalib acl acpi alsa apache2 arts audiofile avi bash-completion bcmath berkdb bitmap-fonts bluetooth bonobo browserplugin bzip2 bzlib caps cdparanoia cdr cpudetection crypt css ctype cups curl dbm dbus dbx dga divx4linux dri dts dv dvb dvd dvdr dvdread eds emboss emul-linux-x86 encode exif expat fame fbcon ffmpeg fftw flac flash foomaticdb fortran freetype ftp gb gd gdbm gif gimpprint glut gmp gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal howl iconv idn ieee1394 imagemagick imap imlib innodb ipv6 jack jasper java javascript jpeg jpeg2k kde kdeenablefinal kernel_linux lcms ldap lesstif libcaca libedit libgda libwww live lm_sensors logitech logitech-mouse lzo lzw lzw-tiff mad mailwrapper matroska mbox mhash mikmod mime mmap mmx mmxext mng mozilla mp3 mpeg mplayer msn musepack musicbrainz mysql mysqli ncurses nls nptl nsplugin ogg oggvorbis openal opengl oss pcmcia pcre pdf pdflib perl php plotutils plugin png posix postgres ppds python qt quicktime readline real rtc samba sasl scanner sdl session sharedext sharedmem simplexml slang sndfile snmp soap sockets sox spell spl sqlite sse sse2 ssl sumlink svg sysvipc szip tcltk tcpd tetex theora threads tidy tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb userlocales v4l v4l2 vcd videos visualization vorbis wifi win32codecs wmf wxwindows xanim xcomposite xface xine xinerama xml xml2 xmlrpc xosd xpm xscreensaver xsl xv xvid xvmc zeroconf zlib elibc_glibc linguas_it userland_GNU video_cards_ati" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LDFLAGS, MAKEOPTS Only today I managed to get software rendering working with the last releases of xorg-server and mesa. I'm certaing the problem concern these pieces of code.
3ddeskd.cpp:2122 is: glClearColor(0.0f, 0.0f, 0.0f, 0.0f); And the segfault occurs inside glClearColor() call. It's not 3ddesktop issue. Do other GL apps work ok?
Works for me, please reopen if you have more details.
Well I now think this bug concerns my 3d system configuration. So I'll keep it resolved :-)
Created attachment 207811 [details, diff] OpenGL calls moved after OpenGL initialization. It seems, that the OpenGL functions are called before the OpenGL is properly initialized that may result in SIGSEGV on some architectures/video drivers (e.g. with intel_video).
You should have opened a new bug, instead of commenting on 3 years old one... But since I've noticed this by accident -> Reopening
+*3ddesktop-0.2.9-r1 (06 Jun 2010) + + 06 Jun 2010; Samuli Suominen <ssuominen@gentoo.org> + +3ddesktop-0.2.9-r1.ebuild, +files/3ddesktop-0.2.9-gl_init.patch: + Move OpenGL calls after OpenGL initialization wrt #123762 by Yarda.