Segmentation fault during combat
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Critical
|
Unassigned |
Bug Description
A segfault predictably happens whenever I enter combat. I just built revision 6601 today on Arch. This did not happen with the revision I built a week ago.
MilitarySite:
MilitarySite:
MilitarySite:
MilitarySite:
...
...
MilitarySite:
MilitarySite:
MilitarySite:
MilitarySite:
Cmd_EnemyFlagAc
MilitarySite:
MilitarySite:
MilitarySite:
Segmentation fault (core dumped)
I would think it has to do with the recent "military site soldier preference selection by Teppo" in rev. 6600.
In the attached savegame, when i keep attacking the other player, i get this access violation. it does not seem to happen without attacking.
the game was started with r6601
Last lines of output and backtrace: tion::execute player(1): flag->owner(2) number=4
Forcing flag at (18, 2)
Cmd_EnemyFlagAc
Program received signal SIGSEGV, Segmentation fault. :Soldier: :get_level( Widelands: :tAttribute) const () :Soldier: :get_level( Widelands: :tAttribute) const () :MilitarySite: :update_ upgrade_ requirements( ) () :MilitarySite: :update_ upgrade_ soldier_ request( ) () :MilitarySite: :update_ soldier_ request( bool) () :MilitarySite: :act(Widelands: :Game&, unsigned int) () :Cmd_Act: :execute( Widelands: :Game&) () :Cmd_Queue: :run_queue( int, int&) () :Game:: think() () Base::think( ) () Player: :think( ) () :Game:: run_load_ game(std: :string) () :load_game( ) () :mainmenu_ singleplayer( ) () :mainmenu( ) () :run() ()
0x00000000007ad970 in Widelands:
(gdb) bt
#0 0x00000000007ad970 in Widelands:
#1 0x00000000005f9062 in Widelands:
#2 0x00000000005f913b in Widelands:
#3 0x00000000005f95e9 in Widelands:
#4 0x00000000005f9c6e in Widelands:
#5 0x000000000078c2aa in Widelands:
#6 0x0000000000601168 in Widelands:
#7 0x00000000005ef02f in Widelands:
#8 0x0000000000678740 in Interactive_
#9 0x0000000000636a85 in Interactive_
#10 0x00000000006995d9 in UI::Panel::run() ()
#11 0x00000000005f4da9 in Widelands:
#12 0x000000000055a95f in WLApplication:
#13 0x000000000055b2bc in WLApplication:
#14 0x000000000055b978 in WLApplication:
#15 0x000000000055bf0b in WLApplication:
#16 0x000000000054ee12 in main ()