Re: 10.5.8 Debug Library Framework: App crash on launch: No "CarbonCore"
Re: 10.5.8 Debug Library Framework: App crash on launch: No "CarbonCore"
- Subject: Re: 10.5.8 Debug Library Framework: App crash on launch: No "CarbonCore"
- From: Jerry Krinock <email@hidden>
- Date: Tue, 1 Sep 2009 08:03:40 -0700
On 2009 Aug 31, at 23:03, Chris Espinosa wrote:
On Aug 31, 2009, at 10:58 PM, Jerry Krinock wrote:
4. Click File > "New Cocoa Application", etc.
5. Set the Executable to use the "debug" suffix
6. Build/Run
Result: App crashes on launch.
No: CarbonCore is there, present, working, and you are running its
Debug binary. Then you're making a file system call (something that
calls down to FSPathMakeRef). And it's getting an fnfErr. And the
debug version of CarbonCore asserts, and your app terminates.
So: your app is trying to create an FSRef with a path to a
nonexstent file, and the debug CarbonCore is asserting because of it.
Thanks, Chris. I get it. Very strange, though, that this occurs with
a "New Cocoa Application", right out of the box (see step 4. above).
"I" am not making that file system call; apparently Cocoa is.
Unfortunately the log output does not tell me the path that failed nor
the calling function, so I have no idea where to look.
Moving beyond this, I found that if I run "Debug" instead of "Run",
the app does not terminate. I'm not sure why this is. Same thing if
I Debug my real app.
I wonder about the other noise I'm getting too. For example, after
gdb loads I there are maybe 1000 warnings logged similar to these three:
This GDB was configured as "i386-apple-darwin".tty /dev/ttys000
warning: Could not find object file "/var/tmp/Libsystem/
Libsystem-111~826/i386/objroot/objects-debug/System_vers.o" - no debug
information available for "/var/tmp/Libsystem/Libsystem-111~826/i386/
symroot/System.build/derived_src/System_vers.c".
warning: Could not find object file "/BinaryCache/Libsystem/
Libsystem-111~826/Root/usr/local/lib/system/libc_debug.a(zone.o)" - no
debug information available for "/SourceCache/Libc/Libc-498/gen/zone.c".
... hundreds more like this
It looks like these are telling me that gdb cannot debug or symbolize
system libraries. OK, that makes sense. But is it normal to have
this logged hundreds of times, apparently one for each binary?
After all this finally got done logging, I was able to run my app,
create a document, do an import and some editing, and save it. But
during this time I had to click "Continue" in the debugger hundreds of
times. Besides the fact that it really doesn't like my usage of
FSDetermineIfRefIsEnclosedByFolder() for some reason, there were
hundreds of other inexplicable breaks, like these for example:
Xcode could not locate source file: __pthread_kill.s (line: 5)
Xcode could not locate source file: __pthread_kill.s (line: 5)
(gdb) continue
2009-09-01 05:16:00.173 BookMacster[89205:b0f] DebugAssert: HIToolbox:
data != NULL exception_GetWindowClass_InvalidWindowPtr [./Windows/
Source/WindowClass.cp:1075]
Xcode could not locate source file: __pthread_kill.s (line: 5)
Xcode could not locate source file: __pthread_kill.s (line: 5)
(gdb) continue
I pasted in some more at the end (*).
I am happy that I only found only a couple potential issues, and no
assertions from Core Data.
Is my experience with the debug library typical? Is there any way to
reduce the noise level?
Jerry
(*) Here is the final 200 of 5700 lines in my log file:
Current language: auto; currently asm
2009-09-01 05:26:41.625 BookMacster[89205:b0f] DebugAssert:
CarbonCore.framework: File Manager: mount != NULL
GetCatalogInfo_VolumeNotFound [/SourceCache/CarbonCore/
CarbonCore-786.13/Files/PBFSRefCalls.cp:3068]
Xcode could not locate source file: __pthread_kill.s (line: 5)
Xcode could not locate source file: __pthread_kill.s (line: 5)
(gdb) continue
Xcode could not locate source file: __pthread_kill.s (line: 5)
mi_cmd_exec_interrupt: Inferior not executing.
mi_cmd_exec_interrupt: Inferior not executing.
Xcode could not locate source file: __pread.s (line: 5)
(gdb) continue
Xcode could not locate source file: __pread.s (line: 5)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
mi_cmd_exec_interrupt: Inferior not executing.
mi_cmd_exec_interrupt: Inferior not executing.
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
mi_cmd_exec_interrupt: Inferior not executing.
mi_cmd_exec_interrupt: Inferior not executing.
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
mi_cmd_exec_interrupt: Inferior not executing.
mi_cmd_exec_interrupt: Inferior not executing.
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: syscall_sw.h (line: 83)
(gdb) continue
2009-09-01 05:28:56.913 BookMacster[89205:b0f] DebugAssert: HIToolbox:
data != NULL exception_GetWindowClass_InvalidWindowPtr [./Windows/
Source/WindowClass.cp:1075]
Xcode could not locate source file: syscall_sw.h (line: 83)
Xcode could not locate source file: __pthread_kill.s (line: 5)
(gdb) continue
2009-09-01 05:29:12.766 BookMacster[89205:b0f] DebugAssert: HIToolbox:
data != NULL exception_GetWindowClass_InvalidWindowPtr [./Windows/
Source/WindowClass.cp:1075]
Xcode could not locate source file: __pthread_kill.s (line: 5)
Xcode could not locate source file: __pthread_kill.s (line: 5)
(gdb) continue
Current language: auto; currently c
Warning: the current language does not match this frame.
2009-09-01 05:29:52.621 BookMacster[89205:b0f] DebugAssert: HIToolbox:
data != NULL exception_GetWindowClass_InvalidWindowPtr [./Windows/
Source/WindowClass.cp:1075]
Xcode could not locate source file: __pthread_kill.s (line: 5)
Xcode could not locate source file: __pthread_kill.s (line: 5)
(gdb) continue
2009-09-01 05:29:57.920 BookMacster[89205:b0f] -[BkmxAppDel
applicationShouldTerminate:]
2009-09-01 05:29:57.925 BookMacster[89205:832f] INFO: opened hDB is
0x1e637bf0
.
Debugger stopped.
Program exited with status value:0.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden