segmentation fault - AI building enhancement
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Medium
|
TiborB |
Bug Description
I just encountered a crash, I run the game (AI-only game) under gdb so I collected some information:
Program received signal SIGSEGV, Segmentation fault.
0xb7b7a024 in std::string:
(gdb) bt
#0 0xb7b7a024 in std::string:
#1 0x08b46283 in DefaultAI:
#2 0x08b3f478 in DefaultAI::think (this=0xbef6d80) at /var/widelands/
(gdb) frame 1
#1 0x08b46283 in DefaultAI:
2075 BuildingObserver& en_bo = get_building_
the portion of code:
2072 // Only enhance buildings that are allowed (scenario mode)
2073 if (player_
2074 const Building_Descr& bld = *tribe_
2075 BuildingObserver& en_bo = get_building_
I cannot repeat the crash, but I encountered the same crash before. Frequency is like once in 100 hours of gameplay. I may insert some printfs to find out at least what buildings are considered for upgrade and wait for next crash...
Related branches
- SirVer: Approve
- GunChleoc: Approve
- TiborB: Needs Resubmitting
-
Diff: 5408 lines (+1706/-1131)108 files modifiedsrc/ai/ai_help_structs.cc (+9/-6)
src/ai/ai_help_structs.h (+19/-10)
src/ai/ai_hints.cc (+2/-4)
src/ai/ai_hints.h (+10/-20)
src/ai/defaultai.cc (+1492/-991)
src/ai/defaultai.h (+37/-10)
src/logic/productionsite.cc (+5/-0)
src/logic/productionsite.h (+19/-0)
src/notifications/note_ids.h (+1/-0)
tribes/atlanteans/armorsmithy/conf (+1/-1)
tribes/atlanteans/bakery/conf (+2/-2)
tribes/atlanteans/blackroot_farm/conf (+1/-1)
tribes/atlanteans/castle/conf (+1/-0)
tribes/atlanteans/charcoal_kiln/conf (+1/-1)
tribes/atlanteans/coalmine/conf (+1/-0)
tribes/atlanteans/cornflour/conf (+1/-1)
tribes/atlanteans/crystalmine/conf (+1/-0)
tribes/atlanteans/farm/conf (+2/-1)
tribes/atlanteans/fish_breeders_house/conf (+1/-1)
tribes/atlanteans/fishers_house/conf (+1/-1)
tribes/atlanteans/foresters_house/conf (+1/-0)
tribes/atlanteans/gold-spinning-mill/conf (+1/-1)
tribes/atlanteans/goldmine/conf (+1/-1)
tribes/atlanteans/horsefarm/conf (+0/-1)
tribes/atlanteans/hunters_house/conf (+1/-1)
tribes/atlanteans/ironmine/conf (+1/-1)
tribes/atlanteans/labyrinth/conf (+3/-0)
tribes/atlanteans/mill/conf (+1/-1)
tribes/atlanteans/quarry/conf (+1/-1)
tribes/atlanteans/sawmill/conf (+2/-1)
tribes/atlanteans/scouts_house/conf (+0/-1)
tribes/atlanteans/shipyard/conf (+0/-1)
tribes/atlanteans/smelting_works/conf (+1/-1)
tribes/atlanteans/smokery/conf (+2/-2)
tribes/atlanteans/spidercloth/conf (+1/-1)
tribes/atlanteans/spiderfarm/conf (+4/-0)
tribes/atlanteans/spideryarn/conf (+1/-1)
tribes/atlanteans/toolsmithy/conf (+2/-2)
tribes/atlanteans/tower/conf (+1/-0)
tribes/atlanteans/weaponsmithy/conf (+1/-1)
tribes/atlanteans/weaving-mill/conf (+2/-1)
tribes/atlanteans/well/conf (+2/-0)
tribes/atlanteans/woodcutters_house/conf (+1/-1)
tribes/barbarians/axfactory/conf (+0/-1)
tribes/barbarians/bakery/conf (+1/-1)
tribes/barbarians/cattlefarm/conf (+0/-1)
tribes/barbarians/charcoal_kiln/conf (+1/-1)
tribes/barbarians/coalmine/conf (+1/-0)
tribes/barbarians/donjon/conf (+1/-0)
tribes/barbarians/fishers_hut/conf (+1/-1)
tribes/barbarians/fortress/conf (+1/-0)
tribes/barbarians/gamekeepers_hut/conf (+1/-1)
tribes/barbarians/goldmine/conf (+1/-1)
tribes/barbarians/granitemine/conf (+1/-0)
tribes/barbarians/hardener/conf (+1/-1)
tribes/barbarians/helmsmithy/conf (+1/-1)
tribes/barbarians/hunters_hut/conf (+1/-1)
tribes/barbarians/lumberjacks_hut/conf (+1/-1)
tribes/barbarians/metalworks/conf (+2/-2)
tribes/barbarians/micro-brewery/conf (+1/-1)
tribes/barbarians/oremine/conf (+1/-1)
tribes/barbarians/quarry/conf (+1/-1)
tribes/barbarians/reed_yard/conf (+1/-0)
tribes/barbarians/scouts_hut/conf (+0/-1)
tribes/barbarians/shipyard/conf (+0/-1)
tribes/barbarians/smelting_works/conf (+1/-1)
tribes/barbarians/tavern/conf (+1/-2)
tribes/barbarians/trainingcamp/conf (+3/-0)
tribes/barbarians/warmill/conf (+0/-1)
tribes/barbarians/weaving-mill/conf (+1/-1)
tribes/barbarians/well/conf (+1/-1)
tribes/empire/armorsmithy/conf (+1/-1)
tribes/empire/bakery/conf (+1/-1)
tribes/empire/beer/conf (+1/-1)
tribes/empire/brewery/conf (+2/-2)
tribes/empire/charcoal_kiln/conf (+1/-1)
tribes/empire/coalmine/conf (+1/-0)
tribes/empire/donkeyfarm/conf (+0/-1)
tribes/empire/farm/conf (+1/-1)
tribes/empire/fishers_house/conf (+1/-1)
tribes/empire/flour/conf (+1/-1)
tribes/empire/fortress/conf (+1/-0)
tribes/empire/goldmine/conf (+1/-1)
tribes/empire/grape/conf (+1/-1)
tribes/empire/hunters_house/conf (+0/-1)
tribes/empire/lumberjacks_house/conf (+1/-1)
tribes/empire/marblemine/conf (+1/-1)
tribes/empire/mill/conf (+1/-1)
tribes/empire/oremine/conf (+1/-1)
tribes/empire/outpost/conf (+1/-0)
tribes/empire/piggery/conf (+0/-1)
tribes/empire/quarry/conf (+1/-1)
tribes/empire/sawmill/conf (+2/-1)
tribes/empire/scouts_house/conf (+0/-1)
tribes/empire/sheepfarm/conf (+2/-1)
tribes/empire/shipyard/conf (+0/-1)
tribes/empire/smelting_works/conf (+1/-1)
tribes/empire/stonemasons_house/conf (+2/-1)
tribes/empire/tavern/conf (+2/-2)
tribes/empire/toolsmithy/conf (+2/-2)
tribes/empire/tower/conf (+1/-0)
tribes/empire/trainingcamp/conf (+3/-0)
tribes/empire/vineyard/conf (+1/-3)
tribes/empire/weaponsmithy/conf (+1/-1)
tribes/empire/weaving-mill/conf (+3/-0)
tribes/empire/well/conf (+1/-1)
tribes/empire/wine/conf (+1/-1)
tribes/empire/winery/conf (+2/-2)
Changed in widelands: | |
assignee: | nobody → Tibor Bamhor (tiborb95) |
tags: |
added: ai removed: computerplayer |
Changed in widelands: | |
status: | Fix Committed → Fix Released |
>I cannot repeat the crash, but I encountered the same crash before.
Does it crash in the replay, or does that stop just before?