Bug#471244: simutrans: Segmentation fault immediately after program start

Martin Dickopp martin at zero-based.org
Sun Mar 16 23:45:15 UTC 2008


On Mon, Mar 17, 2008 at 12:16:55AM +0100, Ansgar Burchardt wrote:
> Hi,
> 
> Martin Dickopp wrote:
> > When starting simutrans (with the command "simutrans") from the
> > command line, it prints the following messages and dies with a
> > segmentation fault:
> 
> Can you run Simutrans under a debugger and check weather the crash
> occurs somewhere in strlen()? If so, it should be the same problem I
> had on PowerPC [1].

Yes, it appears to be the same issue (see below). I'll apply the patch
and report what happens.

Cheers,
Martin


> gdb /usr/games/simutrans
GNU gdb 6.7.1-debian
Copyright (C) 2007 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 "x86_64-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /usr/games/simutrans
[Thread debugging using libthread_db enabled]
Reading low level config data ...
Initializing tombstones ...
Reading simuconf.tab successful!
Preparing display ...
[New Thread 0x2b4698554830 (LWP 22712)]
Screen Flags: requested=10, actual=10
Loading font 'font/prop.fnt'
font/prop.fnt sucessfully loaded as old format prop font!
Init done.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2b4698554830 (LWP 22712)]
0x00002b4695c23020 in strlen () from /lib/libc.so.6
(gdb) bt
#0  0x00002b4695c23020 in strlen () from /lib/libc.so.6
#1  0x00002b4695befdba in vfprintf () from /lib/libc.so.6
#2  0x00002b4695c0db69 in vsprintf () from /lib/libc.so.6
#3  0x00000000004cf734 in cstring_t::vprintf (this=0x7ba668, format=0x55d00e "%s/", args=0x7fff15d90160)
    at utils/cstring_t.cc:284
#4  0x00000000004cf902 in cstring_t::printf (this=0xffffffffffffffa8, format=0x55d00e "%s/")
    at utils/cstring_t.cc:315
#5  0x00000000005105dd in simu_main (argc=1, argv=0x7fff15d91658) at simmain.cc:223
#6  0x00000000005468c5 in main (argc=1, argv=0x7fff15d91658) at simsys_s.c:602
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20080317/8c7dfb28/attachment.pgp 


More information about the Pkg-games-devel mailing list