Skip to content

Instantly share code, notes, and snippets.

@agos
Created April 27, 2011 22:25
Show Gist options
  • Save agos/945373 to your computer and use it in GitHub Desktop.
Save agos/945373 to your computer and use it in GitHub Desktop.
Another Kod hanging trace
GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:52:12 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".tty /dev/ttys003
[Switching to process 75024 thread 0x0]
2011-04-28 00:24:19.388 Kod[75024:3c03] D [src/KNodeThread.mm:95] [node] starting in <KNodeThread: 0x1010273c0>{name = se.hunch.kod.nodejs, num = 2}
2011-04-28 00:24:19.388 Kod[75024:903] D [src/KMachService.mm:40] <KMachService: 0x101005730> opened
2011-04-28 00:24:19.455 Kod[75024:903] D [src/KStyle.mm:382] successfully reloaded <KStyle@0x10382e4d0 <CSSContext@0x101414050 [<CSSStylesheet@0x10382e580 url=(null)>, <CSSStylesheet@0x101413ff0 url=file://localhost/Users/ago/.kod/style.css>]>>
2011-04-28 00:24:19.626 Kod[75024:903] T [src/KAutocompleteTextFieldCell.mm:150] -[KAutocompleteTextFieldCell initCommon]
2011-04-28 00:24:19.652 Kod[75024:903] D [src/KDocument.mm:1806] textView frame -> {{0, 0}, {824, 766}}
2011-04-28 00:24:19.697 Kod[75024:903] D [src/KDocument.mm:514] ast_->status() -> 1
2011-04-28 00:24:19.697 Kod[75024:903] D [src/KDocument.mm:515] ast_->isOpenEnded() -> 0
2011-04-28 00:24:19.708 Kod[75024:903] D [src/KLocationBarController.mm:325] TODO -[KLocationBarController autocompleteTextField:willBecomeFirstResponder:]
D [node-kod KObjectProxy.mm:593] curried objc class 'KSplitView' from 'NSObject_node_'
D [node-kod KObjectProxy.mm:593] curried objc class 'KBrowserWindowController' from 'NSObject_node_'
D [node-kod KObjectProxy.mm:593] curried objc class 'KDocument' from 'NSObject_node_'
D [node-kod KObjectProxy.mm:593] curried objc class 'KScrollView' from 'NSObject_node_'
D [node-kod KObjectProxy.mm:593] curried objc class 'KClipView' from 'NSObject_node_'
D [node-kod KObjectProxy.mm:593] curried objc class 'KTextView' from 'NSObject_node_'
D [node-kod KObjectProxy.mm:593] curried objc class 'KWordDictionary' from 'NSObject_node_'
main.js started in node v0.3.5-pre
openDocument: #1 public.text *new*
activateDocument: #1 public.text *new*
2011-04-28 00:24:23.373 Kod[75024:903] D [src/KDocumentController.mm:105] openDocumentsWithContentsOfURLs:(
"file://localhost/Users/ago/Polimi/Passati/Affidabilita%CC%80%20dei%20Sistemi%20Informatici/Soft%20Error%20III/articoli.txt"
)
2011-04-28 00:24:23.376 Kod[75024:1703] D [src/KDocument.mm:1486] readFromURL:file://localhost/Users/ago/Polimi/Passati/Affidabilita%CC%80%20dei%20Sistemi%20Informatici/Soft%20Error%20III/articoli.txt ofType:public.plain-text
2011-04-28 00:24:23.376 Kod[75024:1703] D [src/KDocument.mm:321] setFileURL:file://localhost/Users/ago/Polimi/Passati/Affidabilita%CC%80%20dei%20Sistemi%20Informatici/Soft%20Error%20III/articoli.txt
2011-04-28 00:24:23.420 Kod[75024:1703] D [src/KFileURLHandler.mm:83] loaded selection from xattr: {0, 1316}
2011-04-28 00:24:23.420 Kod[75024:1703] D [src/KDocument.mm:1599] readFromData:0x10106e820 ofType:public.plain-text
2011-04-28 00:24:23.421 Kod[75024:1703] D [src/KDocument.mm:1632] Decoded text data using Unicode (UTF-8)
2011-04-28 00:24:23.422 Kod[75024:903] T [src/KDocument.mm:302] -[KDocument setIconBasedOnContents]
openDocument: #2 public.plain-text file://localhost/Users/ago/Polimi/Passati/Affidabilita%CC%80%20dei%20Sistemi%20Informatici/Soft%20Error%20III/articoli.txt
2011-04-28 00:24:23.426 Kod[75024:903] D [src/KDocument.mm:514] ast_->status() -> 1
2011-04-28 00:24:23.426 Kod[75024:903] D [src/KDocument.mm:515] ast_->isOpenEnded() -> 0
activateDocument: #2 public.plain-text file://localhost/Users/ago/Polimi/Passati/Affidabilita%CC%80%20dei%20Sistemi%20Informatici/Soft%20Error%20III/articoli.txt
2011-04-28 00:24:23.432 Kod[75024:903] D [src/KDocument.mm:1806] textView frame -> {{0, 0}, {824, 766}}
2011-04-28 00:24:23.432 Kod[75024:903] D [src/KLocationBarController.mm:331] TODO -[KLocationBarController autocompleteTextField:willResignFirstResponder:]
2011-04-28 00:24:23.433 Kod[75024:903] D [src/KLocationBarController.mm:276] didEndEditingInAutocompleteTextField (NSEvent: type=LMouseUp loc=(347,1087) time=205257.7 flags=0x100 win=0x0 winNum=6 ctxt=0x0 evNum=4318 click=0 buttonNumber=0 pressure=0)
2011-04-28 00:24:26.650 Kod[75024:903] D [src/KDocumentController.mm:105] openDocumentsWithContentsOfURLs:(
"file://localhost/Users/ago/Polimi/Passati/Laboratorio%20SW/Progetto/ProgettoLAB_SW/README"
)
2011-04-28 00:24:26.653 Kod[75024:1703] D [src/KDocument.mm:1486] readFromURL:file://localhost/Users/ago/Polimi/Passati/Laboratorio%20SW/Progetto/ProgettoLAB_SW/README ofType:public.data
2011-04-28 00:24:26.654 Kod[75024:1703] D [src/KDocument.mm:321] setFileURL:file://localhost/Users/ago/Polimi/Passati/Laboratorio%20SW/Progetto/ProgettoLAB_SW/README
2011-04-28 00:24:26.775 Kod[75024:1703] D [src/KFileURLHandler.mm:42] failed to read xattr 'com.apple.TextEncoding' from '/Users/ago/Polimi/Passati/Laboratorio SW/Progetto/ProgettoLAB_SW/README'
2011-04-28 00:24:26.775 Kod[75024:1703] D [src/KFileURLHandler.mm:76] failed to read xattr 'se.hunch.kod.selection' from '/Users/ago/Polimi/Passati/Laboratorio SW/Progetto/ProgettoLAB_SW/README'
2011-04-28 00:24:26.775 Kod[75024:1703] D [src/KDocument.mm:1599] readFromData:0x101658e50 ofType:public.data
2011-04-28 00:24:26.806 Kod[75024:1703] D [src/KDocument.mm:1632] Decoded text data using Unicode (UTF-8)
2011-04-28 00:24:26.807 Kod[75024:903] T [src/KDocument.mm:302] -[KDocument setIconBasedOnContents]
openDocument: #3 public.data file://localhost/Users/ago/Polimi/Passati/Laboratorio%20SW/Progetto/ProgettoLAB_SW/README
2011-04-28 00:24:26.842 Kod[75024:903] D [src/KDocument.mm:1806] textView frame -> {{0, 0}, {824, 766}}
2011-04-28 00:24:26.844 Kod[75024:903] D [src/KDocument.mm:514] ast_->status() -> 1
2011-04-28 00:24:26.844 Kod[75024:903] D [src/KDocument.mm:515] ast_->isOpenEnded() -> 0
sharedlibrary apply-load-rules all
Warning: the current language does not match this frame.
Current language: auto; currently objective-c++
Warning: the current language does not match this frame.
(gdb) backtrace
#0 0x000000010000f948 in std::tr1::__shared_ptr<kod::ASTNode, (__gnu_cxx::_Lock_policy)2>::__shared_ptr (this=0x7fff5fbfd8e8) at /usr/include/c++/4.2.1/tr1/boost_shared_ptr.h:503
#1 0x000000010000f928 in std::tr1::shared_ptr<kod::ASTNode>::shared_ptr (this=0x7fff5fbfd8e8) at /usr/include/c++/4.2.1/tr1/boost_shared_ptr.h:972
#2 0x000000010000cd6d in std::tr1::shared_ptr<kod::ASTNode>::shared_ptr (this=0x7fff5fbfd8e8) at /usr/include/c++/4.2.1/tr1/boost_shared_ptr.h:972
#3 0x0000000100080c5e in -[KASTViewerController _makeTreeNodeFromASTNode:] (self=0x103875240, _cmd=0x100430fb2, astNode={<std::tr1::__shared_ptr<kod::ASTNode, 2>> = {_M_ptr = 0x7fff5fbfd988, _M_refcount = {_M_pi = 0x10000f974}}, <No data fields>}) at /Users/ago/Sviluppo/kod/src/KASTViewerController.mm:67
#4 0x0000000100080d8f in -[KASTViewerController setRootTreeNodeWithASTNode:] (self=0x103875240, _cmd=0x100430fe4, astNode={<std::tr1::__shared_ptr<kod::ASTNode, 2>> = {_M_ptr = 0x7fff5fbfd988, _M_refcount = {_M_pi = 0x100430fb2}}, <No data fields>}) at /Users/ago/Sviluppo/kod/src/KASTViewerController.mm:78
#5 0x0000000100080eb4 in -[KASTViewerController setRepresentedDocument:] (self=0x103875240, _cmd=0x10041f91c, representedDocument=0x101482540) at /Users/ago/Sviluppo/kod/src/KASTViewerController.mm:91
#6 0x0000000100008a40 in -[KDocument debugUpdateASTViewer:] (self=0x101482540, _cmd=0x10041f608, sender=0x101482540) at /Users/ago/Sviluppo/kod/src/KDocument.mm:883
#7 0x0000000100006c08 in -[KDocument tabDidBecomeSelected] (self=0x101482540, _cmd=0x10041f5a5) at /Users/ago/Sviluppo/kod/src/KDocument.mm:583
#8 0x0000000100cccffc in -[CTTabContents setIsSelected:] (self=0x101482540, _cmd=0x7fff87392d51, selected=1 '\001') at /Users/ago/Sviluppo/kod/deps/chromium-tabs/src/CTTabContents.mm:133
#9 0x0000000100cde0a5 in -[CTTabStripController tabSelectedWithContents:previousContents:atIndex:userGesture:] (self=0x10386b540, _cmd=0x100cff51f, newContents=0x101482540, oldContents=0x10146bb80, modelIndex=1, wasUserGesture=false) at /Users/ago/Sviluppo/kod/deps/chromium-tabs/src/chrome/browser/cocoa/CTTabStripController.mm:1045
#10 0x0000000100ce43ec in CTTabStripModelObserverBridge::TabSelectedAt (this=0x103840300, old_contents=0x10146bb80, new_contents=0x101482540, index=1, user_gesture=false) at /Users/ago/Sviluppo/kod/deps/chromium-tabs/src/chrome/browser/cocoa/CTTabStripModelObserverBridge.mm:65
#11 0x0000000100ccec03 in CTTabStripModel::ChangeSelectedContentsFrom (this=0x101047cd0, old_contents=0x10146bb80, to_index=1, user_gesture=false) at /Users/ago/Sviluppo/kod/deps/chromium-tabs/src/chrome/browser/tabs/CTTabStripModel.mm:1019
#12 0x0000000100cce826 in CTTabStripModel::InsertTabContentsAt (this=0x101047cd0, index=1, contents=0x101482540, add_types=9) at /Users/ago/Sviluppo/kod/deps/chromium-tabs/src/chrome/browser/tabs/CTTabStripModel.mm:244
#13 0x0000000100cd09c4 in CTTabStripModel::AddTabContents (this=0x101047cd0, contents=0x101482540, index=1, transition=CTPageTransitionTyped, add_types=9) at /Users/ago/Sviluppo/kod/deps/chromium-tabs/src/chrome/browser/tabs/CTTabStripModel.mm:633
#14 0x0000000100ce9f87 in -[CTBrowser addTabContents:atIndex:inForeground:] (self=0x101047c80, _cmd=0x100422500, contents=0x101482540, index=1, foreground=1 '\001') at /Users/ago/Sviluppo/kod/deps/chromium-tabs/src/CTBrowser.mm:189
#15 0x00000001000043e6 in -[KBrowser addTabContents:atIndex:inForeground:] (self=0x101047c80, _cmd=0x100422500, tab=0x101482540, index=1, foreground=1 '\001') at /Users/ago/Sviluppo/kod/src/KBrowser.mm:48
#16 0x00000001000170d9 in -[KDocumentController addDocument:withWindowController:inForeground:groupWithSiblings:] (self=0x10382c5f0, _cmd=0x1004225c4, doc=0x101482540, windowController=0x101047860, foreground=1 '\001', groupWithSiblings=1 '\001') at /Users/ago/Sviluppo/kod/src/KDocumentController.mm:429
#17 0x00000001000172db in -[KDocumentController finalizeOpenDocument:withWindowController:groupWithSiblings:display:] (self=0x10382c5f0, _cmd=0x100422610, doc=0x101482540, windowController=0x101047860, groupWithSiblings=1 '\001', display=1 '\001') at /Users/ago/Sviluppo/kod/src/KDocumentController.mm:454
#18 0x00000001000174d4 in __95-[KDocumentController safeFinalizeOpenDocument:withWindowController:groupWithSiblings:display:]_block_invoke_0 (.block_descriptor=0x101652c40) at /Users/ago/Sviluppo/kod/src/KDocumentController.mm:473
#19 0x00007fff88fab284 in _dispatch_call_block_and_release ()
#20 0x00007fff88f89df2 in _dispatch_queue_drain ()
#21 0x00007fff88f8a69f in _dispatch_queue_serial_drain_till_empty ()
#22 0x00007fff88fbd43c in _dispatch_main_queue_callback_4CF ()
#23 0x00007fff800fdc90 in __CFRunLoopRun ()
#24 0x00007fff800fcdbf in CFRunLoopRunSpecific ()
#25 0x00007fff80f337ee in RunCurrentEventLoopInMode ()
#26 0x00007fff80f335f3 in ReceiveNextEventCommon ()
#27 0x00007fff80f334ac in BlockUntilNextEventMatchingListInMode ()
#28 0x00007fff8134ce64 in _DPSNextEvent ()
#29 0x00007fff8134c7a9 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#30 0x00007fff8131248b in -[NSApplication run] ()
#31 0x00007fff8130b1a8 in NSApplicationMain ()
#32 0x00000001000014b3 in main (argc=1, argv=0x7fff5fbff5a8) at /Users/ago/Sviluppo/kod/src/main.m:10
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment