[tor-bugs] #9487 [Tor bundles/installation]: Create DebugInfo files for TBB builds on Linux

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Aug 17 18:23:48 UTC 2013


#9487: Create DebugInfo files for TBB builds on Linux
--------------------------------------+-------------------------------------
 Reporter:  mikeperry                 |          Owner:  mikeperry
     Type:  enhancement               |         Status:  new      
 Priority:  major                     |      Milestone:           
Component:  Tor bundles/installation  |        Version:           
 Keywords:  tbb-3.0, MikePerry201308  |         Parent:           
   Points:                            |   Actualpoints:           
--------------------------------------+-------------------------------------

Comment(by Lee Fisher):

 For Windows, you already have anti-debugging code enabled in your released
 binaries. Providing symbols is not useful for live debugging, unless you
 disable your anti-debugging code feature, and will only be useful for
 postmortem debugging, when this code is unable to prevent debugging.

 Windows system debuggers need PDB style symbols. AFAIK, GCC nor CLang
 don't generate this style of symbols, though I'd be happy to be proven
 wrong. The GCC symbols are only usable by GDB, and are not called PDBs.
 MSC (MSVC, aka Visual Studio's VC++) generates PDB style symbols. But Tor
 does not ship a MSVC-generated Tor binary, and of course you can't mix
 this with a GCC-generated binary. All the other libraries (OpenSSL, Zlib,
 LibEvent) works with MSVC or GCC, so you can get valid PDBs for them.

 If you ever release a MSC-generated tor.exe and tor.pdb and want Tor to be
 debuggable by native Windows debuggers (instead of only GDB), you also
 need to decide if you want to setup a Symbol Server (and/or a Source
 Server), to remotely provide symbols and sources to debuggers. The Mozilla
 project is probably the best example of an open source project that does
 this (and they've written open source Symbol/Source Servers that you can
 use).
 http://zenit.senecac.on.ca/wiki/index.php/Mozilla_Source_and_Symbol_Server
 https://developer.mozilla.org/en-US/docs/Using_the_Mozilla_symbol_server

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


More information about the tor-bugs mailing list