URL:
  <http://gna.org/bugs/?23608>

                 Summary: UBSAN: findings while playing tutorial
                 Project: Battle for Wesnoth
            Submitted by: matthiaskrgr
            Submitted on: Sun 24 May 2015 12:48:25 AM UTC
                Category: Bug
                Severity: 2 - Minor
                Priority: 5 - Normal
              Item Group: Artificial Intelligence
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: git
        Operating System: linux

    _______________________________________________________

Details:

Compiled the game with -fsanitize=address,undefined and -g3 under gcc 5 and
played a bit through the tutorial.

The first one appears fairly at game start:

/home/matthias/vcs/github/wesnoth/src/lua/ltable.cpp:81:3: runtime error:
signed integer overflow: 996952458 + 1420850562 cannot be represented in type
'int'


This one appears a few times as soon as the AI does it's turn.
/home/matthias/vcs/github/wesnoth/src/ai/composite/aspect.hpp:258:7: runtime
error: member call on address 0x7ffedb9531f0 which does not point to an object
of type 'readonly_context'
0x7ffedb9531f0: note: object has invalid vptr
 34 7f 00 00  00 b8 89 05 00 00 00 00  80 a2 45 00 a0 61 00 00  98 0a 6f 05 00
00 00 00  98 69 6f 05
              ^~~~~~~~~~~~~~~~~~~~~~~
              invalid vptr

And some more appear when I ended the scenario.

Full log attached.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun 24 May 2015 12:48:25 AM UTC  Name: ubsan1.txt  Size: 16kB   By:
matthiaskrgr

<http://gna.org/bugs/download.php?file_id=24533>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?23608>

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


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

Reply via email to