https://bugs.winehq.org/show_bug.cgi?id=45090
Bug ID: 45090 Summary: (nearly) every test shows a leak in kernel32/{console,term}.c Product: Wine Version: 3.7 Hardware: x86 OS: Linux Status: NEW Keywords: download, source, testcase, valgrind Severity: normal Priority: P2 Component: kernel32 Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com Distribution: Gentoo
Created attachment 61259 --> https://bugs.winehq.org/attachment.cgi?id=61259 terminal output
I haven't noticed this on other machines. I built a new machine with more debugging options, which may be a factor.
This is adsldp/sysinfo: ==23199== 172 bytes in 1 blocks are definitely lost in loss record 87 of 107 ==23199== at 0x402EF08: calloc (vg_replace_malloc.c:711) ==23199== by 0x5832624: _nc_setupterm (lib_setup.c:711) ==23199== by 0x5832B11: setupterm (lib_setup.c:955) ==23199== by 0x7B472181: TERM_Init (term.c:419) ==23199== by 0x7B434E70: CONSOLE_Init (console.c:3079) ==23199== by 0x7B44422B: process_attach (kernel_main.c:94) ==23199== by 0x7B444321: DllMain (kernel_main.c:139) ==23199== by 0x7B47D3EA: __wine_spec_dll_entry (dll_entry.c:40) ==23199== by 0x7BC4C6B1: ??? (in /home/austin/wine-valgrind/dlls/ntdll/ntdll.dll.so) ==23199== by 0x7BC4FB7A: MODULE_InitDLL (loader.c:1186) ==23199== by 0x7BC4FE40: process_attach (loader.c:1278) ==23199== by 0x7BC4FD85: process_attach (loader.c:1266) ==23199== by 0x7BC4FD85: process_attach (loader.c:1266) ==23199== by 0x7BC4FD85: process_attach (loader.c:1266) ==23199== by 0x7BC526CB: attach_dlls (loader.c:3156) ==23199== by 0x7BC7808F: attach_thread (signal_i386.c:2689) ==23199== by 0x7BC74C63: ??? (in /home/austin/wine-valgrind/dlls/ntdll/ntdll.dll.so) ==23199==
I'll attach a log with more examples.
https://bugs.winehq.org/show_bug.cgi?id=45090
tokktokk fdsfgs@krutt.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs@krutt.org
https://bugs.winehq.org/show_bug.cgi?id=45090
--- Comment #1 from Austin English austinenglish@gmail.com --- Seeing this on another machine (with less debugging stuff):
==19685== 1,622 bytes in 1 blocks are possibly lost in loss record 277 of 304 ==19685== at 0x40345DC: malloc (vg_replace_malloc.c:307) ==19685== by 0x6375589: ??? ==19685== by 0x6375FF6: ??? ==19685== by 0x63763F9: ??? ==19685== by 0x6376524: ??? ==19685== by 0x636F75A: ??? ==19685== by 0x636FB66: ??? ==19685== by 0x6370071: ??? ==19685== by 0x7B64BCB3: TERM_Init (term.c:418) ==19685== by 0x7B635B90: CONSOLE_Init (console.c:1119) ==19685== by 0x7B63A105: process_attach (kernel_main.c:133) ==19685== by 0x7B63A1EF: DllMain (kernel_main.c:177) ==19685== by 0x7BC49BA5: ??? (in /home/austin/wine-valgrind/dlls/ntdll/ntdll.dll.so) ==19685== by 0x7BC4D4AC: MODULE_InitDLL (loader.c:1324) ==19685== by 0x7BC4D728: process_attach (loader.c:1418) ==19685== by 0x7BC4D66A: process_attach (loader.c:1404) ==19685== by 0x7BC4D66A: process_attach (loader.c:1404) ==19685== by 0x7BC4D66A: process_attach (loader.c:1404) ==19685== by 0x7BC50018: LdrInitializeThunk (loader.c:3464) ==19685== by 0x48803A8: attach_thread (signal_i386.c:2198)
==13485== 13 bytes in 1 blocks are definitely lost in loss record 24 of 304 ==13485== at 0x40345DC: malloc (vg_replace_malloc.c:307) ==13485== by 0x42DFBA5: strdup (strdup.c:42) ==13485== by 0x6383EBC: ??? ==13485== by 0x63841AE: ??? ==13485== by 0x638E4F0: ??? ==13485== by 0x638775A: ??? ==13485== by 0x6387B66: ??? ==13485== by 0x6388071: ??? ==13485== by 0x7B64BCB3: TERM_Init (term.c:418) ==13485== by 0x7B635B90: CONSOLE_Init (console.c:1119) ==13485== by 0x7B63A105: process_attach (kernel_main.c:133) ==13485== by 0x7B63A1EF: DllMain (kernel_main.c:177) ==13485== by 0x7BC49BA5: ??? (in /home/austin/wine-valgrind/dlls/ntdll/ntdll.dll.so) ==13485== by 0x7BC4D4AC: MODULE_InitDLL (loader.c:1324) ==13485== by 0x7BC4D728: process_attach (loader.c:1418) ==13485== by 0x7BC4D66A: process_attach (loader.c:1404) ==13485== by 0x7BC4D66A: process_attach (loader.c:1404) ==13485== by 0x7BC4D66A: process_attach (loader.c:1404) ==13485== by 0x7BC50018: LdrInitializeThunk (loader.c:3464) ==13485== by 0x48803A8: attach_thread (signal_i386.c:2198) ==13485==
with wine-5.13.
https://bugs.winehq.org/show_bug.cgi?id=45090
Jacek Caban jacek@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jacek@codeweavers.com
--- Comment #2 from Jacek Caban jacek@codeweavers.com --- Related code is no longer in Wine: https://source.winehq.org/git/wine.git/commitdiff/43f822bca27b983e6ecca11f42...
Please retest.
https://bugs.winehq.org/show_bug.cgi?id=45090
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Fixed by SHA1| |43f822bca27b983e6ecca11f420 | |4348a38ba7147 Status|NEW |RESOLVED
--- Comment #3 from Austin English austinenglish@gmail.com --- (In reply to Jacek Caban from comment #2)
Related code is no longer in Wine: https://source.winehq.org/git/wine.git/commitdiff/ 43f822bca27b983e6ecca11f4204348a38ba7147
Please retest.
Yep, fixed, thanks.
https://bugs.winehq.org/show_bug.cgi?id=45090
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.19.