https://bugs.winehq.org/show_bug.cgi?id=47125
Bug ID: 47125 Summary: Preloader fails to reserve a memory range when running under valgrind. Product: Wine Version: 4.7 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: jeffersoncarpenter2@gmail.com Distribution: ---
Created attachment 64340 --> https://bugs.winehq.org/attachment.cgi?id=64340 Valgrind output
Exact steps to reproduce:
$ git clone git://source.winehq.org/git/wine.git
$ mkdir wine_build && cd wine_build $ ../wine/configure --enable-win64 CFLAGS="-Og -g" $ make $ cd ..
$ mkdir test_program && cd test_program $ echo 'int main() { return 0; }' > main.c $ x86_64-w64-mingw32-gcc main.c -o main.exe $ valgrind --trace-children=yes ../wine_build/loader/wine64 main.exe ... preloader: Warning: failed to reserve range 0000000000110000-0000000068000000 ...
When running under valgrind, the preloader fails to reserve the memory range and prints this warning. When not running under valgrind, no such warning is printed.