[tbb-bugs] #10599 [Tor Browser]: Investigate building TBB with SoftBound or AddressSanitizer

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Sep 24 13:49:48 UTC 2015


#10599: Investigate building TBB with SoftBound or AddressSanitizer
-------------------------+-------------------------------------------------
     Reporter:           |      Owner:  tbb-team
  mikeperry              |     Status:  new
         Type:           |  Milestone:
  enhancement            |    Version:
     Priority:  major    |   Keywords:  gitian, tbb-security, tbb-gitian,
    Component:  Tor      |  TorBrowserTeam201509, GeorgKoppen201509
  Browser                |  Parent ID:
   Resolution:           |
Actual Points:           |
       Points:           |
-------------------------+-------------------------------------------------

Comment (by gk):

 Now the build gets much further but still breaks in the Firefox step:
 {{{
 In file included from ../../dist/system_wrappers/sys/cdefs.h:3:0,
                  from /usr/include/features.h:346,
                  from ../../dist/system_wrappers/features.h:3,
                  from /home/ubuntu/install/gcc/include/c++/5.1.0/x86_64
 -unknown-linux-gnu/bits/os_defines.h:39,
                  from /home/ubuntu/install/gcc/include/c++/5.1.0/x86_64
 -unknown-linux-gnu/bits/c++config.h:482,
                  from
 /home/ubuntu/install/gcc/include/c++/5.1.0/cstddef:44,
                  from ../../dist/system_wrappers/cstddef:3,
                  from ../../dist/include/mozilla/Compiler.h:46,
                  from ../../dist/include/mozilla/Attributes.h:12,
                  from ../../dist/include/mozilla/Assertions.h:16,
                  from ../../dist/include/mozilla/ArrayUtils.h:14,
                  from /home/ubuntu/build/tor-
 browser/xpcom/threads/BackgroundHangMonitor.cpp:7,
                  from /home/ubuntu/build/tor-browser/obj-x86_64-unknown-
 linux-gnu/xpcom/threads/Unified_cpp_xpcom_threads0.cpp:2:
 /usr/include/bits/string3.h: In member function 'void
 mozilla::ThreadStackHelper::FillThreadContext(void*)':
 /usr/include/bits/string3.h:49:1: error: inlining failed in call to
 always_inline 'void* memcpy(void*, const void*, size_t) throw ()':
 function attribute mismatch
  __NTH (memcpy (void *__restrict __dest, __const void *__restrict __src,
  ^
 In file included from /home/ubuntu/build/tor-browser/obj-x86_64-unknown-
 linux-gnu/xpcom/threads/Unified_cpp_xpcom_threads0.cpp:29:0:
 /home/ubuntu/build/tor-browser/xpcom/threads/ThreadStackHelper.cpp:730:66:
 error: called from here
           &context.uc_mcontext.gregs[REG_R8], 8 * sizeof(int64_t));
                                                                   ^
 make[5]: Leaving directory `/home/ubuntu/build/tor-browser/obj-x86_64
 -unknown-linux-gnu/xpcom/threads'
 make[5]: *** [Unified_cpp_xpcom_threads0.o] Error 1
 }}}

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


More information about the tbb-bugs mailing list