lars@shanghai:~+> gdb --ex=r --args manaplus --safemode GNU gdb (Gentoo 7.10.1 vanilla) 7.10.1 Copyright (C) 2015 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from manaplus...done. Starting program: /usr/games/bin/manaplus --safemode [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". [14:27:28.29] Generating config dir: /home/lars//.config/mana/mana [14:27:28.29] init 1 [14:27:28.29] init 2 [14:27:28.29] init 3 [14:27:28.29] configPath: /home/lars//.config/mana/mana/config.xml [14:27:28.29] Warning: Failed to load features.xml: Path not found [14:27:28.29] Error loading features.xml [14:27:28.29] init 2 [14:27:28.29] Couldn't open configuration file: features.xml [14:27:28.29] init 4 [14:27:28.29] Run in safe mode [14:27:28.29] Configuration::write() writing configuration... [14:27:28.30] Initializing resource manager... [14:27:28.30] bindtextdomain: /usr/share/locale [14:27:28.30] locale: de_DE.UTF-8 [New Thread 0x7fffebdc2700 (LWP 18503)] [New Thread 0x7fffe4670700 (LWP 18504)] [New Thread 0x7fffe3e6f700 (LWP 18505)] [New Thread 0x7fffe366e700 (LWP 18506)] [New Thread 0x7fffe2e6d700 (LWP 18507)] [New Thread 0x7fffe266c700 (LWP 18508)] [New Thread 0x7fffe1e6b700 (LWP 18509)] [New Thread 0x7fffe166a700 (LWP 18510)] [New Thread 0x7fffe0e69700 (LWP 18511)] Program received signal SIGSEGV, Segmentation fault. 0x00007ffff4ef0be0 in ?? () from /lib64/libc.so.6 (gdb) bt full #0 0x00007ffff4ef0be0 in ?? () from /lib64/libc.so.6 No symbol table info available. #1 0x00007ffff57d2fa4 in std::basic_stringstream, std::allocator >::~basic_stringstream() () from /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/libstdc++.so.6 No symbol table info available. #2 0x00000000005413d6 in Logger::log (this=0xd12150, log_text=0x8ddab1 "broken key2: %ld") at logger.cpp:264 buf = 0xefe710 "broken key2: 8285" tv = {tv_sec = 1455805650, tv_usec = 726547} size = 1024 ap = {{gp_offset = 24, fp_offset = 48, overflow_arg_area = 0x7fffffffd3a0, reg_save_area = 0x7fffffffd2b0}} timeStr = #3 0x000000000053220b in InputActionSortFunctor::operator() (this=0x7fffffffd400, key1=InputAction::MOVE_TO_POINT_28, key2=8285) at ./input/inputactionsortfunctor.h:45 k1 = 197 k2 = 8285 #4 0x0000000000538a1e in __gnu_cxx::__ops::_Val_comp_iter::operator() > > > (this=0x7fffffffd400, __val=@0x7fffffffd42c: InputAction::MOVE_TO_POINT_28, __it=...) at /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/bits/predefined_ops.h:166 No locals. #5 0x00000000005380cf in std::__unguarded_linear_insert<__gnu_cxx::__normal_iterator > >, __gnu_cxx::__ops::_Val_comp_iter > (__last=..., __comp=...) at /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/bits/stl_algo.h:1827 __val = InputAction::MOVE_TO_POINT_28 __next = {_M_current = 0xefe144} #6 0x0000000000536922 in std::__unguarded_insertion_sort<__gnu_cxx::__normal_iterator > >, __gnu_cxx::__ops::_Iter_comp_iter > (__first=..., __last=..., __comp=...) at /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/bits/stl_algo.h:1866 __i = {_M_current = 0xefe1c8} #7 0x0000000000534b28 in std::__final_insertion_sort<__gnu_cxx::__normal_iterator > >, __gnu_cxx::__ops::_Iter_comp_iter > (__first=..., __last=..., __comp=...) at /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/bits/stl_algo.h:1885 No locals. #8 0x0000000000533c19 in std::__sort<__gnu_cxx::__normal_iterator > >, __gnu_cxx::__ops::_Iter_comp_iter > (__first=..., __last=..., __comp=...) at /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/bits/stl_algo.h:1970 No locals. #9 0x0000000000532d67 in std::sort<__gnu_cxx::__normal_iterator > >, InputActionSortFunctor> (__first=..., __last=..., __comp=...) at /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/bits/stl_algo.h:4717 No locals. #10 0x0000000000518c84 in InputManager::updateKeyActionMap (this=0xca3480 , actionMap=..., idMap=..., keyTimeMap=..., type=InputType::KEYBOARD) at input/inputmanager.cpp:954 sum = 3300 keys = 0xefc148 sz = 36 it = {_M_node = 0xefc120} it_end = {_M_node = 0xcb10e8 } #11 0x000000000053c230 in KeyboardConfig::update (this=0xcb10c0 ) at input/keyboardconfig.cpp:215 No locals. #12 0x000000000051609c in InputManager::update () at input/inputmanager.cpp:110 No locals. #13 0x000000000051608b in InputManager::init (this=0xca3480 ) at input/inputmanager.cpp:105 No locals. #14 0x00000000005e0e11 in Client::gameInit (this=0xd12050) at client.cpp:409 fpsLimit = 0 #15 0x0000000000542167 in mainGui (argc=2, argv=0x7fffffffd8a8) at maingui.cpp:110 ret = 0 #16 0x00000000005b71b9 in main (argc=2, argv=0x7fffffffd8a8) at main.cpp:37 No locals. (gdb)