pocoproject / poco

The POCO C++ Libraries are powerful cross-platform C++ libraries for building network- and internet-based applications that run on desktop, server, mobile, IoT, and embedded systems.
https://pocoproject.org
Other
8.05k stars 2.11k forks source link

GitHub runner: Linux thread sanitizer tests fail with "unexpected memory mapping" #4503

Closed matejk closed 3 months ago

matejk commented 3 months ago

Describe the bug

Unit test programs compiled with thread sanitizer options fail immediately on Linux with error FATAL: ThreadSanitizer: unexpected memory mapping

To Reproduce

Happens very often recently in GitHub "Compile and Testrun" actions (https://github.com/pocoproject/poco/actions/workflows/ci.yml)

Expected behavior

Tests run and report sanitizer errors (if any).

Logs

****************************************
*** Linux x86_64 Foundation
****************************************

FATAL: ThreadSanitizer: unexpected memory mapping 0x59600d7b7000-0x59600d81a000

****************************************
*** Linux x86_64 XML
****************************************

FATAL: ThreadSanitizer: unexpected memory mapping 0x65427e2ac000-0x65427e2ba000

Screenshots If applicable, add screenshots to help explain your problem.

Please add relevant environment information:

Additional context

Probably related to ASLR (https://en.wikipedia.org/wiki/Address_space_layout_randomization).

More: https://github.com/google/sanitizers/issues/1716)