URL:
<http://gna.org/bugs/?19199>
Summary: Local time of day lighting-related segfault
Project: Battle for Wesnoth
Submitted by: espreon
Submitted on: Sun 18 Dec 2011 04:57:58 AM GMT
Category: Bug
Severity: 5 - Blocker
Priority: 5 - Normal
Item Group: None of the others
Status: None
Privacy: Public
Assigned to: alink
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.9.12+svn (52324)
Operating System: Sabayon Linux
_______________________________________________________
Details:
When launching my campaign's test... campaign, I stumbled upon this creepy
crawly.
This seems to be caused by those local time of day areas in the scenario's
prestart event since if I have local time of day lighting disabled, the
segfault does not occur.
The Silver Lands svn:
https://wesnoth-umc-dev.svn.sourceforge.net/svnroot/wesnoth-umc-dev/trunk/The_Silver_Lands
Steps to reproduce:
1. Get The Silver Lands from svn
2. Make a 'tsl-debug' file at TSL's root
3. Make sure local time of day lighting is enabled
4. Start "The Silver Lands Debug Mode"
5. Behold
Error:
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff4617a7a in std::_Rb_tree_decrement(std::_Rb_tree_node_base*) ()
from /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/libstdc++.so.6
Backtrace:
#0 0x00007ffff4617a7a in std::_Rb_tree_decrement(std::_Rb_tree_node_base*)
() from /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/libstdc++.so.6
#1 0x0000000000ce3603 in
std::_Rb_tree_iterator<std::pair<std::basic_string<signed char,
std::char_traits<signed char>, std::allocator<signed char> > const, surface>
>::operator--() ()
#2 0x0000000000ce1e4d in std::_Rb_tree<std::basic_string<signed char,
std::char_traits<signed char>, std::allocator<signed char> >,
std::pair<std::basic_string<signed char, std::char_traits<signed char>,
std::allocator<signed char> > const, surface>,
std::_Select1st<std::pair<std::basic_string<signed char,
std::char_traits<signed char>, std::allocator<signed char> > const, surface>
>, std::less<std::basic_string<signed char, std::char_traits<signed char>,
std::allocator<signed char> > >,
std::allocator<std::pair<std::basic_string<signed char,
std::char_traits<signed char>, std::allocator<signed char> > const, surface> >
>::_M_insert_unique (this=0x6705570, __v=...) at
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4/bits/stl_tree.h:1193
#3 0x0000000000cdfd5b in std::_Rb_tree<std::basic_string<signed char,
std::char_traits<signed char>, std::allocator<signed char> >,
std::pair<std::basic_string<signed char, std::char_traits<signed char>,
std::allocator<signed char> > const, surface>,
std::_Select1st<std::pair<std::basic_string<signed char,
std::char_traits<signed char>, std::allocator<signed char> > const, surface>
>, std::less<std::basic_string<signed char, std::char_traits<signed char>,
std::allocator<signed char> > >,
std::allocator<std::pair<std::basic_string<signed char,
std::char_traits<signed char>, std::allocator<signed char> > const, surface> >
>::_M_insert_unique_ (this=0x6705570, __position=..., __v=...)
at
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4/bits/stl_tree.h:1231
#4 0x0000000000cdde6a in std::map<std::basic_string<signed char,
std::char_traits<signed char>, std::allocator<signed char> >, surface,
std::less<std::basic_string<signed char, std::char_traits<signed char>,
std::allocator<signed char> > >,
std::allocator<std::pair<std::basic_string<signed char,
std::char_traits<signed char>, std::allocator<signed char> > const, surface> >
>::insert (this=0x6705570, __position=..., __x=...) at
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4/bits/stl_map.h:541
#5 0x0000000000cdc83a in std::map<std::basic_string<signed char,
std::char_traits<signed char>, std::allocator<signed char> >, surface,
std::less<std::basic_string<signed char, std::char_traits<signed char>,
std::allocator<signed char> > >,
std::allocator<std::pair<std::basic_string<signed char,
std::char_traits<signed char>, std::allocator<signed char> > const, surface> >
>::operator[] (this=0x6705570,
__k="\006\366\366\000\001\352\357\373\002\352\357", <incomplete sequence
\373>) at
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4/bits/stl_map.h:451
#6 0x0000000000cdae07 in image::get_lighted_image (i_locator=...,
ls="\006\366\366\000\001\352\357\373\002\352\357", <incomplete sequence \373>,
type=image::HEXED) at src/image.cpp:905
#7 0x0000000000cb3a97 in display::get_terrain_images (this=0x1a29c80,
loc=..., timeid="dawn1", image_type=image::TOD_COLORED,
terrain_type=display::BACKGROUND) at src/display.cpp:715
#8 0x0000000000cba534 in display::draw_hex (this=0x1a29c80, loc=...) at
src/display.cpp:2025
#9 0x000000000049a693 in game_display::draw_hex (this=0x1a29c80, loc=...) at
src/game_display.cpp:323
#10 0x0000000000cba251 in display::draw_invalidated (this=0x1a29c80) at
src/display.cpp:2005
#11 0x0000000000499fea in game_display::draw_invalidated (this=0x1a29c80) at
src/game_display.cpp:288
#12 0x0000000000cb9e53 in display::draw (this=0x1a29c80, update=true,
force=false) at src/display.cpp:1954
#13 0x0000000000cb8877 in display::scroll_to_xy (this=0x1a29c80,
screenxpos=765, screenypos=647, scroll_type=display::WARP, force=true) at
src/display.cpp:1592
#14 0x0000000000cb952d in display::scroll_to_tiles (this=0x1a29c80,
locs=std::vector of length 1, capacity 1 = {...}, scroll_type=display::WARP,
check_fogged=true, only_if_possible=false,
add_spacing=0, force=true) at src/display.cpp:1805
#15 0x0000000000cb8c6c in display::scroll_to_tile (this=0x1a29c80, loc=...,
scroll_type=display::WARP, check_fogged=true, force=true) at
src/display.cpp:1665
#16 0x000000000062c2df in playsingle_controller::init_gui
(this=0x7fffffffb2e0) at src/playsingle_controller.cpp:93
#17 0x000000000062db7c in playsingle_controller::play_scenario
(this=0x7fffffffb2e0, story=..., skip_replay=false) at
src/playsingle_controller.cpp:355
#18 0x0000000000620491 in playsingle_scenario (game_config=...,
level=0x7fffffffbb80, disp=..., state_of_game=..., story=...,
skip_replay=false, end_level=...) at src/playcampaign.cpp:130
#19 0x0000000000622d59 in play_game (disp=..., gamestate=...,
game_config=..., io_type=IO_NONE, skip_replay=false) at
src/playcampaign.cpp:365
#20 0x0000000000489510 in game_controller::launch_game (this=0x16770d0,
reload=game_controller_abstract::RELOAD_DATA) at src/game_controller.cpp:1267
#21 0x000000000042354a in do_gameloop (argc=1, argv=0x7fffffffdb48) at
src/game.cpp:577
#22 0x0000000000423a47 in main (argc=1, argv=0x7fffffffdb48) at
src/game.cpp:641
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?19199>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs