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
0x0000198c1990 at pc 0x00000247d31f bp 0x7ffd720e7030 sp 0x7ffd720e7020
READ of size 1 at 0x0000198c1990 thread T0
#0 0x247d31e in __gnu_cxx::char_traits<unsigned 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_traits<unsigned char>::length(unsigned
char const*) /usr/include/c++/5.1.0/bits/char_traits.h:161
#2 0x247d31e in std::basic_string<unsigned char, std::char_traits<unsigned
char>, std::allocator<unsigned char> >::basic_string(unsigned char const*,
std::allocator<unsigned 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
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs