← Back to team overview

widelands-dev team mailing list archive

ExpeditionBootstrap - segmentation fault

 

Hi,

I run into this problem couple of times today, my AI I am working on
crashes with this:

Program received signal SIGSEGV, Segmentation fault.
0x08ae915f in std::unique_ptr<Widelands::ExpeditionBootstrap,
std::default_delete<Widelands::ExpeditionBootstrap> >::get (this=0x54)
    at /usr/include/c++/4.9.1/bits/unique_ptr.h:305
305           { return std::get<0>(_M_t); }


bt shows:
#0  0x08ae915f in std::unique_ptr<Widelands::ExpeditionBootstrap,
std::default_delete<Widelands::ExpeditionBootstrap> >::get (this=0x54)
    at /usr/include/c++/4.9.1/bits/unique_ptr.h:305
#1  0x08ae82a7 in Widelands::PortDock::expedition_started (this=0x0) at
/var/widelands/BZR/seafaring-ai/src/economy/portdock.cc:420
#2  0x08a56de9 in Widelands::MapBuildingdataPacket::write_warehouse
(this=0xbfffc409, warehouse=..., fw=..., game=..., mos=...)
    at
/var/widelands/BZR/seafaring-ai/src/map_io/map_buildingdata_packet.cc:1393
#3  0x08a56126 in Widelands::MapBuildingdataPacket::write (this=0xbfffc409,
fs=..., egbase=..., mos=...)
    at
/var/widelands/BZR/seafaring-ai/src/map_io/map_buildingdata_packet.cc:1210
#4  0x08a6fe97 in Widelands::MapSaver::save (this=0xd540bc8) at
/var/widelands/BZR/seafaring-ai/src/map_io/map_saver.cc:184
#5  0x08b34ab0 in Widelands::GameMapPacket::write (this=0xbfffc4fc, fs=...,
game=...)
    at /var/widelands/BZR/seafaring-ai/src/game_io/game_map_packet.cc:72
#6  0x08b36ddc in Widelands::GameSaver::save (this=0xbfffc554) at
/var/widelands/BZR/seafaring-ai/src/game_io/game_saver.cc:61
#7  0x0884febd in SaveHandler::save_game (this=0xbfffc934, game=...,
complete_filename="save/wl_autosave.wgf", error=0xbfffc5a0)
    at /var/widelands/BZR/seafaring-ai/src/logic/save_handler.cc:183
#8  0x0884f957 in SaveHandler::think (this=0xbfffc934, game=...,
realtime=1323542)
    at /var/widelands/BZR/seafaring-ai/src/logic/save_handler.cc:94
#9  0x087e612a in Widelands::Game::think (this=0xbfffc7d4) at
/var/widelands/BZR/seafaring-ai/src/logic/game.cc:619
#10 0x089b534c in InteractiveBase::think (this=0x9aebf40) at
/var/widelands/BZR/seafaring-ai/src/wui/interactive_base.cc:381
#11 0x0892f7cc in UI::Panel::do_think (this=0x9aebf40) at
/var/widelands/BZR/seafaring-ai/src/ui_basic/panel.cc:587
#12 0x0892eee8 in UI::Panel::run (this=0x9aebf40) at
/var/widelands/BZR/seafaring-ai/src/ui_basic/panel.cc:211
#13 0x087e5d50 in Widelands::Game::run (this=0xbfffc7d4,
loader_ui=0x93d4478, start_game_type=Widelands::Game::NewNonScenario,
    script_to_run="", replay=false) at
/var/widelands/BZR/seafaring-ai/src/logic/game.cc:565
#14 0x088f260c in NetHost::run (this=0xbfffd320, autorun=false) at
/var/widelands/BZR/seafaring-ai/src/network/nethost.cc:911
#15 0x0872e189 in WLApplication::mainmenu_multiplayer (this=0x8fca8e0) at
/var/widelands/BZR/seafaring-ai/src/wlapplication.cc:1286
#16 0x0872d8a7 in WLApplication::mainmenu (this=0x8fca8e0) at
/var/widelands/BZR/seafaring-ai/src/wlapplication.cc:1135
#17 0x087296e3 in WLApplication::run (this=0x8fca8e0) at
/var/widelands/BZR/seafaring-ai/src/wlapplication.cc:390
#18 0x08727ed5 in main (argc=2, argv=0xbffff874) at
/var/widelands/BZR/seafaring-ai/src/main.cc:178

Backtrace does not even mention ai/* files.

This is rev 7217 of seafaring-ai.
http://bazaar.launchpad.net/~widelands-dev/widelands/seafaring-ai/files/head:/src/ai/

All I can say the game already had few colonies....

Any help welcomed!

Tibor

Follow ups