[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Debian and Jagged Alliance 2 (ja2): Segmentation fault



Hi, I have a big problem getting my copy of ja2 to run under Debian
unstable.

Installation works without problems, but after start I get a segfault:

        moritz@doerte:/usr/local/games/ja2$ ./ja2
        Jagged Alliance 2

        (c) 1999 by Sir-tech Canada Ltd. All rights reserved.
        Jagged Alliance is registered trademark of 1259191 Ontario Inc.
        Segmentation fault

The game links to the following files:

        moritz@doerte:/usr/local/games/ja2$ ldd ./ja2
         libpthread.so.0 => /lib/libpthread.so.0 (0x40026000)
         libdl.so.2 => /lib/libdl.so.2 (0x40076000)
         libm.so.6 => /lib/libm.so.6 (0x40079000)
         libc.so.6 => /lib/libc.so.6 (0x4009a000)
         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

The crash occurs in the locale setting, but setting LANG=C or LANG=en does
not help. Also starting in an Xnested Xserver does not help.
I suspect an incompatiblility in libc6. Does anyone know how I can get
around this? Or is X at fault?

I am thankful for any hint or suggestion!


moritz@doerte:/usr/local/games/ja2$ strace -e open ./ja2
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/lib/libpthread.so.0", O_RDONLY)  = 3
open("/lib/libdl.so.2", O_RDONLY)       = 3
open("/lib/libm.so.6", O_RDONLY)        = 3
open("/lib/libc.so.6", O_RDONLY)        = 3
Jagged Alliance 2

(c) 1999 by Sir-tech Canada Ltd. All rights reserved.
Jagged Alliance is registered trademark of 1259191 Ontario Inc.
open("/usr/local/games/ja2//lib/tsv_xshm.so", O_RDONLY) = 3
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/usr/X11R6/lib/libX11.so.6", O_RDONLY) = 3
open("/usr/X11R6/lib/libXext.so.6", O_RDONLY) = 3
open("/home/moritz/.Xauthority", O_RDONLY) = 5
open("/home/moritz/.Xauthority", O_RDONLY) = 5
open("/etc/ld.so.cache", O_RDONLY)      = 5
open("/lib/i686/mmx/cmov/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("/lib/i686/mmx/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such file
or directory)
open("/lib/i686/cmov/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such file
or directory)
open("/lib/i686/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/mmx/cmov/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such file
or directory)
open("/lib/mmx/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/cmov/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/usr/lib/i686/mmx/cmov/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/lib/i686/mmx/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("/usr/lib/i686/cmov/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("/usr/lib/i686/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such file
or directory)
open("/usr/lib/mmx/cmov/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("/usr/lib/mmx/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such file
or directory)
open("/usr/lib/cmov/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such file
or directory)
open("/usr/lib/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 5
open("/usr/X11R6/lib/libXcursor.so.1", O_RDONLY) = 5
open("/usr/X11R6/lib/libXrender.so.1", O_RDONLY) = 5
open("/usr/X11R6/lib/X11/locale/locale.alias", O_RDONLY) = 5
open("/usr/X11R6/lib/X11/locale/locale.dir", O_RDONLY) = 5
--- SIGSEGV (Segmentation fault) @ 0 (0) ---

moritz@doerte:/usr/local/games/ja2$ gdb ./ja2
GNU gdb 5.3.90_2003-06-29-cvs-debian
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...(no debugging symbols found)...
(gdb) run
Starting program: /usr/local/games/ja2/ja2
(no debugging symbols found)...[New Thread 16384 (LWP 16210)]
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...Jagged
Alliance 2

(c) 1999 by Sir-tech Canada Ltd. All rights reserved.
Jagged Alliance is registered trademark of 1259191 Ontario Inc.
(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...
(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 16210)]
0x0829574b in sprintf ()
(gdb) bt
#0  0x0829574b in sprintf ()
#1  0x402533d7 in _XlcAddUtf8LocaleConverters () from
/usr/X11R6/lib/libX11.so.6
#2  0x4025397d in _XlcDynamicLoad () from /usr/X11R6/lib/libX11.so.6
#3  0x40229965 in _XOpenLC () from /usr/X11R6/lib/libX11.so.6
#4  0x40229b7e in _XrmInitParseInfo () from /usr/X11R6/lib/libX11.so.6
#5  0x40214311 in XrmStringToBindingQuarkList () from
/usr/X11R6/lib/libX11.so.6
#6  0x40215fd6 in XrmGetStringDatabase () from /usr/X11R6/lib/libX11.so.6
#7  0x401fbf19 in XAllocNamedColor () from /usr/X11R6/lib/libX11.so.6
#8  0x401fc001 in XGetDefault () from /usr/X11R6/lib/libX11.so.6
#9  0x4029fe6e in _XcursorGetDisplayInfo () from
/usr/X11R6/lib/libXcursor.so.1
#10 0x4029fefb in XcursorSupportsARGB () from /usr/X11R6/lib/libXcursor.so.1
#11 0x402a2338 in XcursorNoticeCreateBitmap () from
/usr/X11R6/lib/libXcursor.so.1
#12 0x401f6761 in _XNoticeCreateBitmap () from /usr/X11R6/lib/libX11.so.6
#13 0x401f6c47 in XCreatePixmap () from /usr/X11R6/lib/libX11.so.6
#14 0x401b0c2d in TSVideo_driver_setModeFS () from
/usr/local/games/ja2//lib/tsv_xshm.so
#15 0x082904cc in strcpy ()
#16 0x085ef6a8 in ?? ()
#17 0x00000280 in ?? ()
#18 0x000001e0 in ?? ()
#19 0x00000010 in ?? ()
#20 0x40075790 in ?? ()


-- 
Moritz Moeller-Herrmann mmh@gmx.net wiss. Mitarbeiter, IMGB
        La loi, dans un grand souci d'égalité, interdit aux riches comme aux
        pauvres de coucher sous les ponts, de mendier dans les rues et de voler
        du pain. 
        (ANATOLE FRANCE)
 



Reply to: