From: Zoran V. <zv...@ar...> - 2005-05-18 10:44:31
|
Am 18.05.2005 um 12:13 schrieb Zoran Vasiljevic: > > Am 14.05.2005 um 23:04 schrieb Daniel A. Steffen: > > >> I have cleaned this up as discussed and backported it to core-8-4- >> branch, changes from previous patches: >> - added --disable-corefoundation configure option to revert to >> standard unix notifier (and disable CFBundle use etc) >> > > GOOD! Because... > > >> - added check of CoreFoundation availability to allow building >> on ppc64 >> - use Tiger OSSpinLock API if available instead of _spin_lock SPI >> - corrected locking in Tcl_FinalizeNotifier() & >> Tcl_AlertNotifier() >> - corrected tsd use in Tk_MacOSXSetupTkNotifier() >> >> let me know if there are problems >> > > ... there are problems: > > Program received signal EXC_BAD_ACCESS, Could not access memory. > Reason: KERN_PROTECTION_FAILURE at address: 0x00000000 > [Switching to process 8058 thread 0x2a43] > 0xfffeff20 in objc_msgSend_rtp () I believe this is because (macosx/tclMacOSXNotify.c:252) if (!runLoopSource) { Tcl_Panic("Tcl_InitNotifier: could not create CFRunLoopSource."); } CFRunLoopAddSource(runLoop, runLoopSource, kCFRunLoopCommonModes); /* ! */ CFRelease(runLoopSource); tsdPtr->runLoopSource = runLoopSource; tsdPtr->runLoop = runLoop; should actually not be, i.e. the CFRElease(runLoopSource) is too much. Because, if I remove it, it works fine. Zoran |