[tor-bugs] #27948 [Core Tor/Tor]: Backtrace does not work on NetBSD

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Oct 23 01:49:47 UTC 2018


#27948: Backtrace does not work on NetBSD
-------------------------------------------------+-------------------------
 Reporter:  wiz                                  |          Owner:  teor
     Type:  defect                               |         Status:
                                                 |  assigned
 Priority:  High                                 |      Milestone:  Tor:
                                                 |  0.3.5.x-final
Component:  Core Tor/Tor                         |        Version:  Tor:
                                                 |  0.2.5.2-alpha
 Severity:  Normal                               |     Resolution:
 Keywords:  fast-fix regression 035-backport     |  Actual Points:
  034-backport netbsd 033-backport 029-backport  |
Parent ID:  #17808                               |         Points:
 Reviewer:                                       |        Sponsor:
-------------------------------------------------+-------------------------

Comment (by teor):

 Replying to [comment:8 wiz]:
 > Here's the man page for the backtrace() function on NetBSD.
 >
 > http://netbsd.gw.com/cgi-bin/man-cgi?backtrace++NetBSD-current
 >
 > You'll need to link against libexecinfo.

 Tor checks for libexecinfo on every platform, and links it if required
 (see #17151 in 0.2.7.4-rc.)

 Based on what we discovered in #17808, support for execinfo seems to vary
 by compiler and architecture on BSD-derived platforms.

 So either Tor is calling backtrace() in an architecture-specific manner,
 or the compilers are not including debug info in the right format.

 If you can work out how to fix this issue, we'd love some help in #17808.

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


More information about the tor-bugs mailing list