[tor-bugs] #15817 [Tor]: Allow clang runtime sanitizers to be used on tor unit tests

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Apr 27 01:26:52 UTC 2015


#15817: Allow clang runtime sanitizers to be used on tor unit tests
-----------------------------+--------------------------------
     Reporter:  teor         |      Owner:
         Type:  enhancement  |     Status:  needs_information
     Priority:  minor        |  Milestone:  Tor: 0.2.7.x-final
    Component:  Tor          |    Version:  Tor: 0.2.7
   Resolution:               |   Keywords:  unit-tests clang
Actual Points:               |  Parent ID:
       Points:               |
-----------------------------+--------------------------------

Comment (by teor):

 For test-memwipe.c, we can run the sanitizers on the entire executable,
 but exempt the function which uses undefined behaviour using a blacklist
 with `fun:vmemeq` in it.

 For test_bt_cl.c, we can run the sanitizers on the entire executable, but
 exempt the function which uses undefined behaviour using a blacklist with
 `fun:crash` in it. We also need to pass
 `ASAN_OPTIONS=allow_user_segv_handler=1` in the environment to allow tor's
 custom backtrace handler to run.

 These changes won't impact the other tests.

 Is that what you meant?

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


More information about the tor-bugs mailing list