[Wesnoth-bugs] [bug #25538] attack prediction: division by zero (test scenario)

2017-03-18 Thread Charles Dang
Update of bug #25538 (project wesnoth):

 Open/Closed:Open => Closed 


___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Wesnoth-bugs mailing list
Wesnoth-bugs@gna.org
https://mail.gna.org/listinfo/wesnoth-bugs


[Wesnoth-bugs] [bug #25538] attack prediction: division by zero (test scenario)

2017-02-26 Thread Jyrki Vesterinen
Update of bug #25538 (project wesnoth):

  Status:None => Fixed  

___

Follow-up Comment #2:

Fixed:
https://github.com/wesnoth/wesnoth/commit/bdd173f22270ea0d40fbd4469a5146b1f46d432d

Please file a separate bug report about the integer overflow. It's a different
bug, and I don't maintain AI code.

___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Wesnoth-bugs mailing list
Wesnoth-bugs@gna.org
https://mail.gna.org/listinfo/wesnoth-bugs


[Wesnoth-bugs] [bug #25538] attack prediction: division by zero (test scenario)

2017-02-24 Thread Daniel
Follow-up Comment #1, bug #25538 (project wesnoth):

The division by zero is intenational there.

The integer overflow might not be though, maybe we should change that ai code
to use floats instead.


___

Reply to this item at:

  

___
  Nachricht gesendet von/durch Gna!
  http://gna.org/


___
Wesnoth-bugs mailing list
Wesnoth-bugs@gna.org
https://mail.gna.org/listinfo/wesnoth-bugs


[Wesnoth-bugs] [bug #25538] attack prediction: division by zero (test scenario)

2017-02-24 Thread Jyrki Vesterinen
Update of bug #25538 (project wesnoth):

 Assigned to:None => jyrkive


___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Wesnoth-bugs mailing list
Wesnoth-bugs@gna.org
https://mail.gna.org/listinfo/wesnoth-bugs


[Wesnoth-bugs] [bug #25538] attack prediction: division by zero (test scenario)

2017-02-24 Thread Matthias Krüger
URL:
  

 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: 153900 * 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



___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Wesnoth-bugs mailing list
Wesnoth-bugs@gna.org
https://mail.gna.org/listinfo/wesnoth-bugs