segmentation fault when saving

Issue #53 resolved
Former user created an issue

Every time I try to save a game, I get a segmentation fault. I'm using debian 32bit, ja2 data is from the german windows version of ja2 (installed with wine) and I use a 1024x768 resolution. I have checked out commit 96dd0a479612bae4429c266abe94610d0ff5b163 . Maybe a null pointer problem or something? Here is a gdb output:

user1@debian:~/games/ja2-stracciatella$ gdb --args ./ja2 -resversion GERMAN -res 1024x768
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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 "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/user1/games/ja2-stracciatella/ja2...done.
(gdb) run
Starting program: /home/user1/games/ja2-stracciatella/ja2 -resversion GERMAN -res 1024x768
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/i686/cmov/libthread_db.so.1".
Game version: GERMAN
Configuration file:            '/home/user1/.ja2/ja2.ini'
Root game resources directory: '/home/user1/games/ja2install'
Data directory:                '/home/user1/games/ja2install/Data'
Tilecache directory:           '/home/user1/games/ja2install/Data/TILECACHE'
------------------------------------------------------------------------------
[New Thread 0xb698ab70 (LWP 18747)]
[New Thread 0xb6170b70 (LWP 18749)]

Program received signal SIGSEGV, Segmentatio    dit
    Helpn fault.
0x082af429 in InjectScrollStringIntoFile (f=0x8c365d0, s=0x0) at Build/Utils/Message.cc:689
689   UTF8String str(s->pString);
(gdb) 

Any help would be appreciated.

Comments (2)

  1. aheld84

    Sorry, one line was garbled during copy paste, it should of course mean

    Program received signal SIGSEGV, Segmentation fault.

    Also I tried commit 13527bcb10b14c1db21b960d15ab7428704c9405 which is one earlier then the one with the bug and there I can save without any problems. Hope this helps locating the issue.

  2. Log in to comment