crash in game logic caused by Worker::fetchfromflag_update()

Bug #670604 reported by Timowi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
High
Timowi

Bug Description

gdb output follows. I just want to keep the information in the bugtracker.

Request::get_base_required_time: WARNING nr = 1 but count is 1, which is not allowed according to the comment for this function

Program received signal SIGSEGV, Segmentation fault.
Widelands::Flag::fetch_pending_item (this=0x0, game=..., dest=...) at /home/timo/widelands/trunk/src/economy/flag.cc:448
448 for (int32_t i = 0; i < m_item_filled; ++i) {
(gdb) bt
#0 Widelands::Flag::fetch_pending_item (this=0x0, game=..., dest=...) at /home/timo/widelands/trunk/src/economy/flag.cc:448
#1 0x082224ca in Widelands::Worker::fetchfromflag_update (this=0xef89b528, game=..., state=...) at /home/timo/widelands/trunk/src/logic/worker.cc:2064
#2 0x081c86f1 in Widelands::Bob::do_act (this=0xef89b528, game=...) at /home/timo/widelands/trunk/src/logic/bob.cc:224
#3 0x081ab165 in Widelands::Cmd_Act::execute (this=0x239f1130, game=...) at /home/timo/widelands/trunk/src/logic/instances.cc:107
#4 0x081f0552 in Widelands::Cmd_Queue::run_queue (this=0xffff99f8, interval=456, game_time_var=@0xffff989c) at /home/timo/widelands/trunk/src/logic/cmd_queue.cc:119
#5 0x08193777 in Widelands::Game::think (this=0xffff986c) at /home/timo/widelands/trunk/src/logic/game.cc:565
#6 0x082c2b9e in Interactive_Base::think (this=0xed94bf8) at /home/timo/widelands/trunk/src/wui/interactive_base.cc:332
#7 0x0817ae68 in UI::Panel::do_think (this=0xed94bf8) at /home/timo/widelands/trunk/src/ui_basic/panel.cc:542
#8 0x0817cab1 in UI::Panel::run (this=0xed94bf8) at /home/timo/widelands/trunk/src/ui_basic/panel.cc:174
#9 0x081980e4 in Widelands::Game::run (this=0xffff986c, loader_ui=..., start_game_type=Widelands::Game::NewNonScenario) at /home/timo/widelands/trunk/src/logic/game.cc:535
#10 0x081591a0 in NetHost::run (this=0xffffb238, autorun=false) at /home/timo/widelands/trunk/src/network/nethost.cc:653
#11 0x0812d52b in WLApplication::mainmenu_multiplayer (this=0x858e228) at /home/timo/widelands/trunk/src/wlapplication.cc:1695
#12 0x081331ce in WLApplication::mainmenu (this=0x858e228) at /home/timo/widelands/trunk/src/wlapplication.cc:1480
#13 0x08133745 in WLApplication::run (this=0x858e228) at /home/timo/widelands/trunk/src/wlapplication.cc:419
#14 0x08129cb1 in main (argc=2, argv=0xffffd284) at /home/timo/widelands/trunk/src/main.cc:48
(gdb) bt full 5
#0 Widelands::Flag::fetch_pending_item (this=0x0, game=..., dest=...) at /home/timo/widelands/trunk/src/economy/flag.cc:448
        i = <value optimized out>
        best_index = <value optimized out>
        item = <value optimized out>
#1 0x082224ca in Widelands::Worker::fetchfromflag_update (this=0xef89b528, game=..., state=...) at /home/timo/widelands/trunk/src/logic/worker.cc:2064
        item = <value optimized out>
        employer = @0x0
        location = <value optimized out>
        __PRETTY_FUNCTION__ = "void Widelands::Worker::fetchfromflag_update(Widelands::Game&, Widelands::Bob::State&)"
#2 0x081c86f1 in Widelands::Bob::do_act (this=0xef89b528, game=...) at /home/timo/widelands/trunk/src/logic/bob.cc:224
        __PRETTY_FUNCTION__ = "void Widelands::Bob::do_act(Widelands::Game&)"
        task = @0x84ae8e0
#3 0x081ab165 in Widelands::Cmd_Act::execute (this=0x239f1130, game=...) at /home/timo/widelands/trunk/src/logic/instances.cc:107
        obj = 0x0
#4 0x081f0552 in Widelands::Cmd_Queue::run_queue (this=0xffff99f8, interval=456, game_time_var=@0xffff989c) at /home/timo/widelands/trunk/src/logic/cmd_queue.cc:119
        c = @0x239f1130
        final = 64224919
        __PRETTY_FUNCTION__ = "int32_t Widelands::Cmd_Queue::run_queue(int32_t, int32_t&)"
(More stack frames follow...)

Revision history for this message
SirVer (sirver) wrote :

Released in build16-rc1

Changed in widelands:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.