Open GoogleCodeExporter opened 9 years ago
Forgot to add I tried this for a 32-bit program:
Compilation :
clang -g -arch i386 -c mytest.c
Link :
clang -g -arch i386 -o mytest mytest.o -L/tmp/gperftools2.2.1/lib -framework
CoreFoundation -framework ApplicationServices -lprofiler
Original comment by jon...@pinacea.com
on 12 Nov 2014 at 11:57
Backtrace using lldb:
(lldb) bt
* thread #1: tid = 0x13e9bf, 0x922b2e07 CoreFoundation`__CFTypeCollectionRetain
+ 247, queue = 'com.apple.main-thread', stop reason = EXC_BREAKPOINT
(code=EXC_I386_BPT, subcode=0x0)
* frame #0: 0x922b2e07 CoreFoundation`__CFTypeCollectionRetain + 247
frame #1: 0x922b2725 CoreFoundation`__CFBasicHashAddValue + 405
frame #2: 0x922b2519 CoreFoundation`CFBasicHashSetValue + 3049
frame #3: 0x922b18dd CoreFoundation`CFDictionarySetValue + 205
frame #4: 0x93070ece LaunchServices`_LSLaunch(LSContext*, FSNode*, unsigned long, void*, __CFArray const*, AEDesc const*, __CFArray const*, __CFDictionary const*, unsigned long, ProcessSerialNumber*) + 10007
frame #5: 0x9300e425 LaunchServices`_LSOpenItemsWithHandler_CFDictionaryApplier(void const*, void const*, void*) + 3839
frame #6: 0x922ee820 CoreFoundation`__CFDictionaryApplyFunction_block_invoke + 32
frame #7: 0x922ee7da CoreFoundation`CFBasicHashApply + 122
frame #8: 0x922ee733 CoreFoundation`CFDictionaryApplyFunction + 147
frame #9: 0x9300c7a0 LaunchServices`_LSOpenStuff + 1481
frame #10: 0x93061850 LaunchServices`_LSOpenURLsWithRole_Common(__CFArray const*, unsigned long, AEKeyDesc const*, LSApplicationParameters_V1 const*, ProcessSerialNumber*, long, FSRef*) + 645
frame #11: 0x9300c067 LaunchServices`LSOpenFromURLSpec + 235
frame #12: 0x93061976 LaunchServices`LSOpenCFURLRef + 121
frame #13: 0x00001f05 mytest`openURL(url_str=0x00001f98) + 117 at mytest.c:16
frame #14: 0x00001f40 mytest`main + 32 at mytest.c:22
frame #15: 0x958b3701 libdyld.dylib`start + 1
Original comment by jon...@pinacea.com
on 12 Nov 2014 at 12:06
Original issue reported on code.google.com by
jon...@pinacea.com
on 12 Nov 2014 at 11:56Attachments: