URL:
<http://gna.org/bugs/?13584>
Summary: [kill] may lead to crashes
Project: Battle for Wesnoth
Submitted by: theron
Submitted on: Donnerstag 28.05.2009 um 11:54
Category: Bug
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: WML
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.6.2
Operating System: Mac OS X 10.5.6
_______________________________________________________
Details:
For my campaign (in development) I'd like to purge the recall list after a
certain amount of recalls have been made.
I experienced several crashes when using [kill] ... [/kill].
Unfortunately I'm not able to reproduce it anymore.
After I posted the issue in
http://www.wesnoth.org/forum/viewtopic.php?f=21&t=25589 I did several changes
to my code and now it is working as intended.
(And I updated to Mac OS X 10.5.7.)
But Sapient asked for a formal bug report.
Mostly I got segmentation faults (see exemplary crash report
Wesnoth_2009-05-23-213712_MBA.crash).
And there was a single abort (see crash report
Wesnoth_2009-05-23-214354_MBA.crash) which produced this konsole output:
23.05.09 21:43:54 [0x0-0xbf0bf].org.wesnoth.Wesnoth[1086] terminate called
after throwing an instance of 'std::length_error'
23.05.09 21:43:54 [0x0-0xbf0bf].org.wesnoth.Wesnoth[1086] what():
basic_string::_S_create
23.05.09 21:43:58 com.apple.launchd[724]
([0x0-0xbf0bf].org.wesnoth.Wesnoth[1086]) Exited abnormally: Abort trap
23.05.09 21:43:58 com.apple.launchd[724]
([0x0-0xbf0bf].org.wesnoth.Wesnoth[1086]) Exited abnormally: Abort trap
I think the issue is related to the filter applied to the kill command.
Once I replaced the killing with storing the units with x,y=recall,recall in
a variable and 'messaged' them in a {FOREACH on_recall_list i} (still being
in the [event] name=recall):
The unit which triggered the store_unit (and/or kill) was in the array too
despite also being on the playfield.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Donnerstag 28.05.2009 um 11:54 Name:
Wesnoth_2009-05-23-213712_MBA.crash Size: 28kB By: theron
<http://gna.org/bugs/download.php?file_id=5824>
-------------------------------------------------------
Date: Donnerstag 28.05.2009 um 11:54 Name:
Wesnoth_2009-05-23-214354_MBA.crash Size: 28kB By: theron
<http://gna.org/bugs/download.php?file_id=5825>
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?13584>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs