← Back to team overview

widelands-dev team mailing list archive

crash

 

Hi,

I just encountered a crash, I run the game under gdb so I collected some
information:



Program received signal SIGSEGV, Segmentation fault.
0xb7b7a024 in std::string::c_str() const () from
/usr/lib/i386-linux-gnu/libstdc++.so.6
(gdb) bt

#0 0xb7b7a024 in std::string::c_str() const () from
/usr/lib/i386-linux-gnu/libstdc++.so.6

#1 0x08b46283 in DefaultAI::check_productionsites (this=0xbef6d80,
gametime=370560) at /var/widelands/tibor-ai5/src/ai/defaultai.cc:2075

#2 0x08b3f478 in DefaultAI::think (this=0xbef6d80) at
/var/widelands/tibor-ai5/src/ai/defaultai.cc:207


(gdb) frame 1

#1 0x08b46283 in DefaultAI::check_productionsites (this=0xbef6d80,
gametime=370560) at /var/widelands/tibor-ai5/src/ai/defaultai.cc:2075

2075 BuildingObserver& en_bo = get_building_observer(bld.name().c_str());



the portion of code:


2072 // Only enhance buildings that are allowed (scenario mode)

2073 if (player_->is_building_type_allowed(enhancement)) {

2074 const Building_Descr& bld = *tribe_->get_building_descr(enhancement);

2075 BuildingObserver& en_bo = get_building_observer(bld.name().c_str());


I may open o bug


Tibor

Follow ups