Page MenuHomePhabricator

Workaround jemalloc printing warnings to stderr with qemu
ClosedPublic

Authored by Fabien on Jun 12 2023, 20:23.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABC2be90cee610a: Workaround jemalloc printing warnings to stderr with qemu
Summary

Recent versions of jemalloc will print a warning upon startup when
running via qemu due to the lack of a compliant MADV_DONTNEED
implementation.
This is handled properly but this warning is causing the test framework
to fail. Rather than filtering out stderr, we can avoid this message by
assigning the extern malloc_message function pointer to our own function
(see https://jemalloc.net/jemalloc.3.html).

Test Plan
./contrib/teamcity/build-configurations.py build-linux-aarch64

Rebase on D14042 and check it still works.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable