Can Someone Explain What This Means

Miscellaneous Forums/MacOS X Discussion/Can Someone Explain What This Means

Hi,

When I'm trying to compile Max'd GUI on a Mac, it seems to be working fine, deleting and creating windows, they appear to work, but then about 5 seconds later, the app terminates and Apple reports the following bug report:

Date/Time:      2006-09-01 18:16:27.192 +0100
OS Version:     10.4.7 (Build 8J135)
Report Version: 4

Command: Max'dGUI
Path:    /Users/sebholl/Desktop/Source/Max'dGUI.app/Contents/MacOS/Max'dGUI
Parent:  bmk [3111]

Version: ??? (???)

PID:    3123
Thread: 0

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_INVALID_ADDRESS (0x0001) at 0x7c42ba14

Thread 0 Crashed:
0   <<00000000>> 	0xfffeff40 objc_msgSend_rtp + 64
1   com.apple.AppKit               	0x9373993c -[NSWindow _setWindowNumber:] + 276
2   com.apple.AppKit               	0x937aa970 -[NSWindow _termWindowIfOwner] + 144
3   com.apple.AppKit               	0x937a99e8 -[NSWindow dealloc] + 860
4   com.apple.Foundation           	0x9291c968 NSPopAutoreleasePool + 536
5   Max'dGUI                       	0x00002fac bbFlushAutoreleasePool + 44 (crt.c:355)
6   Max'dGUI                       	0x00099c40 bbSystemWait + 48 (crt.c:355)
7   Max'dGUI                       	0x0009a984 _brl_system_TMacOSSystemDriver_Wait + 28 (crt.c:355)
8   Max'dGUI                       	0x000989e4 60 + 44 (crt.c:355)
9   Max'dGUI                       	0x00045964 4 + 0 (crt.c:355)
10  Max'dGUI                       	0x0000c1c4 1819 + 16 (crt.c:355)
11  Max'dGUI                       	0x0000356c 4 + 48 (crt.c:355)
12  Max'dGUI                       	0x00003168 -[BlitzMaxAppDelegate applicationDidFinishLaunching:] + 284 (crt.c:355)
13  com.apple.Foundation           	0x9293fad8 _nsnote_callback + 180
14  com.apple.CoreFoundation       	0x90803010 __CFXNotificationPost + 368
15  com.apple.CoreFoundation       	0x907fb0ec _CFXNotificationPostNotification + 684
16  com.apple.Foundation           	0x92929ee0 -[NSNotificationCenter postNotificationName:object:userInfo:] + 92
17  com.apple.AppKit               	0x93710f98 -[NSApplication _postDidFinishNotification] + 112
18  com.apple.AppKit               	0x93710e84 -[NSApplication _sendFinishLaunchingNotification] + 92
19  com.apple.AppKit               	0x937109cc -[NSApplication(NSAppleEventHandling) _handleAEOpen:] + 264
20  com.apple.AppKit               	0x93710574 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 92
21  com.apple.Foundation           	0x92940ae4 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 380
22  com.apple.Foundation           	0x92940944 _NSAppleEventManagerGenericHandler + 92
23  com.apple.AE                   	0x914f8960 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*) + 208
24  com.apple.AE                   	0x914f87fc dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 44
25  com.apple.AE                   	0x914f8654 aeProcessAppleEvent + 284
26  com.apple.HIToolbox            	0x931e8eb0 AEProcessAppleEvent + 60
27  com.apple.AppKit               	0x9370ecbc _DPSNextEvent + 856
28  com.apple.AppKit               	0x9370e7a8 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 116
29  com.apple.AppKit               	0x9370acec -[NSApplication run] + 472
30  Max'dGUI                       	0x000034d0 main + 864 (crt.c:355)
31  Max'dGUI                       	0x000027cc _start + 348 (crt.c:272)
32  Max'dGUI                       	0x0000266c start + 60

Thread 1:
0   libSystem.B.dylib              	0x9002efac kevent + 12
1   com.apple.DesktopServices      	0x92854250 TFSNotificationTask::FSNotificationTaskProc(void*) + 56
2   ...ple.CoreServices.CarbonCore 	0x90bc1900 PrivateMPEntryPoint + 76
3   libSystem.B.dylib              	0x9002bc28 _pthread_body + 96

Thread 2:
0   libSystem.B.dylib              	0x9002c2e8 semaphore_wait_signal_trap + 8
1   libSystem.B.dylib              	0x90030dcc pthread_cond_wait + 480
2   ...ple.CoreServices.CarbonCore 	0x90bc1af0 MPWaitOnQueue + 224
3   com.apple.DesktopServices      	0x928548cc TNodeSyncTask::SyncTaskProc(void*) + 116
4   ...ple.CoreServices.CarbonCore 	0x90bc1900 PrivateMPEntryPoint + 76
5   libSystem.B.dylib              	0x9002bc28 _pthread_body + 96

Thread 3:
0   libSystem.B.dylib              	0x9002c2e8 semaphore_wait_signal_trap + 8
1   libSystem.B.dylib              	0x90030dcc pthread_cond_wait + 480
2   com.apple.Foundation           	0x92947300 -[NSConditionLock lockWhenCondition:] + 68
3   com.apple.AppKit               	0x937ab708 -[NSUIHeartBeat _heartBeatThread:] + 324
4   com.apple.Foundation           	0x92940194 forkThreadForFunction + 108
5   libSystem.B.dylib              	0x9002bc28 _pthread_body + 96

Thread 0 crashed with PPC Thread State 64:
  srr0: 0x00000000fffeff40 srr1: 0x000000000000f030                        vrsave: 0x0000000000000000
    cr: 0x44004224          xer: 0x0000000020000004   lr: 0x000000009373993c  ctr: 0x0000000090008c60
    r0: 0x00000000000aa0d4   r1: 0x00000000bfffdad0   r2: 0x000000007c42ba14   r3: 0x00000000004b11c0
    r4: 0x0000000090a710d8   r5: 0x0000000004c260e0   r6: 0x00000000ffffffff   r7: 0x0000000001892400
    r8: 0x0000000000000330   r9: 0x000000009020009c  r10: 0x0000000000000001  r11: 0x00000000f0200a98
   r12: 0x00000000001c4d60  r13: 0x0000000000000000  r14: 0x0000000000000000  r15: 0x0000000000000000
   r16: 0x0000000000000000  r17: 0x0000000000000000  r18: 0x00000000005119f0  r19: 0x000000000050c5e0
   r20: 0x00000000a370c124  r21: 0x00000000a07b2eb0  r22: 0x0000000000000001  r23: 0x0000000000000000
   r24: 0x00000000005061c0  r25: 0x0000000000000194  r26: 0x00000000ffffffff  r27: 0x00000000a3709828
   r28: 0x00000000a373968c  r29: 0x0000000004c260e0  r30: 0x0000000004c260e0  r31: 0x0000000093739828

Binary Images Description:
    0x1000 -    0xb3fff Max'dGUI 	/Users/sebholl/Desktop/Source/Max'dGUI.app/Contents/MacOS/Max'dGUI
0x8fe00000 - 0x8fe52fff dyld 45.1	/usr/lib/dyld
0x90000000 - 0x901bbfff libSystem.B.dylib 	/usr/lib/libSystem.B.dylib
0x90213000 - 0x90218fff libmathCommon.A.dylib 	/usr/lib/system/libmathCommon.A.dylib
0x9021a000 - 0x90267fff com.apple.CoreText 1.0.2 (???)	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText
0x90292000 - 0x90343fff ATS 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x90372000 - 0x9072cfff com.apple.CoreGraphics 1.258.33 (???)	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x907b9000 - 0x90892fff com.apple.CoreFoundation 6.4.6 (368.27)	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x908db000 - 0x908dbfff com.apple.CoreServices 10.4 (???)	/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x908dd000 - 0x909dffff libicucore.A.dylib 	/usr/lib/libicucore.A.dylib
0x90a39000 - 0x90abdfff libobjc.A.dylib 	/usr/lib/libobjc.A.dylib
0x90ae7000 - 0x90b57fff com.apple.framework.IOKit 1.4 (???)	/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x90b6d000 - 0x90b7ffff libauto.dylib 	/usr/lib/libauto.dylib
0x90b86000 - 0x90e5dfff com.apple.CoreServices.CarbonCore 681.4	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x90ec3000 - 0x90f43fff com.apple.CoreServices.OSServices 4.1	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x90f8d000 - 0x90fcefff com.apple.CFNetwork 4.0 (129.16)	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x90fe3000 - 0x90ffbfff com.apple.WebServices 1.1.2 (1.1.0)	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore
0x9100b000 - 0x9108cfff com.apple.SearchKit 1.0.5	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x910d2000 - 0x910fbfff com.apple.Metadata 10.4.4 (121.36)	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x9110c000 - 0x9111afff libz.1.dylib 	/usr/lib/libz.1.dylib
0x9111d000 - 0x912d7fff com.apple.security 4.4 (27566)	/System/Library/Frameworks/Security.framework/Versions/A/Security
0x913d5000 - 0x913defff com.apple.DiskArbitration 2.1	/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x913e5000 - 0x9140dfff com.apple.SystemConfiguration 1.8.3	/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x91420000 - 0x9142bfff libgcc_s.1.dylib 	/usr/lib/libgcc_s.1.dylib
0x91430000 - 0x91438fff libbsm.dylib 	/usr/lib/libbsm.dylib
0x9143c000 - 0x914b7fff com.apple.audio.CoreAudio 3.0.4	/System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x914f4000 - 0x914f4fff com.apple.ApplicationServices 10.4 (???)	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x914f6000 - 0x9152efff com.apple.AE 1.5 (297)	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x91549000 - 0x91616fff com.apple.ColorSync 4.4.4	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x9166b000 - 0x916fcfff com.apple.print.framework.PrintCore 4.6 (177.13)	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x91743000 - 0x917fafff com.apple.QD 3.10.20 (???)	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x91837000 - 0x91895fff com.apple.HIServices 1.5.3 (???)	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x918c4000 - 0x918e5fff com.apple.LangAnalysis 1.6.1	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x918f9000 - 0x9191efff com.apple.FindByContent 1.5	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/FindByContent.framework/Versions/A/FindByContent
0x91931000 - 0x91973fff com.apple.LaunchServices 180	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x9198f000 - 0x919a3fff com.apple.speech.synthesis.framework 3.3	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x919b1000 - 0x919f1fff com.apple.ImageIO.framework 1.4.7	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
0x91a07000 - 0x91acffff libcrypto.0.9.7.dylib 	/usr/lib/libcrypto.0.9.7.dylib
0x91b1d000 - 0x91b32fff libcups.2.dylib 	/usr/lib/libcups.2.dylib
0x91b37000 - 0x91b54fff libJPEG.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x91b59000 - 0x91bc8fff libJP2.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
0x91bdf000 - 0x91be3fff libGIF.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x91be5000 - 0x91c2dfff libRaw.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRaw.dylib
0x91c32000 - 0x91c6ffff libTIFF.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x91c76000 - 0x91c8ffff libPng.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x91c94000 - 0x91c97fff libRadiance.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x91c99000 - 0x91c99fff com.apple.Accelerate 1.2.2 (Accelerate 1.2.2)	/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x91c9b000 - 0x91d80fff com.apple.vImage 2.4	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x91d88000 - 0x91da7fff com.apple.Accelerate.vecLib 3.2.2 (vecLib 3.2.2)	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x91e13000 - 0x91e81fff libvMisc.dylib 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x91e8c000 - 0x91f21fff libvDSP.dylib 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x91f3b000 - 0x924c3fff libBLAS.dylib 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x924f6000 - 0x92821fff libLAPACK.dylib 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x92851000 - 0x928d9fff com.apple.DesktopServices 1.3.4	/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x9291a000 - 0x92b45fff com.apple.Foundation 6.4.6 (567.27)	/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x92c63000 - 0x92d41fff libxml2.2.dylib 	/usr/lib/libxml2.2.dylib
0x92d61000 - 0x92e4ffff libiconv.2.dylib 	/usr/lib/libiconv.2.dylib
0x92e61000 - 0x92e7ffff libGL.dylib 	/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x92e8a000 - 0x92ee4fff libGLU.dylib 	/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x92f02000 - 0x92f02fff com.apple.Carbon 10.4 (???)	/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x92f04000 - 0x92f18fff com.apple.ImageCapture 3.0	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
0x92f30000 - 0x92f40fff com.apple.speech.recognition.framework 3.4	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
0x92f4c000 - 0x92f61fff com.apple.securityhi 2.0 (203)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
0x92f73000 - 0x92ffafff com.apple.ink.framework 101.2 (69)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x9300e000 - 0x93019fff com.apple.help 1.0.3 (32)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
0x93023000 - 0x93050fff com.apple.openscripting 1.2.5 (???)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
0x9306a000 - 0x93079fff com.apple.print.framework.Print 5.2 (192.4)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
0x93085000 - 0x930ebfff com.apple.htmlrendering 1.1.2	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering
0x9311c000 - 0x9316bfff com.apple.NavigationServices 3.4.4 (3.4.3)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices
0x93199000 - 0x931b6fff com.apple.audio.SoundManager 3.9	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound
0x931c8000 - 0x931d5fff com.apple.CommonPanels 1.2.2 (73)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
0x931de000 - 0x934ebfff com.apple.HIToolbox 1.4.8 (???)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x9363a000 - 0x93646fff com.apple.opengl 1.4.7	/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x936de000 - 0x936fefff libmx.A.dylib 	/usr/lib/libmx.A.dylib
0x93704000 - 0x93704fff com.apple.Cocoa 6.4 (???)	/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
0x93706000 - 0x93d39fff com.apple.AppKit 6.4.7 (824.41)	/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x940c6000 - 0x94136fff com.apple.CoreData 80	/System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
0x9416f000 - 0x94232fff com.apple.audio.toolbox.AudioToolbox 1.4.3	/System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x94284000 - 0x94284fff com.apple.audio.units.AudioUnit 1.4	/System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x94286000 - 0x94439fff com.apple.QuartzCore 1.4.8	/System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x9448c000 - 0x944c9fff libsqlite3.0.dylib 	/usr/lib/libsqlite3.0.dylib
0x944d1000 - 0x94521fff libGLImage.dylib 	/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
0x946c4000 - 0x946d3fff libCGATS.A.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
0x946db000 - 0x946e8fff libCSync.A.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
0x9472e000 - 0x94747fff libRIP.A.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x94ac6000 - 0x94b37fff libstdc++.6.dylib 	/usr/lib/libstdc++.6.dylib
0x95a62000 - 0x95af0fff com.apple.WebKit 418.8	/System/Library/Frameworks/WebKit.framework/Versions/A/WebKit
0x95b4c000 - 0x95be2fff com.apple.JavaScriptCore 418.3	/System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore
0x95c1f000 - 0x95f2bfff com.apple.WebCore 418.19	/System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/WebCore
0x960b4000 - 0x960ddfff libxslt.1.dylib 	/usr/lib/libxslt.1.dylib
0x97c20000 - 0x97c2dfff com.apple.agl 2.5.6 (AGL-2.5.6)	/System/Library/Frameworks/AGL.framework/Versions/A/AGL


Can anyone help me to understand what it means? It's running on an old G3 and debugging takes about 10 seconds per line of code so it's hard to pinpoint where it is going wrong.

Thanks


Seb

Hi, Seb,

Can you post the B.itzMax source code that causes that problem?

Greetz,
W.

Hi Winni,

Thanks but I can't really as it's 5000 lines spanning across 5 files and a commerical project. Do I need to post it to find out what the problem is, or can the above error report tell me what area I need to look at...

Seb

If you can extract the code pattern that causes the problem and put it in a small sample program, that would help to determine whether it is a bug in BlitzMax or something related to a specific system configuration.

I'm still not good at interpreting those OS X error reports, but maybe someone else here can explain the meaning of it.

Maybe you should also post the issue in the bug report thread. But without having some source code, it will be difficult if not impossible to find out what exactly goes wrong.

Grüsse aus Deutschland,
Winni

It seems to be happening when the EVENT handler loop has finished and is waiting at SelectEvent(). Reading this Apple Developer Technical Note, the crash seems to be because of the following...

EXC_BAD_ACCESS/KERN_INVALID_ADDRESS — This is caused by the thread accessing unmapped memory. It may be triggered by either a data access or an instruction fetch; I describe how to tell the difference in a later section.


According to this document the next part of the report backtraces the functions (where function 0 is the one that crashed). It looks like it is the garbage collector that is crashing when it's trying to clear-up a recently free'd window:

1 com.apple.AppKit 0x9373993c -[NSWindow _setWindowNumber:] + 276
2 com.apple.AppKit 0x937aa970 -[NSWindow _termWindowIfOwner] + 144
3 com.apple.AppKit 0x937a99e8 -[NSWindow dealloc] + 860
4 com.apple.Foundation 0x9291c968 NSPopAutoreleasePool + 536
5 Max'dGUI 0x00002fac bbFlushAutoreleasePool + 44 (crt.c:355)
6 Max'dGUI 0x00099c40 bbSystemWait + 48 (crt.c:355)
7 Max'dGUI 0x0009a984 _brl_system_TMacOSSystemDriver_Wait + 28


Winni: Maybe because of this, I should post this in the Bug Reports afterall? Anyone any other ideas/comments?

Update: I've tried adding GCSetMode(2) to prevent automatic garbage collection but it still chokes at WaitEvent().

Seb, if you could email me the source will try and reproduce here.