I just installed planeshift, updated config files, and attempted to run the updater, as instructed and it crashed. The regular game crashes too, both with a message: Could not open driver database file '/config/gldrivers.xml' /usr/games/bin/planeshift: line 5: 8687 Segmentation fault (core dumped) ./psclient $@ Reproducible: Always Steps to Reproduce: Portage 2.0.51.22-r1 (default-linux/x86/2004.2/gcc34, gcc-3.4.3-20050110, glibc-2.3.5-r0, 2.6.11-ck8 i686) ================================================================= System uname: 2.6.11-ck8 i686 AMD Athlon(tm) XP 3200+ Gentoo Base System version 1.6.12 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [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 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.11 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -falign-functions=64" CHOST="i686-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/env.d /etc/gconf /etc/init.d /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -falign-functions=64" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy digest distlocks sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo" LANG="en_US.utf8" LC_ALL="en_US.utf8" MAKEOPTS="-j2" PKGDIR="/var/pub/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowex S3TC X aac aim alsa avi cddb cdr cjk crypt css cups curl divx4linux dnd dvd dvdread edl eds encode evo evo2 fam flac font-server foomaticdb freetype gd gif gimpprint gnome gnutls gstreamer gtk gtk2 hal imagemagick ithreads jabber javascript jpeg libwww mad md5sum mmx mmx2 mozilla moznocompose moznoirc moznomail mp3 mpeg mpeg4 mpi mplayer msn ncurses network nls no_wxgtk1 nocardbus nocd nodod nowin nptl nptlonly nvidia offensive ogg oggvorbis openal opengl oscar pdflib pic pie png ppds print quicktime readline real rhythmbox rtc sdl session silc slp spamassassin spell src sse ssl stencil-buffer stroke svg svga symlink tcpd theora threads truetype truetype-fonts unicode usb userlocales videos vim vorbis win32codecs xscreensaver xvid yahoo userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, LINGUAS
I saw the same ... it happens that the file is not present in /opt/planeshift/data. I did "touch config/gldrivers.xml" and it finds the file (so paths are correct). But since the file has no content it still segaults. I searched in cvs if the file is present ... it isn't, not even in Attic. I'm using a ATi Radeon 9700 Pro with DRI drivers (don't know if that matters, but I saw things run on nvidia that didn't run on ATi).
i can run game with CRYSTAL=/opt/crystal/bin/ or CRYSTAL=. from planeshift folder, not CRYSTAL=/opt/crystal/ as default after crystalspace installation. But pssetup segfaults all the time...
i said about segfault of /opt/planeshift/pssetup to make it work You must change /opt/planeshift/pssetup.cfg line: System.PlugIns.iImageIO = crystalspace.graphic.image.io.multiplex to line: System.PlugIns.iImageIO = crystalspace.graphic.image.io.multiplexer and it works... note about CRYSTAL variable is same for setup... Can sb. change ebuild, or package contents to add definition of CRYSTAL variable(with config error maybe same solution) to starter script in /usr/games/bin/planeshift* ? and thanks for this ebuild!
I'm getting nearly the same output as in the original report (line 8 instead of line 5). /opt/planeshift/pssetup.cfg already uses crystalspace.graphic.image.io.multiplexer and changing it back to crystalspace.graphic.image.io.multiplex makes no difference. CRYSTAL=/opt/crystal/bin hasn't helped, either.
Comment about pssetup.cfg is from planeshift forums (it was bug in game makers package). I've found it there. There is also problem with some texture that will crash game randomly, it should be deleted (more info on planeshift forums, Platyna posts in linux client problems section). For me Your problem with line 8, not 5 can be completely different from this one in bug raport. But i'am not expert in crystalspace problems.
I found out that it is an ATi specific problem. I ran it in gdb and it segfaulted. The backtrace showed me "0xb74ebe74 in _mesa_test_os_sse_exception_support () from /usr/lib/modules/dri/r200_dri.so", which is quite obvious a bug in DRI's r200 support (with xorg-x11-6.8.99.14). Can someone confirm this? Or get it running with fglrx instead of DRI? (I'd have to downgrade my xorg-x11 to use fglrx, which I dislike)
i run fglrx driver and have this segfault... for me it's crystal problem.
I run nvidia, and I also have the problem, so I don't think it'd be ATi. Or at least, *my* problem isn't ATi.
I'm getting same error on radeon driver (xorg) also line 8, sigsegv and this error shows up when choosing character for new player running psclient on gdb ends prematurely with SIGFPE from radeon_dri.so, Arithmetic exception, but I think it's not related to the first one
I attached gdb to running psclient and got some more info about my segfault: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1211459392 (LWP 9269)] 0xad9a5336 in CalBoundingBox::computePoints () from /usr/lib/libcal3d.so.11 finally I repaired this by reemerging cal3d: # CFLAGS="-march=i686" CXXFLAGS="-march=i686" emerge cal3d -march=p4 seams to break things, I've had same error with one of dependency ebuilds for dosbox maybe that line 4 segfault is something simillar, anyone with this problem - please start psclient (remember to set planeshift flags) and than run gdb and try attach <psclient-pid>, then continue, after that backtrace
I tried all from above: CRYSTAL=/opt/crystal/bin/ System.PlugIns.iImageIO = crystalspace.graphic.image.io.multiplexer (unchanged) CFLAGS="-march=i386" CXXFLAGS=${CFLAGS} emerge --oneshot cal3d crystalspace planeshift openal jam cel I get this error now: $planeshift-updater Opening GLX2D Creating Context Video driver GL/X version (indirect renderer) Indirect rendering may indicate a flawed OpenGL setup if you run on a local X server. Visual ID: 0x00000022, 24bit TrueColor R8:G8:B8:A0, level 0, double buffered WARNING: Could not open driver database file '/config/gldrivers.xml' NOTIFY: OpenGL renderer: Mesa GLX Indirect (vendor: Mesa project: www.mesa3d.org) version 1.2 (1.5 Mesa 6.2.1) NOTIFY: Using windowed mode at resolution 640x480. NOTIFY: Pixel format: Color: 24 Alpha: 0 Depth: 16 Stencil: 0 AccumColor: 24 AccumAlpha: 0 MultiSamples: 0 WARNING: Shader std_lighting.xml not available Failure imminent! /usr/games/bin/planeshift-updater: line 8: 9247 Segmentation fault ./updater $@ As you can see I am using no OpenGL card at all. (Intel onBoard with 8 MB of shared memory) I'm using Mesa that is included in xorg for software rendering. I've tried using the binaries from www.planeshift.it - they are working fine. I will try USE="debug" emerge planeshift and look for more information
Regards to Comment #11 : You might also nead to use FEATURES="-strip" (or maybe it was "nostript", i forget), so that portage does not strip debugging symbols from the binary.
ok. Now, I am stupid. #) At the end of 'emerge planshift' it says: "Run planeshift-updater -auto" Well, I did not use the -auto switch, but this is needed. So I recompiled it without any debug options and with full optimizations and ran planeshift-updater -auto. Now it works fine.
I found it in /opt and it is all in the games group.
sorry for that last comment, it was supposed to go in the other planeshift bug. ;-)
Planeshift source builds have been masked and are pending removal from portage tree.