$ ./autogen.sh
$ ./configure --enable-debug=yes --prefix=/usr
$ make
$ make install
It compiles without warnings. Then, when I run the game, it crash when loading:
$ warzone2100
Saved dump file to '/tmp/warzone2100.gdmp'
Violación de segmento
Some info... Archlinux with kernel 2.6.24, quesoglc 0.7.1, freetype2 2.3.5. Pentium 4 2.67Ghz 1.5GB ram, nvidia fx 6200 256MB
This is the contents of the saved dump file.
Last debug line before crash says: "main : Entering main loop"Program: /usr/bin/warzone2100
Version: 2.1_beta2
Distributor: archlinux
Type: Debug
Compiled on: Apr 17 2008
Compiled by: GCC 4.3.0
Executed on: Thu Apr 17 11:34:25 2008
Operating system: Linux
Node name: arch
Release: 2.6.24-ARCH
Version: #1 SMP PREEMPT Sun Mar 30 11:40:06 CEST 2008
Machine: i686
Pointers: 32bit
Dump caused by signal: SIGSEGV: Invalid memory reference: Address not mapped to object
Log message 1:
Log message 2:
GLIBC raw backtrace:
warzone2100[0x81ddf34]
[0xb7f16440]
/usr/lib/libfreetype.so.6[0xb79a11ba]
/usr/lib/libfreetype.so.6[0xb799f458]
/usr/lib/libfreetype.so.6(FTC_Manager_LookupSize+0x64)[0xb799f674]
/usr/lib/libGLC.so.0(__glcFaceDescPrepareGlyph+0xd6)[0xb7d6ecf2]
GDB extended backtrace:
GNU gdb 6.7.1
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
Attaching to program: /usr/bin/warzone2100, process 15118
Reading symbols from /usr/lib/libSDL-1.2.so.0...done.
Loaded symbols for /usr/lib/libSDL-1.2.so.0
Reading symbols from /lib/libpthread.so.0...done.
[Thread debugging using libthread_db enabled]
[New Thread 0xb6cd8700 (LWP 15118)]
[New Thread 0xb4f2cb90 (LWP 15122)]
[New Thread 0xb69b9b90 (LWP 15121)]
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /usr/lib/libSDL_net-1.2.so.0...done.
Loaded symbols for /usr/lib/libSDL_net-1.2.so.0
Reading symbols from /usr/lib/libphysfs-1.0.so.1...done.
Loaded symbols for /usr/lib/libphysfs-1.0.so.1
Reading symbols from /usr/lib/libpng12.so.0...done.
Loaded symbols for /usr/lib/libpng12.so.0
Reading symbols from /usr/lib/libvorbisfile.so.3...done.
Loaded symbols for /usr/lib/libvorbisfile.so.3
Reading symbols from /usr/lib/libvorbis.so.0...done.
Loaded symbols for /usr/lib/libvorbis.so.0
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /usr/lib/libogg.so.0...done.
Loaded symbols for /usr/lib/libogg.so.0
Reading symbols from /usr/lib/libopenal.so.0...done.
Loaded symbols for /usr/lib/libopenal.so.0
Reading symbols from /usr/lib/libGLC.so.0...done.
Loaded symbols for /usr/lib/libGLC.so.0
Reading symbols from /usr/lib/libGL.so.1...done.
Loaded symbols for /usr/lib/libGL.so.1
Reading symbols from /usr/lib/libGLU.so.1...done.
Loaded symbols for /usr/lib/libGLU.so.1
Reading symbols from /usr/lib/libpopt.so.0...done.
Loaded symbols for /usr/lib/libpopt.so.0
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/lib/libX11.so.6...done.
Loaded symbols for /usr/lib/libX11.so.6
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libz.so.1...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /usr/lib/libfontconfig.so.1...done.
Loaded symbols for /usr/lib/libfontconfig.so.1
Reading symbols from /usr/lib/libfreetype.so.6...done.
Loaded symbols for /usr/lib/libfreetype.so.6
Reading symbols from /usr/lib/libfribidi.so.0...done.
Loaded symbols for /usr/lib/libfribidi.so.0
Reading symbols from /usr/lib/libGLcore.so.1...done.
Loaded symbols for /usr/lib/libGLcore.so.1
Reading symbols from /usr/lib/libnvidia-tls.so.1...done.
Loaded symbols for /usr/lib/libnvidia-tls.so.1
Reading symbols from /usr/lib/libXext.so.6...done.
Loaded symbols for /usr/lib/libXext.so.6
Reading symbols from /usr/lib/libstdc++.so.6...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /usr/lib/libgcc_s.so.1...done.
Loaded symbols for /usr/lib/libgcc_s.so.1
Reading symbols from /usr/lib/libxcb-xlib.so.0...done.
Loaded symbols for /usr/lib/libxcb-xlib.so.0
Reading symbols from /usr/lib/libxcb.so.1...done.
Loaded symbols for /usr/lib/libxcb.so.1
Reading symbols from /usr/lib/libexpat.so.1...done.
Loaded symbols for /usr/lib/libexpat.so.1
Reading symbols from /usr/lib/libXau.so.6...done.
Loaded symbols for /usr/lib/libXau.so.6
Reading symbols from /usr/lib/libXdmcp.so.6...done.
Loaded symbols for /usr/lib/libXdmcp.so.6
Reading symbols from /usr/lib/gconv/ISO8859-1.so...done.
Loaded symbols for /usr/lib/gconv/ISO8859-1.so
Reading symbols from /usr/lib/libXrender.so.1...done.
Loaded symbols for /usr/lib/libXrender.so.1
Reading symbols from /usr/lib/libXrandr.so.2...done.
Loaded symbols for /usr/lib/libXrandr.so.2
Reading symbols from /usr/lib/libXcursor.so.1...done.
Loaded symbols for /usr/lib/libXcursor.so.1
Reading symbols from /usr/lib/libXfixes.so.3...done.
Loaded symbols for /usr/lib/libXfixes.so.3
0xb7f16410 in __kernel_vsyscall ()
(gdb) #0 0xb7f16410 in __kernel_vsyscall ()
No symbol table info available.
#1 0xb7e5da8b in waitpid () from /lib/libpthread.so.0
No symbol table info available.
#2 0x081de583 in posixExceptionHandler (signum=11, siginfo=0xbfe3649c, sigcontext=0xbfe3651c) at exceptionhandler.c:531
btBuffer = {0x81ddf34, 0xb7f16440, 0xb79a11ba, 0xb799f458, 0xb799f674, 0xb7d6ecf2, 0x0 }
btSize = 6
pid = 15123
gdbPipe = {14, 15}
dumpFile = 13
signal = 0x823da10 "SIGSEGV: Invalid memory reference: Address not mapped to object"
allreadyRunning = 1
#3
No symbol table info available.
#4 0xb795bf64 in FT_New_Size () from /usr/lib/libfreetype.so.6
No symbol table info available.
#5 0xb79a11ba in ftc_scaler_lookup_size () from /usr/lib/libfreetype.so.6
No symbol table info available.
#6 0xb799f458 in FTC_MruList_New () from /usr/lib/libfreetype.so.6
No symbol table info available.
#7 0xb799f674 in FTC_Manager_LookupSize () from /usr/lib/libfreetype.so.6
No symbol table info available.
#8 0xb7d6ecf2 in __glcFaceDescPrepareGlyph () from /usr/lib/libGLC.so.0
No symbol table info available.
#9 0xb7d63388 in ?? () from /usr/lib/libGLC.so.0
No symbol table info available.
#10 0x00002000 in ?? ()
No symbol table info available.
#11 0x00000000 in ?? ()
No symbol table info available.
(gdb) The program is running. Quit anyway (and detach it)? (y or n) [answered Y; input not from terminal]
Detaching from program: /usr/bin/warzone2100, process 15118
Thanks
Edit: I recompiled freetype2 with abs and now dont crash
