https://bugs.winehq.org/show_bug.cgi?id=48742
Bug ID: 48742 Summary: ntdll: get_modref: Conditional jump or move depends on uninitialised value(s) Product: Wine Version: 5.3 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: jeffersoncarpenter2@gmail.com Distribution: ---
Created attachment 66632 --> https://bugs.winehq.org/attachment.cgi?id=66632 Configure output.
Steps to reproduce:
* Build wine 5.3 (or commit 4dfd5f22f4). Configure output attached. * Disable wine preloader to make valgrind a little quieter. * Compile a test program (I used 'int main() { return 0; }') using i686-w64-mingw32-gcc * Run this under valgrind. Valgrind output attached.
An error near the top is
==7642== Conditional jump or move depends on uninitialised value(s) ==7642== at 0x7BC7472A: get_modref (loader.c:478) ==7642== by 0x7BC7B13A: LdrAddRefDll (loader.c:3158) ==7642== by 0x408F0237: load_driver (driver.c:176) ==7642== by 0x408F0B6A: loaderdrv_CreateWindow (driver.c:673) ==7642== by 0x40958511: WIN_CreateWindowEx (win.c:1664) ==7642== by 0x409589BF: CreateWindowExW (win.c:1798) ==7642== by 0x405FD6DF: manage_desktop (desktop.c:955) ==7642== by 0x4060327C: parse_command_line (explorer.c:764) ==7642== by 0x40603320: wWinMain (explorer.c:795) ==7642== by 0x40606A37: wmain (exe_wmain.c:55) ==7642== by 0x40606922: __wine_spec_exe_wentry (exe_wentry.c:40) ==7642== by 0x7B450045: ??? (debug.h:508)
The uninitialized value is the 'hmod' argument to get_modref.
https://bugs.winehq.org/show_bug.cgi?id=48742
--- Comment #1 from jeffersoncarpenter2@gmail.com --- Created attachment 66633 --> https://bugs.winehq.org/attachment.cgi?id=66633 Valgrind output.
https://bugs.winehq.org/show_bug.cgi?id=48742
--- Comment #2 from jeffersoncarpenter2@gmail.com --- Created attachment 66634 --> https://bugs.winehq.org/attachment.cgi?id=66634 A patch.
This patch fixes this bug for me.
https://bugs.winehq.org/show_bug.cgi?id=48742
jeffersoncarpenter2@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED
--- Comment #3 from jeffersoncarpenter2@gmail.com --- Fixed by https://source.winehq.org/git/wine.git/commit/bc9d4eb55adc2b9063aa9807138b36...
https://bugs.winehq.org/show_bug.cgi?id=48742
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |bc9d4eb55adc2b9063aa9807138 | |b36eff43a96d6
https://bugs.winehq.org/show_bug.cgi?id=48742
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 5.4.
https://bugs.winehq.org/show_bug.cgi?id=48742
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |valgrind