Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (gdb) run
- The program being debugged has been started already.
- Start it from the beginning? (y or n) y
- Starting program: /home/shadowm/src/wesnoth/wesnoth-debug
- [Thread debugging using libthread_db enabled]
- [New Thread 0x7fffeb8a4700 (LWP 20578)]
- Battle for Wesnoth v1.9.9+svn (51795)
- Started on Tue Nov 1 18:05:52 2011
- Automatically found a possible data directory at /home/shadowm/src/wesnoth
- Data directory: /home/shadowm/src/wesnoth
- User configuration directory: /home/shadowm/.wesnoth-1.9
- User data directory: /home/shadowm/.wesnoth-1.9
- Cache directory: /home/shadowm/.wesnoth-1.9/cache
- [New Thread 0x7fffea4fd700 (LWP 20580)]
- Checking video mode: 1280x752x32...
- setting mode to 1280x752x32
- ALSA lib pcm.c:7316:(snd_pcm_recover) underrun occurred
- 20111101 18:06:07 warning engine: [side] Anonymous local player [village] points to a non-village location 18,24
- Program received signal SIGSEGV, Segmentation fault.
- 0x000000000062b4c1 in replay_controller::replay_buttons_wrapper::reset_buttons (this=0x7fffffffd4f0) at src/replay_controller.cpp:218
- 218 play_button_->enable(true);
- (gdb) bt
- #0 0x000000000062b4c1 in replay_controller::replay_buttons_wrapper::reset_buttons (this=0x7fffffffd4f0) at src/replay_controller.cpp:218
- #1 0x000000000062b9c0 in replay_controller::reset_replay (this=0x7fffffffc9f0) at src/replay_controller.cpp:265
- #2 0x000000000062a417 in replay_controller::replay_controller (this=0x7fffffffc9f0, level=..., state_of_game=..., ticks=14658, num_turns=-1,
- game_config=..., video=...) at src/replay_controller.cpp:80
- #3 0x000000000062a0df in play_replay_level (game_config=..., level=0x7fffffffd5a0, video=..., state_of_game=...) at src/replay_controller.cpp:44
- #4 0x0000000000600d35 in play_replay (disp=..., gamestate=..., game_config=..., video=...) at src/playcampaign.cpp:101
- #5 0x0000000000485e30 in game_controller::play_replay (this=0x16256a0) at src/game_controller.cpp:1289
- #6 0x000000000041fa80 in do_gameloop (argc=1, argv=0x7fffffffe078) at src/game.cpp:576
- #7 0x000000000041ff5e in main (argc=1, argv=0x7fffffffe078) at src/game.cpp:627
- (gdb) frame
- #0 0x000000000062b4c1 in replay_controller::replay_buttons_wrapper::reset_buttons (this=0x7fffffffd4f0) at src/replay_controller.cpp:218
- 218 play_button_->enable(true);
- (gdb) p $rip
- $2 = (void (*)(void)) 0x62b4c1 <replay_controller::replay_buttons_wrapper::reset_buttons()+45>
- (gdb) disassemble
- Dump of assembler code for function replay_controller::replay_buttons_wrapper::reset_buttons():
- 0x000000000062b494 <+0>: push %rbp
- 0x000000000062b495 <+1>: mov %rsp,%rbp
- 0x000000000062b498 <+4>: sub $0x10,%rsp
- 0x000000000062b49c <+8>: mov %rdi,-0x8(%rbp)
- 0x000000000062b4a0 <+12>: mov -0x8(%rbp),%rax
- 0x000000000062b4a4 <+16>: movzbl (%rax),%eax
- 0x000000000062b4a7 <+19>: xor $0x1,%eax
- 0x000000000062b4aa <+22>: test %al,%al
- 0x000000000062b4ac <+24>: jne 0x62b568 <replay_controller::replay_buttons_wrapper::reset_buttons()+212>
- 0x000000000062b4b2 <+30>: mov -0x8(%rbp),%rax
- 0x000000000062b4b6 <+34>: mov 0x8(%rax),%rax
- 0x000000000062b4ba <+38>: mov (%rax),%rax
- 0x000000000062b4bd <+41>: add $0x70,%rax
- => 0x000000000062b4c1 <+45>: mov (%rax),%rdx
- 0x000000000062b4c4 <+48>: mov -0x8(%rbp),%rax
- 0x000000000062b4c8 <+52>: mov 0x8(%rax),%rax
- 0x000000000062b4cc <+56>: mov $0x1,%esi
- 0x000000000062b4d1 <+61>: mov %rax,%rdi
- 0x000000000062b4d4 <+64>: callq *%rdx
- 0x000000000062b4d6 <+66>: mov -0x8(%rbp),%rax
- 0x000000000062b4da <+70>: mov 0x10(%rax),%rax
- 0x000000000062b4de <+74>: mov (%rax),%rax
- 0x000000000062b4e1 <+77>: add $0x70,%rax
- 0x000000000062b4e5 <+81>: mov (%rax),%rdx
- 0x000000000062b4e8 <+84>: mov -0x8(%rbp),%rax
- 0x000000000062b4ec <+88>: mov 0x10(%rax),%rax
- 0x000000000062b4f0 <+92>: mov $0x1,%esi
- 0x000000000062b4f5 <+97>: mov %rax,%rdi
- 0x000000000062b4f8 <+100>: callq *%rdx
- 0x000000000062b4fa <+102>: mov -0x8(%rbp),%rax
- 0x000000000062b4fe <+106>: mov 0x18(%rax),%rax
- 0x000000000062b502 <+110>: mov (%rax),%rax
- 0x000000000062b505 <+113>: add $0x70,%rax
- 0x000000000062b509 <+117>: mov (%rax),%rdx
- 0x000000000062b50c <+120>: mov -0x8(%rbp),%rax
- 0x000000000062b510 <+124>: mov 0x18(%rax),%rax
- 0x000000000062b514 <+128>: mov $0x1,%esi
- 0x000000000062b519 <+133>: mov %rax,%rdi
- 0x000000000062b51c <+136>: callq *%rdx
- 0x000000000062b51e <+138>: mov -0x8(%rbp),%rax
- 0x000000000062b522 <+142>: mov 0x20(%rax),%rax
- 0x000000000062b526 <+146>: mov (%rax),%rax
- 0x000000000062b529 <+149>: add $0x70,%rax
- ---Type <return> to continue, or q <return> to quit---
- 0x000000000062b52d <+153>: mov (%rax),%rdx
- 0x000000000062b530 <+156>: mov -0x8(%rbp),%rax
- 0x000000000062b534 <+160>: mov 0x20(%rax),%rax
- 0x000000000062b538 <+164>: mov $0x1,%esi
- 0x000000000062b53d <+169>: mov %rax,%rdi
- 0x000000000062b540 <+172>: callq *%rdx
- 0x000000000062b542 <+174>: mov -0x8(%rbp),%rax
- 0x000000000062b546 <+178>: mov 0x28(%rax),%rax
- 0x000000000062b54a <+182>: mov (%rax),%rax
- 0x000000000062b54d <+185>: add $0x70,%rax
- 0x000000000062b551 <+189>: mov (%rax),%rdx
- 0x000000000062b554 <+192>: mov -0x8(%rbp),%rax
- 0x000000000062b558 <+196>: mov 0x28(%rax),%rax
- 0x000000000062b55c <+200>: mov $0x1,%esi
- 0x000000000062b561 <+205>: mov %rax,%rdi
- 0x000000000062b564 <+208>: callq *%rdx
- 0x000000000062b566 <+210>: jmp 0x62b569 <replay_controller::replay_buttons_wrapper::reset_buttons()+213>
- 0x000000000062b568 <+212>: nop
- 0x000000000062b569 <+213>: leaveq
- 0x000000000062b56a <+214>: retq
- End of assembler dump.
Advertisement
Add Comment
Please, Sign In to add comment