http://bugs.winehq.org/show_bug.cgi?id=24038
Summary: kernel32.UnhandledExceptionFilter: ensure that registered JIT debugger can attach and collect debugging info before return Product: Wine Version: 1.3.0 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: focht@gmx.net
Hello,
the symptom is some apps generate unhandled exceptions which ought to call the registered just-in-time debugger but the collection of debugging info fails. When the debugger process is up and running the faulting app is gone, hence attaching and collecting module, backtrace info etc. fails.
Example (you can find several of such occurrences in bugzilla):
--- snip --- ... wine: Unhandled exception 0xc000000d at address 0x68080023:0x004bd342 (thread 0026), starting debugger... 0026:trace:seh:start_debugger Starting debugger "winedbg --auto 37 252" 0027:Ret KERNEL32.Sleep() retval=00000000 ret=00484091 0027:Call KERNEL32.Sleep(00000032) ret=00484091 0028:Ret KERNEL32.Sleep() retval=00000000 ret=00484091 0028:Call KERNEL32.Sleep(00000032) ret=00484091 0026:Ret KERNEL32.UnhandledExceptionFilter() retval=00000000 ret=004c599a 0026:Call KERNEL32.GetCurrentProcess() ret=004c59b5 0026:Ret KERNEL32.GetCurrentProcess() retval=ffffffff ret=004c59b5 0026:Call KERNEL32.TerminateProcess(ffffffff,c000000d) ret=004c59bc Process of pid=0025 has terminated No process loaded, cannot execute 'echo Modules:' Cannot get info on module while no process is loaded No process loaded, cannot execute 'echo Threads:' process tid prio (all id:s are in hex) --- snip ---
kernel32.UnhandledExceptionFilter() -> start_debugger_atomic -> start_debugger -> CreateProcessA() (wait for debugger to come up) -> return
The app code immediately terminates the process after return from UnhandledExceptionFilter() which is an indication that all debugging info collection stuff needs to be done synchronously _before_ UnhandledExceptionFilter() returns in case JIT debugger was called.
Regards
http://bugs.winehq.org/show_bug.cgi?id=24038
--- Comment #1 from Anastasius Focht focht@gmx.net 2010-08-18 06:22:57 --- Hello,
whoops, some part of relay snippet got cut out, now with more complete start to show the app's explicit call to UnhandledExceptionFilter() (any except filter previously in place is cancelled out before -> SetUnhandledExceptionFilter(0)):
--- snip --- ... 0026:Call KERNEL32.IsDebuggerPresent() ret=004c5986 0026:Ret KERNEL32.IsDebuggerPresent() retval=00000000 ret=004c5986 0026:Call KERNEL32.SetUnhandledExceptionFilter(00000000) ret=004c5990 0026:Ret KERNEL32.SetUnhandledExceptionFilter() retval=004cb097 ret=004c5990 0026:Call KERNEL32.UnhandledExceptionFilter(00312754) ret=004c599a wine: Unhandled exception 0xc000000d at address 0x68080023:0x004bd342 (thread 0026), starting debugger... 0026:trace:seh:start_debugger Starting debugger "winedbg --auto 37 252" 0027:Ret KERNEL32.Sleep() retval=00000000 ret=00484091 0027:Call KERNEL32.Sleep(00000032) ret=00484091 0028:Ret KERNEL32.Sleep() retval=00000000 ret=00484091 0028:Call KERNEL32.Sleep(00000032) ret=00484091 0026:Ret KERNEL32.UnhandledExceptionFilter() retval=00000000 ret=004c599a 0026:Call KERNEL32.GetCurrentProcess() ret=004c59b5 0026:Ret KERNEL32.GetCurrentProcess() retval=ffffffff ret=004c59b5 0026:Call KERNEL32.TerminateProcess(ffffffff,c000000d) ret=004c59bc --- snip ---
Regards
http://bugs.winehq.org/show_bug.cgi?id=24038
--- Comment #2 from dino dyvazar@numericable.fr 2010-12-12 09:50:03 CST --- Created an attachment (id=32464) --> (http://bugs.winehq.org/attachment.cgi?id=32464) JIT exception
get the same issue with an app running with dotnet
http://bugs.winehq.org/show_bug.cgi?id=24038
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |http://www.mixmeister.com/d | |ownload.html
--- Comment #3 from Anastasius Focht focht@gmx.net 2011-11-09 15:17:30 CST --- Hello,
obviously still present, added link to one of the apps demonstrating the problem (remembered this while investigating bug 24403).
There are various other apps that end the same way if one searches through bugzilla. The message "Unhandled exception 0xc000000d at address" followed by "No process loaded, cannot execute 'echo Modules:'" is an indication of this bug.
$ sha1sum MixMeisterFusionDemo_PC.exe 2b0e235b2914f5f37bad4f79db3432222a229461 MixMeisterFusionDemo_PC.exe
$ wine --version wine-1.3.32-122-g2e5f73e
Regards
http://bugs.winehq.org/show_bug.cgi?id=24038
--- Comment #4 from Anastasius Focht focht@gmx.net 2011-11-09 15:21:03 CST --- Hello,
addendum to my comment #3 The following prerequisites are required to reproduce (from bug 24403):
MDAC 2.8 for ADO connection and Microsoft Access ODBC Driver (Jet Provider)
$ bash winetricks -q mdac28 jet40
You need additional step to add the necessary ODBC driver provider registry data (ODBCINST subkey):
$ wine odbcconf /f "c:\windows\system32\jetodbc.rsp"
Regards
http://bugs.winehq.org/show_bug.cgi?id=24038
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=24038
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords|download | URL|http://www.mixmeister.com/d | |ownload.html | Summary|kernel32.UnhandledException |kernel32.UnhandledException |Filter: ensure that |Filter: ensure that |registered JIT debugger can |registered JIT debugger can |attach and collect |attach and collect |debugging info before |debugging info before |return |return ("Cannot get info on | |module while no process is | |loaded")
--- Comment #5 from Anastasius Focht focht@gmx.net 2013-05-01 06:22:00 CDT --- Hello folks,
revisiting. The showcase app "MixMeister" was fixed (bug 20395) hence removing it. I'm sure there are still several apps that crash due to other Wine bugs showing this problem.
Just look out for "Cannot get info on module while no process is loaded". Refining summary to get better hits.
$ wine --version wine-1.5.29-38-g8e4317c
Regards
http://bugs.winehq.org/show_bug.cgi?id=24038
--- Comment #6 from Anastasius Focht focht@gmx.net --- Hello folks,
still present.
Another victim: bug 35788
--- snip --- $ pwd /home/focht/.wine/drive_c/Program Files/Sony Online Entertainment/Installed Games/PlanetSide 2
$ WINEDEBUG=+tid,+seh,+relay wine ./LaunchPad.exe >>log.txt 2>&1 ... 004a:Call KERNEL32.SetUnhandledExceptionFilter(00000000) ret=01258702 004a:Ret KERNEL32.SetUnhandledExceptionFilter() retval=0091cf00 ret=01258702 004a:Call KERNEL32.UnhandledExceptionFilter(0289d718) ret=0125870d wine: Unhandled exception 0xc0000409 in thread 4a at address 0x94e263 (thread 004a), starting debugger... 004a:trace:seh:start_debugger Starting debugger "winedbg --auto 73 1388" 004a:trace:process:create_process_impl app (null) cmdline L"winedbg --auto 73 1388" 004a:trace:process:find_exe_file looking for L"winedbg" 004a:trace:process:find_exe_file Trying native exe L"C:\windows\system32\winedbg.exe" 004a:trace:process:create_process_impl starting L"C:\windows\system32\winedbg.exe" as Win32 binary (0x10000000-0x10017000, arch 014c) 004a:trace:process:create_process_impl started process pid 0061 tid 0062 ... 004a:Ret KERNEL32.UnhandledExceptionFilter() retval=00000000 ret=0125870d 005f:Call KERNEL32.Sleep(00000064) ret=0092d4fd 004a:Call KERNEL32.TerminateProcess(ffffffff,c0000409) ret=01258730 004a:Call KERNEL32.FreeLibrary(f7270000) ret=f70a242a 004a:Call PE DLL (proc=0xf7285318,module=0xf7270000 L"uxtheme.dll",reason=PROCESS_DETACH,res=(nil)) 004a:Ret PE DLL (proc=0xf7285318,module=0xf7270000 L"uxtheme.dll",reason=PROCESS_DETACH,res=(nil)) retval=1 004a:trace:loaddll:free_modref Unloaded module L"C:\windows\system32\uxtheme.dll" : builtin 004a:Ret KERNEL32.FreeLibrary() retval=00000001 ret=f70a242a Process of pid=0049 has terminated No process loaded, cannot execute 'echo Modules:' Cannot get info on module while no process is loaded No process loaded, cannot execute 'echo Threads:' process tid prio (all id:s are in hex) 00000008 notepad.exe 00000009 0 0000000e services.exe 0000001d 0 0000001c 0 00000014 0 00000010 0 0000000f 0 00000012 winedevice.exe 0000001b 0 00000018 0 00000017 0 00000013 0 00000019 plugplay.exe 0000001f 0 0000001e 0 0000001a 0 00000020 explorer.exe 00000021 0 winedbg: Internal crash at 0x7edc33b7 --- snip ---
In this case 'winedbg' races against the process termination hence the internal crash.
$ wine --version wine-1.7.16-133-gd8ca8c2
Regards
http://bugs.winehq.org/show_bug.cgi?id=24038
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
https://bugs.winehq.org/show_bug.cgi?id=24038
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hramrach@gmail.com
--- Comment #7 from Anastasius Focht focht@gmx.net --- *** Bug 32579 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=24038
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #8 from super_man@post.com --- I have seen this bug occasionally I didnt know that it had a bug report. Can't really tell what wine version was used but definitely year was 2015 and 1.7 series.
https://bugs.winehq.org/show_bug.cgi?id=24038
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |https://www.blackdesertonli | |ne.com/download
--- Comment #9 from Anastasius Focht focht@gmx.net --- Hello folks,
revisiting, still present, still very annoying (most of the time causing 'winedbg' to crash, same reason as comment #6).
Another victim: "Black Desert Online"
https://www.blackdesertonline.com/download
http://akamai-gamecdn.blackdesertonline.com/game/download/setup/BlackDesertO...
Prerequisite:
* remove/disable 'libGLESv2.dll' (bug 44985)
--- snip --- $ pwd /home/focht/.wine/drive_c/Program Files (x86)/Black Desert Online
$ wine ./Black\ Desert\ Online\ Launcher.exe ... 0043:fixme:process:RegisterApplicationRestart (L"--type=gpu-process --channel="8.0.1859045097\965248607" --no-sandbox --lang=en-US --log-file=Debug.log --log-severity=disable --supports-dual-gpus=false --gpu-driver-bug-workarounds=0,3,12,22 --gpu-vendor-id=0x0000 --gpu-device-id=0x0000 --gpu-driver-vendor --gpu-driver-version --lang=en-US --log-"...,0) 0043:fixme:shell:InitNetworkAddressControl stub 0043:fixme:process:SetProcessDEPPolicy (3): stub 0043:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub 005a:fixme:thread:NtQueryInformationThread Cannot get kerneltime or usertime of other threads 0043:fixme:dwmapi:DwmFlush () stub wine: Unhandled exception 0xc0000417 in thread 43 at address 0x53ad65 (thread 0043), starting debugger... 0058:fixme:crypt:CRYPT_CheckUsages unimplemented for RequestedIssuancePolicy 0009:fixme:win:AnimateWindow partial stub 0058:fixme:crypt:CRYPT_CheckUsages unimplemented for RequestedIssuancePolicy 003e:fixme:winsock:WSALookupServiceBeginW (0x363f650 0x00000ff0 0x363f698) Stub! [1002/014113:ERROR:network_change_notifier_win.cc(160)] WSALookupServiceBegin failed with: 8 Process of pid=0042 has terminated No process loaded, cannot execute 'echo Modules:' Cannot get info on module while no process is loaded No process loaded, cannot execute 'echo Threads:' process tid prio (all id:s are in hex) 00000008 Black Desert Online Launcher.exe 00000061 0 ... 00000009 0 0000000e services.exe 00000021 0 ... 0000000f 0 00000011 winedevice.exe 00000019 0 ... 00000012 0 0000001a plugplay.exe 0000001e 0 0000001d 0 0000001b 0 0000001f winedevice.exe 00000026 0 ... 00000020 0 00000024 explorer.exe 00000029 0 ... 00000025 0 0000004a DGCefBrowser.exe 00000057 0 ... 0000004b 0 winedbg: Internal crash at 0x7e9f61ca --- snip ---
$ sha1sum BlackDesertOnlineSetup_20180524_10010.exe e729c18f0ee555e913fe4c2524d2a0091d1231e5 BlackDesertOnlineSetup_20180524_10010.exe
$ du -sh BlackDesertOnlineSetup_20180524_10010.exe 50M BlackDesertOnlineSetup_20180524_10010.exe
$ wine --version wine-3.17
Regards
https://bugs.winehq.org/show_bug.cgi?id=24038
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |kernel32
https://bugs.winehq.org/show_bug.cgi?id=24038
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|https://www.blackdesertonli |https://web.archive.org/web |ne.com/download |/20190611230454/http://akam | |ai-gamecdn.blackdesertonlin | |e.com/game/download/setup/B | |lackDesertOnlineSetup_20180 | |524_10010.exe
--- Comment #10 from Anastasius Focht focht@gmx.net --- Hello folks,
revisiting, obviously still present.
Adding stable link via Internet Archive:
https://web.archive.org/web/20190611230454/http://akamai-gamecdn.blackdesert...
$ wine --version wine-5.9
Regards