Skip to content

Instantly share code, notes, and snippets.

@fdr
Created August 24, 2012 07:05
Show Gist options
  • Save fdr/3446971 to your computer and use it in GitHub Desktop.
Save fdr/3446971 to your computer and use it in GitHub Desktop.
dredmor pocket dimension crash
Stdout:
...(truncated)
loading square: 74 55
loading square: 74 56
loading square: 74 57
loading square: 74 58
loading square: 74 59
loading square: 74 60
loading square: 74 61
loading square: 74 62
loading square: 74 63
loading square: 74 64
loading square: 74 65
loading square: 74 66
loading square: 74 67
loading square: 74 68
loading square: 74 69
loading square: 74 70
loading square: 74 71
loading square: 74 72
loading square: 74 73
loading square: 74 74
(gdb) bt
#0 0x000000000062e0de in MagicBox::Visit() ()
#1 0x0000000000569f90 in HandleMouseClick(int, int, int) ()
#2 0x000000000056f7c1 in ParsePlayerInput() ()
#3 0x00000000004db33f in PlayGameWithLoadFilename(std::string) ()
#4 0x00000000004de77b in main ()
(gdb) disassemble
Dump of assembler code for function _ZN8MagicBox5VisitEv:
0x000000000062e0c0 <+0>: push %rbp
0x000000000062e0c1 <+1>: push %rbx
0x000000000062e0c2 <+2>: mov %rdi,%rbx
0x000000000062e0c5 <+5>: sub $0x8,%rsp
0x000000000062e0c9 <+9>: mov 0x2921a0(%rip),%rax # 0x8c0270 <curLevel>
0x000000000062e0d0 <+16>: mov 0xbc(%rax),%edi
0x000000000062e0d6 <+22>: test %edi,%edi
0x000000000062e0d8 <+24>: jne 0x62e250 <_ZN8MagicBox5VisitEv+400>
=> 0x000000000062e0de <+30>: mov 0x218(%rbx),%esi
0x000000000062e0e4 <+36>: movl $0x0,0x29b7b2(%rip) # 0x8c98a0 <currentNoTimePrompt>
0x000000000062e0ee <+46>: test %esi,%esi
0x000000000062e0f0 <+48>: je 0x62e260 <_ZN8MagicBox5VisitEv+416>
0x000000000062e0f6 <+54>: movl $0x0,0x218(%rbx)
0x000000000062e100 <+64>: callq 0x421db0 <_Z17ClearTeleportListv>
0x000000000062e105 <+69>: callq 0x4219d0 <_Z20ClearDestructionListv>
0x000000000062e10a <+74>: mov 0x2966cf(%rip),%rdi # 0x8c47e0 <curPlayer>
0x000000000062e111 <+81>: movb $0x1,0xbc8(%rdi)
0x000000000062e118 <+88>: add $0x3b8,%rdi
0x000000000062e11f <+95>: callq 0x45cd90 <_ZN3Bob25RemoveFromAttachedSqua---Type <return> to continue, or q <return> to quit---q
Quit
(gdb) info registers
rax 0x9ef6070 166682736
rbx 0x0 0
rcx 0x7f264d68b730 139802484193072
rdx 0xac39c40 180591680
rsi 0x1 1
rdi 0x0 0
rbp 0x565 0x565
rsp 0x7fff403713c0 0x7fff403713c0
r8 0x7f264e83f740 139802502756160
r9 0x0 0
r10 0x9f3b160 166965600
r11 0x0 0
r12 0x7fff40371420 140734270739488
r13 0x92bfa70 153877104
r14 0x78 120
r15 0x600 1536
rip 0x62e0de 0x62e0de <MagicBox::Visit()+30>
eflags 0x210246 [ PF ZF IF RF ID ]
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
---Type <return> to continue, or q <return> to quit---q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment