Skip to content

Commit

Permalink
Documentation: Add instructions for workaround for deadlysignal in un…
Browse files Browse the repository at this point in the history
…it tests.

There is a incompatibility between address sanitizer and recent ubuntu versions that causes
an eternal loop of deadly signal when running unit tests in local environment.
See this issue for more info google/sanitizers#1716
  • Loading branch information
ToveRumar committed Apr 12, 2024
1 parent 28e647b commit c945c7c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/development/unit_testing.md
Expand Up @@ -44,6 +44,16 @@ used in the unit tests as well. In some cases unit tests must be disabled based
if a particular file is not included in the build. A unit test file can be disabled based on configuration by using
an annotation like this:

## AddressSanitizer
If you are facing issues running the unit tests locally and ending up in an endless loop of

Addressanitizer:DEADLY SIGNAL

This is due to a incompatibility between TSan vesion and the high number of entropy bits used for randomization in recent Ubuntu versions.
Solutions for this (until a fix is in place) is to run the tests with the toolbelt or temporarily bump your systems entropy bits down to 28 using;

`sudo sysctl vm.mmap_rnd_bits=28`

``` c
// @IGNORE_IF_NOT CONFIG_DECK_LIGHTHOUSE
```

0 comments on commit c945c7c

Please sign in to comment.