(gdb) r Starting program: /Users/doob/development/d/test Reading symbols for shared libraries +......................... done Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x00000000 0x00002689 in D4test3barFZS4test3Foo () (gdb) bt #0 0x00002689 in D4test3barFZS4test3Foo () #1 0x00002647 in _Dmain () #2 0x000140c5 in D2rt6dmain211_d_run_mainUiPPaPUAAaZiZi7runMainMFZv () #3 0x00013c78 in D2rt6dmain211_d_run_mainUiPPaPUAAaZiZi7tryExecMFMDFZvZv () #4 0x00014113 in D2rt6dmain211_d_run_mainUiPPaPUAAaZiZi6runAllMFZv () #5 0x00013c78 in D2rt6dmain211_d_run_mainUiPPaPUAAaZiZi7tryExecMFMDFZvZv () #6 0x00013c46 in _d_run_main () #7 0x00013ae9 in main () (gdb) disas Dump of assembler code for function D4test3barFZS4test3Foo: 0x00002668 : push %ebp 0x00002669 : mov %esp,%ebp 0x0000266b : sub $0x20,%esp 0x0000266e : push %esi 0x0000266f : push %edi 0x00002670 : mov %eax,-0x4(%ebp) 0x00002673 : sub $0x8,%esp 0x00002676 : push $0x0 0x00002678 : lea -0x10(%ebp),%ecx 0x0000267b : push %ecx 0x0000267c : call 0x26a0 0x00002681 : add $0xc,%esp 0x00002684 : mov %eax,%esi 0x00002686 : mov -0x4(%ebp),%edi 0x00002689 : movsl %ds:(%esi),%es:(%edi) 0x0000268a : movsl %ds:(%esi),%es:(%edi) 0x0000268b : movsl %ds:(%esi),%es:(%edi) 0x0000268c : mov -0x4(%ebp),%eax 0x0000268f : pop %edi 0x00002690 : pop %esi 0x00002691 : leave 0x00002692 : ret 0x00002693 : nop 0x00002694 : nop 0x00002695 : nop 0x00002696 : nop 0x00002697 : nop 0x00002698 : nop 0x00002699 : nop 0x0000269a : nop 0x0000269b : nop 0x0000269c : nop 0x0000269d : nop 0x0000269e : nop 0x0000269f : nop End of assembler dump. (gdb)