Following is an excerpt from a crash report, when my application “quits unexpectedly” in debug mode. The IDE doesn’t catch it. I’ve tried running under the 2016r3 IDE and the 2018r3 IDE’s.
XOJO 2018r3:
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00005a0d16edbec0
VM Regions Near 0x5a0d16edbec0:
MALLOC_LARGE 000000011238d000-0000000119a8d000 [119.0M] rw-/rwx SM=PRV
-->
MALLOC_NANO 0000600000000000-0000600000200000 [ 2048K] rw-/rwx SM=COW
Application Specific Information:
objc_msgSend() selector name: release
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x00007fff8ce340dd objc_msgSend + 29
1 com.apple.CoreFoundation 0x00007fff92753fdd -[__NSDictionaryM dealloc] + 269
2 libobjc.A.dylib 0x00007fff8ce5489c objc_object::sidetable_release(bool) + 236
3 libobjc.A.dylib 0x00007fff8ce3ae8f (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 575
4 com.apple.CoreFoundation 0x00007fff927416f2 _CFAutoreleasePoolPop + 50
5 com.apple.Foundation 0x00007fff8664b832 -[NSAutoreleasePool drain] + 153
6 com.apple.AppKit 0x00007fff8dcfdbc1 -[NSApplication run] + 800
7 com.xojo.XojoFramework 0x00000001088f691d RuntimeRun + 42
8 com.whatever.myExperiment 0x00000001084ff2f3 REALbasic._RuntimeRun + 19
9 com.whatever.myExperiment 0x00000001085d4822 _Main + 402 (/#main:134)
10 com.whatever.myExperiment 0x00000001085d37c3 main + 19
11 libdyld.dylib 0x00007fff8d0785c9 start + 1
Here is an excerpt from the crash log when running in 2016r3:
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
abort() called
*** error for object 0x2142b40: pointer being freed was not allocated
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x9aa1969a __pthread_kill + 10
1 libsystem_pthread.dylib 0x90453634 pthread_kill + 101
2 libsystem_c.dylib 0x9416ade6 abort + 156
3 libsystem_malloc.dylib 0x9c31ad28 free + 428
4 libobjc.A.dylib 0x96e63003 _object_dispose(objc_object*) + 68
5 com.apple.UIFoundation 0x91a6e50f -[NSParagraphStyle dealloc] + 89
6 com.apple.UIFoundation 0x91a6e49f -[NSParagraphStyle release] + 301
7 com.apple.CoreFoundation 0x9779a0cd CFRelease + 989
8 com.apple.CoreFoundation 0x977d1f6c -[__NSDictionaryM dealloc] + 268
9 libobjc.A.dylib 0x96e6e650 objc_object::sidetable_release(bool) + 248
10 libobjc.A.dylib 0x96e5aa59 -[NSObject release] + 25
11 libobjc.A.dylib 0x96e5a1bc (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 566
12 com.apple.CoreFoundation 0x977bddaf _CFAutoreleasePoolPop + 47
13 com.apple.Foundation 0x9a2da30f -[NSAutoreleasePool drain] + 122
14 com.apple.AppKit 0x9902fb27 -[NSApplication run] + 790
15 com.xojo.XojoFramework 0x00364bba 0x1b6000 + 1764282
16 com.xojo.XojoFramework 0x00362d94 RuntimeRun + 49
17 com.whatever.myExperiment 0x0009d6f5 REALbasic._RuntimeRun + 34
18 com.whatever.myExperiment 0x001633f9 _Main + 295
19 com.whatever.myExperiment 0x001625b7 main + 36
20 com.whatever.myExperiment 0x00163842 start + 53
<>
Additional info:
OS Version: Mac OS X 10.10.5 (14F2009)
<>
A brief explanation of what the program is doing at the time of crash: It’s running a recursive routine searching a small data set for a certain pattern. With most data sets, the routine successfully executes in less than 20 seconds. But with certain data sets, it runs for tens of minutes and then crashes.
I’m trying to figure out what is happening, and why the IDE doesn’t catch it.