OpenArena Message Boards

OpenArena => General => Topic started by: Tido on August 14, 2007, 08:05:26 PM



Title: Segmentation Faults on x86_64 Linux
Post by: Tido on August 14, 2007, 08:05:26 PM
First off, thanks for making a cool *open* game!  I'd enjoy it more except the game will crash after playing for a few minutes and the only error (when run from console) given is "Segementation Fault".  The crashes happen completely at random and I can't find anything in particular that triggers them.  I'm using OA 0.71.  My OS is Arch Linux x64 (kernel 2.6.22).  My DE is KDE 3.5.7.

Any ideas? It's so frustrating!


Title: Re: Segmentation Faults on x86_64 Linux
Post by: dmn_clown on August 14, 2007, 08:42:29 PM
try recompiling the binary


Title: Re: Segmentation Faults on x86_64 Linux
Post by: Tido on August 15, 2007, 12:44:44 AM
Are there any instructions for compiling?


Title: Re: Segmentation Faults on x86_64 Linux
Post by: dmn_clown on August 15, 2007, 01:26:21 AM
download the source, make sure you have the dependencies:
Code:
ldd ioquake3.x86_64
        libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0x00002b3955612000)
        libvorbisfile.so.3 => /usr/lib/libvorbisfile.so.3 (0x00002b39557c7000)
        libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x00002b39558cf000)
        libogg.so.0 => /usr/lib/libogg.so.0 (0x00002b39559fa000)
        libdl.so.2 => /lib/libdl.so.2 (0x00002b3955aff000)
        libm.so.6 => /lib/libm.so.6 (0x00002b3955c03000)
        libc.so.6 => /lib/libc.so.6 (0x00002b3955d85000)
        libasound.so.2 => /usr/lib/libasound.so.2 (0x00002b3955fc2000)
        libdirectfb-0.9.so.25 => /usr/lib/libdirectfb-0.9.so.25 (0x00002b395619c000)
        libfusion-0.9.so.25 => /usr/lib/libfusion-0.9.so.25 (0x00002b39562fa000)
        libdirect-0.9.so.25 => /usr/lib/libdirect-0.9.so.25 (0x00002b3956400000)
        libvga.so.1 => /usr/lib/libvga.so.1 (0x00002b3956511000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00002b3956678000)
        /lib64/ld-linux-x86-64.so.2 (0x00002b39554fa000)

then issue a make command.


Title: Re: Segmentation Faults on x86_64 Linux
Post by: Tido on August 15, 2007, 03:07:34 AM
Code:
In file included from code/cgame/cg_consolecmds.c:27:
code/cgame/../ui/ui_shared.h:30:30: error: ../../ui/menudef.h: No such file or directory
make[1]: *** [build/release-linux-x86_64/baseq3/cgame/cg_consolecmds.o] Error 1
make[1]: Leaving directory `/home/todd/oa_code/source'
make: *** [build_release] Error 2

:(


Title: Re: Segmentation Faults on x86_64 Linux
Post by: dmn_clown on August 15, 2007, 03:28:40 AM
You are missing the ui folder and its contents available in the svn http://openarena.ws/svn/source/ui/

those files belong in /ui which should be in the same directory as /code


Title: Re: Segmentation Faults on x86_64 Linux
Post by: amdfanatyk on August 22, 2007, 11:14:07 AM
It's still compiled with -O3 by default (http://openarena.ws/board/index.php?topic=850.50). Recompile with -O2 and correct -march.


Title: Re: Segmentation Faults on x86_64 Linux
Post by: dmn_clown on August 22, 2007, 12:46:11 PM
correct -march.

Every try to run a binary compiled for an AMD processor on an intel chip?  If you don't like the binary recompile.