Whales/Cataclysm — Issue #41: Segfault when holding direction key
Author: Conscio
Created: 2012-03-08 09:53:02+00:00
State: open

With new version It started to crash when running somewhere for a while.
Here is a backtace:
#0 0x080c485e in std::vector >::size (this=0x3c)
at /usr/include/c++/4.6/bits/stl_vector.h:571
#1 0x080c46d4 in std::vector >::vector (this=0xbfda0174,
__x=...) at /usr/include/c++/4.6/bits/stl_vector.h:279
#2 0x082dcbfc in map::place_items (this=0xbfdf0318, loc=mi_road, chance=5, x1=0, y1=0, x2=23,
y2=23, ongrass=false, turn=4977) at mapgen.cpp:6034
#3 0x082b29a4 in map::draw_map (this=0xbfdf0318, terrain_type=ot_road_ns, t_north=ot_road_ns,
t_east=ot_house_west, t_south=ot_road_new, t_west=ot_house_east, t_above=ot_null,
turn=4977, g=0xb7f08008) at mapgen.cpp:624
#4 0x082afceb in map::generate (this=0xbfdf0318, g=0xb7f08008, om=0xb7f0acbc, x=148, y=256,
turn=4977) at mapgen.cpp:142
#5 0x082984e9 in map::loadn (this=0xbfe8b4fc, g=0xb7f08008, worldx=144, worldy=257, gridx=4,
gridy=0) at map.cpp:1731
#6 0x08296403 in map::load (this=0xbfe8b4fc, g=0xb7f08008, wx=144, wy=257) at map.cpp:1454
#7 0x0816270a in game::update_map (this=0xb7f08008, x=@0xbff5ef24, y=@0xbff5ef28)
at game.cpp:5540
#8 0x081600cb in game::plmove (this=0xb7f08008, x=62, y=71) at game.cpp:5186
#9 0x08145a45 in game::get_input (this=0xb7f08008) at game.cpp:1112
#10 0x081437eb in game::do_turn (this=0xb7f08008) at game.cpp:630
#11 0x08278fc1 in main (argc=1, argv=0xbffff254) at main.cpp:35

Sorry if this is not a right place for bug reports