https://bugs.winehq.org/show_bug.cgi?id=47394
Bug ID: 47394 Summary: Valgrind reports Invalid read of size 4 one frame below call_dll_entry_point Product: Wine Version: 4.10 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: jeffersoncarpenter2@gmail.com Distribution: ---
Created attachment 64741 --> https://bugs.winehq.org/attachment.cgi?id=64741 Output of valgrind --trace-children=yes wine main.exe
Steps to reproduce:
* Build wine-4.10 for 32 bits. * Using i686-w64-mingw32-gcc, compile 'int main() { return 0; }' * Disable the wine preloader (chmod -x wine-preloader) * Run with valgrind
Valgrind reports an invalid read of size 4 one frame below call_dll_entry_point while loading rpcrt4.dll. Prior to this it (at least, a wine process with the same process id) successfully loads ntdll.dll, KERNEL32.dll, advapi32.dll, msvcrt.dll calling call_dll_entry_point without any issues, as confirmed by inserting the line
FIXME("Loading %s %i %p\n", debugstr_w(wm->ldr.BaseDllName.Buffer), getpid(), (void*)entry);
above
retv = call_dll_entry_point( entry, module, reason, lpReserved );
inside of MODULE_InitDLL.