News:

Simutrans Forum Archive
A complete record of the old Simutrans Forum.

Segfault on load

Started by Steven, February 09, 2012, 04:38:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Steven

Hello,

    Recently, Simutrans has started segfaulting when I attempt to load it with pak128.  It will load properly with "pak" or "pak128.Britain", however, so that implies to me that the issue is with pak128.

    It's Simutrans v. 111.0, using pak128 v. 2.0.0.  My operating system is Debian Wheezy, using kernel version 3.1.0-1 (amd64) and Xfce 4.8.

    Here is the information it provided me, but let me know if there's anything else you need.  Thank you!

:~$ simutrans -debug 5
Use work dir /usr/share/games/simutrans/
Reading low level config data ...
parse_simuconf() at config/simuconf.tab: Reading simuconf.tab successful!
Simutrans version  111.0 from Nov  4 2011
ERROR: obj_reader_t::read_file(): reading 'skin/ground.Outside.pak' failed!
Please report all errors to
team@64.simutrans.com
ERROR: obj_reader_t::load(): ground.Outside.pak not found, cannot guess tile size! (driving on left will not work!)
Please report all errors to
team@64.simutrans.com
ERROR: obj_reader_t::read_file(): reading 'skin/ground.Outside.pak' failed!
Please report all errors to
team@64.simutrans.com
ERROR: obj_reader_t::load(): ground.Outside.pak not found, cannot guess tile size! (driving on left will not work!)
Please report all errors to
team@64.simutrans.com
Preparing display ...
Screen Flags: requested=10, actual=10
Loading font 'font/prop.fnt'
font/prop.fnt successfully loaded as old format prop font!
Init done.
parse_simuconf() at pak128/config/simuconf.tab: Reading simuconf.tab successful!
Reading compatibility sound data ...
Loaded /usr/share/games/simutrans/pak128/sound/engine-start-diesel-1.wav to sample 0.
Loaded /usr/share/games/simutrans/pak128/sound/engine-start-diesel_d.wav to sample 1.
Loaded /usr/share/games/simutrans/pak128/sound/train-horn-diesel-0.wav to sample 2.
Loaded /usr/share/games/simutrans/pak128/sound/train-horn-steam-0.wav to sample 3.
Loaded /usr/share/games/simutrans/pak128/sound/click.wav to sample 4.
Loaded /usr/share/games/simutrans/pak128/sound/boing.wav to sample 5.
Loaded /usr/share/games/simutrans/pak128/sound/jackhammer.wav to sample 6.
Loaded /usr/share/games/simutrans/pak128/sound/gavel.wav to sample 7.
Loaded /usr/share/games/simutrans/pak128/sound/dock.wav to sample 8.
Loaded /usr/share/games/simutrans/pak128/sound/explosion.wav to sample 9.
Loaded /usr/share/games/simutrans/pak128/sound/cash.wav to sample 10.
could not load wav (Mix_LoadWAV_RW with NULL src)
Warning: sound_besch_t::get_sound_id(): sound "beaches.wav" not found
could not load wav (Mix_LoadWAV_RW with NULL src)
Warning: sound_besch_t::get_sound_id(): sound "forest.wav" not found
could not load wav (Mix_LoadWAV_RW with NULL src)
Warning: sound_besch_t::get_sound_id(): sound "Water.wav" not found
could not load wav (Mix_LoadWAV_RW with NULL src)
Warning: sound_besch_t::get_sound_id(): sound "desert.wav" not found
could not load wav (Mix_LoadWAV_RW with NULL src)
Warning: sound_besch_t::get_sound_id(): sound "tropic.wav" not found
could not load wav (Mix_LoadWAV_RW with NULL src)
Warning: sound_besch_t::get_sound_id(): sound "mediterran.wav" not found
could not load wav (Mix_LoadWAV_RW with NULL src)
Warning: sound_besch_t::get_sound_id(): sound "temperate.wav" not found
could not load wav (Mix_LoadWAV_RW with NULL src)
Warning: sound_besch_t::get_sound_id(): sound "tundra.wav" not found
could not load wav (Mix_LoadWAV_RW with NULL src)
Warning: sound_besch_t::get_sound_id(): sound "rocky.wav" not found
could not load wav (Mix_LoadWAV_RW with NULL src)
Warning: sound_besch_t::get_sound_id(): sound "arctic.wav" not found
Warning: translator::load(): no basic texts for language 'ce'
Warning: translator::load(): no basic texts for language 'tr'
Warning: translator::load(): no basic texts for language 'id'
Warning: translator::load(): no basic texts for language 'cn'
Loading BDF font 'font/Prop-Latin1.bdf'
Loading BDF font font/Prop-Latin1.bdf with 256 characters
Reading city configuration ...
Reading speedbonus configuration ...
Reading menu configuration ...
Reading object data from pak128/...
Message: grund_besch_t::register_besch(): setting raster width to 128
Loaded /usr/share/games/simutrans/pak128/sound/ship-horn_b.wav to sample 11.
Loaded /usr/share/games/simutrans/pak128/sound/train-horn-steam-1.wav to sample 12.
*** glibc detected *** /usr/games/simutrans: double free or corruption (!prev): 0x00007fed94f41680 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x75ab6)[0x7fed91697ab6]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x7fed9169c7ec]
/lib/x86_64-linux-gnu/libc.so.6(fclose+0x14d)[0x7fed91688a0d]
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0(+0x14b49)[0x7fed923a9b49]
/usr/lib/x86_64-linux-gnu/libSDL_mixer-1.2.so.0(Mix_LoadWAV_RW+0x246)[0x7fed9214e566]
/usr/games/simutrans(+0x1faf4a)[0x7fed9323cf4a]
/usr/games/simutrans(+0x78a03)[0x7fed930baa03]
/usr/games/simutrans(+0x7772d)[0x7fed930b972d]
/usr/games/simutrans(+0x7257e)[0x7fed930b457e]
/usr/games/simutrans(+0x725bd)[0x7fed930b45bd]
/usr/games/simutrans(+0x72822)[0x7fed930b4822]
/usr/games/simutrans(+0x737a8)[0x7fed930b57a8]
/usr/games/simutrans(+0x19254e)[0x7fed931d454e]
/usr/games/simutrans(main+0x5e)[0x7fed9308b68e]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd)[0x7fed91640ead]
/usr/games/simutrans(+0x496e1)[0x7fed9308b6e1]
======= Memory map: ========
7fed84000000-7fed84021000 rw-p 00000000 00:00 0
7fed84021000-7fed88000000 ---p 00000000 00:00 0
7fed896f5000-7fed896f6000 ---p 00000000 00:00 0
7fed896f6000-7fed89ef6000 rw-p 00000000 00:00 0
7fed89ef6000-7fed89f07000 r-xp 00000000 08:05 132787                     /usr/lib/libspeexdsp.so.1.5.0
7fed89f07000-7fed8a107000 ---p 00011000 08:05 132787                     /usr/lib/libspeexdsp.so.1.5.0
7fed8a107000-7fed8a108000 rw-p 00011000 08:05 132787                     /usr/lib/libspeexdsp.so.1.5.0
7fed8a108000-7fed8a10a000 r-xp 00000000 08:05 146070                     /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_rate_speexrate.so
7fed8a10a000-7fed8a309000 ---p 00002000 08:05 146070                     /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_rate_speexrate.so
7fed8a309000-7fed8a30a000 rw-p 00001000 08:05 146070                     /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_rate_speexrate.so
7fed8a30a000-7fed8a315000 r-xp 00000000 08:05 531035                     /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fed8a315000-7fed8a514000 ---p 0000b000 08:05 531035                     /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fed8a514000-7fed8a515000 r--p 0000a000 08:05 531035                     /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fed8a515000-7fed8a516000 rw-p 0000b000 08:05 531035                     /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fed8a516000-7fed8a520000 r-xp 00000000 08:05 531031                     /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fed8a520000-7fed8a71f000 ---p 0000a000 08:05 531031                     /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fed8a71f000-7fed8a720000 r--p 00009000 08:05 531031                     /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fed8a720000-7fed8a721000 rw-p 0000a000 08:05 531031                     /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fed8a721000-7fed8a728000 r-xp 00000000 08:05 530078                     /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7fed8a728000-7fed8a927000 ---p 00007000 08:05 530078                     /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7fed8a927000-7fed8a928000 r--p 00006000 08:05 530078                     /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7fed8a928000-7fed8a929000 rw-p 00007000 08:05 530078                     /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7fed8a929000-7fed8aaaa000 rw-s 00000000 00:04 786445                     /SYSV00000000 (deleted)
7fed8aaaa000-7fed8aaaf000 r-xp 00000000 08:05 139736                     /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7fed8aaaf000-7fed8acaf000 ---p 00005000 08:05 139736                     /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7fed8acaf000-7fed8acb0000 rw-p 00005000 08:05 139736                     /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7fed8acb0000-7fed8acb9000 r-xp 00000000 08:05 139738                     /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7fed8acb9000-7fed8aeb9000 ---p 00009000 08:05 139738                     /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7fed8aeb9000-7fed8aeba000 rw-p 00009000 08:05 139738                     /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7fed8aeba000-7fed8b121000 r--p 00000000 08:05 138015                     /usr/lib/locale/locale-archive
7fed8b121000-7fed8b134000 r-xp 00000000 08:05 524623                     /lib/x86_64-linux-gnu/libresolv-2.13.so
7fed8b134000-7fed8b333000 ---p 00013000 08:05 524623                     /lib/x86_64-linux-gnu/libresolv-2.13.so
7fed8b333000-7fed8b334000 r--p 00012000 08:05 524623                     /lib/x86_64-linux-gnu/libresolv-2.13.so
7fed8b334000-7fed8b335000 rw-p 00013000 08:05 524623                     /lib/x86_64-linux-gnu/libresolv-2.13.so
7fed8b335000-7fed8b337000 rw-p 00000000 00:00 0
7fed8b337000-7fed8b5ec000 r-xp 00000000 08:05 134741                     /usr/lib/libvorbisenc.so.2.0.8
7fed8b5ec000-7fed8b7eb000 ---p 002b5000 08:05 134741                     /usr/lib/libvorbisenc.so.2.0.8
7fed8b7eb000-7fed8b807000 rw-p 002b4000 08:05 134741                     /usr/lib/libvorbisenc.so.2.0.8
7fed8b807000-7fed8b81c000 r-xp 00000000 08:05 530933                     /lib/x86_64-linux-gnu/libnsl-2.13.so
7fed8b81c000-7fed8ba1b000 ---p 00015000 08:05 530933                     /lib/x86_64-linux-gnu/libnsl-2.13.so
7fed8ba1b000-7fed8ba1c000 r--p 00014000 08:05 530933                     /lib/x86_64-linux-gnu/libnsl-2.13.so
7fed8ba1c000-7fed8ba1d000 rw-p 00015000 08:05 530933                     /lib/x86_64-linux-gnu/libnsl-2.13.so
7fed8ba1d000-7fed8ba1f000 rw-p 00000000 00:00 0
7fed8ba1f000-7fed8ba2e000 r-xp 00000000 08:05 140609                     /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
7fed8ba2e000-7fed8bc2d000 ---p 0000f000 08:05 140609                     /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
7fed8bc2d000-7fed8bc2e000 rw-p 0000e000 08:05 140609                     /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
7fed8bc2e000-7fed8bc32000 r-xp 00000000 08:05 521365                     /lib/libuuid.so.1.3.0
7fed8bc32000-7fed8be31000 ---p 00004000 08:05 521365                     /lib/libuuid.so.1.3.0
7fed8be31000-7fed8be32000 rw-p 00003000 08:05 521365                     /lib/libuuid.so.1.3.0
7fed8be32000-7fed8be55000 r-xp 00000000 08:05 521271                     /lib/x86_64-linux-gnu/libtinfo.so.5.9
7fed8be55000-7fed8c055000 ---p 00023000 08:05 521271                     /lib/x86_64-linux-gnu/libtinfo.so.5.9
7fed8c055000-7fed8c059000 r--p 00023000 08:05 521271                     /lib/x86_64-linux-gnu/libtinfo.so.5.9
7fed8c059000-7fed8c05a000 rw-p 00027000 08:05 521271                     /lib/x86_64-linux-gnu/libtinfo.so.5.9
7fed8c05a000-7fed8c05f000 r-xp 00000000 08:05 139318                     /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7fed8c05f000-7fed8c25e000 ---p 00005000 08:05 139318                     /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7fed8c25e000-7fed8c25f000 r--p 00004000 08:05 139318                     /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7fed8c25f000-7fed8c260000 rw-p 00005000 08:05 139318                     /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7fed8c260000-7fed8c262000 r-xp 00000000 08:05 139316                     /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7fed8c262000-7fed8c461000 ---p 00002000 08:05 139316                     /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7fed8c461000-7fed8c462000 r--p 00001000 08:05 139316                     /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7fed8c462000-7fed8c463000 rw-p 00002000 08:05 139316                     /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7fed8c463000-7fed8c467000 r-xp 00000000 08:05 521294                     /lib/x86_64-linux-gnu/libattr.so.1.1.0
7fed8c467000-7fed8c666000 ---p 00004000 08:05 521294                     /lib/x86_64-linux-gnu/libattr.so.1.1.0
7fed8c666000-7fed8c667000 rw-p 00003000 08:05 521294                     /lib/x86_64-linux-gnu/libattr.so.1.1.0
7fed8c667000-7fed8c66c000 r-xp 00000000 08:05 139835                     /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1
7fed8c66c000-7fed8c86b000 ---p 00005000 08:05 139835                     /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1
7fed8c86b000-7fed8c86c000 rw-p 00004000 08:05 139835                     /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1
7fed8c86c000-7fed8c8cd000 r-xp 00000000 08:05 131215                     /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.25
7fed8c8cd000-7fed8cacc000 ---p 00061000 08:05 131215                     /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.25
7fed8cacc000-7fed8cace000 r--p 00060000 08:05 131215                     /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.25
7fed8cace000-7fed8cacf000 rw-p 00062000 08:05 131215                     /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.25
7fed8cacf000-7fed8cad3000 rw-p 00000000 00:00 0
7fed8cad3000-7fed8cc3e000 r-xp 00000000 08:05 138595                     /usr/lib/x86_64-linux-gnu/libsamplerate.so.0.1.8
7fed8cc3e000-7fed8ce3d000 ---p 0016b000 08:05 138595                     /usr/lib/x86_64-linux-gnu/libsamplerate.so.0.1.8
7fed8ce3d000-7fed8ce3e000 r--p 0016a000 08:05 138595                     /usr/lib/x86_64-linux-gnu/libsamplerate.so.0.1.8
7fed8ce3e000-7fed8ce3f000 rw-p 0016b000 08:05 138595                     /usr/lib/x86_64-linux-gnu/libsamplerate.so.0.1.8
7fed8ce3f000-7fed8ce48000 r-xp 00000000 08:05 521348                     /lib/x86_64-linux-gnu/libwrap.so.0.7.6
7fed8ce48000-7fed8d047000 ---p 00009000 08:05 521348                     /lib/x86_64-linux-gnu/libwrap.so.0.7.6
7fed8d047000-7fed8d048000 r--p 00008000 08:05 521348                     /lib/x86_64-linux-gnu/libwrap.so.0.7.6
7fed8d048000-7fed8d049000 rw-p 00009000 08:05 521348                     /lib/x86_64-linux-gnu/libwrap.so.0.7.6
7fed8d049000-7fed8d04a000 rw-p 00000000 00:00 0
7fed8d04a000-7fed8d04f000 r-xp 00000000 08:05 140907                     /usr/lib/x86_64-linux-gnu/libXtst.so.6.1.0
7fed8d04f000-7fed8d24f000 ---p 00005000 08:05 140907                     /usr/lib/x86_64-linux-gnu/libXtst.so.6.1.0
7fed8d24f000-7fed8d250000 rw-p 00005000 08:05 140907                     /usr/lib/x86_64-linux-gnu/libXtst.so.6.1.0
7fed8d250000-7fed8d257000 r-xp 00000000 08:05 139846                     /usr/lib/x86_64-linux-gnu/libSM.so.6.0.1
7fed8d257000-7fed8d456000 ---p 00007000 08:05 139846                     /usr/lib/x86_64-linux-gnu/libSM.so.6.0.1
7fed8d456000-7fed8d457000 rw-p 00006000 08:05 139846                     /usr/lib/x86_64-linux-gnu/libSM.so.6.0.1
7fed8d457000-7fed8d46e000 r-xp 00000000 08:05 139844                     /usr/lib/x86_64-linux-gnu/libICE.so.6.3.0
7fed8d46e000-7fed8d66d000 ---p 00017000 08:05 139844                     /usr/lib/x86_64-linux-gnu/libICE.so.6.3.0
7fed8d66d000-7fed8d66e000 rw-p 00016000 08:05 139844                     /usr/lib/x86_64-linux-gnu/libICE.so.6.3.0
7fed8d66e000-7fed8d672000 rw-p 00000000 00:00 0
7fed8d672000-7fed8d673000 r-xp 00000000 08:05 140905                     /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
7fed8d673000-7fed8d872000 ---p 00001000 08:05 140905                     /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
7fed8d872000-7fed8d873000 rw-p 00000000 08:05 140905                     /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
7fed8d873000-7fed8d8a1000 r-xp 00000000 08:05 521569                     /lib/x86_64-linux-gnu/libncursesw.so.5.9
7fed8d8a1000-7fed8daa0000 ---p 0002e000 08:05 521569                     /lib/x86_64-linux-gnu/libncursesw.so.5.9
7fed8daa0000-7fed8daa1000 r--p 0002d000 08:05 521569                     /lib/x86_64-linux-gnu/libncursesw.so.5.9
7fed8daa1000-7fed8daa2000 rw-p 0002e000 08:05 521569                     /lib/x86_64-linux-gnu/libncursesw.so.5.9
7fed8daa2000-7fed8db98000 r-xp 00000000 08:05 533295                     /lib/x86_64-linux-gnu/libslang.so.2.2.4
7fed8db98000-7fed8dd97000 ---p 000f6000 08:05 533295                     /lib/x86_64-linux-gnu/libslang.so.2.2.4
7fed8dd97000-7fed8ddb4000 rw-p 000f5000 08:05 533295                     /lib/x86_64-linux-gnu/libslang.so.2.2.4
7fed8ddb4000-7fed8de18000 rw-p 00000000 00:00 0
7fed8de18000-7fed8de37000 r-xp 00000000 08:05 144185                     /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7fed8de37000-7fed8e036000 ---p 0001f000 08:05 144185                     /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7fed8e036000-7fed8e037000 r--p 0001e000 08:05 144185                     /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7fed8e037000-7fed8e038000 rw-p 0001f000 08:05 144185                     /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7fed8e038000-7fed8e07b000 r-xp 00000000 08:05 525093                     /lib/x86_64-linux-gnu/libdbus-1.so.3.5.8
7fed8e07b000-7fed8e27a000 ---p 00043000 08:05 525093                     /lib/x86_64-linux-gnu/libdbus-1.so.3.5.8
7fed8e27a000-7fed8e27c000 r--p 00042000 08:05 525093                     /lib/x86_64-linux-gnu/libdbus-1.so.3.5.8
7fed8e27c000-7fed8e27d000 rw-p 00044000 08:05 525093                     /lib/x86_64-linux-gnu/libdbus-1.so.3.5.8
7fed8e27d000-7fed8e284000 r-xp 00000000 08:05 140898                     /usr/lib/libjson.so.0.0.1
7fed8e284000-7fed8e483000 ---p 00007000 08:05 140898                     /usr/lib/libjson.so.0.0.1
7fed8e483000-7fed8e484000 rw-p 00006000 08:05 140898                     /usr/lib/libjson.so.0.0.1
7fed8e484000-7fed8e488000 r-xp 00000000 08:05 525105                     /lib/libcap.so.2.22
7fed8e488000-7fed8e687000 ---p 00004000 08:05 525105                     /lib/libcap.so.2.22
7fed8e687000-7fed8e688000 rw-p 00003000 08:05 525105                     /lib/libcap.so.2.22
7fed8e688000-7fed8e6e9000 r-xp 00000000 08:05 140909                     /usr/lib/x86_64-linux-gnu/libpulsecommon-1.0.so
7fed8e6e9000-7fed8e8e9000 ---p 00061000 08:05 140909                     /usr/lib/x86_64-linux-gnu/libpulsecommon-1.0.so
7fed8e8e9000-7fed8e8eb000 rw-p 00061000 08:05 140909                     /usr/lib/x86_64-linux-gnu/libpulsecommon-1.0.so
7fed8e8eb000-7fed8e8f2000 r-xp 00000000 08:05 531039                     /lib/x86_64-linux-gnu/librt-2.13.so
7fed8e8f2000-7fed8eaf1000 ---p 00007000 08:05 531039                     /lib/x86_64-linux-gnu/librt-2.13.so
7fed8eaf1000-7fed8eaf2000 r--p 00006000 08:05 531039                     /lib/x86_64-linux-gnu/librt-2.13.so
7fed8eaf2000-7fed8eaf3000 rw-p 00007000 08:05 531039                     /lib/x86_64-linux-gnu/librt-2.13.so
7fed8eaf3000-7fed8eb12000 r-xp 00000000 08:05 139692                     /usr/lib/libmad.so.0.2.1
7fed8eb12000-7fed8ed11000 ---p 0001f000 08:05 139692                     /usr/lib/libmad.so.0.2.1
7fed8ed11000-7fed8ed12000 rw-p 0001e000 08:05 139692                     /usr/lib/libmad.so.0.2.1
7fed8ed12000-7fed8ed5d000 r-xp 00000000 08:05 140137                     /usr/lib/x86_64-linux-gnu/libFLAC.so.8.2.0Aborted
:~$


