Tips for debugging EXC_BAD_ACCESS
Jacob Carlborg
doob at me.com
Wed Oct 10 23:52:24 PDT 2012
I didn't have any luck with this in the learn newsgroup so I'm trying here.
I'm trying to debug the Mac OS X port of DWT. Almost as soon as a DWT
application starts to process events I receive a segmentation fault. The
error happens in the "objc_msgSend" C function when calling an
Objective-C method. GDB backtrace:
http://pastebin.com/0fmUmPQ1
The source code of DWT is located here:
https://github.com/d-widget-toolkit/dwt-mac
The error happens at this call:
https://github.com/d-widget-toolkit/dwt-mac/blob/master/dwt/widgets/Shell.d#L1874
Which calls:
https://github.com/d-widget-toolkit/dwt-mac/blob/master/dwt/widgets/Widget.d#L1824
Then:
https://github.com/d-widget-toolkit/dwt-mac/blob/master/dwt/widgets/Widget.d#L230
Some other points of interest:
https://github.com/d-widget-toolkit/dwt-mac/blob/master/dwt/widgets/Display.d#L4871
https://github.com/d-widget-toolkit/dwt-mac/blob/master/dwt/widgets/Shell.d#L1818
https://github.com/d-widget-toolkit/dwt-mac/blob/master/dwt/widgets/Display.d#L4501
https://github.com/d-widget-toolkit/dwt-mac/blob/master/dwt/widgets/Display.d#L4367
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list