[tor-bugs] #27272 [Core Tor/Tor]: ASan is incompatible with Rust's jemalloc on Travis

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Aug 23 04:10:11 UTC 2018


#27272: ASan is incompatible with Rust's jemalloc on Travis
--------------------------+------------------------------------
 Reporter:  alexcrichton  |          Owner:  (none)
     Type:  defect        |         Status:  new
 Priority:  Medium        |      Milestone:  Tor: 0.3.5.x-final
Component:  Core Tor/Tor  |        Version:
 Severity:  Normal        |     Resolution:
 Keywords:  rust          |  Actual Points:
Parent ID:                |         Points:
 Reviewer:                |        Sponsor:
--------------------------+------------------------------------

Comment (by alexcrichton):

 Ah unfortunately I haven't dug into why exactly jemalloc and ASan are
 incompatible, I just assumed it was some fundamental thing. I think that
 while it's in theory possible to compile crates with -fsanitize=address it
 wouldn't affect precompiled crates like the standard library (which
 includes jemalloc).

 In that sense I don't think it'd help here (specifically w/ the jemalloc
 problem). AFAIK the only solution is to get things to stop using jemalloc
 entirely. It may be worth investigating though why jemalloc is segfaulting
 with ASan, and it may or may not be a patch we could apply upstream.

 FWIW we'd like to move away from jemalloc as the default allocator, we're
 just having a tough time doing so unfortunately.

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


More information about the tor-bugs mailing list