Warzone2100 on Sparc64 (Linux)

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
shimitar
Greenhorn
Posts: 9
Joined: 24 May 2007, 15:02

Warzone2100 on Sparc64 (Linux)

Post by shimitar »

Hi!
i have a Sparc64 box (Sun Ultra5) which runs happily a Gentoo Linux.

I am trying to run warzone 2.0.6 on X (remote) but i get the following error:

Code: Select all

willy@ultra5 ~ $ warzone2100
which: no gdb in (/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/sparc-unknown-linux-gnu/gcc-bin/4.1.1:/usr/sparc-unknown-linux-gnu/sparc64-unknown-linux-gnu/gcc-bin/4.1.1:/usr/games/bin)
open /dev/[sound/]dsp: No such file or directory
error:      OpenAL Vendor: (null)
OpenAL Version: (null)
OpenAL Renderer: (null)
OpenAL Extensions: (null)
error:      Couldn't open audio device.
error:      Texture file ".png" not preloaded.
last message repeated 2 times
last message repeated 2 times (total 4 repeats)
last message repeated 4 times (total 8 repeats)
last message repeated 8 times (total 16 repeats)
last message repeated 3 times (total 19 repeats)
error:      Texture file ".png" not preloaded.
error:      Texture file ".png" not preloaded.
last message repeated 2 times
last message repeated 2 times (total 4 repeats)
last message repeated 4 times (total 8 repeats)
last message repeated 8 times (total 16 repeats)

[... SNIP: removed lots of similar output! ...]

last message repeated 4 times (total 8 repeats)
last message repeated 8 times (total 16 repeats)
last message repeated 10 times (total 26 repeats)
error:      Texture file ".png" not preloaded.
error:      Texture file ".png" not preloaded.
last message repeated 2 times
last message repeated 2 times (total 4 repeats)
last message repeated 4 times (total 8 repeats)
last message repeated 4 times (total 12 repeats)
error:      Texture file ".png" not preloaded.
last message repeated 2 times
last message repeated 2 times (total 4 repeats)
last message repeated 4 times (total 8 repeats)
last message repeated 5 times (total 13 repeats)
error:      Texture file ".png" not preloaded.
error:      Texture file ".png" not preloaded.
error:      Texture file ".png" not preloaded.
last message repeated 2 times
last message repeated 2 times (total 4 repeats)
last message repeated 4 times (total 8 repeats)
last message repeated 5 times (total 13 repeats)
error:      Texture file ".png" not preloaded.
error:      Texture file ".png" not preloaded.
last message repeated 2 times
error:      Texture file ".png" not preloaded.
last message repeated 2 times
last message repeated 2 times (total 4 repeats)
last message repeated 1 times (total 5 repeats)
error:      Texture file ".png" not preloaded.
last message repeated 2 times
last message repeated 1 times (total 3 repeats)
error:      Texture file ".png" not preloaded.
error:      Texture file ".png" not preloaded.
error:      Texture file ".png" not preloaded.
last message repeated 2 times
error:      Texture file ".png" not preloaded.
last message repeated 2 times
last message repeated 2 times (total 4 repeats)
last message repeated 4 times (total 8 repeats)
error:      Texture file ".png" not preloaded.
last message repeated 2 times
last message repeated 2 times (total 4 repeats)
last message repeated 4 times (total 8 repeats)
last message repeated 2 times (total 10 repeats)
error:      Texture file ".png" not preloaded.
last message repeated 2 times
last message repeated 2 times (total 4 repeats)
last message repeated 4 times (total 8 repeats)
last message repeated 1 times (total 9 repeats)
error:      Texture file ".png" not preloaded.
last message repeated 2 times
last message repeated 2 times (total 4 repeats)
last message repeated 4 times (total 8 repeats)
last message repeated 3 times (total 11 repeats)
error:      Texture file ".png" not preloaded.
error:      Texture file ".png" not preloaded.
last message repeated 2 times
last message repeated 2 times (total 4 repeats)
last message repeated 4 times (total 8 repeats)
last message repeated 8 times (total 16 repeats)
last message repeated 16 times (total 32 repeats)
last message repeated 28 times (total 60 repeats)
error:      Texture file ".png" not preloaded.
last message repeated 2 times
last message repeated 2 times (total 4 repeats)
last message repeated 1 times (total 5 repeats)
error:      Texture file ".png" not preloaded.
last message repeated 2 times
last message repeated 2 times (total 4 repeats)
last message repeated 4 times (total 8 repeats)
error:      Texture file ".png" not preloaded.
error:      Texture file ".png" not preloaded.
last message repeated 2 times
last message repeated 2 times (total 4 repeats)
last message repeated 1 times (total 5 repeats)
error:      Texture file ".png" not preloaded.
error:      Texture file ".png" not preloaded.
error:      Texture file ".png" not preloaded.
error:      Texture file ".png" not preloaded.
last message repeated 2 times
last message repeated 2 times (total 4 repeats)
last message repeated 4 times (total 8 repeats)
last message repeated 8 times (total 16 repeats)
last message repeated 16 times (total 32 repeats)
last message repeated 32 times (total 64 repeats)
last message repeated 64 times (total 128 repeats)
last message repeated 128 times (total 256 repeats)
last message repeated 256 times (total 512 repeats)
Saved dump file to '/tmp/warzone2100.gdmp'
Segmentation fault
I have not setup the sound card yet.

Is this a problem related to sparc, to remote display or to missing sound card? Does anybody have positive felling on running on sparc?
shimitar
Greenhorn
Posts: 9
Joined: 24 May 2007, 15:02

Re: Warzone2100 on Sparc64 (Linux)

Post by shimitar »

Some more info (still getting same crash):

- i have installed the soundcard, so this is not the problem.

The dump file says:

Code: Select all

Program command: warzone2100
Version: 2.0.6
Type: Release
Compiled on: May 24 2007

