Segfaults with dialogs
Created by: christopho
(Bug report from Julien.)
I'm running on Arch64.
I have encountered some segmentation faults which crashed the game. Here is what I got with gdb :
(gdb) run Starting program: /usr/bin/solarus [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/libthread_db.so.1". [New Thread 0x7ffff1a00700 (LWP 1509)] [Thread 0x7ffff1a00700 (LWP 1509) exited] [New Thread 0x7ffff1a00700 (LWP 1510)] [New Thread 0x7fffed1fe700 (LWP 1511)]
Program received signal SIGSEGV, Segmentation fault. 0x00007ffff6736bd8 in std::basic_string<char, std::char_traits, std::allocator >::basic_string(std::string const&) () from /usr/lib/libstdc++.so.6 (gdb) bt #0 0x00007ffff6736bd8 in std::basic_string<char, std::char_traits, std::allocator >::basic_string(std::string const&) ()
from /usr/lib/libstdc++.so.6 #1 0x00000000004c78f9 in TextSurface::add_char(char) () #2 0x0000000000507bc8 in DialogBox::add_character() () #3 0x000000000050823c in DialogBox::show_all_now() () #4 0x000000000050af2a in GameControls::key_pressed(InputEvent::KeyboardKey) () #5 0x0000000000511d5f in GameControls::notify_event(InputEvent&) () #6 0x0000000000450c0e in Solarus::main_loop() () #7 0x000000000044d78e in main ()
It happened only during dialogs but it randomly appears (at the beginning, or inside the cave... only when there is dialogs)