https://bugs.winehq.org/show_bug.cgi?id=36171
Bug ID: 36171 Summary: valgrind shows several leaks in winmm/waveform.c Product: Wine Version: 1.7.17 Hardware: x86 OS: Linux Status: NEW Keywords: download, source, testcase Severity: normal Priority: P2 Component: winmm&mci Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com
==4477== 6,156 bytes in 342 blocks are definitely lost in loss record 823 of 838 ==4477== at 0x7BC4C6B7: notify_alloc (heap.c:255) ==4477== by 0x7BC50EFB: RtlAllocateHeap (heap.c:1716) ==4477== by 0x4FEACEF: WINMM_OpenDevice (waveform.c:1093) ==4477== by 0x4FEB8D0: WOD_Open (waveform.c:1272) ==4477== by 0x4FEF2F1: WINMM_DevicesMsgProc (waveform.c:2409) ==4477== by 0x514943D: ??? (winproc.c:173) ==4477== by 0x51495B2: call_window_proc (winproc.c:244) ==4477== by 0x514B74B: WINPROC_call_window (winproc.c:900) ==4477== by 0x51080F8: call_window_proc (message.c:2223) ==4477== by 0x510A2FC: peek_message (message.c:2953) ==4477== by 0x510BDA2: PeekMessageW (message.c:3757) ==4477== by 0x4FEF773: WINMM_DevicesThreadProc (waveform.c:2503) ==4477== by 0x7BC87017: ??? (signal_i386.c:2571) ==4477== by 0x7BC87060: call_thread_func (signal_i386.c:2630) ==4477== by 0x7BC86FF5: ??? (signal_i386.c:2571) ==4477== by 0x7BC8E43C: start_thread (thread.c:428) ==4477== by 0x4218F92: start_thread (pthread_create.c:309) ==4477== by 0x431D7ED: clone (clone.S:129)
==4477== 240 bytes in 6 blocks are definitely lost in loss record 575 of 838 ==4477== at 0x7BC4C6B7: notify_alloc (heap.c:255) ==4477== by 0x7BC50EFB: RtlAllocateHeap (heap.c:1716) ==4477== by 0x5823590: IMalloc_fnAlloc (ifs.c:186) ==4477== by 0x5823EAB: CoTaskMemAlloc (objidl.h:1236) ==4477== by 0x69AE652: AudioClient_GetMixFormat (mmdevdrv.c:1747) ==4477== by 0x6510860: set_format (audioclient.h:330) ==4477== by 0x65109DF: load_driver_devices (devenum.c:464) ==4477== by 0x6512225: MMDevEnum_Create (devenum.c:851) ==4477== by 0x6515445: MMCF_CreateInstance (main.c:252) ==4477== by 0x5804D96: CoCreateInstance (unknwn.h:226) ==4477== by 0x4FE9C53: WINMM_InitMMDevices (waveform.c:843) ==4477== by 0x4FEF50F: WINMM_DevicesThreadProc (waveform.c:2468) ==4477== by 0x7BC87017: ??? (signal_i386.c:2571) ==4477== by 0x7BC87060: call_thread_func (signal_i386.c:2630) ==4477== by 0x7BC86FF5: ??? (signal_i386.c:2571) ==4477== by 0x7BC8E43C: start_thread (thread.c:428) ==4477== by 0x4218F92: start_thread (pthread_create.c:309) ==4477== by 0x431D7ED: clone (clone.S:129) ==4477==
https://bugs.winehq.org/show_bug.cgi?id=36171
--- Comment #1 from Austin English austinenglish@gmail.com --- ==5787== 512 bytes in 1 blocks are definitely lost in loss record 671 of 838 ==5787== at 0x7BC4C6B7: notify_alloc (heap.c:255) ==5787== by 0x7BC50EFB: RtlAllocateHeap (heap.c:1716) ==5787== by 0x5106C7C: list_window_children (win.c:318) ==5787== by 0x510EDFE: WIN_ListChildren (win.c:3267) ==5787== by 0x510B6CA: DestroyWindow (win.c:1854) ==5787== by 0x4FBF40A: WINMM_DevicesThreadDone (waveform.c:2445) ==5787== by 0x4FBF896: WINMM_DevicesThreadProc (waveform.c:2516) ==5787== by 0x7BC87017: ??? (signal_i386.c:2571) ==5787== by 0x7BC87060: call_thread_func (signal_i386.c:2630) ==5787== by 0x7BC86FF5: ??? (signal_i386.c:2571) ==5787== by 0x7BC8E43C: start_thread (thread.c:428) ==5787== by 0x4218F92: start_thread (pthread_create.c:309) ==5787== by 0x431D7ED: clone (clone.S:129)
==6184== 44,101 bytes in 1 blocks are definitely lost in loss record 827 of 828 ==6184== at 0x7BC4C6B7: notify_alloc (heap.c:255) ==6184== by 0x7BC50EFB: RtlAllocateHeap (heap.c:1716) ==6184== by 0x4E754B7: test_fragmentsize (wave.c:1560) ==6184== by 0x4E75868: func_wave (wave.c:1602) ==6184== by 0x4E7665B: run_test (test.h:584) ==6184== by 0x4E76A4A: main (test.h:654) ==6184==
https://bugs.winehq.org/show_bug.cgi?id=36171
--- Comment #2 from Austin English austinenglish@gmail.com --- And a few potential leaks as well:
==6840== 12 bytes in 1 blocks are possibly lost in loss record 75 of 837 ==6840== at 0x7BC4C6B7: notify_alloc (heap.c:255) ==6840== by 0x7BC50EFB: RtlAllocateHeap (heap.c:1716) ==6840== by 0x64E35C0: MMDevEnum_RegisterEndpointNotificationCallback (devenum.c:1207) ==6840== by 0x4FB9C8A: WINMM_InitMMDevices (mmdeviceapi.h:757) ==6840== by 0x4FBF50F: WINMM_DevicesThreadProc (waveform.c:2468) ==6840== by 0x7BC87017: ??? (signal_i386.c:2571) ==6840== by 0x7BC87060: call_thread_func (signal_i386.c:2630) ==6840== by 0x7BC86FF5: ??? (signal_i386.c:2571) ==6840== by 0x7BC8E43C: start_thread (thread.c:428) ==6840== by 0x4218F92: start_thread (pthread_create.c:309) ==6840== by 0x431D7ED: clone (clone.S:129) ==6840==
==6840== 76 bytes in 1 blocks are possibly lost in loss record 423 of 837 ==6840== at 0x7BC4C6B7: notify_alloc (heap.c:255) ==6840== by 0x7BC50EFB: RtlAllocateHeap (heap.c:1716) ==6840== by 0x697BD88: create_session (mmdevdrv.c:1038) ==6840== by 0x697BF3E: get_audio_session (mmdevdrv.c:1086) ==6840== by 0x697D737: AudioClient_Initialize (mmdevdrv.c:1460) ==6840== by 0x4FBB13F: WINMM_OpenDevice (audioclient.h:315) ==6840== by 0x4FBB8D0: WOD_Open (waveform.c:1272) ==6840== by 0x4FBF2F1: WINMM_DevicesMsgProc (waveform.c:2409) ==6840== by 0x511943D: ??? (winproc.c:173) ==6840== by 0x51195B2: call_window_proc (winproc.c:244) ==6840== by 0x511B74B: WINPROC_call_window (winproc.c:900) ==6840== by 0x50D80F8: call_window_proc (message.c:2223) ==6840== by 0x50DA2FC: peek_message (message.c:2953) ==6840== by 0x50DBDA2: PeekMessageW (message.c:3757) ==6840== by 0x4FBF773: WINMM_DevicesThreadProc (waveform.c:2503) ==6840== by 0x7BC87017: ??? (signal_i386.c:2571) ==6840== by 0x7BC87060: call_thread_func (signal_i386.c:2630) ==6840== by 0x7BC86FF5: ??? (signal_i386.c:2571) ==6840== by 0x7BC8E43C: start_thread (thread.c:428) ==6840== by 0x4218F92: start_thread (pthread_create.c:309) ==6840==
==6840== 44,101 bytes in 1 blocks are possibly lost in loss record 836 of 837 ==6840== at 0x7BC4C6B7: notify_alloc (heap.c:255) ==6840== by 0x7BC50EFB: RtlAllocateHeap (heap.c:1716) ==6840== by 0x4E714B7: test_fragmentsize (wave.c:1560) ==6840== by 0x4E71868: func_wave (wave.c:1602) ==6840== by 0x4E7265B: run_test (test.h:584) ==6840== by 0x4E72A4A: main (test.h:654) ==6840==
https://bugs.winehq.org/show_bug.cgi?id=36171
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |valgrind
https://bugs.winehq.org/show_bug.cgi?id=36171
--- Comment #3 from Nikolay Sivov bunglehead@gmail.com --- GetMixFormat() one is fixed with f4096a30eac7e1344baba96c36a15a826ff469a6. The rest should be retested.
https://bugs.winehq.org/show_bug.cgi?id=36171
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |f4096a30eac7e1344baba96c36a | |15a826ff469a6 Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #4 from Austin English austinenglish@gmail.com --- (In reply to Nikolay Sivov from comment #3)
GetMixFormat() one is fixed with f4096a30eac7e1344baba96c36a15a826ff469a6. The rest should be retested.
Thanks, marking fixed. Next issues are bug 38846 and bug 38847.
https://bugs.winehq.org/show_bug.cgi?id=36171
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.47.