[tor-bugs] #9299 [Tor]: Dump stack traces on assertion, crash, or general trouble

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Jul 26 11:33:46 UTC 2013


#9299: Dump stack traces on assertion, crash, or general trouble
---------------------------------+------------------------------------------
 Reporter:  nickm                |          Owner:                    
     Type:  enhancement          |         Status:  new               
 Priority:  normal               |      Milestone:  Tor: 0.2.5.x-final
Component:  Tor                  |        Version:                    
 Keywords:  tor-relay debugging  |         Parent:                    
   Points:                       |   Actualpoints:                    
---------------------------------+------------------------------------------

Comment(by nickm):

 Updated my branch.  Fun stuff! I cut the gordian knot of "where to store
 traces on crash" by saying "just put them in the log fd and on stderr."

 For FreeBSD (and others?) we should look at linking libexecinfo, which is
 supposed to provide the same information as the backtrace() functions in
 <execinfo.h> on Linux/OSX.

 For windows, we will need to look into [http://msdn.microsoft.com/en-
 us/library/windows/desktop/ms680650(v=vs.85).aspx StackWalk64] for stack
 dumping. I believe that the function to catch segfaults and whatnot is
 [http://msdn.microsoft.com/en-
 us/library/windows/desktop/ms680634(v=vs.85).aspx
 SetUnhandledExceptionFilter], but I'm less sure about that.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/9299#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list