Skip to content
Snippets Groups Projects
  1. Feb 01, 2019
  2. Oct 02, 2018
    • Alex Crichton's avatar
      Fix segfaults related to sanitizers+jemalloc · 74c1e447
      Alex Crichton authored
      It looks to be the case that Rust's standard allocator, jemalloc, is
      incompatible with sanitizers. The incompatibility, for whatever reason,
      seems to cause segfaults at runtime when jemalloc is linked with
      sanitizers.
      
      Without actually trying to figure out what's going on here this commit
      instead takes the hammer of "let's remove jemalloc when testing". The
      `tor_allocate` crate now by default switches to the system allocator
      (eventually this will want to be the tor allocator). Most crates then
      link to `tor_allocate` ot pick this up, but the `smartlist` crate had to
      manually switch to the system allocator in testing and the `external`
      crate had to be sure to link to `tor_allocate`.
      
      The final gotcha here is that this patch also switches to
      unconditionally passing `--target` to Cargo. For weird and arcane
      reasons passing `--target` with the host target of the compiler (which
      Cargo otherwise uses as the default) is different than not passing
      `--target` at all. This ensure that our custom `RUSTFLAGS` with
      sanitizer options doesn't make its way into build scripts, just the
      final testing artifacts.
      74c1e447
  3. May 15, 2018
  4. May 08, 2018
  5. May 04, 2018
  6. Apr 20, 2018
  7. Mar 21, 2018
  8. Dec 21, 2017
  9. Oct 27, 2017
  10. May 19, 2017
Loading