https://bugs.winehq.org/show_bug.cgi?id=42542
Bug ID: 42542 Summary: winetricks dotnet46 hangs frequently (mscorsvw.exe) Product: Wine Version: 2.2 Hardware: x86 OS: Linux Status: NEW Keywords: download, Installer Severity: major Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com Depends on: 42470 Distribution: Gentoo
This is related to bug 42470. There seem to be two separate issues A) frequent critical section timeouts, native msvcrt seems to help here (and potentially Dmitry's patch from bug 42470, but B) makes that hard to verify) B) this issue. mscorsvw.exe from dotnet20/dotnet40 frequently hang:
austin 10737 0.0 0.0 13752 11160 ? Ss 04:54 0:08 /home/austin/wine-git/server/wineserver austin 10747 0.0 0.0 2660520 13132 ? Sl 04:54 0:00 C:\windows\Microsoft.NET\Framework\v2.0.50727\mscorsvw.exe austin 11147 0.0 0.0 2659932 13000 ? S 04:55 0:00 C:\windows\Microsoft.NET\Framework\v2.0.50727\mscorsvw.exe -UseCLSID {E6B238F7-4B0A-4496-9AC7-E896BAF06D25} -Comment Dependency Analyzer austin 11485 0.0 0.0 1781984 12072 ? Sl 04:55 0:20 C:\windows\Microsoft.NET\Framework\v4.0.30319\mscorsvw.exe
This was in a loop running winetricks-test dotnet 100 times. This particular run failed on try 11. It's been hung for at least 7.5 hours: Sun Feb 26 12:35:33 CST 2017
These two issues are making it difficult to run winetricks-test (and I suspect are the source of a lot of recently filed winetricks bugs regarding dotnet.
I'm not sure what logs would be useful here, but I'm happy to get whatever would be useful.
https://bugs.winehq.org/show_bug.cgi?id=42542
--- Comment #1 from Dmitry Timoshkov dmitry@baikal.ru --- Do you have a 'bt all' for the hang?
https://bugs.winehq.org/show_bug.cgi?id=42542
--- Comment #2 from Austin English austinenglish@gmail.com --- Created attachment 57450 --> https://bugs.winehq.org/attachment.cgi?id=57450 bt all
Here you go. This is on wine-2.2-183-gadedebf, with your patch from bug 42470 (builtin msvcrt).
https://bugs.winehq.org/show_bug.cgi?id=42542
--- Comment #3 from Dmitry Timoshkov dmitry@baikal.ru --- (In reply to Austin English from comment #2)
Here you go. This is on wine-2.2-183-gadedebf, with your patch from bug 42470 (builtin msvcrt).
This time it hangs in wine's msvcr80 unloading code. Please retest with native msvcr80.dll.
https://bugs.winehq.org/show_bug.cgi?id=42542
--- Comment #4 from Austin English austinenglish@gmail.com --- Created attachment 57464 --> https://bugs.winehq.org/attachment.cgi?id=57464 bt all (with native msvr80)
https://bugs.winehq.org/show_bug.cgi?id=42542
--- Comment #5 from Austin English austinenglish@gmail.com --- (In reply to Dmitry Timoshkov from comment #3)
(In reply to Austin English from comment #2)
Here you go. This is on wine-2.2-183-gadedebf, with your patch from bug 42470 (builtin msvcrt).
This time it hangs in wine's msvcr80 unloading code. Please retest with native msvcr80.dll.
Didn't seem to help. New bt all attached.
err:ntdll:RtlpWaitForCriticalSection section 0x110060 "heap.c: main process heap section" wait timed out in thread 0064, blocked by 0065, retrying (60 sec)
https://bugs.winehq.org/show_bug.cgi?id=42542
--- Comment #6 from Dmitry Timoshkov dmitry@baikal.ru --- (In reply to Austin English from comment #5)
Didn't seem to help. New bt all attached.
err:ntdll:RtlpWaitForCriticalSection section 0x110060 "heap.c: main process heap section" wait timed out in thread 0064, blocked by 0065, retrying (60 sec)
You are still using built-in msvcrt.dll where it hangs on unload.
https://bugs.winehq.org/show_bug.cgi?id=42542
--- Comment #7 from Austin English austinenglish@gmail.com --- (In reply to Dmitry Timoshkov from comment #6)
(In reply to Austin English from comment #5)
Didn't seem to help. New bt all attached.
err:ntdll:RtlpWaitForCriticalSection section 0x110060 "heap.c: main process heap section" wait timed out in thread 0064, blocked by 0065, retrying (60 sec)
You are still using built-in msvcrt.dll where it hangs on unload.
I misunderstood, I thought your patch alleviated the need for it. I'll rerun with native msvcrt and msvcr80
https://bugs.winehq.org/show_bug.cgi?id=42542
--- Comment #8 from Austin English austinenglish@gmail.com --- Created attachment 57466 --> https://bugs.winehq.org/attachment.cgi?id=57466 bt all, native msvcrt/msvcrt80
err:ntdll:RtlpWaitForCriticalSection section 0x110060 "heap.c: main process heap section" wait timed out in thread 008b, blocked by 008f, retrying (60 sec)
https://bugs.winehq.org/show_bug.cgi?id=42542
--- Comment #9 from Dmitry Timoshkov dmitry@baikal.ru --- Created attachment 57467 --> https://bugs.winehq.org/attachment.cgi?id=57467 hack2
Attached hack should fix deadlock in user32 on process exit which is similar to the problem described in https://bugs.winehq.org/show_bug.cgi?id=42470#c6
https://bugs.winehq.org/show_bug.cgi?id=42542
--- Comment #10 from Austin English austinenglish@gmail.com --- Created attachment 57469 --> https://bugs.winehq.org/attachment.cgi?id=57469 bt all, native msvcr80, msvcrt, hack2
(In reply to Dmitry Timoshkov from comment #9)
Created attachment 57467 [details] hack2
Attached hack should fix deadlock in user32 on process exit which is similar to the problem described in https://bugs.winehq.org/show_bug.cgi?id=42470#c6
With both hacks, and msvcrt+msvcr80, still getting a deadlock: err:ntdll:RtlpWaitForCriticalSection section 0x110060 "heap.c: main process heap section" wait timed out in thread 004f, blocked by 0050, retrying (60 sec)
https://bugs.winehq.org/show_bug.cgi?id=42542
--- Comment #11 from Dmitry Timoshkov dmitry@baikal.ru --- (In reply to Austin English from comment #10)
With both hacks, and msvcrt+msvcr80, still getting a deadlock: err:ntdll:RtlpWaitForCriticalSection section 0x110060 "heap.c: main process heap section" wait timed out in thread 004f, blocked by 0050, retrying (60 sec)
There is no deadlock in the attached backtrace, also there is no threads 004f and 0050 mentioned above.
https://bugs.winehq.org/show_bug.cgi?id=42542 Bug 42542 depends on bug 42470, which changed state.
Bug 42470 Summary: Frequent critical section timeouts in winetricks dotnet46 https://bugs.winehq.org/show_bug.cgi?id=42470
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
https://bugs.winehq.org/show_bug.cgi?id=42542
Neros contact@neros.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |contact@neros.fr
https://bugs.winehq.org/show_bug.cgi?id=42542
Forest forestix@sonic.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |forestix@sonic.net