URL:
<http://gna.org/bugs/?21093>
Summary: Bank teller crashes next load of test scenario
Project: Battle for Wesnoth
Submitted by: jamit
Submitted on: Mon 02 Sep 2013 03:55:50 PM EDT
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.11.6+dev
Operating System: Linux
_______________________________________________________
Details:
I ran the test scenario (wesnoth -t) and stopped by the "Bank Teller" hex. The
following was stored in persist/demo.cfg:
[sub]
[name]
[variables]
savings=100
[/variables]
[/name]
[/sub]
The next time I tried to run the test scenario, I got a segmentation fault.
Clearing the contents of persist/demo.cfg caused the crash to go away.
Upon doing a code trace, I found the culprit lying in
persist_file_context::clear_var(), where a null pointer is being dereferenced.
I'll change that to an assertion failure shortly so that the error message is
more meaningful, but a fix would need to come from someone who knows how the
persistent variable code is supposed to work.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?21093>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs