HomePhabricator

Workaround jemalloc printing warnings to stderr with qemu

Description

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.

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D14048

Details

Provenance
FabienAuthored on Jun 12 2023, 15:40
FabienPushed on Jun 13 2023, 06:18
Reviewer
Restricted Project
Differential Revision
D14048: Workaround jemalloc printing warnings to stderr with qemu
Parents
rABCa5b1e17c9593: [ecash-herald] Parse cash fusion txs
Branches
Unknown
Tags
Unknown