Operating system: Linux
Node name: ultra5
Release: 2.6.20-gentoo-r4
Version: #2 PREEMPT Tue May 15 17:32:19 Local time zone must be set--see
Machine: sparc64

Pointers: 32bit

Dump caused by signal: SIGSEGV: Invalid memory reference: Invalid permissions for mapped object

GLIBC raw backtrace:

GDB not available, no extended backtrace dumped
So this is indeed a sparc related problem of some sort. I will try to install GDB and see. Can anybody give me some hints or suggestions on this?
Giel
Regular
Regular
Posts: 725
Joined: 26 Dec 2006, 19:18
Contact:

Re: Warzone2100 on Sparc64 (Linux)

Post by Giel »

shimitar wrote: Is this a problem related to sparc, to remote display or to missing sound card? Does anybody have positive felling on running on sparc?
I see no problems in that log that indicate anything wrong with the sound device. besides that it doesn't exist as far as Warzone is concerned, but it should simply continue with sound disabled, and I don't see any indication that it doesn't.

Btw what do you mean with "remote display" ? Are you trying to play Warzone through a remote X sesssion or ?

As for the sparc part, as far as I know you're the first, or one of the first, to try. Although that is no reason for Warzone not to run.
shimitar wrote: So this is indeed a sparc related problem of some sort.
I'm not sure where you got that notion from really. The "Machine: sparc64" part is just to provide us information about the system the backtrace was created on.

Btw what kind of kernel are you running (32 or 64 bit) ? Because the "Pointers: 32bit" part seems strange on a 64bit system.
shimitar wrote: I will try to install GDB and see. Can anybody give me some hints or suggestions on this?
I have absolutely no experience with Gentoo, but I guess you'll have to enter something like this in a terminal:

Code: Select all

emerge gdb
Last edited by Giel on 24 May 2007, 16:47, edited 1 time in total.
"First make sure it works good, only then make it look good." -- Giel
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Warzone2100 on Sparc64 (Linux)

Post by DevUrandom »

Giel wrote: As for the sparc part, as far as I know you're the first, or one of the first, to try. Although that is no reason for Warzone not to run.
Hehe. "Exotic" platforms. I like that. :)
Giel wrote: I'm not sure where you got that notion from really. The "Machine: sparc64" part is just to provide us information about the system the backtrace was created on.
I'd guess he knows what CPU he has installed and just wants to tell us that he thinks it might be related to the crash...
Giel wrote: Btw what kind of kernel are you running (32 or 64 bit) ? Because the "Pointers: 32bit" part seems strange on a 64bit system.
"Pointers: 32bit" is the result of sizeof(void*), which depends on type of compilation (-m32 vs. -m64) and not on the Kernel, afaik.
Giel wrote: I have absolutely no experience with Gentoo, but I guess you'll have to enter something like this in a terminal:

Code: Select all

emerge gdb
Correct.
error:      Texture file ".png" not preloaded.
This seems to be really really wrong.

The responsible code for these broken texpage names is probably bitimage.c:173 (LoadTextureFile).
More precise:
bitimage.c:178 wrote: // this is a hideous kludge to avoid having to change .img files, which
// still contain pcx references
strcpy(real_filename, FileName);
real_filename[strlen(real_filename) - 4] = '\0'; // strip extension
strcat(real_filename, ".png");
I would be interested in the contents of the original filename, FileName (not real_filename), to see if that is already broken.
User avatar
kage
Regular
Regular
Posts: 751
Joined: 05 Dec 2006, 21:45

Re: Warzone2100 on Sparc64 (Linux)

Post by kage »

it would be sweet to list sparc as a supported platform for wz. hope this works out for you shimitar.
shimitar
Greenhorn
Posts: 9
Joined: 24 May 2007, 15:02

Re: Warzone2100 on Sparc64 (Linux)

Post by shimitar »

This is what GDB tels me (i remerged with DEBUG):

Code: Select all

Program command: /usr/games/bin/warzone2100
Version: 2.0.6
Type: Release
Compiled on: May 25 2007

Operating system: Linux
Node name: ultra5
Release: 2.6.20-gentoo-r4
Version: #2 PREEMPT Tue May 15 17:32:19 Local time zone must be set--see
Machine: sparc64

Pointers: 32bit

Dump caused by signal: SIGSEGV: Invalid memory reference: Invalid permissions for mapped object

GLIBC raw backtrace:

GDB extended backtrace:
GNU gdb 6.6
Copyright (C) 2006 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 "sparc-unknown-linux-gnu"...
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
Attaching to program: /usr/games/bin/warzone2100, process 17016
Reading symbols from /usr/lib/libphysfs-1.0.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libphysfs-1.0.so.1
Reading symbols from /usr/lib/libpng12.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libpng12.so.0
Reading symbols from /usr/lib/libjpeg.so.62...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /lib/libm.so.6...
(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /usr/lib/libSDL-1.2.so.0...(no debugging symbols found)...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 -134959088 (LWP 17016)]
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/opengl/xorg-x11/lib/libGL.so.1...done.
Loaded symbols for //usr//lib/opengl/xorg-x11/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/libopenal.so.0...done.
Loaded symbols for /usr/lib/libopenal.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 /usr/lib/libogg.so.0...done.
Loaded symbols for /usr/lib/libogg.so.0
Reading symbols from /usr/lib/libmad.so.0...done.
Loaded symbols for /usr/lib/libmad.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 /usr/lib/libXext.so.6...done.
Loaded symbols for /usr/lib/libXext.so.6
Reading symbols from /usr/lib/libXxf86vm.so.1...done.
Loaded symbols for /usr/lib/libXxf86vm.so.1
Reading symbols from /usr/lib/libdrm.so.2...done.
Loaded symbols for /usr/lib/libdrm.so.2
Reading symbols from /usr/lib/gcc/sparc-unknown-linux-gnu/4.1.1/libstdc++.so.6...done.
Loaded symbols for /usr/lib/gcc/sparc-unknown-linux-gnu/4.1.1/libstdc++.so.6
Reading symbols from /usr/lib/gcc/sparc-unknown-linux-gnu/4.1.1/libgcc_s.so.1...done.
Loaded symbols for /usr/lib/gcc/sparc-unknown-linux-gnu/4.1.1/libgcc_s.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/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
Reading symbols from /usr/lib/gconv/ISO8859-1.so...done.
Loaded symbols for /usr/lib/gconv/ISO8859-1.so

0xf7d3bd70 in __waitpid_nocancel () from /lib/libpthread.so.0
(gdb) #0  0xf7d3bd70 in __waitpid_nocancel () from /lib/libpthread.so.0
No symbol table info available.
#1  0x00140e18 in ?? ()
No symbol table info available.
#2  0x00140e18 in ?? ()
No symbol table info available.
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) The program is running.  Quit anyway (and detach it)? (y or n) [answered Y; input not from terminal]
Detaching from program: /usr/games/bin/warzone2100, process 17016
Does warzone uses threads?
I have my glibc built with nptl and nptlonly options, now i will try to recompile without and try again...
Giel
Regular
Regular
Posts: 725
Joined: 26 Dec 2006, 19:18
Contact:

Re: Warzone2100 on Sparc64 (Linux)

Post by Giel »

shimitar wrote: This is what GDB tels me (i remerged with DEBUG):
Unfortunately that isn't very helpful, maybe you could try compiling with --enable-debug=yes to Warzone's configure script
shimitar wrote: Does warzone uses threads?
Nope, but OpenAL does, maybe some other libs we use do as well.
"First make sure it works good, only then make it look good." -- Giel
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Warzone2100 on Sparc64 (Linux)

Post by DevUrandom »

Obviously neither glibc nor gdb have any idea how to debug an application or even create a backtrace... Weird.
Try running Warzone through gdb manually and see if that generates any better output.
shimitar
Greenhorn
Posts: 9
Joined: 24 May 2007, 15:02

Re: Warzone2100 on Sparc64 (Linux)

Post by shimitar »

Unfortunately, gdb does not help. Running wz with it gives no more clues.

I tryed to recompile GCC (2.5) without nptl, but it does not build correctly. So i guess i have to stick with nptl.

I am currently rebuilding warzone with debug, and so for sdl, then  we will see. Since the hardware is a bit _slow_ i will post more next week. (ok, the sparc is at work and i dont work over the weekend!)

Also, i will try to recompile libpng and sdl-image with debug...

what other libraries are explictly used by wz?
shimitar
Greenhorn
Posts: 9
Joined: 24 May 2007, 15:02

Re: Warzone2100 on Sparc64 (Linux)

Post by shimitar »

Ok, here some more detailed output (warzone with debug).

First, a "bt" from gdb:

Code: Select all

warzone2100: bitimage.c:188: LoadTextureFile: Assertion `(0)' failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread -134451184 (LWP 520)]
0xf7a659ec in raise () from /lib/libc.so.6
(gdb) bt
#0  0xf7a659ec in raise () from /lib/libc.so.6
#1  0xf7a6729c in abort () from /lib/libc.so.6
#2  0xf7a5d1fc in __assert_fail () from /lib/libc.so.6
#3  0x00221268 in LoadTextureFile (FileName=0xf70cdba4 "", pSprite=0xf70cfd4c, texPageID=0xffc64be8)
    at bitimage.c:188
#4  0x00220eec in iV_LoadImageFile (FileData=0xf70cdb48 "imgf\001", FileSize=8028) at bitimage.c:130
#5  0x00037f58 in dataIMGLoad (pBuffer=0xf70cdb48 "imgf\001", size=8028, ppData=0xffc64dec) at data.c:836
#6  0x0023684c in resLoadFile (pType=0x99c4ec "IMG", pFile=0x98a4ec "intfac.img") at frameresource.c:471
#7  0x0023bde0 in res_parse () at resource_parser.y:114
#8  0x00235d78 in resLoad (pResFile=0x2569c8 "wrf/frontend.wrf", blockID=0,
    pLoadBuffer=0xf7204048 'Í' <repeats 200 times>..., bufferSize=5000000, psMemHeap=0xa50bc0)
    at frameresource.c:152
#9  0x00092978 in frontendInitialise (ResourceFile=0x2569c8 "wrf/frontend.wrf") at init.c:1256
#10 0x000b6c5c in main (argc=1, argv=0xffc65604) at main.c:579
#11 0xf7a4e63c in __libc_start_main () from /lib/libc.so.6
#12 0x00014098 in _start ()
(gdb)
Now, the usual warzone2100.gdmp file:

Code: Select all


Program command: /usr/games/bin/warzone2100
Version: 2.0.6
Type: Debug
Compiled on: May 25 2007

Operating system: Linux
Node name: ultra5
Release: 2.6.20-gentoo-r4
Version: #2 PREEMPT Tue May 15 17:32:19 Local time zone must be set--see
Machine: sparc64

Pointers: 32bit

Dump caused by signal: SIGABRT: Process abort signal

GLIBC raw backtrace:

GDB extended backtrace:
GNU gdb 6.6
Copyright (C) 2006 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 "sparc-unknown-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
Attaching to program: /usr/games/bin/warzone2100, process 387
Reading symbols from /usr/lib/libphysfs-1.0.so.1...done.

[... SNIP SOME REARING/LOADING SYMBOLS REMOVED ...]

Loaded symbols for /usr/lib/gconv/ISO8859-1.so
0xf7d13d70 in __waitpid_nocancel () from /lib/libpthread.so.0
(gdb) #0  0xf7d13d70 in __waitpid_nocancel () from /lib/libpthread.so.0
No symbol table info available.
#1  0x00233c20 in posixExceptionHandler (signum=6, siginfo=0xff570588, sigcontext=0xff570608)
    at exceptionhandler.c:490
        btBuffer = {0x0 <repeats 20 times>}
        btSize = 0
        pid = 415
        gdbPipe = {7, 8}
        dumpFile = 6
        allreadyRunning = 1
#2  <signal handler called>
No symbol table info available.
#3  0xf79c19ec in raise () from /lib/libc.so.6
No symbol table info available.
#4  0xf79c329c in abort () from /lib/libc.so.6
No symbol table info available.
#5  0xf79b91fc in __assert_fail () from /lib/libc.so.6
No symbol table info available.
#6  0x00221268 in LoadTextureFile (FileName=0xf7029ba4 "", pSprite=0xf702bd4c, texPageID=0xff570bf8)
    at bitimage.c:188
        i = 4
        real_filename = ".png\000c4.png\000ÿW\v\030\000#¨\204\000Â¥\fh\000Â¥\fL÷\002ù0\000#¦@\000\000\000\000\000\000\000\000ÿW\v\030\000#RTÿÿÿÿ\000\000\000\000\000\000\000\000÷\002ùp\000Â¥\fà÷\002\233H\000\016@\020÷\002ù0÷\002\232¬ö÷\237¨", '\0' <repeats 33 times>, "(w\020\000\000\000w\000\016@\020", '\0' <repeats 12 times>, "ÿW\v\220\000\"\016$\000ÿÿÿ\000Â¥\f8\000\016@p\000\000\037]ÿW\v¨ö÷\237x÷\002\232l\000#¦@÷\002IP÷\002ùp\000\000\001Ô"
        __PRETTY_FUNCTION__ = "LoadTextureFile"
#7  0x00220eec in iV_LoadImageFile (FileData=0xf7029b48 "imgf\001", FileSize=8028) at bitimage.c:130
        tmp = 4
        Ptr = 0xf7029c64 ""
        Header = (IMAGEHEADER *) 0xf7029b48
        ImageFile = (IMAGEFILE *) 0xf702bb08
        ImageDef = (IMAGEDEF *) 0x3c
        i = 5
#8  0x00037f58 in dataIMGLoad (pBuffer=0xf7029b48 "imgf\001", size=8028, ppData=0xff570dfc) at data.c:836
        ImageFile = (IMAGEFILE *) 0x2eb2f4
#9  0x0023684c in resLoadFile (pType=0x99c4ec "IMG", pFile=0x98a4ec "intfac.img") at frameresource.c:471
        Resource = (RESOURCEFILE *) 0x2eb2f4
        Result = 1
        HashedType = 19991
        psT = (RES_TYPE *) 0xa533c0
        pData = (void *) 0xa7ade0
        psRes = (RES_DATA *) 0x0
        aFileName = "images/intfac.img\000ä\005\v\r\207", '\0' <repeats 12 times>, "ÿW\r\200\000#ÍP\000\000\000\000\000\000\000\000÷®È°\000\000@", '\0' <repeats 22 times>, "#ø\000§­ê\000§­ê\000\000\000\n\000\000\000\nö÷QD\000\000\000\000\000\000 \b\000\000\000!\000§­ê\000Â¥w\004öý\207\230\000\000\000\001\000\000\000\a", '\0' <repeats 30 times>, "\001\002\000\231¤ìþþþÿ\000\000\000\000imag\000\000\000\000ÿW\016 \000#º\024\000\000\000\000÷®È°\000\000@\000ÿÿÿÿö÷QDö÷QÔö÷Q\004öý<8\000\000\001\003\000\000\000"...
        loadresource = 1
        HashedName = 173592471
#10 0x0023bde0 in res_parse () at resource_parser.y:114
        yystate = 11
        yyn = 7
        yyresult = -11070472
        yyerrstatus = 0
        yytoken = 4
        yyssa = {0, 3, 2, 8, 11, 30696, 0, 8, 0, 47, 165, 30776, 0 <repeats 14 times>, -2062, 6712, 165,
  30584, 0, 0, 0, 0, 0, 0, 0, 0, -169, 4648, -2064, 19440, -169, 4752, 26695, -20182, -169, 4872, -2313,
  -21472, 0, 0, 0, 1, 154, 1216, 154, 20248, 165, 30584, 0, 0, -2062, 6708, 0 <repeats 12 times>, -2062,
  4552, 165, 30776, 0, 1926, 0, 1, 0, 1926, -2143, 5340, 0, 0, -169, 4752, 35, 21076, -169, 4760, 35,
  2868, 0, 0, 0, 0, -2306, 12244, 167, -22992, 167, -23056, 167, -23056, 0, 368, 0, 1, 0, 7,
  0 <repeats 14 times>, 46, -20592, -169, 5112, -169, 5108, 0, 1, 0, 1, 0, 0, -169, 4896, 35, 22052,
  -169, 4896, 40, -4800, 0, 535, 0, 1927, -2306, 12244, 35, -22976, 0, 44, 35, -22976, -169, 4896, 0, 1,
  0, 163, -2307, -30760, 0, 44, 165, 30776, 0, 0, 0, 1926, 0, 0, 0, 1926, 0, 0, -169, 4976,
  0 <repeats 14 times>}
        yyss = (yytype_int16 *) 0xff5711ac
        yyssp = (yytype_int16 *) 0xff5711b4
        yyvsa = {{sval = 0x23a640 "\235ã¿\200ð' Dò' HÂ\a DÂ"}, {sval = 0x0}, {
    sval = 0x99a4ec "intfac4.png"}, {sval = 0x99c4ec "IMG"}, {sval = 0x98a4ec "intfac.img"}, {
    sval = 0x0}, {sval = 0x1 <Address 0x1 out of bounds>}, {
    sval = 0xf6f7cdb0 '¬' <repeats 32 times>, "ö÷ÍÐ\t\234ªÓö÷ÍÐö÷½XöüûH"}, {
    sval = 0x1 <Address 0x1 out of bounds>}, {sval = 0xf6f75144 ""}, {sval = 0xa74d30 ""}, {
    sval = 0xa7a5f0 ""}, {sval = 0x23a640 "\235ã¿\200ð' Dò' HÂ\a DÂ"}, {
    sval = 0xa7a630 "/", '*' <repeats 59 times>, "/\n/*  You may have to modify this file for it to be correct! */ \n/", '*' <repeats 19 times>, "       WRF\\frontend.wrf      ", '*' <repeats 19 times>, "/\n\n\ndir"...}, {sval = 0xa74950 "Sk-Gridlock-T1"}, {sval = 0xa7adb7 '¬' <repeats 32 times>}, {
    sval = 0xa7495f '¬' <repeats 32 times>}, {sval = 0x18 <Address 0x18 out of bounds>}, {sval = 0x0}, {
    sval = 0x2 <Address 0x2 out of bounds>}, {
    sval = 0xf7aeb000 "÷¥\037\200÷¥! ÷¬ÛH÷¥&@÷®Þ\234÷®Þ ÷®Þ\204÷¬v\220÷¬Û8÷¬vp÷®Þ\200÷¬Û(÷¬Ú\b÷¬Ù¨÷¬Ùè÷¬Ú(÷¬ÙÈ÷¬ÚH÷¬\231¨÷¬ÚX÷¬Ú`÷¬Úh÷¬Úp÷¬Úè÷¬ÚØ÷¬Ú\200÷¬ÚÀ÷¬Ú¨÷¬Ú\210÷¬Û\b÷¬x"}, {
    sval = 0x3 <Address 0x3 out of bounds>}, {sval = 0xa57778 "÷®Ö\b÷®Ö\b"}, {
    sval = 0xf7acb228 "No such file or directory"}, {sval = 0x0}, {sval = 0x0}, {sval = 0x0}, {
    sval = 0x5 <Address 0x5 out of bounds>}, {sval = 0xf7f0fc30 "@"}, {
    sval = 0xf6fd87d8 "öý\220\220öý\234pöý\210d"}, {sval = 0x1 <Address 0x1 out of bounds>}, {
    sval = 0xf6fd87d8 "öý\220\220öý\234pöý\210d"}, {sval = 0xa74950 "Sk-Gridlock-T1"}, {sval = 0x0}, {
    sval = 0x1 <Address 0x1 out of bounds>}, {sval = 0x0}, {sval = 0xa74920 ""}, {sval = 0xa7a5f0 ""}, {
    sval = 0x23a640 "\235ã¿\200ð' Dò' HÂ\a DÂ"}, {
    sval = 0xa7a630 "/", '*' <repeats 59 times>, "/\n/*  You may have to modify this file for it to be correct! */ \n/", '*' <repeats 19 times>, "       WRF\\frontend.wrf      ", '*' <repeats 19 times>, "/\n\n\ndir"...}, {sval = 0xa74668 "Gridlock-T3"}, {sval = 0xa7adb7 '¬' <repeats 32 times>}, {
    sval = 0xa74674 '¬' <repeats 32 times>}, {sval = 0xff5711fc "÷ðKðÿW\022\220hG±*ÿW\023\bö÷¬ "}, {
    sval = 0x23a640 "\235ã¿\200ð' Dò' HÂ\a DÂ"}, {sval = 0xf6fd87d8 "öý\220\220öý\234pöý\210d"}, {
    sval = 0x1 <Address 0x1 out of bounds>}, {sval = 0xf6fd87d8 "öý\220\220öý\234pöý\210d"}, {
    sval = 0xf6f7ba60 "ö÷ºÈö÷¸ø", '¬' <repeats 32 times>, "ö÷º\210w\n\003âö÷º\210"}, {
    sval = 0xf6fd8798 "öý\207\2303\207\221\027öý\207\230öýAØöý\210$"}, {
    sval = 0x1 <Address 0x1 out of bounds>}, {sval = 0xf6fd87d8 "öý\220\220öý\234pöý\210d"}, {
    sval = 0x0}, {sval = 0x0}, {sval = 0xa74d20 ""}, {
    sval = 0x43001308 <Address 0x43001308 out of bounds>}, {sval = 0x23a640 "\235ã¿\200ð' Dò' HÂ\a DÂ"}, {
    sval = 0x4c435f4d <Address 0x4c435f4d out of bounds>}, {
    sval = 0x45535341 <Address 0x45535341 out of bounds>}, {
    sval = 0x4745532f <Address 0x4745532f out of bounds>}, {
    sval = 0x6c696263 <Address 0x6c696263 out of bounds>}, {
    sval = 0x2e6d6f00 <Address 0x2e6d6f00 out of bounds>}, {sval = 0xa74638 ""}, {sval = 0xa7a5f0 ""}, {
    sval = 0x23a640 "\235ã¿\200ð' Dò' HÂ\a DÂ"}, {
    sval = 0xa7a630 "/", '*' <repeats 59 times>, "/\n/*  You may have to modify this file for it to be correct! */ \n/", '*' <repeats 19 times>, "       WRF\\frontend.wrf      ", '*' <repeats 19 times>, "/\n\n\ndir"...}, {sval = 0xa73308 "wrf/multi/t2-campaign.wrf"}, {sval = 0xa7adb7 '¬' <repeats 32 times>}, {
    sval = 0xa73322 '¬' <repeats 32 times>}, {sval = 0x11 <Address 0x11 out of bounds>}, {
    sval = 0x4e6f2073 <Address 0x4e6f2073 out of bounds>}, {
    sval = 0x75636820 <Address 0x75636820 out of bounds>}, {
    sval = 0x66696c65 <Address 0x66696c65 out of bounds>}, {
    sval = 0x206f7220 <Address 0x206f7220 out of bounds>}, {
    sval = 0x64697265 <Address 0x64697265 out of bounds>}, {
    sval = 0x63746f72 <Address 0x63746f72 out of bounds>}, {
    sval = 0x7900af90 <Address 0x7900af90 out of bounds>}, {sval = 0x0}, {
    sval = 0xffffffd0 <Address 0xffffffd0 out of bounds>}, {
    sval = 0x114c <Address 0x114c out of bounds>}, {sval = 0x10ac <Address 0x10ac out of bounds>}, {
    sval = 0x12f4 <Address 0x12f4 out of bounds>}, {sval = 0x2 <Address 0x2 out of bounds>}, {
    sval = 0x0}, {sval = 0x1a <Address 0x1a out of bounds>}, {sval = 0xf7aca6c8 "C"}, {
    sval = 0x4 <Address 0x4 out of bounds>}, {sval = 0x0}, {sval = 0xa732d8 ""}, {sval = 0xa7a5f0 ""}, {
    sval = 0x23a640 "\235ã¿\200ð' Dò' HÂ\a DÂ"}, {
    sval = 0xa7a630 "/", '*' <repeats 59 times>, "/\n/*  You may have to modify this file for it to be correct! */ \n/", '*' <repeats 19 times>, "       WRF\\frontend.wrf      ", '*' <repeats 19 times>, "/\n\n\ndir"...}, {sval = 0xa71198 "Basingstoke-T3"}, {sval = 0xa7adb7 '¬' <repeats 32 times>}, {
    sval = 0xa711a7 '¬' <repeats 32 times>}, {sval = 0xf6fe2e90 "öþ.\220\005½ÿ¨öþ.\220öþ-L÷"}, {
    sval = 0x1 <Address 0x1 out of bounds>}, {sval = 0x0}, {sval = 0x0}, {sval = 0x0}, {sval = 0x0}, {
    sval = 0x0}, {sval = 0x0}, {sval = 0x0}, {sval = 0x0}, {sval = 0xa70dc0 ""}, {sval = 0xa7a5f0 ""}, {
    sval = 0x23a640 "\235ã¿\200ð' Dò' HÂ\a DÂ"}, {sval = 0x0}, {sval = 0x0}, {sval = 0x0}, {
    sval = 0xff571078 ""}, {sval = 0x2440bc "\177ÿÿÇ\001"}, {sval = 0x6 <Address 0x6 out of bounds>}, {
    sval = 0xa71168 ""}, {sval = 0xa7a5f0 ""}, {sval = 0x23a640 "\235ã¿\200ð' Dò' HÂ\a DÂ"}, {
    sval = 0xa7a630 "/", '*' <repeats 59 times>, "/\n/*  You may have to modify this file for it to be correct! */ \n/", '*' <repeats 19 times>, "       WRF\\frontend.wrf      ", '*' <repeats 19 times>, "/\n\n\ndir"...}, {sval = 0xa70df0 ""}, {sval = 0xa7adb7 '¬' <repeats 32 times>}, {
    sval = 0xa70e30 '¬' <repeats 32 times>}, {sval = 0x0}, {sval = 0xf7f211c8 ""}, {sval = 0x0}, {
    sval = 0x0}, {sval = 0x0}, {sval = 0x0}, {sval = 0x0}, {sval = 0x0}, {sval = 0x0}, {sval = 0x0}, {
    sval = 0xa696e0 ""}, {sval = 0xa7a5f0 ""}, {sval = 0x23a640 "\235ã¿\200ð' Dò' HÂ\a DÂ"}, {
    sval = 0x0}, {sval = 0x0}, {sval = 0xf7aed630 "÷®Ö(÷®Ö("}, {sval = 0xff5710e0 ""}, {
    sval = 0x2440bc "\177ÿÿÇ\001"}, {sval = 0xa50c68 "÷®Õð÷®Õð"}, {sval = 0xa70dc0 ""}, {
    sval = 0xa7a5f0 ""}, {sval = 0x23a640 "\235ã¿\200ð' Dò' HÂ\a DÂ"}, {
    sval = 0xa7a630 "/", '*' <repeats 59 times>, "/\n/*  You may have to modify this file for it to be correct! */ \n/", '*' <repeats 19 times>, "       WRF\\frontend.wrf      ", '*' <repeats 19 times>, "/\n\n\ndir"...}, {sval = 0xa69710 "multiplay/maps/8c-clover.gam"}, {sval = 0xa7adb7 '¬' <repeats 32 times>}, {
    sval = 0xa6972d '¬' <repeats 32 times>}, {sval = 0x0}, {sval = 0xf7f211c8 ""}, {sval = 0x0}, {
    sval = 0xa577e0 ""}, {sval = 0x48 <Address 0x48 out of bounds>}, {
    sval = 0x50 <Address 0x50 out of bounds>}, {sval = 0xf7aed5e8 ""}, {sval = 0x0}, {
    sval = 0xf7aed5e0 ""}, {
    sval = 0xf7aeb000 "÷¥\037\200÷¥! ÷¬ÛH÷¥&@÷®Þ\234÷®Þ ÷®Þ\204÷¬v\220÷¬Û8÷¬vp÷®Þ\200÷¬Û(÷¬Ú\b÷¬Ù¨÷¬Ùè÷¬Ú(÷¬ÙÈ÷¬ÚH÷¬\231¨÷¬ÚX÷¬Ú`÷¬Úh÷¬Úp÷¬Úè÷¬ÚØ÷¬Ú\200÷¬ÚÀ÷¬Ú¨÷¬Ú\210÷¬Û\b÷¬x"}, {sval = 0xa5d3f0 ""}, {
    sval = 0xa7a5f0 ""}, {sval = 0x23a640 "\235ã¿\200ð' Dò' HÂ\a DÂ"}, {sval = 0x0}, {
    sval = 0xf7aec574 ""}, {
    sval = 0xf7aec4f8 "%\203\233ÛÏ\226:3­\234xæéC_\nÁ³¾\016EIZ|õ«N\006\216\234þÁ\212iw\213i\"_0-ªN²Ùµ·p?\t¨þÊ\211\206\224\nËbew\227Ï.\233\030èèÁ8\022\227\031\v)æÜ\va¤ïü\031\2033SÄÂË7%`\235\024\231r\nÞ6\016\035\002Ë\222¦Áviص\224P\202\aÇk`Á¿\\Viò/"}, {sval = 0xff571148 ""}, {sval = 0x2440bc "\177ÿÿÇ\001"}, {
    sval = 0x0}, {sval = 0xa696e0 ""}, {sval = 0xa7a5f0 ""}, {
    sval = 0x23a640 "\235ã¿\200ð' Dò' HÂ\a DÂ"}, {
    sval = 0xa7a630 "/", '*' <repeats 59 times>, "/\n/*  You may have to modify this file for it to be correct! */ \n/", '*' <repeats 19 times>, "       WRF\\frontend.wrf      ", '*' <repeats 19 times>, "/\n\n\ndir"...}, {sval = 0xa5d420 "wrf/multi/fog1.wrf"}, {sval = 0xa7adb7 '¬' <repeats 32 times>}, {
    sval = 0xa5d433 '¬' <repeats 32 times>}, {sval = 0xff5711b8 ""}, {
    sval = 0xf7f0c814 "\177ÿþs\224\020"}, {sval = 0xa577a0 "frame.c"}, {sval = 0xf7aed5e8 ""}, {
    sval = 0xf7aed5e8 ""}, {sval = 0xa577a0 "frame.c"}, {sval = 0xa577e8 "÷®Ö0÷®Ö0es/bin/images"}, {
    sval = 0x0}, {sval = 0x0}, {sval = 0x0}, {sval = 0x0}, {sval = 0x0}, {sval = 0x0}, {
    sval = 0xf7d28000 ""}, {sval = 0xa57778 "÷®Ö\b÷®Ö\b"}, {sval = 0x0}, {sval = 0x0}, {sval = 0x0}, {
    sval = 0x0}, {sval = 0x0}, {sval = 0xff5711c0 ""}, {sval = 0xf7f045f0 "\237À@"}, {
    sval = 0xa7a630 "/", '*' <repeats 59 times>, "/\n/*  You may have to modify this file for it to be correct! */ \n/", '*' <repeats 19 times>, "       WRF\\frontend.wrf      ", '*' <repeats 19 times>, "/\n\n\ndir"...}, {sval = 0xa5aa00 "multiplay/maps/8c-bananas.gam"}, {sval = 0xa7adb7 '¬' <repeats 32 times>}, {
    sval = 0xa5aa1e '¬' <repeats 32 times>}, {sval = 0x15 <Address 0x15 out of bounds>}}
        yyvs = (YYSTYPE *) 0xff570e8c
        yyvsp = (YYSTYPE *) 0xff570e9c
        yystacksize = 200
        yyval = {sval = 0x99a4ec "intfac4.png"}
        yylen = 3
#11 0x00235d78 in resLoad (pResFile=0x2569c8 "wrf/frontend.wrf", blockID=0,
    pLoadBuffer=0xf7160048 'Í' <repeats 200 times>..., bufferSize=5000000, psMemHeap=0xa50c38)
    at frameresource.c:152
        pBuffer = 0xa7a630 "/", '*' <repeats 59 times>, "/\n/*  You may have to modify this file for it to be correct! */ \n/", '*' <repeats 19 times>, "       WRF\\frontend.wrf      ", '*' <repeats 19 times>, "/\n\n\ndir"...
        size = 1926
        psOldHeap = (BLOCK_HEAP *) 0xa50c38
#12 0x00092978 in frontendInitialise (ResourceFile=0x2569c8 "wrf/frontend.wrf") at init.c:1256
No locals.
#13 0x000b6c5c in main (argc=1, argv=0xff571614) at main.c:579
        frameRet = FRAME_KILLFOCUS
        quit = 0
        Restart = 0
        paused = 0
        bVidMem = 0
        dispBitDepth = 8
        introVideoControl = 3
        loopStatus = 0
        psPaletteBuffer = (iColour *) 0x0
        pSize = 768
#14 0xf79aa63c in __libc_start_main () from /lib/libc.so.6
No symbol table info available.
#15 0x00014098 in _start ()
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/games/bin/warzone2100, process 387

Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: Warzone2100 on Sparc64 (Linux)

Post by Per »

Why don't you try the svn trunk version instead?

BTW, the bug happens in the reading of the ugly, binary *.img files. It reads structures right from the binary file. So if any of the standard types are of different width than the expected, or structure padding is different than expected, it will fail.
"Make a man a fire, you keep him warm for a day. Set a man on fire, you keep him warm for the rest of his life."
Giel
Regular
Regular
Posts: 725
Joined: 26 Dec 2006, 19:18
Contact:

Re: Warzone2100 on Sparc64 (Linux)

Post by Giel »

Yes looking at the latest backtrace I think this is the direct result from Warzone assuming fixed-width datatypes in the IMG reading code.
"First make sure it works good, only then make it look good." -- Giel
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh
Giel
Regular
Regular
Posts: 725
Joined: 26 Dec 2006, 19:18
Contact:

Re: Warzone2100 on Sparc64 (Linux)

Post by Giel »

Giel wrote: Yes looking at the latest backtrace I think this is the direct result from Warzone assuming fixed-width datatypes in the IMG reading code.
An attempt to fix this is in the subversion trunk, revision 1361.

PS: How to use Subversion to download Warzone code ( you can also use the daily source code snapshot, however you might need to wait 24 hours before that is up-to-date )
"First make sure it works good, only then make it look good." -- Giel
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh
shimitar
Greenhorn
Posts: 9
Joined: 24 May 2007, 15:02

Re: Warzone2100 on Sparc64 (Linux)

Post by shimitar »

Solved... its an endian problem.

This thread helped me fix it:
http://forums.gentoo.org/viewtopic-t-561453.html

Adding -D__BIG_ENDIAN__ to my CFLAGS fixed it. Unfortunately, this means that in some loading code (probably in the section you have already identified) something is not working on non-x86 like architectures.

I am getting now another error, just after the game start loading a new campaign (i can see the initial brief on black screen):

Code: Select all

willy@ultra5 ~ $ cat /tmp/warzone2100.gdmp
Program command: warzone2100
Version: 2.0.6
Type: Debug
Compiled on: May 28 2007

Operating system: Linux
Node name: ultra5
Release: 2.6.20-gentoo-r4
Version: #2 PREEMPT Tue May 15 17:32:19 Local time zone must be set--see
Machine: sparc64

Pointers: 32bit

Dump caused by signal: SIGABRT: Process abort signal

GLIBC raw backtrace:

GDB extended backtrace:
GNU gdb 6.6
Copyright (C) 2006 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 "sparc-unknown-linux-gnu"...
Attaching to process 25807
Reading symbols from /usr/games/bin/warzone2100...Reading symbols from /usr/lib/debug/usr/games/bin/warzone2100.debug...done.
Using host libthread_db library "/lib/libthread_db.so.1".
done.
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/libjpeg.so.62...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /lib/libz.so.1...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /lib/libm.so.6...Reading symbols from /usr/lib/debug/lib/libm-2.5.so.debug...done.
done.
Loaded symbols for /lib/libm.so.6
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 -135942128 (LWP 25807)]
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/opengl/xorg-x11/lib/libGL.so.1...done.
Loaded symbols for //usr//lib/opengl/xorg-x11/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/libopenal.so.0...done.
Loaded symbols for /usr/lib/libopenal.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 /usr/lib/libogg.so.0...done.
Loaded symbols for /usr/lib/libogg.so.0
Reading symbols from /usr/lib/libmad.so.0...done.
Loaded symbols for /usr/lib/libmad.so.0
Reading symbols from /lib/libc.so.6...Reading symbols from /usr/lib/debug/lib/libc-2.5.so.debug...done.
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...Reading symbols from /usr/lib/debug/lib/libdl-2.5.so.debug...done.
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 /usr/lib/libXext.so.6...done.
Loaded symbols for /usr/lib/libXext.so.6
Reading symbols from /usr/lib/libXxf86vm.so.1...done.
Loaded symbols for /usr/lib/libXxf86vm.so.1
Reading symbols from /usr/lib/libdrm.so.2...done.
Loaded symbols for /usr/lib/libdrm.so.2
Reading symbols from /usr/lib/gcc/sparc-unknown-linux-gnu/4.1.1/libstdc++.so.6...done.
Loaded symbols for /usr/lib/gcc/sparc-unknown-linux-gnu/4.1.1/libstdc++.so.6
Reading symbols from /usr/lib/gcc/sparc-unknown-linux-gnu/4.1.1/libgcc_s.so.1...done.
Loaded symbols for /usr/lib/gcc/sparc-unknown-linux-gnu/4.1.1/libgcc_s.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/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
Reading symbols from /usr/lib/gconv/ISO8859-1.so...Reading symbols from /usr/lib/debug/usr/lib/gconv/ISO8859-1.so.debug...done.
done.
Loaded symbols for /usr/lib/gconv/ISO8859-1.so
0xf7cd3d70 in __waitpid_nocancel () from /lib/libpthread.so.0
(gdb) #0  0xf7cd3d70 in __waitpid_nocancel () from /lib/libpthread.so.0
No symbol table info available.
#1  0x00234100 in posixExceptionHandler (signum=6, siginfo=0xff96ed28, sigcontext=0xff96eda8) at exceptionhandler.c:490
        btBuffer = {0x0 <repeats 20 times>}
        btSize = 0
        pid = 27646
        gdbPipe = {7, 8}
        dumpFile = 6
        allreadyRunning = 1
#2  <signal handler called>
No symbol table info available.
#3  0xf79819ec in raise () from /lib/libc.so.6
No symbol table info available.
#4  0xf798329c in abort () from /lib/libc.so.6
No symbol table info available.
#5  0xf79791fc in __assert_fail () from /lib/libc.so.6
No symbol table info available.
#6  0x0023b15c in memFree (pFileName=0x278890 "seqdisp.c", LineNumber=320, pMemToFree=0x0) at mem.c:266
        sNode = {key = 0, priority = 0, pObj = 0x0, psLeft = 0x0, psRight = 0x0, pFile = 0x251b10 "hci.c", line = 961,
  size = 4132794804}
        psDeleted = (MEM_NODE *) 0x0
        i = 0
        InvalidBottom = 0
        InvalidTop = -6884592
        pMemBase = (UBYTE *) 0x81360 "@\006ç-\001"
        psBlock = (BLOCK_HEAP *) 0xa50b00
        Size = 10816256
        __FUNCTION__ = "memFree"
        __PRETTY_FUNCTION__ = "memFree"
#7  0x001a6058 in seq_ReleaseVideoBuffers () at seqdisp.c:320
No locals.
#8  0x00081394 in intShutDown () at hci.c:968
No locals.
#9  0x00092cd8 in frontendShutdown () at init.c:1333
No locals.
#10 0x000b7648 in main (argc=1, argv=0xff96f584) at main.c:869
        frameRet = FRAME_OK
        quit = 0
        Restart = 1
        paused = 0
        bVidMem = 0
        dispBitDepth = 8
        introVideoControl = 3
        loopStatus = 0
        psPaletteBuffer = (iColour *) 0x0
        pSize = 768
#11 0xf796a63c in __libc_start_main () from /lib/libc.so.6
No symbol table info available.
#12 0x00014098 in _start ()
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/games/bin/warzone2100, process 25807
And i am going to investigate into this, i suspect it comes from me having only 128MB of ram... ?
Last edited by shimitar on 28 May 2007, 09:30, edited 1 time in total.
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Warzone2100 on Sparc64 (Linux)

Post by DevUrandom »

I would advise you to try the current SVN trunk.
It is more broken in gameplay aspects, but less crashy on x86_64, Mac and the like, so you may find your luck there, too.

For that specific problem you experience: It is "just" an assert, so building in non-debug mode will "fix" it. The other option would be to wait for 2.0.7 where that assert has been removed.
Post Reply