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

Re: [tor-bugs] #27274 [- Select a component]: ASan on OSX Travis is incompatible with Rust's santiziers



#27274: ASan on OSX Travis is incompatible with Rust's santiziers
----------------------------------+------------------------
 Reporter:  alexcrichton          |          Owner:  (none)
     Type:  defect                |         Status:  new
 Priority:  Medium                |      Milestone:
Component:  - Select a component  |        Version:
 Severity:  Normal                |     Resolution:
 Keywords:                        |  Actual Points:
Parent ID:                        |         Points:
 Reviewer:                        |        Sponsor:
----------------------------------+------------------------

Comment (by alexcrichton):

 Ah unfortunately I don't think so in this situation. The problem is mostly
 with `cargo test` itself. Cargo alters `DYLD_LIBRARY_PATH` to include the
 rustc sysroot libdir which contains the ASan dylib, and I think because it
 has the same name as the system one it ends up trumping it (and then
 causing problems because it's different).

 Taking a look at Cargo it also looks like it prefixes DYLD_LIBRARY_PATH
 instead of suffixing it.

 Geez this really is a mess with Cargo and rustc! You can probably tell
 that many other projects probably haven't gotten ASan C code + Rust
 working yet...

 One of the better long-term fixes for this may be to rename rust's own
 copy of these dynamic libraries, ensuring that the don't clash with the
 system's perhaps

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/27274#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