Skip to content

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

@matejk

Description

@matejk

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:

  • OS Type and Version: Ubuntu 22.04.4 LTS, kernel 6.5.0-1016-azure
  • POCO Version: develop (pre 1.14)
  • Third-party product (eg. database or library) type and version

Additional context

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

More: google/sanitizers#1716)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions