[Wesnoth-bugs] [bug #23606] ASAN: crash starting local game. ( global-buffer-overflow )

2015-05-23 Thread Matthias Krüger
URL:
  http://gna.org/bugs/?23606

 Summary: ASAN: crash starting local game. (
global-buffer-overflow )
 Project: Battle for Wesnoth
Submitted by: matthiaskrgr
Submitted on: Sun 24 May 2015 12:28:41 AM UTC
Category: Bug
Severity: 3 - Normal
Priority: 5 - Normal
  Item Group: Multiplayer
  Status: None
 Privacy: Public
 Assigned to: None
Originator Email: 
 Open/Closed: Open
 Discussion Lock: Any
 Release: git
Operating System: linux

___

Details:

I compiled the game with -g3 -fsanitize=address,undefined under gcc 5:

When I through Multiplayer - Local Game, the game crashes.

This does not happen when I launch a campaign or the tutorial though:

==17574==ERROR: AddressSanitizer: global-buffer-overflow on address
0x198c1990 at pc 0x0247d31f bp 0x7ffd720e7030 sp 0x7ffd720e7020
READ of size 1 at 0x198c1990 thread T0
#0 0x247d31e in __gnu_cxx::char_traitsunsigned char::eq(unsigned char
const, unsigned char const) /usr/include/c++/5.1.0/bits/char_traits.h:97
#1 0x247d31e in __gnu_cxx::char_traitsunsigned char::length(unsigned
char const*) /usr/include/c++/5.1.0/bits/char_traits.h:161
#2 0x247d31e in std::basic_stringunsigned char, std::char_traitsunsigned
char, std::allocatorunsigned char ::basic_string(unsigned char const*,
std::allocatorunsigned char const)
/usr/include/c++/5.1.0/bits/basic_string.tcc:658
#3 0x2443e29 in ng::scenario::create_image_surface(SDL_Rect const)
/home/matthias/vcs/github/wesnoth/src/game_initialization/create_engine.cpp:149
#4 0x38b3977 in mp::create::draw_level_image()
/home/matthias/vcs/github/wesnoth/src/game_initialization/multiplayer_create.cpp:569
#5 0x37fbeb6 in mp::run_lobby_loop(display, mp::ui)
/home/matthias/vcs/github/wesnoth/src/game_initialization/multiplayer.cpp:99
#6 0x37fbeb6 in enter_create_mode
/home/matthias/vcs/github/wesnoth/src/game_initialization/multiplayer.cpp:565
#7 0x2cfea4a in game_launcher::play_multiplayer()
/home/matthias/vcs/github/wesnoth/src/game_launcher.cpp:954
#8 0x7db727 in do_gameloop
/home/matthias/vcs/github/wesnoth/src/wesnoth.cpp:780
#9 0x77f666 in main /home/matthias/vcs/github/wesnoth/src/wesnoth.cpp:994
#10 0x7f9f52e9f78f in __libc_start_main (/usr/lib/libc.so.6+0x2078f)
#11 0x7d1f78 in _start
(/home/matthias/vcs/github/wesnoth/build/wesnoth+0x7d1f78)




___

File Attachments:


---
Date: Sun 24 May 2015 12:28:41 AM UTC  Name: asan1.txt  Size: 4kB   By:
matthiaskrgr

http://gna.org/bugs/download.php?file_id=24532

___

Reply to this item at:

  http://gna.org/bugs/?23606

___
  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 #23607] editor: severe FPS drop in map generation settings

2015-05-23 Thread Matthias Krüger
URL:
  http://gna.org/bugs/?23607

 Summary: editor: severe FPS drop in map generation settings
 Project: Battle for Wesnoth
Submitted by: matthiaskrgr
Submitted on: Sun 24 May 2015 12:41:27 AM UTC
Category: Bug
Severity: 2 - Minor
Priority: 5 - Normal
  Item Group: Editor
  Status: None
 Privacy: Public
 Assigned to: None
Originator Email: 
 Open/Closed: Open
 Discussion Lock: Any
 Release: git
Operating System: linux

___

Details:

open the editor, then go Map - generate Map.
Fps is reported to be 50, and it feels fine.
But when I now hit the Settings button, fps is reported to be 90 however
I'd estimate it is rather 10-15ish.

The bottom text-line which tells the currently selected terrain type gets a
bit darker which makes me assume that things are rendered on top of each other
in a strange way.

@ 464b9a50e9047e46a71195e6a3e544c226bf9c6e




___

Reply to this item at:

  http://gna.org/bugs/?23607

___
  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 #23608] UBSAN: findings while playing tutorial

2015-05-23 Thread Matthias Krüger
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