Skip to content

Commit

Permalink
Merge pull request #1366 from bitcraze/toverumar/update_unit_docs
Browse files Browse the repository at this point in the history
Documentation: Add instructions for workaround for deadlysignal in un…
  • Loading branch information
ToveRumar authored Apr 22, 2024
2 parents 9fe3099 + c945c7c commit c2ddfe5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/development/unit_testing.md
Original file line number Diff line number Diff line change
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 c2ddfe5

Please sign in to comment.