P.S. I looked around for some type of instructions on the proper way to format a bug report, but could not find any.  Hope this is okay!

Dwachs

#1
Could you try to run this with gdb ? ie 'gdb simutrans', then inside gdb 'r -debug 3 -objects pak128', and after the crash create a backtrace with 'bt'.

Edit: Could you try to find out which version of libSDL-mixer you have installed?
Parsley, sage, rosemary, and maggikraut.

Steven

Sure, sorry.  After I posted earlier, I realised that I hadn't given you a backtrace, but I didn't have time to update the post.  It doesn't look like a very useful backtrace, unfortunately . . . but hopefully it'll still be useful to you.  As for libSDL-mixer, it appears that I have version 1.2.12-1, from Debian's apt repository.

Thanks again!

(gdb) r -debug 3 -objects pak128
Starting program: /usr/games/simutrans -debug 3 -objects pak128
[Thread debugging using libthread_db enabled]
Use work dir /usr/share/games/simutrans/
Reading low level config data ...
parse_simuconf() at config/simuconf.tab: Reading simuconf.tab successful!
Simutrans version  111.0 from Nov  4 2011
ERROR: obj_reader_t::read_file(): reading 'skin/ground.Outside.pak' failed!
Please report all errors to
team@64.simutrans.com
ERROR: obj_reader_t::load(): ground.Outside.pak not found, cannot guess tile size! (driving on left will not work!)
Please report all errors to
team@64.simutrans.com
ERROR: obj_reader_t::read_file(): reading 'skin/ground.Outside.pak' failed!
Please report all errors to
team@64.simutrans.com
ERROR: obj_reader_t::load(): ground.Outside.pak not found, cannot guess tile size! (driving on left will not work!)
Please report all errors to
team@64.simutrans.com
Preparing display ...
Screen Flags: requested=10, actual=10
Loading font 'font/prop.fnt'
font/prop.fnt successfully loaded as old format prop font!
Init done.
parse_simuconf() at pak128/config/simuconf.tab: Reading simuconf.tab successful!
[New Thread 0x7fffeeeb2700 (LWP 2726)]
Reading compatibility sound data ...
Loaded /usr/share/games/simutrans/pak128/sound/engine-start-diesel-1.wav to sample 0.
Loaded /usr/share/games/simutrans/pak128/sound/engine-start-diesel_d.wav to sample 1.
Loaded /usr/share/games/simutrans/pak128/sound/train-horn-diesel-0.wav to sample 2.
Loaded /usr/share/games/simutrans/pak128/sound/train-horn-steam-0.wav to sample 3.
Loaded /usr/share/games/simutrans/pak128/sound/click.wav to sample 4.
Loaded /usr/share/games/simutrans/pak128/sound/boing.wav to sample 5.
Loaded /usr/share/games/simutrans/pak128/sound/jackhammer.wav to sample 6.
Loaded /usr/share/games/simutrans/pak128/sound/gavel.wav to sample 7.
Loaded /usr/share/games/simutrans/pak128/sound/dock.wav to sample 8.
Loaded /usr/share/games/simutrans/pak128/sound/explosion.wav to sample 9.
Loaded /usr/share/games/simutrans/pak128/sound/cash.wav to sample 10.
could not load wav (Mix_LoadWAV_RW with NULL src)
Warning: sound_besch_t::get_sound_id(): sound "beaches.wav" not found
could not load wav (Mix_LoadWAV_RW with NULL src)
Warning: sound_besch_t::get_sound_id(): sound "forest.wav" not found
could not load wav (Mix_LoadWAV_RW with NULL src)
Warning: sound_besch_t::get_sound_id(): sound "Water.wav" not found
could not load wav (Mix_LoadWAV_RW with NULL src)
Warning: sound_besch_t::get_sound_id(): sound "desert.wav" not found
could not load wav (Mix_LoadWAV_RW with NULL src)
Warning: sound_besch_t::get_sound_id(): sound "tropic.wav" not found
could not load wav (Mix_LoadWAV_RW with NULL src)
Warning: sound_besch_t::get_sound_id(): sound "mediterran.wav" not found
could not load wav (Mix_LoadWAV_RW with NULL src)
Warning: sound_besch_t::get_sound_id(): sound "temperate.wav" not found
could not load wav (Mix_LoadWAV_RW with NULL src)
Warning: sound_besch_t::get_sound_id(): sound "tundra.wav" not found
could not load wav (Mix_LoadWAV_RW with NULL src)
Warning: sound_besch_t::get_sound_id(): sound "rocky.wav" not found
could not load wav (Mix_LoadWAV_RW with NULL src)
Warning: sound_besch_t::get_sound_id(): sound "arctic.wav" not found
Warning: translator::load(): no basic texts for language 'ce'
Warning: translator::load(): no basic texts for language 'tr'
Warning: translator::load(): no basic texts for language 'id'
Warning: translator::load(): no basic texts for language 'cn'
Loading BDF font 'font/Prop-Latin1.bdf'
Loading BDF font font/Prop-Latin1.bdf with 256 characters
Reading city configuration ...
Reading speedbonus configuration ...
Reading menu configuration ...
Reading object data from pak128/...
Message: grund_besch_t::register_besch(): setting raster width to 128
Loaded /usr/share/games/simutrans/pak128/sound/ship-horn_b.wav to sample 11.
Loaded /usr/share/games/simutrans/pak128/sound/train-horn-steam-1.wav to sample 12.
*** glibc detected *** /usr/games/simutrans: double free or corruption (!prev): 0x00005555565f5160 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x75ab6)[0x7ffff6654ab6]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x7ffff66597ec]
/lib/x86_64-linux-gnu/libc.so.6(fclose+0x14d)[0x7ffff6645a0d]
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0(+0x14b49)[0x7ffff7366b49]
/usr/lib/x86_64-linux-gnu/libSDL_mixer-1.2.so.0(Mix_LoadWAV_RW+0x246)[0x7ffff710b566]
/usr/games/simutrans(+0x1faf4a)[0x55555574ef4a]
/usr/games/simutrans(+0x78a03)[0x5555555cca03]
/usr/games/simutrans(+0x7772d)[0x5555555cb72d]
/usr/games/simutrans(+0x7257e)[0x5555555c657e]
/usr/games/simutrans(+0x725bd)[0x5555555c65bd]
/usr/games/simutrans(+0x72822)[0x5555555c6822]
/usr/games/simutrans(+0x737a8)[0x5555555c77a8]
/usr/games/simutrans(+0x19254e)[0x5555556e654e]
/usr/games/simutrans(main+0x5e)[0x55555559d68e]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd)[0x7ffff65fdead]
/usr/games/simutrans(+0x496e1)[0x55555559d6e1]
======= Memory map: ========
555555554000-5555557ab000 r-xp 00000000 08:05 155926                     /usr/games/simutrans
5555559aa000-5555559bf000 r--p 00256000 08:05 155926                     /usr/games/simutrans
5555559bf000-5555559c0000 rw-p 0026b000 08:05 155926                     /usr/games/simutrans
5555559c0000-5555565fa000 rw-p 00000000 00:00 0                          [heap]
7fffe8000000-7fffe8021000 rw-p 00000000 00:00 0
7fffe8021000-7fffec000000 ---p 00000000 00:00 0
7fffee6b2000-7fffee6b3000 ---p 00000000 00:00 0
7fffee6b3000-7fffeeeb3000 rw-p 00000000 00:00 0
7fffeeeb3000-7fffeeec4000 r-xp 00000000 08:05 132787                     /usr/lib/libspeexdsp.so.1.5.0
7fffeeec4000-7fffef0c4000 ---p 00011000 08:05 132787                     /usr/lib/libspeexdsp.so.1.5.0
7fffef0c4000-7fffef0c5000 rw-p 00011000 08:05 132787                     /usr/lib/libspeexdsp.so.1.5.0
7fffef0c5000-7fffef0c7000 r-xp 00000000 08:05 146070                     /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_rate_speexrate.so
7fffef0c7000-7fffef2c6000 ---p 00002000 08:05 146070                     /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_rate_speexrate.so
7fffef2c6000-7fffef2c7000 rw-p 00001000 08:05 146070                     /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_rate_speexrate.so
7fffef2c7000-7fffef2d2000 r-xp 00000000 08:05 531035                     /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fffef2d2000-7fffef4d1000 ---p 0000b000 08:05 531035                     /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fffef4d1000-7fffef4d2000 r--p 0000a000 08:05 531035                     /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fffef4d2000-7fffef4d3000 rw-p 0000b000 08:05 531035                     /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fffef4d3000-7fffef4dd000 r-xp 00000000 08:05 531031                     /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fffef4dd000-7fffef6dc000 ---p 0000a000 08:05 531031                     /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fffef6dc000-7fffef6dd000 r--p 00009000 08:05 531031                     /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fffef6dd000-7fffef6de000 rw-p 0000a000 08:05 531031                     /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fffef6de000-7fffef6e5000 r-xp 00000000 08:05 530078                     /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7fffef6e5000-7fffef8e4000 ---p 00007000 08:05 530078                     /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7fffef8e4000-7fffef8e5000 r--p 00006000 08:05 530078                     /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7fffef8e5000-7fffef8e6000 rw-p 00007000 08:05 530078                     /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7fffef8e6000-7fffefa67000 rw-s 00000000 00:04 1245207                    /SYSV00000000 (deleted)
7fffefa67000-7fffefa6c000 r-xp 00000000 08:05 139736                     /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7fffefa6c000-7fffefc6c000 ---p 00005000 08:05 139736                     /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7fffefc6c000-7fffefc6d000 rw-p 00005000 08:05 139736                     /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7fffefc6d000-7fffefc76000 r-xp 00000000 08:05 139738                     /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7fffefc76000-7fffefe76000 ---p 00009000 08:05 139738                     /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7fffefe76000-7fffefe77000 rw-p 00009000 08:05 139738                     /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7fffefe77000-7ffff00de000 r--p 00000000 08:05 138015                     /usr/lib/locale/locale-archive
7ffff00de000-7ffff00f1000 r-xp 00000000 08:05 524623                     /lib/x86_64-linux-gnu/libresolv-2.13.so
7ffff00f1000-7ffff02f0000 ---p 00013000 08:05 524623                     /lib/x86_64-linux-gnu/libresolv-2.13.so
7ffff02f0000-7ffff02f1000 r--p 00012000 08:05 524623                     /lib/x86_64-linux-gnu/libresolv-2.13.so
7ffff02f1000-7ffff02f2000 rw-p 00013000 08:05 524623                     /lib/x86_64-linux-gnu/libresolv-2.13.so
7ffff02f2000-7ffff02f4000 rw-p 00000000 00:00 0
7ffff02f4000-7ffff05a9000 r-xp 00000000 08:05 134741                     /usr/lib/libvorbisenc.so.2.0.8
7ffff05a9000-7ffff07a8000 ---p 002b5000 08:05 134741                     /usr/lib/libvorbisenc.so.2.0.8
7ffff07a8000-7ffff07c4000 rw-p 002b4000 08:05 134741                     /usr/lib/libvorbisenc.so.2.0.8
7ffff07c4000-7ffff07d9000 r-xp 00000000 08:05 530933                     /lib/x86_64-linux-gnu/libnsl-2.13.so
7ffff07d9000-7ffff09d8000 ---p 00015000 08:05 530933                     /lib/x86_64-linux-gnu/libnsl-2.13.so
7ffff09d8000-7ffff09d9000 r--p 00014000 08:05 530933                     /lib/x86_64-linux-gnu/libnsl-2.13.so
7ffff09d9000-7ffff09da000 rw-p 00015000 08:05 530933                     /lib/x86_64-linux-gnu/libnsl-2.13.so
7ffff09da000-7ffff09dc000 rw-p 00000000 00:00 0
7ffff09dc000-7ffff09eb000 r-xp 00000000 08:05 140609                     /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
7ffff09eb000-7ffff0bea000 ---p 0000f000 08:05 140609                     /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
7ffff0bea000-7ffff0beb000 rw-p 0000e000 08:05 140609                     /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
7ffff0beb000-7ffff0bef000 r-xp 00000000 08:05 521365                     /lib/libuuid.so.1.3.0
7ffff0bef000-7ffff0dee000 ---p 00004000 08:05 521365                     /lib/libuuid.so.1.3.0
7ffff0dee000-7ffff0def000 rw-p 00003000 08:05 521365                     /lib/libuuid.so.1.3.0
7ffff0def000-7ffff0e12000 r-xp 00000000 08:05 521271                     /lib/x86_64-linux-gnu/libtinfo.so.5.9
7ffff0e12000-7ffff1012000 ---p 00023000 08:05 521271                     /lib/x86_64-linux-gnu/libtinfo.so.5.9
7ffff1012000-7ffff1016000 r--p 00023000 08:05 521271                     /lib/x86_64-linux-gnu/libtinfo.so.5.9
7ffff1016000-7ffff1017000 rw-p 00027000 08:05 521271                     /lib/x86_64-linux-gnu/libtinfo.so.5.9
7ffff1017000-7ffff101c000 r-xp 00000000 08:05 139318                     /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7ffff101c000-7ffff121b000 ---p 00005000 08:05 139318                     /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7ffff121b000-7ffff121c000 r--p 00004000 08:05 139318                     /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7ffff121c000-7ffff121d000 rw-p 00005000 08:05 139318                     /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7ffff121d000-7ffff121f000 r-xp 00000000 08:05 139316                     /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7ffff121f000-7ffff141e000 ---p 00002000 08:05 139316                     /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7ffff141e000-7ffff141f000 r--p 00001000 08:05 139316                     /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7ffff141f000-7ffff1420000 rw-p 00002000 08:05 139316                     /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7ffff1420000-7ffff1424000 r-xp 00000000 08:05 521294                     /lib/x86_64-linux-gnu/libattr.so.1.1.0
7ffff1424000-7ffff1623000 ---p 00004000 08:05 521294                     /lib/x86_64-linux-gnu/libattr.so.1.1.0
7ffff1623000-7ffff1624000 rw-p 00003000 08:05 521294                     /lib/x86_64-linux-gnu/libattr.so.1.1.0
7ffff1624000-7ffff1629000 r-xp 00000000 08:05 139835                     /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1
7ffff1629000-7ffff1828000 ---p 00005000 08:05 139835                     /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1
7ffff1828000-7ffff1829000 rw-p 00004000 08:05 139835                     /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1
7ffff1829000-7ffff188a000 r-xp 00000000 08:05 131215                     /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.25
7ffff188a000-7ffff1a89000 ---p 00061000 08:05 131215                     /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.25
7ffff1a89000-7ffff1a8b000 r--p 00060000 08:05 131215                     /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.25
7ffff1a8b000-7ffff1a8c000 rw-p 00062000 08:05 131215                     /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.25
7ffff1a8c000-7ffff1a90000 rw-p 00000000 00:00 0
7ffff1a90000-7ffff1bfb000 r-xp 00000000 08:05 138595                     /usr/lib/x86_64-linux-gnu/libsamplerate.so.0.1.8
7ffff1bfb000-7ffff1dfa000 ---p 0016b000 08:05 138595                     /usr/lib/x86_64-linux-gnu/libsamplerate.so.0.1.8
7ffff1dfa000-7ffff1dfb000 r--p 0016a000 08:05 138595                     /usr/lib/x86_64-linux-gnu/libsamplerate.so.0.1.8
7ffff1dfb000-7ffff1dfc000 rw-p 0016b000 08:05 138595                     /usr/lib/x86_64-linux-gnu/libsamplerate.so.0.1.8
7ffff1dfc000-7ffff1e05000 r-xp 00000000 08:05 521348                     /lib/x86_64-linux-gnu/libwrap.so.0.7.6
7ffff1e05000-7ffff2004000 ---p 00009000 08:05 521348                     /lib/x86_64-linux-gnu/libwrap.so.0.7.6
7ffff2004000-7ffff2005000 r--p 00008000 08:05 521348                     /lib/x86_64-linux-gnu/libwrap.so.0.7.6
7ffff2005000-7ffff2006000 rw-p 00009000 08:05 521348                     /lib/x86_64-linux-gnu/libwrap.so.0.7.6
7ffff2006000-7ffff2007000 rw-p 00000000 00:00 0
7ffff2007000-7ffff200c000 r-xp 00000000 08:05 140907                     /usr/lib/x86_64-linux-gnu/libXtst.so.6.1.0
7ffff200c000-7ffff220c000 ---p 00005000 08:05 140907                     /usr/lib/x86_64-linux-gnu/libXtst.so.6.1.0
7ffff220c000-7ffff220d000 rw-p 00005000 08:05 140907                     /usr/lib/x86_64-linux-gnu/libXtst.so.6.1.0
7ffff220d000-7ffff2214000 r-xp 00000000 08:05 139846                     /usr/lib/x86_64-linux-gnu/libSM.so.6.0.1
7ffff2214000-7ffff2413000 ---p 00007000 08:05 139846                     /usr/lib/x86_64-linux-gnu/libSM.so.6.0.1
7ffff2413000-7ffff2414000 rw-p 00006000 08:05 139846                     /usr/lib/x86_64-linux-gnu/libSM.so.6.0.1
7ffff2414000-7ffff242b000 r-xp 00000000 08:05 139844                     /usr/lib/x86_64-linux-gnu/libICE.so.6.3.0
7ffff242b000-7ffff262a000 ---p 00017000 08:05 139844                     /usr/lib/x86_64-linux-gnu/libICE.so.6.3.0
7ffff262a000-7ffff262b000 rw-p 00016000 08:05 139844                     /usr/lib/x86_64-linux-gnu/libICE.so.6.3.0
7ffff262b000-7ffff262f000 rw-p 00000000 00:00 0
7ffff262f000-7ffff2630000 r-xp 00000000 08:05 140905                     /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
7ffff2630000-7ffff282f000 ---p 00001000 08:05 140905                     /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
7ffff282f000-7ffff2830000 rw-p 00000000 08:05 140905                     /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
7ffff2830000-7ffff285e000 r-xp 00000000 08:05 521569                     /lib/x86_64-linux-gnu/libncursesw.so.5.9
7ffff285e000-7ffff2a5d000 ---p 0002e000 08:05 521569                     /lib/x86_64-linux-gnu/libncursesw.so.5.9
7ffff2a5d000-7ffff2a5e000 r--p 0002d000 08:05 521569                     /lib/x86_64-linux-gnu/libncursesw.so.5.9
7ffff2a5e000-7ffff2a5f000 rw-p 0002e000 08:05 521569                     /lib/x86_64-linux-gnu/libncursesw.so.5.9
7ffff2a5f000-7ffff2b55000 r-xp 00000000 08:05 533295                     /lib/x86_64-linux-gnu/libslang.so.2.2.4
7ffff2b55000-7ffff2d54000 ---p 000f6000 08:05 533295                     /lib/x86_64-linux-gnu/libslang.so.2.2.4
7ffff2d54000-7ffff2d71000 rw-p 000f5000 08:05 533295                     /lib/x86_64-linux-gnu/libslang.so.2.2.4
7ffff2d71000-7ffff2dd5000 rw-p 00000000 00:00 0
7ffff2dd5000-7ffff2df4000 r-xp 00000000 08:05 144185                     /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7ffff2df4000-7ffff2ff3000 ---p 0001f000 08:05 144185                     /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7ffff2ff3000-7ffff2ff4000 r--p 0001e000 08:05 144185                     /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7ffff2ff4000-7ffff2ff5000 rw-p 0001f000 08:05 144185                     /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7ffff2ff5000-7ffff3038000 r-xp 00000000 08:05 525093                     /lib/x86_64-linux-gnu/libdbus-1.so.3.5.8
7ffff3038000-7ffff3237000 ---p 00043000 08:05 525093                     /lib/x86_64-linux-gnu/libdbus-1.so.3.5.8
7ffff3237000-7ffff3239000 r--p 00042000 08:05 525093                     /lib/x86_64-linux-gnu/libdbus-1.so.3.5.8
7ffff3239000-7ffff323a000 rw-p 00044000 08:05 525093                     /lib/x86_64-linux-gnu/libdbus-1.so.3.5.8
7ffff323a000-7ffff3241000 r-xp 00000000 08:05 140898                     /usr/lib/libjson.so.0.0.1
7ffff3241000-7ffff3440000 ---p 00007000 08:05 140898                     /usr/lib/libjson.so.0.0.1
7ffff3440000-7ffff3441000 rw-p 00006000 08:05 140898                     /usr/lib/libjson.so.0.0.1
7ffff3441000-7ffff3445000 r-xp 00000000 08:05 525105                     /lib/libcap.so.2.22
7ffff3445000-7ffff3644000 ---p 00004000 08:05 525105                     /lib/libcap.so.2.22
7ffff3644000-7ffff3645000 rw-p 00003000 08:05 525105                     /lib/libcap.so.2.22
7ffff3645000-7ffff36a6000 r-xp 00000000 08:05 140909                     /usr/lib/x86_64-linux-gnu/libpulsecommon-1.0.so
7ffff36a6000-7ffff38a6000 ---p 00061000 08:05 140909                     /usr/lib/x86_64-linux-gnu/libpulsecommon-1.0.so
7ffff38a6000-7ffff38a8000 rw-p 00061000 08:05 140909                     /usr/lib/x86_64-linux-gnu/libpulsecommon-1.0.so
7ffff38a8000-7ffff38af000 r-xp 00000000 08:05 531039                     /lib/x86_64-linux-gnu/librt-2.13.so
7ffff38af000-7ffff3aae000 ---p 00007000 08:05 531039                     /lib/x86_64-linux-gnu/librt-2.13.so
7ffff3aae000-7ffff3aaf000 r--p 00006000 08:05 531039                     /lib/x86_64-linux-gnu/librt-2.13.so
7ffff3aaf000-7ffff3ab0000 rw-p 00007000 08:05 531039                     /lib/x86_64-linux-gnu/librt-2.13.so
7ffff3ab0000-7ffff3acf000 r-xp 00000000 08:05 139692                     /usr/lib/libmad.so.0.2.1
7ffff3acf000-7ffff3cce000 ---p 0001f000 08:05 139692                     /usr/lib/libmad.so.0.2.1
Program received signal SIGABRT, Aborted.
0x00007ffff6611475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0  0x00007ffff6611475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff66146f0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007ffff664b26b in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x00007ffff6654ab6 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#4  0x00007ffff66597ec in free () from /lib/x86_64-linux-gnu/libc.so.6
#5  0x00007ffff6645a0d in fclose () from /lib/x86_64-linux-gnu/libc.so.6
#6  0x00007ffff7366b49 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#7  0x00007ffff710b566 in Mix_LoadWAV_RW () from /usr/lib/x86_64-linux-gnu/libSDL_mixer-1.2.so.0
#8  0x000055555574ef4a in ?? ()
#9  0x00005555555cca03 in ?? ()
#10 0x00005555555cb72d in ?? ()
#11 0x00005555555c657e in ?? ()
#12 0x00005555555c65bd in ?? ()
#13 0x00005555555c6822 in ?? ()
#14 0x00005555555c77a8 in ?? ()
#15 0x00005555556e654e in ?? ()
#16 0x000055555559d68e in main ()
(gdb) bt full
#0  0x00007ffff6611475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1  0x00007ffff66146f0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#2  0x00007ffff664b26b in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#3  0x00007ffff6654ab6 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#4  0x00007ffff66597ec in free () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#5  0x00007ffff6645a0d in fclose () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#6  0x00007ffff7366b49 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
No symbol table info available.
#7  0x00007ffff710b566 in Mix_LoadWAV_RW () from /usr/lib/x86_64-linux-gnu/libSDL_mixer-1.2.so.0
No symbol table info available.
#8  0x000055555574ef4a in ?? ()
No symbol table info available.
#9  0x00005555555cca03 in ?? ()
No symbol table info available.
#10 0x00005555555cb72d in ?? ()
No symbol table info available.
#11 0x00005555555c657e in ?? ()
No symbol table info available.
#12 0x00005555555c65bd in ?? ()
No symbol table info available.
#13 0x00005555555c6822 in ?? ()
No symbol table info available.
#14 0x00005555555c77a8 in ?? ()
No symbol table info available.
#15 0x00005555556e654e in ?? ()
No symbol table info available.
#16 0x000055555559d68e in main ()
No symbol table info available.

Dwachs

Ok, backtrace was not very useful :/ there were no debug symbols in the executable.

Would it be possible for you to compile simutrans yourself?

The program works for me with SDL-mixer version 1.2.10.
Parsley, sage, rosemary, and maggikraut.

Steven

I downloaded the current svn version of simutrans, and used the latest release of pak128.  For compilation, I specified a bitdepth of 16, a backend of mixer_sdl, and set DEBUG to 3.

Here's the tail of the output, plus a bt and bt full: (Run using r -debug 3 -objects pak128)

Message: vehicle_reader_t::read_node(): version=8 way=2 zuladung=44 preis=2727000 geschw=200 gewicht=28 axle_load=0 leistung=0 betrieb=41 sound=-1 vor=0 nach=4 date=2/1962 gear=64 engine_type=1 len=8
Message: obj_reader_t::read_file(): filename='pak128/vehicle.DB_Apmz121.pak'
Message: obj_reader_t::read_file(): read 1 blocks, file version is 3eb
Message: vehicle_reader_t::read_node(): version=8 way=2 zuladung=65 preis=2377000 geschw=160 gewicht=35 axle_load=0 leistung=0 betrieb=45 sound=-1 vor=0 nach=4 date=2/1962 gear=64 engine_type=1 len=8
Message: obj_reader_t::read_file(): filename='pak128/vehicle.DB_Bm235.pak'
Message: obj_reader_t::read_file(): read 1 blocks, file version is 3eb
Message: vehicle_reader_t::read_node(): version=8 way=2 zuladung=72 preis=4233000 geschw=200 gewicht=31 axle_load=0 leistung=0 betrieb=65 sound=-1 vor=0 nach=4 date=5/1971 gear=64 engine_type=1 len=8
Message: obj_reader_t::read_file(): filename='pak128/vehicle.DB_BR103_1.pak'
Message: obj_reader_t::read_file(): read 1 blocks, file version is 3eb
*** glibc detected *** /tmp/simutrans/svn/trunk/build/default/sim: double free or corruption (!prev): 0x0000000003a8c050 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x75ab6)[0x7ffff6a1aab6]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x7ffff6a1f7ec]
/lib/x86_64-linux-gnu/libc.so.6(fclose+0x14d)[0x7ffff6a0ba0d]
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0(+0x14b49)[0x7ffff772cb49]
/usr/lib/x86_64-linux-gnu/libSDL_mixer-1.2.so.0(Mix_LoadWAV_RW+0x246)[0x7ffff74d1566]
/tmp/simutrans/svn/trunk/build/default/sim[0x618d6d]
/tmp/simutrans/svn/trunk/build/default/sim[0x442819]
/tmp/simutrans/svn/trunk/build/default/sim[0x4414fb]
/tmp/simutrans/svn/trunk/build/default/sim[0x439e82]
/tmp/simutrans/svn/trunk/build/default/sim[0x439ec6]
/tmp/simutrans/svn/trunk/build/default/sim[0x439cd6]
/tmp/simutrans/svn/trunk/build/default/sim[0x439910]
/tmp/simutrans/svn/trunk/build/default/sim[0x599a94]
/tmp/simutrans/svn/trunk/build/default/sim[0x5a9df9]
/tmp/simutrans/svn/trunk/build/default/sim[0x618c0e]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd)[0x7ffff69c3ead]
/tmp/simutrans/svn/trunk/build/default/sim[0x404ac9]
======= Memory map: ========
00400000-006bb000 r-xp 00000000 08:06 707277                             /tmp/simutrans/svn/trunk/build/default/sim
008bb000-008bd000 rw-p 002bb000 08:06 707277                             /tmp/simutrans/svn/trunk/build/default/sim
Program received signal SIGABRT, Aborted.
0x00007ffff69d7475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0  0x00007ffff69d7475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff69da6f0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007ffff6a1126b in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x00007ffff6a1aab6 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#4  0x00007ffff6a1f7ec in free () from /lib/x86_64-linux-gnu/libc.so.6
#5  0x00007ffff6a0ba0d in fclose () from /lib/x86_64-linux-gnu/libc.so.6
#6  0x00007ffff772cb49 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#7  0x00007ffff74d1566 in Mix_LoadWAV_RW () from /usr/lib/x86_64-linux-gnu/libSDL_mixer-1.2.so.0
#8  0x0000000000618d6d in dr_load_sample (
    filename=0x3a8bfd8 "/tmp/simutrans/svn/trunk/build/default/pak128/sound/train-horn-electric-0.wav")
    at sound/sdl_mixer_sound.cc:97
#9  0x0000000000442819 in sound_besch_t::get_sound_id (name=0x7fffffffc0d0 "train-horn-electric-0.wav")
    at besch/sound_besch.cc:105
#10 0x00000000004414fb in vehicle_reader_t::read_node (this=0x8c73d0, fp=0x1d34430, node=...)
    at besch/reader/vehicle_reader.cc:273
#11 0x0000000000439e82 in obj_reader_t::read_nodes (fp=0x1d34430, data=@0x370cfd0, register_nodes=1, version=1003)
    at besch/reader/obj_reader.cc:271
#12 0x0000000000439ec6 in obj_reader_t::read_nodes (fp=0x1d34430, data=@0x7fffffffc340, register_nodes=0, version=1003)
    at besch/reader/obj_reader.cc:273
#13 0x0000000000439cd6 in obj_reader_t::read_file (name=0xf50520 "pak128/vehicle.DB_BR103_1.pak")
    at besch/reader/obj_reader.cc:229
#14 0x0000000000439910 in obj_reader_t::load (liste=0x99dcf8 "pak128/", message=0x6418e8 "Loading paks ...")
    at besch/reader/obj_reader.cc:176
#15 0x0000000000599a94 in simu_main (argc=5, argv=0x7fffffffe388) at simmain.cc:798
#16 0x00000000005a9df9 in sysmain (argc=5, argv=0x7fffffffe388) at simsys.cc:109
#17 0x0000000000618c0e in main (argc=5, argv=0x7fffffffe388) at simsys_s.cc:593
(gdb) bt full
#0  0x00007ffff69d7475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1  0x00007ffff69da6f0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#2  0x00007ffff6a1126b in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#3  0x00007ffff6a1aab6 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#4  0x00007ffff6a1f7ec in free () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#5  0x00007ffff6a0ba0d in fclose () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#6  0x00007ffff772cb49 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
No symbol table info available.
#7  0x00007ffff74d1566 in Mix_LoadWAV_RW () from /usr/lib/x86_64-linux-gnu/libSDL_mixer-1.2.so.0
No symbol table info available.
#8  0x0000000000618d6d in dr_load_sample (
    filename=0x3a8bfd8 "/tmp/simutrans/svn/trunk/build/default/pak128/sound/train-horn-electric-0.wav")
    at sound/sdl_mixer_sound.cc:97
        smp = 0x18
#9  0x0000000000442819 in sound_besch_t::get_sound_id (name=0x7fffffffc0d0 "train-horn-electric-0.wav")
    at besch/sound_besch.cc:105
        id = 0
        s = 0x0
#10 0x00000000004414fb in vehicle_reader_t::read_node (this=0x8c73d0, fp=0x1d34430, node=...)
    at besch/reader/vehicle_reader.cc:273
        len = 25 '\031'
        wavname = "train-horn-electric-0.wav\000X\003\000\000\000\000\220\301\377\377\377\177\000\000\b\031\242\003\000\000\000\000@\301\377\377\377\177\000\000X\373F\000\000\000\000\000\220\301\377\377\377\177\000\000 \000\000\000\000\000\000\000\240J@\000\000\000\000\000\200\343\377\377\377\177", '\000' <repeats 18 times>, " \303\377\377\377\177\000\000\350!\237\366\377\177\000\000\030\000\000\000\060\000\000\000\060\302\377\377\377\177\000\000p\301\377\377\377\177\000\000\300\230\214", '\000' <repeats 13 times>"\251, \031\247\366\377\177\000\000\000\000\000\000\000\000\000\000\223k\241\366\377\177\000\000 \000\000\000\000\000\000\000\200h\322\366\377\177\000\000 \000\000\000\000\000\000\000\300V\231\000\000\000\000\000\340\301\377\377\377\177\000\000\030\302\377\377\377\177\000\000\360\301\377\377\377\177\000\000\330\304C\000\000\000\000"
        besch_buf = 0x7fffffffc040 "\b\200\360\247\n\003"
        besch = 0x3a8bf30
        p = 0x7fffffffc079 ""
        v = 32776
        version = 8
#11 0x0000000000439e82 in obj_reader_t::read_nodes (fp=0x1d34430, data=@0x370cfd0, register_nodes=1, version=1003)
    at besch/reader/obj_reader.cc:271
        node = {type = 1279477846, children = 8, size = 57}
        load_dummy = "VHCL\b\000\071\000\000\303\377\377"
        p = 0x7fffffffc288 ""
        reader = 0x8c73d0
#12 0x0000000000439ec6 in obj_reader_t::read_nodes (fp=0x1d34430, data=@0x7fffffffc340, register_nodes=0, version=1003)
    at besch/reader/obj_reader.cc:273
---Type <return> to continue, or q <return> to quit---
        i = 0
        node = {type = 1414483794, children = 1, size = 0}
        load_dummy = "ROOT\001\000\000\000\362", <incomplete sequence \366>
        p = 0x7fffffffc2f8 "\362Ƞ\366\377\177"
        reader = 0x8c7300
#13 0x0000000000439cd6 in obj_reader_t::read_file (name=0xf50520 "pak128/vehicle.DB_BR103_1.pak")
    at besch/reader/obj_reader.cc:229
        data = 0xf3d9a0
        c = 26
        n = 1
        version = 1003
        dummy = "\353\003\000"
        p = 0x7fffffffc354 "\377\177"
        fp = 0x1d34430
#14 0x0000000000439910 in obj_reader_t::load (liste=0x99dcf8 "pak128/", message=0x6418e8 "Loading paks ...")
    at besch/reader/obj_reader.cc:176
        i = 0xf53670
        end = 0xf54da8
        max = 1667
        teilung = 31
        n = 924
        find = {files = {data = 0xf51990, size = 2048, count = 1667}}
        name = {static npos = <optimized out>,
          _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
            _M_p = 0xf3d5e8 "pak128/"}}
        i = 4696346
        drawing = false
#15 0x0000000000599a94 in simu_main (argc=5, argv=0x7fffffffe388) at simmain.cc:798
        quit_month = 2147483647
        path_sep = 0x64130e "/"
        found_settings = false
        path_to_simuconf = "config/simuconf.tab\000\377\177\000"
        file = {mode = 4, saving = false, version = 0, ident = 32767,
          pak_extension = "=\255\071\r\000\000\000\000Ri\336\367\377\177\000\000\000\000\000\000\000\000\000\000\370\354\374\367\377\177\000\000\001\000\000\000\377\177\000\000\000\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\300\371\375\367\377\177\000", filename = {static npos = <optimized out>,
            _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x7ffff74b54d8 ""}}, fp = 0x0, bzfp = 0x0, bse = 1, static save_mode = loadsave_t::bzip2}
        obj_conf = {static npos = <optimized out>,
          _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
            _M_p = 0x9c9df8 "/home/steven/simutrans/simuconf.tab"}}
        parameter = {1, 1}
        loadgame = {static npos = <optimized out>,
          _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
            _M_p = 0x7ffff69b5800 ""}}
        disp_width = 704
        pak_diagonal_multiplier = 724
---Type <return> to continue, or q <return> to quit---
        resolutions = {{640, 480}, {800, 600}, {1024, 768}, {1280, 1024}, {704, 560}}
        pak_tile_height = 16 '\020'
        simuconf = {file = 0x0}
        new_world = false
        disp_height = 560
        fullscreen = 0
        found_simuconf = false
        multiuser = true
        version = 0x641410 "Simutrans version 111.2 Nightly from Feb 10 2012\n"
#16 0x00000000005a9df9 in sysmain (argc=5, argv=0x7fffffffe388) at simsys.cc:109
        buffer2 = 0x0
        buffer = "/tmp/simutrans/svn/trunk/build/default/sim\000\366\377\177\000\000\000\000\300\302\377\377\377\377\340\364\375\367\377\177\000\000\000\000\000\000\000\000\000\000G\342\322\366\377\177\000\000\200\323\377\377\377\177\000\000\000\000\240\244\377\377\377\377\000\000\026R\275\357\377\377\240\001\000\000\000\000\000\000\240\001\000\000\000\000\000\000\b\000\000\000\000\000\000\000\004\000\000\000\004\000\000\000\360\340\377\377\377\177\000\000`\341\377\377\377\177\000\000\000\360\375\367\377\177\000\000\000\000\000\000\000\000\000\000\241X\364\366\377\177\000\000p\324\377\377\377\177\000\000b\237\336\367\377\177\000\000\000\000\000\000\000\000\000\000&\251\336\367\377\177\000\000\030\340\377\367\377\177\000\000\030\341\377\377\377\177\000\000 \341\377\377\377\177\000\000/\341\377\377\377\177\000\000\060\237\336\367\377\177\000\000\230\021\364\366\377\177\000\000`\341\377\377\377\177\000\000\025\221\336\367\377\177\000\000\300\371\375\367\377\177", '\000' <repeats 12 times>"\300, \302\377\377\377\377\000\360\375\367\377\177\000\000\000\000\000\000\000\000\000\000\241"...
        length = 42
#17 0x0000000000618c0e in main (argc=5, argv=0x7fffffffe388) at simsys_s.cc:593
No locals.

Dwachs

#5
It looks like the failure is within sdl_mixer :/

Can you edit config.default and set BACKEND = sdl. Maybe you get then a playable version ...

There is also some ongoing discussion which might or might not be related to the bug you are suffering from:
http://forum.simutrans.com/index.php?topic=8994.0
Parsley, sage, rosemary, and maggikraut.

Fabio

But why a sdl_mixer problem only affects Pak 128? This is at least curious IMHO.

Dwachs

could you try again with newest revision r5273?
Parsley, sage, rosemary, and maggikraut.

Steven

Using r5274 with BACKEND=mixer_sdl, it aborts with the same double-free error:
betrieb=45 sound=-1 vor=0 nach=4 date=2/1962 gear=64 engine_type=1 len=8
Message: obj_reader_t::read_file(): filename='pak128/vehicle.DB_Bm235.pak'
Message: obj_reader_t::read_file(): read 1 blocks, file version is 3eb
Message: vehicle_reader_t::read_node(): version=8 way=2 zuladung=72 preis=4233000 geschw=200 gewicht=31 axle_load=0 leistung=0 betrieb=65 sound=-1 vor=0 nach=4 date=5/1971 gear=64 engine_type=1 len=8
Message: obj_reader_t::read_file(): filename='pak128/vehicle.DB_BR103_1.pak'
Message: obj_reader_t::read_file(): read 1 blocks, file version is 3eb
*** glibc detected *** /tmp/simutrans_svn/trunk/build/default/sim: double free or corruption (!prev): 0x0000000003a92740 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x75ab6)[0x7ffff6a1aab6]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x7ffff6a1f7ec]
/lib/x86_64-linux-gnu/libc.so.6(fclose+0x14d)[0x7ffff6a0ba0d]
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0(+0x14b49)[0x7ffff772cb49]
/usr/lib/x86_64-linux-gnu/libSDL_mixer-1.2.so.0(Mix_LoadWAV_RW+0x246)[0x7ffff74d1566]
/tmp/simutrans_svn/trunk/build/default/sim[0x617bbd]
/tmp/simutrans_svn/trunk/build/default/sim[0x4419ad]
/tmp/simutrans_svn/trunk/build/default/sim[0x44068f]
/tmp/simutrans_svn/trunk/build/default/sim[0x439474]
/tmp/simutrans_svn/trunk/build/default/sim[0x4394b8]
/tmp/simutrans_svn/trunk/build/default/sim[0x4392c8]
/tmp/simutrans_svn/trunk/build/default/sim[0x438f02]
/tmp/simutrans_svn/trunk/build/default/sim[0x598994]
/tmp/simutrans_svn/trunk/build/default/sim[0x5a8d15]
/tmp/simutrans_svn/trunk/build/default/sim[0x617a5e]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd)[0x7ffff69c3ead]
/tmp/simutrans_svn/trunk/build/default/sim[0x404ac9]
======= Memory map: ========
00400000-006ba000 r-xp 00000000 08:06 594753                             /tmp/simutrans_svn/trunk/build/default/sim
008b9000-008bc000 rw-p 002b9000 08:06 594753                             /tmp/simutrans_svn/trunk/build/default/sim
008bc000-03b9e000 rw-p 00000000 00:00 0                                  [heap]
7fffe8000000-7fffe8021000 rw-p 00000000 00:00 0
7fffe8021000-7fffec000000 ---p 00000000 00:00 0
7fffeea78000-7fffeea79000 ---p 00000000 00:00 0
7fffeea79000-7fffef279000 rw-p 00000000 00:00 0
7fffef279000-7fffef28a000 r-xp 00000000 08:05 132787                     /usr/lib/libspeexdsp.so.1.5.0
7fffef28a000-7fffef48a000 ---p 00011000 08:05 132787                     /usr/lib/libspeexdsp.so.1.5.0
7fffef48a000-7fffef48b000 rw-p 00011000 08:05 132787                     /usr/lib/libspeexdsp.so.1.5.0
7fffef48b000-7fffef48d000 r-xp 00000000 08:05 146070                     /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_rate_speexrate.so
7fffef48d000-7fffef68c000 ---p 00002000 08:05 146070                     /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_rate_speexrate.so
7fffef68c000-7fffef68d000 rw-p 00001000 08:05 146070                     /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_rate_speexrate.so
7fffef68d000-7fffef698000 r-xp 00000000 08:05 531035                     /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fffef698000-7fffef897000 ---p 0000b000 08:05 531035                     /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fffef897000-7fffef898000 r--p 0000a000 08:05 531035                     /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fffef898000-7fffef899000 rw-p 0000b000 08:05 531035                     /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fffef899000-7fffef8a3000 r-xp 00000000 08:05 531031                     /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fffef8a3000-7fffefaa2000 ---p 0000a000 08:05 531031                     /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fffefaa2000-7fffefaa3000 r--p 00009000 08:05 531031                     /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fffefaa3000-7fffefaa4000 rw-p 0000a000 08:05 531031                     /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fffefaa4000-7fffefaab000 r-xp 00000000 08:05 530078                     /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7fffefaab000-7fffefcaa000 ---p 00007000 08:05 530078                     /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7fffefcaa000-7fffefcab000 r--p 00006000 08:05 530078                     /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7fffefcab000-7fffefcac000 rw-p 00007000 08:05 530078                     /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7fffefcac000-7fffefe2d000 rw-s 00000000 00:04 1409047                    /SYSV00000000 (deleted)
7fffefe2d000-7fffefe32000 r-xp 00000000 08:05 139736                     /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7fffefe32000-7ffff0032000 ---p 00005000 08:05 139736                     /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7ffff0032000-7ffff0033000 rw-p 00005000 08:05 139736                     /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7ffff0033000-7ffff003c000 r-xp 00000000 08:05 139738                     /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7ffff003c000-7ffff023c000 ---p 00009000 08:05 139738                     /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7ffff023c000-7ffff023d000 rw-p 00009000 08:05 139738                     /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7ffff023d000-7ffff04a4000 r--p 00000000 08:05 138015                     /usr/lib/locale/locale-archive
7ffff04a4000-7ffff04b7000 r-xp 00000000 08:05 524623                     /lib/x86_64-linux-gnu/libresolv-2.13.so
7ffff04b7000-7ffff06b6000 ---p 00013000 08:05 524623                     /lib/x86_64-linux-gnu/libresolv-2.13.so
7ffff06b6000-7ffff06b7000 r--p 00012000 08:05 524623                     /lib/x86_64-linux-gnu/libresolv-2.13.so
7ffff06b7000-7ffff06b8000 rw-p 00013000 08:05 524623                     /lib/x86_64-linux-gnu/libresolv-2.13.so
7ffff06b8000-7ffff06ba000 rw-p 00000000 00:00 0
7ffff06ba000-7ffff096f000 r-xp 00000000 08:05 134741                     /usr/lib/libvorbisenc.so.2.0.8
7ffff096f000-7ffff0b6e000 ---p 002b5000 08:05 134741                     /usr/lib/libvorbisenc.so.2.0.8
7ffff0b6e000-7ffff0b8a000 rw-p 002b4000 08:05 134741                     /usr/lib/libvorbisenc.so.2.0.8
7ffff0b8a000-7ffff0b9f000 r-xp 00000000 08:05 530933                     /lib/x86_64-linux-gnu/libnsl-2.13.so
7ffff0b9f000-7ffff0d9e000 ---p 00015000 08:05 530933                     /lib/x86_64-linux-gnu/libnsl-2.13.so
7ffff0d9e000-7ffff0d9f000 r--p 00014000 08:05 530933                     /lib/x86_64-linux-gnu/libnsl-2.13.so
7ffff0d9f000-7ffff0da0000 rw-p 00015000 08:05 530933                     /lib/x86_64-linux-gnu/libnsl-2.13.so
7ffff0da0000-7ffff0da2000 rw-p 00000000 00:00 0
7ffff0da2000-7ffff0db1000 r-xp 00000000 08:05 140609                     /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
7ffff0db1000-7ffff0fb0000 ---p 0000f000 08:05 140609                     /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
Program received signal SIGABRT, Aborted.
0x00007ffff69d7475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0  0x00007ffff69d7475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff69da6f0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007ffff6a1126b in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x00007ffff6a1aab6 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#4  0x00007ffff6a1f7ec in free () from /lib/x86_64-linux-gnu/libc.so.6
#5  0x00007ffff6a0ba0d in fclose () from /lib/x86_64-linux-gnu/libc.so.6
#6  0x00007ffff772cb49 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#7  0x00007ffff74d1566 in Mix_LoadWAV_RW () from /usr/lib/x86_64-linux-gnu/libSDL_mixer-1.2.so.0
#8  0x0000000000617bbd in dr_load_sample (
    filename=0x3a926c8 "/tmp/simutrans_svn/trunk/build/default/pak128/sound/train-horn-electric-0.wav")
    at sound/sdl_mixer_sound.cc:97
#9  0x00000000004419ad in sound_besch_t::get_sound_id (name=0x7fffffffc0d0 "train-horn-electric-0.wav")
    at besch/sound_besch.cc:105
#10 0x000000000044068f in vehicle_reader_t::read_node (this=0x8c51f0, fp=0x1d42b40, node=...)
    at besch/reader/vehicle_reader.cc:273
#11 0x0000000000439474 in obj_reader_t::read_nodes (fp=0x1d42b40, data=@0x37136c0, register_nodes=1, version=1003)
    at besch/reader/obj_reader.cc:271
#12 0x00000000004394b8 in obj_reader_t::read_nodes (fp=0x1d42b40, data=@0x7fffffffc340, register_nodes=0, version=1003)
    at besch/reader/obj_reader.cc:273
#13 0x00000000004392c8 in obj_reader_t::read_file (name=0xf5ec30 "pak128/vehicle.DB_BR103_1.pak")
    at besch/reader/obj_reader.cc:229
#14 0x0000000000438f02 in obj_reader_t::load (liste=0x9c8688 "pak128/", message=0x6408f0 "Loading paks ...")
    at besch/reader/obj_reader.cc:176
#15 0x0000000000598994 in simu_main (argc=5, argv=0x7fffffffe388) at simmain.cc:798
#16 0x00000000005a8d15 in sysmain (argc=5, argv=0x7fffffffe388) at simsys.cc:109
#17 0x0000000000617a5e in main (argc=5, argv=0x7fffffffe388) at simsys_s.cc:593
(gdb) bt full
#0  0x00007ffff69d7475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1  0x00007ffff69da6f0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#2  0x00007ffff6a1126b in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#3  0x00007ffff6a1aab6 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#4  0x00007ffff6a1f7ec in free () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#5  0x00007ffff6a0ba0d in fclose () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#6  0x00007ffff772cb49 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
No symbol table info available.
#7  0x00007ffff74d1566 in Mix_LoadWAV_RW () from /usr/lib/x86_64-linux-gnu/libSDL_mixer-1.2.so.0
No symbol table info available.
#8  0x0000000000617bbd in dr_load_sample (
    filename=0x3a926c8 "/tmp/simutrans_svn/trunk/build/default/pak128/sound/train-horn-electric-0.wav")
    at sound/sdl_mixer_sound.cc:97
        smp = 0x18
#9  0x00000000004419ad in sound_besch_t::get_sound_id (name=0x7fffffffc0d0 "train-horn-electric-0.wav")
    at besch/sound_besch.cc:105
        id = 0
        s = 0x0
#10 0x000000000044068f in vehicle_reader_t::read_node (this=0x8c51f0, fp=0x1d42b40, node=...)
    at besch/reader/vehicle_reader.cc:273
        len = 25 '\031'
        wavname = "train-horn-electric-0.wav\000X\003\000\000\000\000\220\301\377\377\377\177\000\000\370\177\242\003\000\000\000\000@\301\377\377\377\177\000\000\360\351F\000\000\000\000\000\220\301\377\377\377\177\000\000 \000\000\000\000\000\000\000\240J@\000\000\000\000\000\200\343\377\377\377\177", '\000' <repeats 18 times>, " \303\377\377\377\177\000\000\350!\237\366\377\177\000\000\030\000\000\000\060\000\000\000\060\302\377\377\377\177\000\000p\301\377\377\377\177\000\000\340v\214", '\000' <repeats 13 times>"\251, \031\247\366\377\177\000\000\000\000\000\000\000\000\000\000\223k\241\366\377\177\000\000 \000\000\000\000\000\000\000\200h\322\366\377\177\000\000 \000\000\000\000\000\000\000\003i\322\366\377\177\000\000\b\000\000\000\000\000\000\000\nh\241\366\377\177\000\000\300\066\231\000\000\000\000\000\030\302\377\377\377\177\000"
        besch_buf = 0x7fffffffc040 "\b\200\360\247\n\003"
        besch = 0x3a92620
        p = 0x7fffffffc079 ""
        v = 32776
        version = 8
#11 0x0000000000439474 in obj_reader_t::read_nodes (fp=0x1d42b40, data=@0x37136c0, register_nodes=1, version=1003)
    at besch/reader/obj_reader.cc:271
        node = {type = 1279477846, children = 8, size = 57}
        load_dummy = "VHCL\b\000\071\000\000\303\377\377"
        p = 0x7fffffffc288 ""
        reader = 0x8c51f0
#12 0x00000000004394b8 in obj_reader_t::read_nodes (fp=0x1d42b40, data=@0x7fffffffc340, register_nodes=0, version=1003)
    at besch/reader/obj_reader.cc:273
---Type <return> to continue, or q <return> to quit---
        i = 0
        node = {type = 1414483794, children = 1, size = 0}
        load_dummy = "ROOT\001\000\000\000\362", <incomplete sequence \366>
        p = 0x7fffffffc2f8 "\362Ƞ\366\377\177"
        reader = 0x8c5120
#13 0x00000000004392c8 in obj_reader_t::read_file (name=0xf5ec30 "pak128/vehicle.DB_BR103_1.pak")
    at besch/reader/obj_reader.cc:229
        data = 0xf4c0a0
        c = 26
        n = 1
        version = 1003
        dummy = "\353\003\000"
        p = 0x7fffffffc354 "\377\177"
        fp = 0x1d42b40
#14 0x0000000000438f02 in obj_reader_t::load (liste=0x9c8688 "pak128/", message=0x6408f0 "Loading paks ...")
    at besch/reader/obj_reader.cc:176
        i = 0xf61d80
        end = 0xf634b8
        max = 1667
        teilung = 31
        n = 924
        find = {files = {data = 0xf600a0, size = 2048, count = 1667}}
        name = {static npos = <optimized out>,
          _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
            _M_p = 0xf4bce8 "pak128/"}}
        i = 4691554
        drawing = false
#15 0x0000000000598994 in simu_main (argc=5, argv=0x7fffffffe388) at simmain.cc:798
        quit_month = 2147483647
        path_sep = 0x64030e "/"
        found_settings = false
        path_to_simuconf = "config/simuconf.tab\000\377\177\000"
        file = {mode = 4, saving = false, version = 0, ident = 32767,
          pak_extension = "=\255\071\r\000\000\000\000Ri\336\367\377\177\000\000\000\000\000\000\000\000\000\000\370\354\374\367\377\177\000\000\001\000\000\000\377\177\000\000\000\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\300\371\375\367\377\177\000", filename = {static npos = <optimized out>,
            _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x7ffff74b54d8 ""}}, fp = 0x0, bzfp = 0x0, bse = 1, static save_mode = loadsave_t::bzip2}
        obj_conf = {static npos = <optimized out>,
          _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
            _M_p = 0x9c8718 "/home/steven/simutrans/simuconf.tab"}}
        parameter = {1, 1}
        loadgame = {static npos = <optimized out>,
          _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
            _M_p = 0x7ffff69b5800 ""}}
        disp_width = 704
        pak_diagonal_multiplier = 724
---Type <return> to continue, or q <return> to quit---
        resolutions = {{640, 480}, {800, 600}, {1024, 768}, {1280, 1024}, {704, 560}}
        pak_tile_height = 16 '\020'
        simuconf = {file = 0x0}
        new_world = false
        disp_height = 560
        fullscreen = 0
        found_simuconf = false
        multiuser = true
        version = 0x640410 "Simutrans version 111.2 Nightly from Feb 11 2012 r5274\n"
#16 0x00000000005a8d15 in sysmain (argc=5, argv=0x7fffffffe388) at simsys.cc:109
        buffer2 = 0x0
        buffer = "/tmp/simutrans_svn/trunk/build/default/sim\000\366\377\177\000\000\000\000\300\302\377\377\377\377\340\364\375\367\377\177\000\000\000\000\000\000\000\000\000\000G\342\322\366\377\177\000\000\200\323\377\377\377\177\000\000\000\000\240\244\377\377\377\377\000\000\026R\275\357\377\377\240\001\000\000\000\000\000\000\240\001\000\000\000\000\000\000\b\000\000\000\000\000\000\000\004\000\000\000\004\000\000\000\360\340\377\377\377\177\000\000`\341\377\377\377\177\000\000\000\360\375\367\377\177\000\000\000\000\000\000\000\000\000\000\241X\364\366\377\177\000\000p\324\377\377\377\177\000\000b\237\336\367\377\177\000\000\000\000\000\000\000\000\000\000&\251\336\367\377\177\000\000\030\340\377\367\377\177\000\000\030\341\377\377\377\177\000\000 \341\377\377\377\177\000\000/\341\377\377\377\177\000\000\060\237\336\367\377\177\000\000\230\021\364\366\377\177\000\000`\341\377\377\377\177\000\000\025\221\336\367\377\177\000\000\300\371\375\367\377\177", '\000' <repeats 12 times>"\300, \302\377\377\377\377\000\360\375\367\377\177\000\000\000\000\000\000\000\000\000\000\241"...
        length = 42
#17 0x0000000000617a5e in main (argc=5, argv=0x7fffffffe388) at simsys_s.cc:593
No locals.



Using r5274 with BACKEND=sdl, it segfaults with a new error:
Message: pakset_info_t::debug: Renfe6000_Post -> sha1 = 2FD58723C93AA9B2CE9E7A9E1E8153268F201D50
Message: pakset_info_t::debug: PMNV_Mail_Truck_2 -> sha1 = A589A7FABC395AD5A54543F68C7C5AFD12B0FC8C
Message: pakset_info_t::debug: PMNV_Mail_Truck_1 -> sha1 = F3F507C79D00FF4660712F9838F5610E5C44D3D5
Message: pakset_info_t::debug: fluid_08_VTG_CeSa_Tank_Wagon -> sha1 = 3A2D710542F1A4A54418AE0DFBB016657ABFC6CF
Message: pakset_info_t::debug: CB_DB-130_8 -> sha1 = 09406DE3C53EE289B556AE54F181A954962FDC84
Message: pakset_info_t::debug: MS_30s_car_white -> sha1 = 2D9B8EDC49D2CB1DCA6DEE45146665F10CEB62BA
Message: pakset_info_t::debug: sh_oasis_seasons -> sha1 = C8B40F80E38DA3BEFA6C7E709F2CABDECFAA22C8
Message: pakset_info_t::debug: bus_terminus -> sha1 = DDA1B09E16596DAF0CF94911006C8F5712745A48
Message: pakset_info_t::debug: IND_10_12 -> sha1 = A98B0F6B5782041F3818227B67AB46775614A08F
Message: pakset_info_t::debug: IND_10_03 -> sha1 = 5EB2B1B3B68E512FD7C84770308377430C4F3DED
Message: pakset_info_t::debug: IND_03_01 -> sha1 = 35F71E278328C9D24157E108499918A3AD98ABC5
Message: pakset_info_t::debug: IND_01_30 -> sha1 = 5F712936F361C4A148C352236D7083E04A0254D1
Message: pakset_info_t::debug: IND_01_03 -> sha1 = D9361043DC3233906B2BCE25FABF708BB3E7D742
Message: pakset_info_t::debug: IND_00_22 -> sha1 = 06541D16AD034E839AD7E768DE8FFB3FE3C89D92
Message: pakset_info_t::debug: IND_00_13 -> sha1 = 0E10153AC53D36DD865D35A9DFE214D144EEFFC8
Reading menu configuration ...
Message: werkzeug_t::init_menu(): Reading general menu
Message: werkzeug_t::init_menu(): Reading simple menu
Message: werkzeug_t::init_menu(): Reading dialoge menu
Message: werkzeug_t::read_menu(): Reading toolbars
Message: gui_textarea_t::recalc_size(): reset size to 11,0

Program received signal SIGSEGV, Segmentation fault.
0x00000000006147ab in display_calc_proportional_string_len_width (text=0xad2050 "Nederlands", len=32767)
    at simgraph16.cc:3171
3171 char_width = fnt->screen_width[0];
(gdb) bt
#0  0x00000000006147ab in display_calc_proportional_string_len_width (text=0xad2050 "Nederlands", len=32767)
    at simgraph16.cc:3171
#1  0x00000000004a4ff3 in button_t::set_text (this=0x994380, text=0xad2050 "Nederlands") at gui/components/gui_button.cc:347
#2  0x000000000052f8e4 in sprachengui_t::sprachengui_t (this=0x3b3f080) at gui/sprachen.cc:109
#3  0x000000000059708b in ask_language () at simmain.cc:311
#4  0x000000000059881b in simu_main (argc=5, argv=0x7fffffffe388) at simmain.cc:816
#5  0x00000000005a8ab5 in sysmain (argc=5, argv=0x7fffffffe388) at simsys.cc:109
#6  0x00000000006177fe in main (argc=5, argv=0x7fffffffe388) at simsys_s.cc:593
(gdb) bt full
#0  0x00000000006147ab in display_calc_proportional_string_len_width (text=0xad2050 "Nederlands", len=32767)
    at simgraph16.cc:3171
        char_width = 0 '\000'
        fnt = 0x969d60
        c = 78
        width = 0
        w = 11346000
#1  0x00000000004a4ff3 in button_t::set_text (this=0x994380, text=0xad2050 "Nederlands") at gui/components/gui_button.cc:347
No locals.
#2  0x000000000052f8e4 in sprachengui_t::sprachengui_t (this=0x3b3f080) at gui/sprachen.cc:109
        fontname = 0x1 <Address 0x1 out of bounds>
        ok = 255
        lb = {button = 0xb8b2a5fffffc4e0, id = 0}
        b = 0x994380
        prop_font_file_name = '\000' <repeats 44 times>"\377, \177", '\000' <repeats 22 times>"\377, \177", '\000' <repeats 22 times>"\377, \177", '\000' <repeats 22 times>"\377, \177", '\000' <repeats 22 times>, "\001", '\000' <repeats 23 times>"\377, \177", '\000' <repeats 22 times>"\377, \177", '\000' <repeats 118 times>"\377, \177", '\000' <repeats 46 times>"\377, \177", '\000' <repeats 22 times>"\377, \177", '\000' <repeats 22 times>"\377, \177", '\000' <repeats 22 times>, "\036", '\000' <repeats 23 times>"\377, \177", '\000' <repeats 22 times>, "\036", '\000' <repeats 23 times>"\377, \177", '\000' <repeats 118 times>"\377, \177", '\000' <repeats 26 times>"\306, ^\226\000\000\000\000\000toolbar["...
        fnt = {height = 256, descent = 0, num_chars = 0, screen_width = 0x2cf512c "25]",
          char_data = 0x7ffff6f77ec8 "\320\301\366\003"}
        id = 0
        i = 0
        lang = 0x8c8a00
        count = 0
#3  0x000000000059708b in ask_language () at simmain.cc:311
        sel = 0x257ffff6c5df43
#4  0x000000000059881b in simu_main (argc=5, argv=0x7fffffffe388) at simmain.cc:816
        quit_month = 2147483647
        path_sep = 0x64008e "/"
        found_settings = false
        path_to_simuconf = "config/simuconf.tab\000\377\177\000"
        file = {mode = 4, saving = false, version = 0, ident = 32767,
          pak_extension = "=\255\071\r\000\000\000\000Ri\336\367\377\177\000\000\000\000\000\000\000\000\000\000\370\v\375\367\377\177\000\000\001\000\000\000\377\177\000\000\000\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\340\364\375\367\377\177\000", filename = {static npos = <optimized out>,
            _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x7ffff77054d8 ""}}, fp = 0x0, bzfp = 0x0, bse = 1, static save_mode = loadsave_t::bzip2}
        obj_conf = {static npos = <optimized out>,
          _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
            _M_p = 0x9c8818 "/home/steven/simutrans/simuconf.tab"}}
        parameter = {1, 1}
        loadgame = {static npos = <optimized out>,
          _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
            _M_p = 0x7ffff6c05800 ""}}
        disp_width = 704
---Type <return> to continue, or q <return> to quit---
        pak_diagonal_multiplier = 724
        resolutions = {{640, 480}, {800, 600}, {1024, 768}, {1280, 1024}, {704, 560}}
        pak_tile_height = 16 '\020'
        simuconf = {file = 0x0}
        new_world = false
        disp_height = 560
        fullscreen = 0
        found_simuconf = false
        multiuser = true
        version = 0x640190 "Simutrans version 111.2 Nightly from Feb 11 2012 r5274\n"
#5  0x00000000005a8ab5 in sysmain (argc=5, argv=0x7fffffffe388) at simsys.cc:109
        buffer2 = 0x0
        buffer = "/tmp/simutrans_svn/trunk/build/default/sim\000\367\377\177\000\000\020\320\377\377\377\177\000\000\000\000\000\000\000\000\000\000\320g\235\366\377\177\000\000,\220\336\367\377\177\000\000\340\t\376\367\377\177\000\000\360\344\375\367\377\177\000\000\300\371\375\367\377\177\000\000\260\240\375\367\377\177\000\000\340\364\375\367\377\177\000\000\000\000\000\000\000\000\000\000\030\352q\367\377\177\000\000\000\000\000\000\000\000\000\000\003\000\000\000\a\000\000\000\230\375\276\366\377\177\000\000\000\000\300\302\377\377\377\377\300\371\375\367\377\177\000\000\001\000\000\000\000\000\000\000\373ϝ\366\377\177\000\000\360\323\377\377\377\177\000\000\000\000\200\245\377\377\377\377\000\000\026R\275\357\377\377\000\000\000\000\000\000\000\000\350q\f\000\000\000\000\000\000\020\000\000\000\000\000\000@\006\000\000\000\000\000\000\n\223\065O\000\000\000\000\275\316\312/\000\000\000\000\063\000~N", '\000' <repeats 12 times>"\360, \340\377\377\377\177\000\000"...
        length = 42
#6  0x00000000006177fe in main (argc=5, argv=0x7fffffffe388) at simsys_s.cc:593
No locals.


This latter one seems  not to be related to pak128.  It appears with pak128 for BACKEND=sdl, but also appears with BACKEND=mixer_sdl if I use pak or pak128.Britain by themselves, or if I have multiple paks installed (Whereas if only pak128 is present, it will run until reaching the aforementioned SIGABRT.)

Thanks again for the help!

Dwachs

Could you retry whether it changes anything, when you download again texts and fonts (ie download full release, then copy your self-compiled executable there). I am puzzled, where these crashes come from.
Parsley, sage, rosemary, and maggikraut.

Steven

Quote from: Dwachs on February 11, 2012, 08:59:15 PM
Could you retry whether it changes anything, when you download again texts and fonts (ie download full release, then copy your self-compiled executable there). I am puzzled, where these crashes come from.

Assuming I understood correctly, this is what I did: I downloaded the 111.1 release, copied the 2.0.0 release of pak128 into the directory, and then replaced the bundled simutrans binary with the binary I compiled from the svn trunk.  (with BACKEND=mixer_sdl and DEBUG=3)

Here is the output, which again was a SIGABRT:

Message: vehicle_reader_t::read_node(): version=8 way=2 zuladung=65 preis=2377000 geschw=160 gewicht=35 axle_load=0 leistung=0 betrieb=45 sound=-1 vor=0 nach=4 date=2/1962 gear=64 engine_type=1 len=8
Message: obj_reader_t::read_file(): filename='pak128/vehicle.DB_Bm235.pak'
Message: obj_reader_t::read_file(): read 1 blocks, file version is 3eb
Message: vehicle_reader_t::read_node(): version=8 way=2 zuladung=72 preis=4233000 geschw=200 gewicht=31 axle_load=0 leistung=0 betrieb=65 sound=-1 vor=0 nach=4 date=5/1971 gear=64 engine_type=1 len=8
Message: obj_reader_t::read_file(): filename='pak128/vehicle.DB_BR103_1.pak'
Message: obj_reader_t::read_file(): read 1 blocks, file version is 3eb
*** glibc detected *** /tmp/simutrans/simutrans: double free or corruption (!prev): 0x0000000003aa2de0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x75ab6)[0x7ffff6a1aab6]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x7ffff6a1f7ec]
/lib/x86_64-linux-gnu/libc.so.6(fclose+0x14d)[0x7ffff6a0ba0d]
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0(+0x14b49)[0x7ffff772cb49]
/usr/lib/x86_64-linux-gnu/libSDL_mixer-1.2.so.0(Mix_LoadWAV_RW+0x246)[0x7ffff74d1566]
/tmp/simutrans/simutrans[0x617aa9]
/tmp/simutrans/simutrans[0x4419ad]
/tmp/simutrans/simutrans[0x44068f]
/tmp/simutrans/simutrans[0x439474]
/tmp/simutrans/simutrans[0x4394b8]
/tmp/simutrans/simutrans[0x4392c8]
/tmp/simutrans/simutrans[0x438f02]
/tmp/simutrans/simutrans[0x5988c4]
/tmp/simutrans/simutrans[0x5a8c45]
/tmp/simutrans/simutrans[0x61794a]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd)[0x7ffff69c3ead]
/tmp/simutrans/simutrans[0x404ac9]
======= Memory map: ========
00400000-006ba000 r-xp 00000000 08:06 639639                             /tmp/simutrans/simutrans
008b9000-008bc000 rw-p 002b9000 08:06 639639                             /tmp/simutrans/simutrans
008bc000-03bad000 rw-p 00000000 00:00 0                                  [heap]
7fffe8000000-7fffe8021000 rw-p 00000000 00:00 0
7fffe8021000-7fffec000000 ---p 00000000 00:00 0
7fffeea78000-7fffeea79000 ---p 00000000 00:00 0
7fffeea79000-7fffef279000 rw-p 00000000 00:00 0
7fffef279000-7fffef28a000 r-xp 00000000 08:05 132787                     /usr/lib/libspeexdsp.so.1.5.0
7fffef28a000-7fffef48a000 ---p 00011000 08:05 132787                     /usr/lib/libspeexdsp.so.1.5.0
7fffef48a000-7fffef48b000 rw-p 00011000 08:05 132787                     /usr/lib/libspeexdsp.so.1.5.0
7fffef48b000-7fffef48d000 r-xp 00000000 08:05 146070                     /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_rate_speexrate.so
7fffef48d000-7fffef68c000 ---p 00002000 08:05 146070                     /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_rate_speexrate.so
7fffef68c000-7fffef68d000 rw-p 00001000 08:05 146070                     /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_rate_speexrate.so
7fffef68d000-7fffef698000 r-xp 00000000 08:05 531035                     /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fffef698000-7fffef897000 ---p 0000b000 08:05 531035                     /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fffef897000-7fffef898000 r--p 0000a000 08:05 531035                     /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fffef898000-7fffef899000 rw-p 0000b000 08:05 531035                     /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fffef899000-7fffef8a3000 r-xp 00000000 08:05 531031                     /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fffef8a3000-7fffefaa2000 ---p 0000a000 08:05 531031                     /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fffefaa2000-7fffefaa3000 r--p 00009000 08:05 531031                     /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fffefaa3000-7fffefaa4000 rw-p 0000a000 08:05 531031                     /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fffefaa4000-7fffefaab000 r-xp 00000000 08:05 530078                     /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7fffefaab000-7fffefcaa000 ---p 00007000 08:05 530078                     /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7fffefcaa000-7fffefcab000 r--p 00006000 08:05 530078                     /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7fffefcab000-7fffefcac000 rw-p 00007000 08:05 530078                     /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7fffefcac000-7fffefe2d000 rw-s 00000000 00:04 2883605                    /SYSV00000000 (deleted)
7fffefe2d000-7fffefe32000 r-xp 00000000 08:05 139736                     /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7fffefe32000-7ffff0032000 ---p 00005000 08:05 139736                     /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7ffff0032000-7ffff0033000 rw-p 00005000 08:05 139736                     /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7ffff0033000-7ffff003c000 r-xp 00000000 08:05 139738                     /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7ffff003c000-7ffff023c000 ---p 00009000 08:05 139738                     /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7ffff023c000-7ffff023d000 rw-p 00009000 08:05 139738                     /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7ffff023d000-7ffff04a4000 r--p 00000000 08:05 138015                     /usr/lib/locale/locale-archive
7ffff04a4000-7ffff04b7000 r-xp 00000000 08:05 524623                     /lib/x86_64-linux-gnu/libresolv-2.13.so
7ffff04b7000-7ffff06b6000 ---p 00013000 08:05 524623                     /lib/x86_64-linux-gnu/libresolv-2.13.so
7ffff06b6000-7ffff06b7000 r--p 00012000 08:05 524623                     /lib/x86_64-linux-gnu/libresolv-2.13.so
7ffff06b7000-7ffff06b8000 rw-p 00013000 08:05 524623                     /lib/x86_64-linux-gnu/libresolv-2.13.so
7ffff06b8000-7ffff06ba000 rw-p 00000000 00:00 0
7ffff06ba000-7ffff096f000 r-xp 00000000 08:05 134741                     /usr/lib/libvorbisenc.so.2.0.8
7ffff096f000-7ffff0b6e000 ---p 002b5000 08:05 134741                     /usr/lib/libvorbisenc.so.2.0.8
7ffff0b6e000-7ffff0b8a000 rw-p 002b4000 08:05 134741                     /usr/lib/libvorbisenc.so.2.0.8
7ffff0b8a000-7ffff0b9f000 r-xp 00000000 08:05 530933                     /lib/x86_64-linux-gnu/libnsl-2.13.so
7ffff0b9f000-7ffff0d9e000 ---p 00015000 08:05 530933                     /lib/x86_64-linux-gnu/libnsl-2.13.so
7ffff0d9e000-7ffff0d9f000 r--p 00014000 08:05 530933                     /lib/x86_64-linux-gnu/libnsl-2.13.so
7ffff0d9f000-7ffff0da0000 rw-p 00015000 08:05 530933                     /lib/x86_64-linux-gnu/libnsl-2.13.so
7ffff0da0000-7ffff0da2000 rw-p 00000000 00:00 0
Program received signal SIGABRT, Aborted.
0x00007ffff69d7475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0  0x00007ffff69d7475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff69da6f0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007ffff6a1126b in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x00007ffff6a1aab6 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#4  0x00007ffff6a1f7ec in free () from /lib/x86_64-linux-gnu/libc.so.6
#5  0x00007ffff6a0ba0d in fclose () from /lib/x86_64-linux-gnu/libc.so.6
#6  0x00007ffff772cb49 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#7  0x00007ffff74d1566 in Mix_LoadWAV_RW () from /usr/lib/x86_64-linux-gnu/libSDL_mixer-1.2.so.0
#8  0x0000000000617aa9 in dr_load_sample (filename=0x3aa2d98 "/tmp/simutrans/pak128/sound/train-horn-electric-0.wav")
    at sound/sdl_mixer_sound.cc:97
#9  0x00000000004419ad in sound_besch_t::get_sound_id (name=0x7fffffffc110 "train-horn-electric-0.wav")
    at besch/sound_besch.cc:105
#10 0x000000000044068f in vehicle_reader_t::read_node (this=0x8c5050, fp=0x3b0de80, node=...)
    at besch/reader/vehicle_reader.cc:273
#11 0x0000000000439474 in obj_reader_t::read_nodes (fp=0x3b0de80, data=@0x372b490, register_nodes=1, version=1003)
    at besch/reader/obj_reader.cc:271
#12 0x00000000004394b8 in obj_reader_t::read_nodes (fp=0x3b0de80, data=@0x7fffffffc380, register_nodes=0, version=1003)
    at besch/reader/obj_reader.cc:273
#13 0x00000000004392c8 in obj_reader_t::read_file (name=0xf6dc30 "pak128/vehicle.DB_BR103_1.pak")
    at besch/reader/obj_reader.cc:229
#14 0x0000000000438f02 in obj_reader_t::load (liste=0x9d6058 "pak128/", message=0x640788 "Loading paks ...")
    at besch/reader/obj_reader.cc:176
#15 0x00000000005988c4 in simu_main (argc=5, argv=0x7fffffffe3c8) at simmain.cc:798
#16 0x00000000005a8c45 in sysmain (argc=5, argv=0x7fffffffe3c8) at simsys.cc:109
#17 0x000000000061794a in main (argc=5, argv=0x7fffffffe3c8) at simsys_s.cc:593
(gdb) bt full
#0  0x00007ffff69d7475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1  0x00007ffff69da6f0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#2  0x00007ffff6a1126b in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#3  0x00007ffff6a1aab6 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#4  0x00007ffff6a1f7ec in free () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#5  0x00007ffff6a0ba0d in fclose () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#6  0x00007ffff772cb49 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
No symbol table info available.
#7  0x00007ffff74d1566 in Mix_LoadWAV_RW () from /usr/lib/x86_64-linux-gnu/libSDL_mixer-1.2.so.0
No symbol table info available.
#8  0x0000000000617aa9 in dr_load_sample (filename=0x3aa2d98 "/tmp/simutrans/pak128/sound/train-horn-electric-0.wav")
    at sound/sdl_mixer_sound.cc:97
        smp = 0x18
#9  0x00000000004419ad in sound_besch_t::get_sound_id (name=0x7fffffffc110 "train-horn-electric-0.wav")
    at besch/sound_besch.cc:105
        id = 0
        s = 0x0
#10 0x000000000044068f in vehicle_reader_t::read_node (this=0x8c5050, fp=0x3b0de80, node=...)
    at besch/reader/vehicle_reader.cc:273
        len = 25 '\031'
        wavname = "train-horn-electric-0.wav\000[\003\000\000\000\000\320\301\377\377\377\177\000\000\320\374\243\003\000\000\000\000\200\301\377\377\377\177\000\000\350\351F\000\000\000\000\000\320\301\377\377\377\177\000\000\001\001\000\000\000\000\000\000\215\000\000\000\000\000\000\000\300\343\377\377\377\177", '\000' <repeats 18 times>, "`\303\377\377\377\177\000\000\350!\237\366\377\177\000\000\030\000\000\000\060\000\000\000p\302\377\377\377\177\000\000\260\301\377\377\377\177\000\000@u\214", '\000' <repeats 13 times>"\251, \031\247\366\377\177\000\000\000\000\000\000\000\000\000\000\223k\241\366\377\177\000\000 \000\000\000\000\000\000\000\200h\322\366\377\177\000\000 \000\000\000\000\000\000\000\003i\322\366\377\177\000\000\b\000\000\000\000\000\000\000\nh\241\366\377\177\000\000\300\066\231\000\000\000\000\000X\302\377\377\377\177\000"
        besch_buf = 0x7fffffffc080 "\b\200\360\247\n\003"
        besch = 0x3aa2cf0
        p = 0x7fffffffc0b9 ""
        v = 32776
        version = 8
#11 0x0000000000439474 in obj_reader_t::read_nodes (fp=0x3b0de80, data=@0x372b490, register_nodes=1, version=1003)
    at besch/reader/obj_reader.cc:271
        node = {type = 1279477846, children = 8, size = 57}
        load_dummy = "VHCL\b\000\071\000@\303\377\377"
        p = 0x7fffffffc2c8 "@\303\377\377\377\177"
        reader = 0x8c5050
#12 0x00000000004394b8 in obj_reader_t::read_nodes (fp=0x3b0de80, data=@0x7fffffffc380, register_nodes=0, version=1003)
    at besch/reader/obj_reader.cc:273
        i = 0
---Type <return> to continue, or q <return> to quit---
        node = {type = 1414483794, children = 1, size = 0}
        load_dummy = "ROOT\001\000\000\000\362", <incomplete sequence \366>
        p = 0x7fffffffc338 "\362Ƞ\366\377\177"
        reader = 0x8c4f80
#13 0x00000000004392c8 in obj_reader_t::read_file (name=0xf6dc30 "pak128/vehicle.DB_BR103_1.pak")
    at besch/reader/obj_reader.cc:229
        data = 0xf5afb0
        c = 26
        n = 1
        version = 1003
        dummy = "\353\003\000"
        p = 0x7fffffffc394 "0"
        fp = 0x3b0de80
#14 0x0000000000438f02 in obj_reader_t::load (liste=0x9d6058 "pak128/", message=0x640788 "Loading paks ...")
    at besch/reader/obj_reader.cc:176
        i = 0xf70d80
        end = 0xf724b8
        max = 1667
        teilung = 31
        n = 924
        find = {files = {data = 0xf6f0a0, size = 2048, count = 1667}}
        name = {static npos = <optimized out>,
          _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
            _M_p = 0xf5acc8 "pak128/"}}
        i = 4691546
        drawing = true
#15 0x00000000005988c4 in simu_main (argc=5, argv=0x7fffffffe3c8) at simmain.cc:798
        quit_month = 2147483647
        path_sep = 0x6401ae "/"
        found_settings = true
        path_to_simuconf = "config/simuconf.tab\000\377\177\000"
        file = {mode = 6, saving = false, version = 111001, ident = 32767,
          pak_extension = "settings only", '\000' <repeats 11 times>"\370, \354\374\367\377\177\000\000\001\000\000\000\377\177\000\000\000\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\300\371\375\367\377\177\000", filename = {
            static npos = <optimized out>,
            _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x99bbc8 "settings.xml"}}, fp = 0x0, bzfp = 0x0, bse = 1, static save_mode = loadsave_t::bzip2}
        obj_conf = {static npos = <optimized out>,
          _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
            _M_p = 0x99b8e8 "/home/steven/simutrans/simuconf.tab"}}
        parameter = {1, 1}
        loadgame = {static npos = <optimized out>,
          _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
            _M_p = 0x7ffff69b5800 ""}}
        disp_width = 704
        pak_diagonal_multiplier = 724
        resolutions = {{640, 480}, {800, 600}, {1024, 768}, {1280, 1024}, {704, 560}}
---Type <return> to continue, or q <return> to quit---
        pak_tile_height = 16 '\020'
        simuconf = {file = 0x0}
        new_world = false
        disp_height = 560
        fullscreen = 0
        found_simuconf = true
        multiuser = true
        version = 0x6402b0 "Simutrans version 111.2 Nightly from Feb 11 2012\n"
#16 0x00000000005a8c45 in sysmain (argc=5, argv=0x7fffffffe3c8) at simsys.cc:109
        buffer2 = 0x0
        buffer = "/tmp/simutrans/simutrans\000\000\000\000\000\000\000\000p\340!\000\000\000\000\000(\020\364\366\377\177\000\000\000\000@\303\377\377\377\377\340\364\375\367\377\177\000\000\000\000\000\000\000\000\000\000G\342\322\366\377\177\000\000\300\323\377\377\377\177\000\000\000\000 \245\377\377\377\377\000\000\026R\275\357\377\377\240\001\000\000\000\000\000\000\240\001\000\000\000\000\000\000\b\000\000\000\000\000\000\000\004\000\000\000\004\000\000\000\060\341\377\377\377\177\000\000\240\341\377\377\377\177\000\000\000\360\375\367\377\177\000\000\000\000\000\000\000\000\000\000\241X\364\366\377\177\000\000\260\324\377\377\377\177\000\000b\237\336\367\377\177\000\000\000\000\000\000\000\000\000\000&\251\336\367\377\177\000\000\030\340\377\367\377\177\000\000X\341\377\377\377\177\000\000`\341\377\377\377\177\000\000o\341\377\377\377\177\000\000\060\237\336\367\377\177\000\000\230\021\364\366\377\177\000\000\240\341\377\377\377\177\000\000\025\221\336\367\377\177\000\000\300\371\375\367\377\177", '\000' <repeats 12 times>, "@\303\377\377\377\377\000\360\375\367\377\177\000\000\000\000\000\000\000\000\000\000\241X\364"...
        length = 24
#17 0x000000000061794a in main (argc=5, argv=0x7fffffffe3c8) at simsys_s.cc:593
No locals.


For what it may be worth, on the loading screen which appeared, the bar made it about halfway across, and aborted when it was loading pak128.

Dwachs

Could you try again also with 'backend=sdl'? I suppose the outcome is the same as before :(

Do you happen to have valgrind installed? Can you run both self-compiled (crashing) binaries with

valgrind --partial-loads-ok=yes --log-file=valgrind.log ./sim + your usual command-line parameters

and post the generated log-files in both cases?

Thank you for your patience!
Parsley, sage, rosemary, and maggikraut.

Steven

#12
My patience?  I should be thanking you. :P  Recompiling software is nothing, compared to having to track down a C++ memory error!

Anyway, I checked out the latest svn revision into two separate directories, compiled one for sdl and the other for mixer_sdl, unzipped two 111.1 releases of simutrans with pak128 2.0.0, and then swapped in the binaries I compiled.

Interestingly, the sdl version ran properly!  However, the mixer_sdl version received the same SIGABRT as before (included again for reference)

Message: vehicle_reader_t::read_node(): version=8 way=2 zuladung=72 preis=4233000 geschw=200 gewicht=31 axle_load=0 leistung=0 betrieb=65 sound=-1 vor=0 nach=4 date=5/1971 gear=64 engine_type=1 len=8
Message: obj_reader_t::read_file(): filename='pak128/vehicle.DB_BR103_1.pak'
Message: obj_reader_t::read_file(): read 1 blocks, file version is 3eb
*** glibc detected *** /tmp/simutrans/rel_mix/simutrans: double free or corruption (!prev): 0x0000000003a9a220 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x75ab6)[0x7ffff6a1aab6]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x7ffff6a1f7ec]
/lib/x86_64-linux-gnu/libc.so.6(fclose+0x14d)[0x7ffff6a0ba0d]
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0(+0x14b49)[0x7ffff772cb49]
/usr/lib/x86_64-linux-gnu/libSDL_mixer-1.2.so.0(Mix_LoadWAV_RW+0x246)[0x7ffff74d1566]
/tmp/simutrans/rel_mix/simutrans[0x617aa9]
/tmp/simutrans/rel_mix/simutrans[0x4419ad]
/tmp/simutrans/rel_mix/simutrans[0x44068f]
/tmp/simutrans/rel_mix/simutrans[0x439474]
/tmp/simutrans/rel_mix/simutrans[0x4394b8]
/tmp/simutrans/rel_mix/simutrans[0x4392c8]
/tmp/simutrans/rel_mix/simutrans[0x438f02]
/tmp/simutrans/rel_mix/simutrans[0x5988c4]
/tmp/simutrans/rel_mix/simutrans[0x5a8c45]
/tmp/simutrans/rel_mix/simutrans[0x61794a]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd)[0x7ffff69c3ead]
/tmp/simutrans/rel_mix/simutrans[0x404ac9]
======= Memory map: ========
00400000-006ba000 r-xp 00000000 08:06 99054                              /tmp/simutrans/rel_mix/simutrans
008b9000-008bc000 rw-p 002b9000 08:06 99054                              /tmp/simutrans/rel_mix/simutrans
008bc000-03ba4000 rw-p 00000000 00:00 0                                  [heap]
7fffe8000000-7fffe8021000 rw-p 00000000 00:00 0
7fffe8021000-7fffec000000 ---p 00000000 00:00 0
7fffeea78000-7fffeea79000 ---p 00000000 00:00 0
7fffeea79000-7fffef279000 rw-p 00000000 00:00 0
7fffef279000-7fffef28a000 r-xp 00000000 08:05 132787                     /usr/lib/libspeexdsp.so.1.5.0
7fffef28a000-7fffef48a000 ---p 00011000 08:05 132787                     /usr/lib/libspeexdsp.so.1.5.0
7fffef48a000-7fffef48b000 rw-p 00011000 08:05 132787                     /usr/lib/libspeexdsp.so.1.5.0
7fffef48b000-7fffef48d000 r-xp 00000000 08:05 146070                     /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_rate_speexrate.so
7fffef48d000-7fffef68c000 ---p 00002000 08:05 146070                     /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_rate_speexrate.so
7fffef68c000-7fffef68d000 rw-p 00001000 08:05 146070                     /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_rate_speexrate.so
7fffef68d000-7fffef698000 r-xp 00000000 08:05 531035                     /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fffef698000-7fffef897000 ---p 0000b000 08:05 531035                     /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fffef897000-7fffef898000 r--p 0000a000 08:05 531035                     /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fffef898000-7fffef899000 rw-p 0000b000 08:05 531035                     /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fffef899000-7fffef8a3000 r-xp 00000000 08:05 531031                     /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fffef8a3000-7fffefaa2000 ---p 0000a000 08:05 531031                     /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fffefaa2000-7fffefaa3000 r--p 00009000 08:05 531031                     /lib/x86_64-linux-gnu/libnss_nis-2.13.so
Program received signal SIGABRT, Aborted.
0x00007ffff69d7475 in *__GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
in ../nptl/sysdeps/unix/sysv/linux/raise.c
(gdb) bt
#0  0x00007ffff69d7475 in *__GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00007ffff69da6f0 in *__GI_abort () at abort.c:92
#2  0x00007ffff6a1126b in __libc_message (do_abort=<optimized out>, fmt=<optimized out>)
    at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#3  0x00007ffff6a1aab6 in malloc_printerr (action=3, str=0x7ffff6af1848 "double free or corruption (!prev)",
    ptr=<optimized out>) at malloc.c:6283
#4  0x00007ffff6a1f7ec in *__GI___libc_free (mem=<optimized out>) at malloc.c:3738
#5  0x00007ffff6a0ba0d in _IO_new_fclose (fp=0x3a9a220) at iofclose.c:88
#6  0x00007ffff772cb49 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#7  0x00007ffff74d1566 in Mix_LoadWAV_RW () from /usr/lib/x86_64-linux-gnu/libSDL_mixer-1.2.so.0
#8  0x0000000000617aa9 in dr_load_sample (filename=0x3a9a138 "/tmp/simutrans/rel_mix/pak128/sound/train-horn-electric-0.wav")
    at sound/sdl_mixer_sound.cc:97
#9  0x00000000004419ad in sound_besch_t::get_sound_id (name=0x7fffffffc0f0 "train-horn-electric-0.wav")
    at besch/sound_besch.cc:105
#10 0x000000000044068f in vehicle_reader_t::read_node (this=0x8c5050, fp=0x3b05320, node=...)
    at besch/reader/vehicle_reader.cc:273
#11 0x0000000000439474 in obj_reader_t::read_nodes (fp=0x3b05320, data=@0x3722910, register_nodes=1, version=1003)
    at besch/reader/obj_reader.cc:271
#12 0x00000000004394b8 in obj_reader_t::read_nodes (fp=0x3b05320, data=@0x7fffffffc360, register_nodes=0, version=1003)
    at besch/reader/obj_reader.cc:273
#13 0x00000000004392c8 in obj_reader_t::read_file (name=0xf5d0b0 "pak128/vehicle.DB_BR103_1.pak")
    at besch/reader/obj_reader.cc:229
#14 0x0000000000438f02 in obj_reader_t::load (liste=0x99ccb8 "pak128/", message=0x640788 "Loading paks ...")
    at besch/reader/obj_reader.cc:176
#15 0x00000000005988c4 in simu_main (argc=5, argv=0x7fffffffe3a8) at simmain.cc:798
#16 0x00000000005a8c45 in sysmain (argc=5, argv=0x7fffffffe3a8) at simsys.cc:109
#17 0x000000000061794a in main (argc=5, argv=0x7fffffffe3a8) at simsys_s.cc:593


Things get even more interesting when using valgrind.  Running them with valgrind --partial-loads-ok=yes --log-file=valgrind.log ./simutrans -debug 3 -objects pak128, both versions opened without crashing.  Not sure how to explain that, honestly.  I ran both until they loaded the New/Load game title window, and then exited using the Quit button.  (Note: When I copied the binaries, I renamed them from sim to simutrans -- just in case you noticed the name change.)

I've attached both logfiles, compressed with gzip (due to the max upload filesize limit).  valgrind_sdl.log is for the sdl version, and valgrind_mix.log is for the mixer_sdl version.

Dwachs

#13
I recompiled SDL-mixer myself, and now I can reproduce the crash with backend=mixer_sdl ...

Edit: Deleting pak128/sound/train-horn-electric-0.wav prevents from crashing. So it looks like SDL_mixer does not like this file  :-X

Edit2: The first crash is imho due to a bug in sdl-mixer.

Did I understood you correctly that the second crash (with backend=sdl) does not occur anymore?
Parsley, sage, rosemary, and maggikraut.

Steven

Quote from: Dwachs on February 12, 2012, 03:13:06 PMDid I understood you correctly that the second crash (with backend=sdl) does not occur anymore?

Correct.  Using 111.1's files and swapping in my own simutrans binary from svn (using the sdl backend), it runs without crashing.  Since I'm on Debian testing, it wouldn't be unheard of for there to be a bug in one of the packages. (viz. libsdl-mixer1.2)

Now, here's the interesting bit of information: Based on your comment, I decided to remove train-horn-electric-0.wav and retry my original installation (from apt).  Lo and behold, it loaded pak128 with no issues!  So whether it's a bug in SDL_mixer or not, it's definitely train-horn-electric-0.wav that's triggering the crash.

So, now I can use pak128 again!  Even so, though, I'm happy to keep assisting with debugging this in any way that I can.  Or, let me know if you want me to bring it to the attention of the maintainers of libsdl-mixer1.2.

Dwachs

I am pretty much convinced that there is a bug in sdl-mixer: it cannot load the train-horn-electric-0.wav file, and done performs a double-free. I entered a report in their bug tracker. Lets see.

Thanks for your assistance, it helped a lot to identify the bug.
Parsley, sage, rosemary, and maggikraut.

VS

#16
A program bug that turns out to be an upstream+pakset bug :D Well, I'll take a look at this. Maybe the file can be fixed.

edit:
Okay, I see. Wav files are a container for other formats (like avi), but due to some historical reasons, that didn't take off and they almost exclusively contain PCM ("raw" encoding, no compression). That's not the case here, as the stream is in MPEG. All other files are okay.

SDL_mixer probably has to be compiled with some optional mpeg support (didn't bother to check, but they didn't support mp3 in some configuration a few years back so it's likely). However, we don't really need that.

Anyway, I will convert the file to PCM, and that will be the end of story for me. These short sounds need no compression.

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

Dwachs

It was really an SDL-mixer bug: the routine could not load this Mpeg-Wav and then double-freed some resources. Its already fixed in the sdl-mixer repository, so will be fixed in future versions of this library.

Anyway it is a good idea to convert the file to something that can actually be played :)

Here is the bug report at the sdl-mixer bugtracker:
http://bugzilla.libsdl.org/show_bug.cgi?id=1418
Parsley, sage, rosemary, and maggikraut.

Steven

Thank you all for your help!  I look forward to these changes making their way through apt. :)