SIGABRT while driving around; related to vehicles? #6118
Closed
Description
Version: 0.9-4381-g8c2caf3.
Was driving (southwest) on a Road through some Forest when game abruptly SIGABRT'd. Looks like the crash occurred while processing vehicle movement, or maybe with maps, or maybe because something somewhere wanted to write a string and did some badness regarding string length.
gdb output:
after throwing an instance of 'std::length_error'
what(): basic_string::_S_create
Program received signal SIGABRT, Aborted.
0x00007ffff6de7425 in raise () from /lib/x86_64-linux-gnu/libc.so.6
gdb list:
34 int argc = __argc;
35 char **argv == argv;
36 #else
37 int main (int argc, char *argv[])
38 {
39 #endif
40 #ifdef ENABLE_LOGGING
41 setupDebug();
42 #endif
43 int seed = time(NULL);
gdb bt:
#0 0x00007ffff6de7425 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffff6deab8b in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00007ffff76e2e2d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3 0x00007ffff76e0f26 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x00007ffff76e0f53 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5 0x00007ffff76e117e in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6 0x00007ffff7733d3d in std::__throw_length_error(char const*) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7 0x00007ffff773e3d2 in std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#8 0x00007ffff773f128 in std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#9 0x00007ffff773f86c in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#10 0x00000000007a8f89 in map::add_extra (this=0x7ffffff9aed0, type=mx_portal_in) at src/mapgen.cpp:12941
#11 0x0000000000715afb in map::generate (this=0x7ffffff9aed0, om=0x19202d0, x=80, y=288, z=0, turn=1169170) at src/mapgen.cpp:105
#12 0x00000000006f9735 in map::loadn (this=0x7ffff7f78158, worldx=72, worldy=278,worldz=0, gridx=8, gridy=10, update_vehicles=true, om=0x19202d0) at src/map.cpp:4182
#13 0x00000000006f7bc9 in map::shift (this=0x7ffff7f78158, wx=72, wy=277, wz=0, sx=0, sy=1) at src/map.cpp:3947
#14 0x000000000058b65a in game::update_map (this=0x7ffff7f78010, x=@0x7fffffffd54c: 63, y=@0x7fffffffd550: 60) at src/game.cpp:12756
#15 0x00000000006df51c in map::displace_vehicle (this=0x7ffff7f78158, x=@0x7fffffffd6b8: 64, y=@0x7fffffffd6bc: 60, dx=-1, dy=1, test=false) at src/map.cpp:404
#16 0x00000000006e1fd0 in map::vehproceed (this=0x7ffff7f78158) at src/map.cpp:829
#17 0x00000000006df667 in map::vehmove (this=0x7ffff7f78158) at src/map.cpp:425
#18 0x000000000052fc12 in game::do_turn (this=0x7ffff7f78010) at src/game.cpp:1111
#19 0x00000000006c7fec in main (argc=0, argv=0x7fffffffdf10) at src/main.cpp:147