http://bugs.winehq.org/show_bug.cgi?id=10111
Summary: WINEDEBUG=warn+heap "make test" has heap error in comdlg32/tests/printdlg.c Product: Wine Version: CVS/GIT Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: wine-comctl32 AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com
~/wine-git/dlls/comdlg32/tests$ WINEDEBUG=warn+heap ../../../tools/runtest -P wine -M comdlg32.dll -T ../../.. -p comdlg32_test.exe.so printdlg.c warn:heap:HEAP_ValidateInUseArena Heap 0x110000: invalid in-use arena magic for 0x126a50
Adding +relay shows the error is reported just after wineps.drv is unloaded:
0009:Ret PE DLL (proc=0x7cd78b10,module=0x7cd60000 L"wineps.drv",reason=PROCESS_DETACH,res=(nil)) retval=1 0009:Ret gdi32.104() retval=00000041 ret=7e7ae584 0009:Call ntdll.RtlAllocateHeap(00110000,00000000,00000104) ret=7e7ae5d3 0009:Ret ntdll.RtlAllocateHeap() retval=00136ea0 ret=7e7ae5d3 0009:Call ntdll.RtlFreeHeap(00110000,00000000,00136ea0) ret=7e7ae62b 0009:Ret ntdll.RtlFreeHeap() retval=00000001 ret=7e7ae62b 0009:Ret winspool.drv.DeviceCapabilitiesA() retval=00000041 ret=7ec361e6 0009:Call KERNEL32.GlobalUnlock(00134502) ret=7ec35f92 0009:Ret KERNEL32.GlobalUnlock() retval=00000000 ret=7ec35f92 0009:Call KERNEL32.GlobalUnlock(0013451a) ret=7ec35fa3 0009:Ret KERNEL32.GlobalUnlock() retval=00000001 ret=7ec35fa3 0009:Call ntdll.RtlFreeHeap(00110000,00000000,00134428) ret=7ec35fc6 warn:heap:HEAP_ValidateInUseArena Heap 0x110000: invalid in-use arena magic for 0x134420
http://bugs.winehq.org/show_bug.cgi?id=10111
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |1.0.0
--- Comment #1 from Dan Kegel dank@kegel.com 2007-10-20 01:14:28 --- Heap corruption is serious, so let's fix this and all other heap errors in "make test" for 1.0.
http://bugs.winehq.org/show_bug.cgi?id=10111
Detlef Riekenberg wine.dev@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wine.dev@web.de
--- Comment #2 from Detlef Riekenberg wine.dev@web.de 2007-10-22 11:21:58 --- No problems with "WINEDEBUG="warn+heap" here.
Please attach the log, that includes Ret ntdll.RtlAllocateHeap .... 00134428
http://bugs.winehq.org/show_bug.cgi?id=10111
Zac Brown zac@zacbrown.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zac@zacbrown.org
--- Comment #3 from Zac Brown zac@zacbrown.org 2007-12-05 22:19:18 --- I can't reproduce this bug in the latest 0.9.50. Are you still reproducing this bug Dan?
-Zac
http://bugs.winehq.org/show_bug.cgi?id=10111
--- Comment #4 from Dan Kegel dank@kegel.com 2007-12-06 00:45:53 --- I still see it. (You have to have at least one printer, or the test is skipped.)
http://bugs.winehq.org/show_bug.cgi?id=10111
--- Comment #5 from Zac Brown zac@zacbrown.org 2007-12-06 07:42:46 --- Ok, all I have is networked printers right now so thats why it didn't show then.
Does it matter whether they're para port or usb?
http://bugs.winehq.org/show_bug.cgi?id=10111
--- Comment #6 from Dan Kegel dank@kegel.com 2007-12-06 10:03:38 --- It shows up for me with the cups-pdf printer, which prints to files.
http://bugs.winehq.org/show_bug.cgi?id=10111
Marcus Meissner marcus@jet.franken.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |marcus@jet.franken.de
--- Comment #7 from Marcus Meissner marcus@jet.franken.de 2008-03-25 02:37:16 --- which code calls the RtlFreeHeap that triggers it?
You can sprinkle
HeapValidate(GetProcessHeap(),0,NULL); through the codepath leading up to it to see where it gets corruipted
http://bugs.winehq.org/show_bug.cgi?id=10111
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|comctl32 |comdlg32
--- Comment #8 from Lei Zhang thestig@google.com 2008-03-25 12:57:59 --- I see this too, will investigate.
http://bugs.winehq.org/show_bug.cgi?id=10111
--- Comment #9 from Lei Zhang thestig@google.com 2008-03-25 13:40:16 --- Ah, we did a double free. Patch sent:
http://www.winehq.org/pipermail/wine-patches/2008-March/052192.html
http://bugs.winehq.org/show_bug.cgi?id=10111
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #10 from Austin English austinenglish@gmail.com 2008-03-25 15:14:43 --- Patch committed.
http://bugs.winehq.org/show_bug.cgi?id=10111
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #11 from Alexandre Julliard julliard@winehq.org 2008-04-04 10:06:10 --- Closing bugs fixed in 0.9.59.
http://bugs.winehq.org/show_bug.cgi?id=10111
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|CVS/GIT |unspecified