https://bugs.winehq.org/show_bug.cgi?id=52312
Bug ID: 52312 Summary: page fault on read access to 0xffffffffffffffff Product: Wine Version: 6.0.2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: nidpick@nidpick.de Distribution: ---
Created attachment 71473 --> https://bugs.winehq.org/attachment.cgi?id=71473 backtrace after starting the wine configuration
Every time I start an wine application I get an error-report. However I then start the application. This happens even when I only start the Wine Configuration. See attached backtrace.txt
https://bugs.winehq.org/show_bug.cgi?id=52312
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #1 from joaopa jeremielapuree@yahoo.fr --- Remove your wine prefix. And test again. And try the latest devel wine version. Currently, it is wine-7.0-rc3
https://bugs.winehq.org/show_bug.cgi?id=52312
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com
--- Comment #2 from Zebediah Figura z.figura12@gmail.com --- (In reply to joaopa from comment #1)
Remove your wine prefix. And test again. And try the latest devel wine version. Currently, it is wine-7.0-rc3
Please don't say things like "remove your wine prefix"; that's a good way to cause people to lose data.
To the original user, please describe what application you are trying to run, and please test in a new, clean prefix.
https://bugs.winehq.org/show_bug.cgi?id=52312
--- Comment #3 from nidpick@nidpick.de --- Created attachment 71478 --> https://bugs.winehq.org/attachment.cgi?id=71478 Screenshot Programm error
https://bugs.winehq.org/show_bug.cgi?id=52312
--- Comment #4 from nidpick@nidpick.de --- Previously wine worked OK. Now comes the programm error window after starting any application, but with some delay the app starts anyway and works. This happens even when I start winecfg from the Startmenue. See also the response when I start winecfg in a terminal:
micky@Ryzen7-Mint20:~$ winecfg 0054:fixme:ntoskrnl:MmGetSystemRoutineAddress L"IoCreateDeviceSecure" not found 0054:fixme:ntoskrnl:MmGetSystemRoutineAddress L"SeConvertStringSecurityDescriptorToSecurityDescriptor" not found wine: Unhandled page fault on read access to FFFFFFFFFFFFFFFF at address 0000000140012523 (thread 0054), starting debugger... 0034:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1. 0034:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1. 0060:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1. 0060:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1. 006c:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1. 006c:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1. 0074:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1. 0074:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1. 006c:err:ole:start_rpcss Failed to start RpcSs service 0074:err:ole:start_rpcss Failed to start RpcSs service 0074:err:ole:start_rpcss Failed to start RpcSs service 003c:err:service:process_send_command receiving command result timed out 003c:fixme:service:scmdatabase_autostart_services Auto-start service L"dokan1" failed to start: 1053 00c0:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1. 00c0:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1. 00b8:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1. 00b8:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1. 0100:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1. 0100:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1. 010c:fixme:ole:CoInitializeSecurity 00166650, -1, 00000000, 00000000, 4, 3, 00000000, 0, 00000000 stub 013c:fixme:ver:GetCurrentPackageId (00D1FF20 00000000): stub 010c:fixme:winscard:SCardEstablishContext (0,00000000,00000000,00AFFDB0) stub 002c:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1. 002c:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1. 010c:fixme:winscard:SCardReleaseStartedEvent stub 010c:fixme:winscard:SCardEstablishContext (2,00000000,00000000,00AFFD40) stub 0144:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1. 0144:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1. 0024:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1. 0024:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1. 0154:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1. 0154:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1. ^C0170:fixme:console:default_ctrl_handler Terminating process 150 on event 0 0174:fixme:console:default_ctrl_handler Terminating process 20 on event 0 micky@Ryzen7-Mint20:~$
https://bugs.winehq.org/show_bug.cgi?id=52312
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |focht@gmx.net Ever confirmed|0 |1 Summary|page fault on read access |Dokan file system driver |to 0xffffffffffffffff |'dokan1.sys' kernel driver | |crashes
--- Comment #5 from Anastasius Focht focht@gmx.net --- Hello folks,
the crash comes from a kernel driver 'dokan1.sys'. The questions is which app / game bundled it?
I've found an open-source project 'Dokan' which contains a user mode libs and a kernel mode file system driver 'dokan1.sys'.
https://github.com/dokan-dev/dokany
--- snip --- Unhandled exception: page fault on read access to 0xffffffffffffffff in 64-bit code (0x0000000140012523). Register dump: rip:0000000140012523 rsp:0000000000c9f450 rbp:0000000000c9f4d8 eflags:00010297 ( R- -- I S -A-P-C) rax:0000000068c85308 rbx:0000000000c9f4e0 rcx:ed0d8d4828ec8348 rdx:0000000000000108 rsi:000000014000e094 rdi:0000000000000006 r8:0000000000000000 r9:0000000000000000 r10:0000000000000000 r11:000000014000addb r12:000000014000e050 r13:0000000000000004 r14:00000000c000000d r15:000000014000c5d8 ... =>0 0x0000000140012523 in dokan1.sys (+0x12523) (0x0000000000c9f4d8) 0x0000000140012523: movq (%rdx,%rcx,1),%rax Modules: Module Address Debug info Name (11 modules) PE 400000- 422000 Deferred winedevice PE 61540000- 61663000 Deferred advapi32 PE 62dc0000- 6306b000 Deferred rpcrt4 PE 68c80000- 68da1000 Deferred ntoskrnl PE 6a080000- 6a365000 Deferred msvcrt PE 6ba00000- 6bac9000 Deferred sechost PE 70940000- 70ca6000 Deferred ucrtbase PE 7b000000- 7b3d1000 Deferred kernelbase PE 7b600000- 7b96c000 Deferred kernel32 PE 7bc00000- 7bf88000 Deferred ntdll PE 140000000- 140017000 Export dokan1.sys Threads: process tid prio (all id:s are in hex) ... 00000044 (D) C:\windows\system32\winedevice.exe 00000048 0 00000054 0 <== 00000058 0 ... --- snip ---
I doubt you need that driver. You could disable it in registry. Start regedit and navigate to:
'HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services'
There should be a service called 'Dokan' or similar. Navigate to that key and edit 'Start' (REG_DWORD). Set it to '3' (manual start) or '4' (disabled).
Regards
https://bugs.winehq.org/show_bug.cgi?id=52312
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |ntoskrnl Keywords| |download URL| |https://web.archive.org/web | |/20220101193836/https://git | |hub.com/dokan-dev/dokany/re | |leases/download/v1.5.0.3000 | |/Dokan_x64.msi Summary|Dokan file system driver |Multiple kernel drivers |'dokan1.sys' kernel driver |crash due to missing |crashes |'ntoskrnl.IoCreateDeviceSec | |ure' stub (Dokan | |'dokan1.sys', LabVIEW 201x | |CVI 'cvintdrv.sys', | |F-Secure BlackLight Engine | |2.2 'fsbldrv.sys' )
--- Comment #6 from Anastasius Focht focht@gmx.net --- Hello folks,
I've archived one installer from Dokany 1.x release series which installs 64-bit 'dokan1.sys':
https://github.com/dokan-dev/dokany/releases/tag/v1.5.0.3000
https://web.archive.org/web/20220101193836/https://github.com/dokan-dev/doka...
https://www.virustotal.com/gui/file/701b56281010adf9fc401d5189dd223b1b300d4d...
$ sha1sum Dokan_x64.msi 0661e14c01785fdf636d826fee34e556b02dc7d4 Dokan_x64.msi
$ du -sh Dokan_x64.msi 12M Dokan_x64.msi
The installer refuses to run due to absence of Windows KB4474419 which obviously isn't present since this is Wine and not Windows :)
https://support.microsoft.com/en-us/topic/sha-2-code-signing-support-update-...
You can trick the installer without authoring the MSI package by passing the property directly via command line:
--- snip --- $ wine msiexec -i Dokan_x64.msi WIN7KB4474419INSTALLED=1 --- snip ---
The installer still fails in the end though:
--- snip --- ... 012c:err:msi:ITERATE_Actions Execution halted, action L"InstallFinalize" returned 1603 012c:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 5) 012c:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 5) 012c:err:msi:ITERATE_Actions Execution halted, action L"ExecuteAction" returned 1603 01c4:fixme:setupapi:pSetupGetGlobalFlags stub 01c4:fixme:setupapi:pSetupGetGlobalFlags stub 012c:err:msi:execute_script Execution of script 2 halted; action L"[2.1\00015\0001{1AFEA463-3DB8-48FA-87D1-7151BE92DB4B}\000128\00012\0001Dokan Library 1.5.0.3000 (x64)\0001Dokany Project<=>S-1-5-21-0-0-0-1000<=>{65A3A964-3DC3-0105-0000-210531145800}]MsiRollbackInstall" returned 1603 --- snip ---
If you terminate the installer right away using 'wineserver -k' nothing is rolled back and the install artifacts are retained.
The reason for the crash here is bug 39406 ("Multiple kernel drivers crash due to missing 'ntoskrnl.SeExports' export (SE_EXPORTS structure)(LabVIEW 201x CVI 'cvintdrv.sys', F-Secure BlackLight Engine 2.2 'fsbldrv.sys')").
The crash "magically" disappeared with commit https://source.winehq.org/git/wine.git/commitdiff/162991a03ceb4b45963b7129bf... ("ntoskrnl: Add IoCreateDeviceSecure semi-stub.") which lets the driver take a different code path.
--- snip --- $ wineboot ... 00c8:fixme:ntoskrnl:IoCreateDeviceSecure (000000000014A650, 408, L"\Device\Dokan_1", 34, 0, 0, L"D:P(A;;GA;;;SY)(A;;GRGWGX;;;BA)(A;;GRGWGX;;;WD)(A;;GRGX;;;RC)", (null), 0000000000C5F5F0): semi-stub 00c8:fixme:ntoskrnl:IoCreateDeviceSecure (000000000014A650, 0, L"\Device\DokanFs1", 8, 0, 0, L"D:P(A;;GA;;;SY)(A;;GRGWGX;;;BA)(A;;GRGWGX;;;WD)(A;;GRGX;;;RC)", (null), 0000000000C5F5E0): semi-stub 00c8:fixme:ntoskrnl:IoCreateDeviceSecure (000000000014A650, 0, L"\Device\DokanCdFs1", 3, 0, 0, L"D:P(A;;GA;;;SY)(A;;GRGWGX;;;BA)(A;;GRGWGX;;;WD)(A;;GRGX;;;RC)", (null), 0000000000C5F5E8): semi-stub 00c8:fixme:ntoskrnl:IoRegisterFileSystem (000000000014B330): stub 00c8:fixme:ntoskrnl:IoRegisterFileSystem (000000000014B4A0): stub 00c8:fixme:ntoskrnl:RtlIsNtDdiVersionAvailable stub: 100794368 00c8:fixme:ntoskrnl:FsRtlRegisterFileSystemFilterCallbacks stub: 000000000014A650 0000000000C5F810 00c8:fixme:ntoskrnl:IoUnregisterFileSystem (000000000014B330): stub 00c8:fixme:ntoskrnl:IoUnregisterFileSystem (000000000014B4A0): stub 00c8:err:ntoskrnl:ZwLoadDriver failed to create driver L"\Registry\Machine\System\CurrentControlSet\Services\dokan1": c0000002 003c:fixme:service:scmdatabase_autostart_services Auto-start service L"dokan1" failed to start: 1 --- snip ---
You either use a recent Wine 6.22+/7.0-ish release which avoids the crash or you disable the kernel driver as follows by running:
--- snip --- $ wine reg add "HKLM\System\CurrentControlSet\Services\dokan1" \ /v Start /t REG_DWORD /d 4 /f --- snip ---
General advice:
Please avoid re-using the same WINEPREFIX with multiple software installations unless you know what you are doing and can help yourself. It's like with Windows: if you install too much crap it will break the prefix at one point. Isolate your main apps/games into own prefixes.
https://wiki.winehq.org/FAQ#Wineprefixes
If you have still questions, please visit WineHQ user forums. Wine Bugzilla is not for end-user support (sometimes an exception is made though).
Regards
https://bugs.winehq.org/show_bug.cgi?id=52312
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Fixed by SHA1| |162991a03ceb4b45963b7129bff | |a89ee443c7e32 Status|NEW |RESOLVED
--- Comment #7 from Anastasius Focht focht@gmx.net --- Hello folks,
I'm making this bug report about missing 'IoCreateDeviceSecure' (semi) stub which prevents that particular crash crash, although indirectly.
Fixed by commit https://source.winehq.org/git/wine.git/commitdiff/162991a03ceb4b45963b7129bf... ("ntoskrnl: Add IoCreateDeviceSecure semi-stub.").
Part of Wine 6.22 release.
Thanks Dmitry
FYI bug 51969 decided to recycle that particular problem. To whom it may concern.
Regards
https://bugs.winehq.org/show_bug.cgi?id=52312
--- Comment #8 from nidpick@nidpick.de --- Problem Fixed! Deaktivating dokan1 in the Registry works for all apps. Thank You all very much!
https://bugs.winehq.org/show_bug.cgi?id=52312
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 7.0-rc4.