On 11/20/11 4:13 PM, Peter Hosey wrote:
What if you use GDB?

% gdb /Applications/Growl.app/Contents/MacOS/Growl
set env DYLD_INSERT_LIBRARIES /usr/lib/libgmalloc.dylib
break malloc_error_break
run
(wait for it to crash)
bt

Please send the output of the last command.

Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to process 69548 thread 0x4a03]
0x00007fff81c7dba9 in __CFRunLoopServiceMachPort ()
(gdb) bt
#0  0x00007fff81c7dba9 in __CFRunLoopServiceMachPort ()
#1  0x00007fff81c862d4 in __CFRunLoopRun ()
#2  0x00007fff81c85ae6 in CFRunLoopRunSpecific ()
#3  0x00007fff8a32ffff in -[NSConnection run] ()
#4  0x00007fff8a2d77fe in -[NSThread main] ()
#5  0x00007fff8a2d7776 in __NSThread__main__ ()
#6  0x00007fff8d3508bf in _pthread_start ()
#7  0x00007fff8d353b75 in thread_start ()


Not especially useful. Here's the stack traces of all threads, which might be more interesting:

(gdb) thread apply all bt

Thread 8 (process 69548):
#0  0x00007fff8893a75e in syscall_thread_switch ()
#1  0x00000001000d7d3e in GMmalloc_zone_malloc_internal ()
#2  0x00000001000d881a in GMmalloc_zone_calloc ()
#3  0x00007fff88a600c5 in class_createInstance ()
#4  0x00007fff8a2801ea in NSAllocateObject ()
#5  0x00007fff8a297952 in +[NSData(NSData) dataWithBytes:length:] ()
#6 0x000000010003aca9 in -[GCDAsyncSocket doAccept:] (self=0x7fff0f87af30, _cmd=<value temporarily unavailable, due to optimizations>, parentSocketFD=<value temporarily unavailable, due to optimizations>) at /Library/WebServer/Documents/bzr/growl/external_dependencies/cocoaasyncsocket/GCD/GCDAsyncSocket.m:1576 #7 0x000000010003aa0f in __block_global_0 (.block_descriptor=0x7fff0f8a2fc0) at /Library/WebServer/Documents/bzr/growl/external_dependencies/cocoaasyncsocket/GCD/GCDAsyncSocket.m:1478
#8  0x00007fff8d9282b6 in _dispatch_source_invoke ()
#9  0x00007fff8d924f77 in _dispatch_queue_invoke ()
#10 0x00007fff8d9250d4 in _dispatch_queue_drain ()
#11 0x00007fff8d924f66 in _dispatch_queue_invoke ()
#12 0x00007fff8d924760 in _dispatch_worker_thread2 ()
#13 0x00007fff8d3523da in _pthread_wqthread ()
#14 0x00007fff8d353b85 in start_wqthread ()

Thread 5 (process 69548):
#0  0x00007fff81c7dba9 in __CFRunLoopServiceMachPort ()
#1  0x00007fff81c862d4 in __CFRunLoopRun ()
#2  0x00007fff81c85ae6 in CFRunLoopRunSpecific ()
#3  0x00007fff8a32ffff in -[NSConnection run] ()
#4  0x00007fff8a2d77fe in -[NSThread main] ()
#5  0x00007fff8a2d7776 in __NSThread__main__ ()
#6  0x00007fff8d3508bf in _pthread_start ()
#7  0x00007fff8d353b75 in thread_start ()

Thread 2 (process 69548):
#0  0x00007fff8893c7e6 in kevent ()
#1  0x00007fff8d9255be in _dispatch_mgr_invoke ()
#2  0x00007fff8d92414e in _dispatch_mgr_thread ()

Thread 1 (process 69548):
#0  0x00007fff8893a67a in mach_msg_trap ()
#1  0x00007fff88939d71 in mach_msg ()
#2  0x00007fff88937c7f in vm_allocate ()
#3  0x00000001000d7dbd in GMmalloc_zone_malloc_internal ()
#4  0x00007fff81c55572 in __CFStringChangeSizeMultiple ()
#5  0x00007fff81c59748 in CFStringAppend ()
#6  0x00007fff81c54528 in __CFStringAppendFormatCore ()
#7  0x00007fff81c59583 in CFStringCreateWithFormat ()
#8  0x00007fff8b019c43 in SCDynamicStoreCreateWithOptions ()
#9  0x00007fff8b01b159 in SCDynamicStoreCopyLocalHostName ()
#10 0x0000000100017558 in -[NSString(GrowlAdditions) isLocalHost] (self=0x7fff6fffbfe0, _cmd=<value temporarily unavailable, due to optimizations>) at /Library/WebServer/Documents/bzr/growl/Common/Source/NSStringAdditions.m:74 #11 0x0000000100024a9b in -[GrowlTCPServer socket:didAcceptNewSocket:] (self=0x7fff0f85afb0, _cmd=<value temporarily unavailable, due to optimizations>, sock=<value temporarily unavailable, due to optimizations>, newSocket=0x7fff6ffc9f30) at /Library/WebServer/Documents/bzr/growl/Core/Source/GrowlTCPServer.m:167 #12 0x000000010003af3f in __27-[GCDAsyncSocket doAccept:]_block_invoke_0 (.block_descriptor=<value temporarily unavailable, due to optimizations>) at /Library/WebServer/Documents/bzr/growl/external_dependencies/cocoaasyncsocket/GCD/GCDAsyncSocket.m:1656
#13 0x00007fff8d9238ba in _dispatch_call_block_and_release ()
#14 0x00007fff8d92572a in _dispatch_main_queue_callback_4CF ()
#15 0x00007fff81c864dc in __CFRunLoopRun ()
#16 0x00007fff81c85ae6 in CFRunLoopRunSpecific ()
#17 0x00007fff810583d3 in RunCurrentEventLoopInMode ()
#18 0x00007fff8105f63d in ReceiveNextEventCommon ()
#19 0x00007fff8105f4ca in BlockUntilNextEventMatchingListInMode ()
#20 0x00007fff8344d3f1 in _DPSNextEvent ()
#21 0x00007fff8344ccf5 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#22 0x00007fff8344962d in -[NSApplication run] ()
#23 0x00000001000241ec in -[GrowlApplication run] (self=0x7fff0c352f60, _cmd=<value temporarily unavailable, due to optimizations>) at /Library/WebServer/Documents/bzr/growl/Core/Source/GrowlApplication.m:36
#24 0x00007fff836c880c in NSApplicationMain ()
#25 0x000000010000c210 in main (argc=<value temporarily unavailable, due to optimizations>, argv=<value temporarily unavailable, due to optimizations>) at /Library/WebServer/Documents/bzr/growl/Core/Source/HelperMain.m:18

--
Dossy Shiobara         |      "He realized the fastest way to change
[email protected]     |   is to laugh at your own folly -- then you
http://panoptic.com/   |   can let go and quickly move on." (p. 70)
  * WordPress * jQuery * MySQL * Security * Business Continuity *

--
You received this message because you are subscribed to the Google Groups "Growl 
Discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/growldiscuss?hl=en.

Reply via email to