Crash while conquering tower

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

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
==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/
    #1 0x5590301c7d08 in Widelands::Worker::dropoff_update(Widelands::Game&, Widelands::Bob::State&) ../src/logic/map_objects/tribes/
    #2 0x5590300367f5 in Widelands::Bob::do_act(Widelands::Game&) ../src/logic/map_objects/
    #3 0x55903003655d in Widelands::Bob::act(Widelands::Game&, unsigned int) ../src/logic/map_objects/
    #4 0x5590300744e9 in Widelands::CmdAct::execute(Widelands::Game&) ../src/logic/map_objects/
    #5 0x559030225ac1 in Widelands::CmdQueue::run_queue(int, unsigned int&) ../src/logic/
    #6 0x55902ff7011a in Widelands::Game::think() ../src/logic/
    #7 0x55903054edf4 in InteractiveBase::think() ../src/wui/
    #8 0x55903059796e in InteractivePlayer::think() ../src/wui/
    #9 0x5590303e5bd1 in UI::Panel::do_think() ../src/ui_basic/
    #10 0x5590303e2f36 in UI::Panel::do_run() ../src/ui_basic/
    #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/
    #13 0x5590302cdb26 in GameHost::run() ../src/network/
    #14 0x55902fc7069a in WLApplication::mainmenu_multiplayer() ../src/
    #15 0x55902fc6ef67 in WLApplication::mainmenu() ../src/
    #16 0x55902fc66219 in WLApplication::run() ../src/
    #17 0x55902fc6277e in main ../src/
    #18 0x7f87c4263b96 in __libc_start_main (/lib/x86_64-linux-gnu/
    #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/ in __dynamic_cast

Related branches

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

I get ' 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++/
50 /build/gcc/src/gcc/libstdc++-v3/libsupc++/ 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