Cannot run on archlinux (solved)

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
amuchamu
Greenhorn
Posts: 7
Joined: 16 Apr 2008, 22:13
Location: Zaragoza, Spain

Cannot run on archlinux (solved)

Post by amuchamu »

Hi. The game is crashing for me (Version 2.1 BETA 2). I do that:

$ ./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.
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
Last debug line before crash says: "main    : Entering main loop"

Thanks :)

Edit: I recompiled freetype2 with abs and now dont crash :D
Last edited by amuchamu on 17 Apr 2008, 17:57, edited 1 time in total.
User avatar
Verminus
Trained
Trained
Posts: 121
Joined: 18 Feb 2008, 19:13
Location: Peterborough, England

Re: Cannot run on archlinux

Post by Verminus »

OK....

1st: Is there a special reason you've set "--prefix=/usr"? Most Linux admins (myself included) will tell you that "/usr/local/" is a good place for self-compiled and third-party programs not included in your distro. Warzone2100 also defaults to this if "--prefix" isn't set.

2nd: QuesoGLC needs both freetype AND fontconfig. I only mention this because you said you have freetype2 2.3.5 but you haven't mentioned fontconfig at all

3rd: Assuming you built quesoGLC from source as well... Did you remember to run "ldconfig" as a privileged user to update the linker cache after you built and installed QuesoGLC? last time I checked WZ2100 doesn't complain if it can't find/use QuesoGLC at compile time, but will fail/crash during startup if it can't find it.

4th: Don't know why, but your .mdump has "Distrubutor" defined as "archlinux" not "UNKNOWN" but,
                    a) archlinux don't have a warzone package listed in the repos (that i could find)
                    b) according to you only "--enable-debug=yes" and "--prefix=/usr" were passed to ./configure. not "--with-distributor=archlinux"

5th: Oh and you might want to Read The Stickies : [url=?topic=691.0]Bugreporting How-To...]
amuchamu
Greenhorn
Posts: 7
Joined: 16 Apr 2008, 22:13
Location: Zaragoza, Spain

Re: Cannot run on archlinux (solved)

Post by amuchamu »

Sorry for my english:

1. That's the arch way, i think. I made a PKGBUILD to make a package controled by package manager and that packages should be at /usr. By default, /usr/local/bin is not in $PATH

2. Yes, 2.5.0-1 installed.

3. Yes, I built quesoGLC from source, but I didn't run ldconfig. Anyway, the game compiles without warnings.

4. I tried with "--with-distributor=archlinux" because of a warning, and without that, excuse me for not comment it.

5. Thanks for the link.

And thanks for reply. I rebuilt libfreetype2 and now the game is running.
User avatar
Verminus
Trained
Trained
Posts: 121
Joined: 18 Feb 2008, 19:13
Location: Peterborough, England

Re: Cannot run on archlinux (solved)

Post by Verminus »

amuchamu wrote: And thanks for reply. I rebuilt libfreetype2 and now the game is running.
Glad to hear you got it working, have fun playing :)