URL:
<http://gna.org/bugs/?25538>
Summary: attack prediction: division by zero (test scenario)
Project: Battle for Wesnoth
Submitted by: matthiaskrgr
Submitted on: Fri 24 Feb 2017 12:17:39 PM UTC
Category: Bug
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None of the others
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: git
Operating System: linux
_______________________________________________________
Details:
UBSAN_OPTIONS=print_stacktrace=1 ./build/wesnoth -t
end turn
(on dialogs, just confirm the first preselected option)
/home/matthias/vcs/github/wesnoth/src/attack_prediction.cpp:1282:59: runtime
error: division by zero
/home/matthias/vcs/github/wesnoth/src/attack_prediction.cpp:1284:59: runtime
error: division by zero
/home/matthias/vcs/github/wesnoth/src/ai/contexts.cpp:1136:44: runtime error:
signed integer overflow: 1539000000 * 2 cannot be represented in type 'int'
I attached full backtraces of the errors.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Fri 24 Feb 2017 12:17:39 PM UTC Name: attack_prediction.log Size: 22kB
By: matthiaskrgr
<http://gna.org/bugs/download.php?file_id=29851>
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?25538>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs