[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs