The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: gerw on January 19, 2009, 08:49:06 pm

Title: [bug+fix?] SegFault when loading some games
Post by: gerw on January 19, 2009, 08:49:06 pm
When loading some games simutrans crashes with segfault:
Code: [Select]
(gdb) back
#0  0x0806c6c4 in weg_besch_t::get_intro_year_month (this=0x0)
    at bauer/../boden/../boden/wege/../../besch/weg_besch.h:176
#1  0x0806b8a3 in wegbauer_t::get_besch (way_name=0x84919f1 "de", time=22773) at bauer/wegbauer.cc:149
#2  0x081bea09 in karte_t::recalc_average_speed (this=0x8493a28) at simworld.cc:2428
#3  0x081c5fd5 in karte_t::laden (this=0x8493a28, file=0xbfb916a8) at simworld.cc:3377
#4  0x081c8351 in karte_t::laden (this=0x8493a28, filename=0xbfb91794 "save/Bug_loading.sve")
    at simworld.cc:3280

The appended patch will fix this behaviour, but maybe it is not correct overall? Is a savegame needed, prissi?
Title: Re: [bug+fix?] SegFault when loading some games
Post by: prissi on January 19, 2009, 10:01:56 pm
This would result in the AI building tracks before their availbility. How comes, that a savegame want ways to built, that are not yet available?

I think I want to look at the savegame first.
Title: Re: [bug+fix?] SegFault when loading some games
Post by: gerw on January 19, 2009, 10:05:08 pm
It's pak.german.