To run inside MacOS under gdb you need: set dont-handle-bad-access 1 handle SIGBUS nostop noprint