Crash while conquering tower

Bug #1815664 reported by GunChleoc
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Undecided
Unassigned

Bug Description

The attached MP savegame will crash shortly after loading

 4: Player has not all buildings for basic economy yet (10 missing), but enemy is nearby, so quitting the mode at 002:25:05
ASAN:DEADLYSIGNAL
=================================================================
==12863==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f87c4c7a35d bp 0x7ffffde01000 sp 0x7ffffde00eb0 T0)
==12863==The signal is caused by a READ memory access.
==12863==Hint: address points to the zero page.
    #0 0x7f87c4c7a35c in __dynamic_cast (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x9135c)
    #1 0x5590301c7d08 in Widelands::Worker::dropoff_update(Widelands::Game&, Widelands::Bob::State&) ../src/logic/map_objects/tribes/worker.cc:2055
    #2 0x5590300367f5 in Widelands::Bob::do_act(Widelands::Game&) ../src/logic/map_objects/bob.cc:193
    #3 0x55903003655d in Widelands::Bob::act(Widelands::Game&, unsigned int) ../src/logic/map_objects/bob.cc:179
    #4 0x5590300744e9 in Widelands::CmdAct::execute(Widelands::Game&) ../src/logic/map_objects/map_object.cc:100
    #5 0x559030225ac1 in Widelands::CmdQueue::run_queue(int, unsigned int&) ../src/logic/cmd_queue.cc:123
    #6 0x55902ff7011a in Widelands::Game::think() ../src/logic/game.cc:568
    #7 0x55903054edf4 in InteractiveBase::think() ../src/wui/interactive_base.cc:389
    #8 0x55903059796e in InteractivePlayer::think() ../src/wui/interactive_player.cc:205
    #9 0x5590303e5bd1 in UI::Panel::do_think() ../src/ui_basic/panel.cc:482
    #10 0x5590303e2f36 in UI::Panel::do_run() ../src/ui_basic/panel.cc:183
    #11 0x55902fc84b55 in UI::Panel::Returncodes UI::Panel::run<UI::Panel::Returncodes>() ../src/ui_basic/panel.h:103
    #12 0x55902ff6f961 in Widelands::Game::run(UI::ProgressWindow*, Widelands::Game::StartGameType, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ../src/logic/game.cc:538
    #13 0x5590302cdb26 in GameHost::run() ../src/network/gamehost.cc:691
    #14 0x55902fc7069a in WLApplication::mainmenu_multiplayer() ../src/wlapplication.cc:1244
    #15 0x55902fc6ef67 in WLApplication::mainmenu() ../src/wlapplication.cc:1083
    #16 0x55902fc66219 in WLApplication::run() ../src/wlapplication.cc:452
    #17 0x55902fc6277e in main ../src/main.cc:44
    #18 0x7f87c4263b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #19 0x55902fc625f9 in _start (/media/cuideigin/Linux/sources/widelands/trunk/widelands+0xd6f5f9)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x9135c) in __dynamic_cast
==12863==ABORTING

Related branches

Revision history for this message
GunChleoc (gunchleoc) wrote :
Revision history for this message
kaputtnik (franku) wrote :

I get 'dyncast.cc: File not found' when running with gdb:

Forcing flag at (15, 42)
TI(887): destination disappeared or economy mismatch -> fail
TI(2523): destination disappeared or economy mismatch -> fail
TI(1281): destination disappeared or economy mismatch -> fail

Thread 1 "widelands" received signal SIGSEGV, Segmentation fault.
__cxxabiv1::__dynamic_cast (src_ptr=0x0, src_type=0x555556bc9598 <typeinfo for Widelands::PlayerImmovable>,
    dst_type=0x555556bc9900 <typeinfo for Widelands::Building>, src2dst=0) at /build/gcc/src/gcc/libstdc++-v3/libsupc++/dyncast.cc:50
50 /build/gcc/src/gcc/libstdc++-v3/libsupc++/dyncast.cc: Datei oder Verzeichnis nicht gefunden.

Revision history for this message
GunChleoc (gunchleoc) wrote :

What's happening here is that a carrier tries to dropoff a ware into a warehouse that just got destroyed.

Changed in widelands:
assignee: nobody → GunChleoc (gunchleoc)
status: New → In Progress
Revision history for this message
hessenfarmer (stephan-lutz) wrote :

branch is merged thanks for fixing

Changed in widelands:
status: In Progress → Fix Committed
assignee: GunChleoc (gunchleoc) → nobody
Revision history for this message
GunChleoc (gunchleoc) wrote :

Fixed in build20-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