[Bug 54380] New: WINE debugger shows up at the start of every program.
https://bugs.winehq.org/show_bug.cgi?id=54380 Bug ID: 54380 Summary: WINE debugger shows up at the start of every program. Product: Wine Version: 8.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: trivial Priority: P2 Component: ntoskrnl Assignee: wine-bugs(a)winehq.org Reporter: tch(a)protonmail.com Distribution: --- When i run a program with WINE, the debugger window shows up and says "Unhandled exception: unimplemented function ntoskrnl.exe.Ke386QueryIoAccessMap called in 32-bit code (0x[address]).", then displays some other messages, then disappears. Then the program runs normally, but this did not happen before i upgraded to WINE 8.0. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|WINE debugger shows up at |unknown program needs |the start of every program. |unimplemented function | |ntoskrnl.exe.Ke386QueryIoAc | |cessMap --- Comment #1 from Austin English <austinenglish(a)gmail.com> --- What program is that? Does it have a free demo/download available? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 --- Comment #2 from TCH <tch(a)protonmail.com> --- This happens with all programs, not just one "unknown program". (Did someone change my bugticket's title?) Any program i run, will throw the debugger window up. The OS is Devuan 4, but it happened on Devuan 2 too with WINE 8.0-rc3. I thought it will gone, when WINE 8 will be released. I upgraded my system yesterday and also WINE. The debug window remained. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 joaopa <jeremielapuree(a)yahoo.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree(a)yahoo.fr --- Comment #3 from joaopa <jeremielapuree(a)yahoo.fr> --- Please, remove your .wine folder and give a try again. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 Olivier F. R. Dierick <o.dierick(a)piezo-forte.be> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |o.dierick(a)piezo-forte.be --- Comment #4 from Olivier F. R. Dierick <o.dierick(a)piezo-forte.be> --- Hello, Please attach a normal (=without WINDEBUG) terminal output. Instructions to get a log can be found there: https://wiki.winehq.org/FAQ#get_log Regards. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 --- Comment #5 from TCH <tch(a)protonmail.com> --- (In reply to joaopa from comment #3)
Please, remove your .wine folder and give a try again.
Impossible. It is full of installed dependencies, configs, etc. which are piling up since 2008. I'd rather let that debug window pop up with every program, than remove the entire .wine folder. I could rename it for a try though and so i did. You were right, the debug window no longer came up. Still, i cannot delete .wine, so i had to restore it. (In reply to Olivier F. R. Dierick from comment #4)
Hello,
Please attach a normal (=without WINDEBUG) terminal output. Instructions to get a log can be found there: https://wiki.winehq.org/FAQ#get_log
Regards.
I attached two logs. Both times i've ran IrfanView. The nowinedebug.log was created when i renamed my .wine directory and the debug window did not pop up and the windedebug.log was when i ran the program with my normal .wine directory and the window came up. http://oscomp.hu/depot/winedebug.log http://oscomp.hu/depot/nowinedebug.log I don't know why it says it cannot create L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\wineusb" as it exists: http://oscomp.hu/depot/wineusb.png Maybe it would need some "libusb" devel files at compiling? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 Zeb Figura <z.figura12(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12(a)gmail.com --- Comment #6 from Zeb Figura <z.figura12(a)gmail.com> --- The function is coming from a Windows kernel driver, which was at some point installed in the prefix. Presumably, before the upgrade (from what Wine version?) the kernel driver simply failed to load, or failed in a more quiet way before it could call an unimplemented stub. Ke386QueryIoAccessMap() suggests the driver is trying to do port I/O (I think?) which is probably something that we can't support. Since the driver is presumably not necessary for your purposes anyway, I'd recommend trying to find and delete it. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 --- Comment #7 from TCH <tch(a)protonmail.com> --- I've upgraded from WINE 4.15 or 4.16 to 8.0. How do i find the driver which causes this? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 --- Comment #8 from TCH <tch(a)protonmail.com> --- I've started to rename the files in ~/.wine/drive_c/windows/system32/drivers/ and since you've said it is something with I/O, i started with netio.sys and after that DLPORTIO.sys which was the culprit. If that file does not exists, the debug window does not comes up. I've opened ~/.wine/drive_c/system.reg and searched for DLPORTIO and found the driver: "DriverLINX Port I/O Driver". That is a driver for windows to give access to the LPT port (and others) from programs. (http://pascal.hansotten.com/delphi/driverlynx-dlportio-and-windows-7-and-8-a...) However, that was working before i've upgraded to WINE 8. What's the problem now? I've tried to reinstall the driver, but to no avail. Evidently, removing the driver would cause the debug window to cease popping up, but why does this driver causes problems with WINE 8? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 --- Comment #9 from Olivier F. R. Dierick <o.dierick(a)piezo-forte.be> --- (In reply to TCH from comment #8)
I've started to rename the files in ~/.wine/drive_c/windows/system32/drivers/ and since you've said it is something with I/O, i started with netio.sys and after that DLPORTIO.sys which was the culprit. If that file does not exists, the debug window does not comes up. I've opened ~/.wine/drive_c/system.reg and searched for DLPORTIO and found the driver: "DriverLINX Port I/O Driver". That is a driver for windows to give access to the LPT port (and others) from programs. (http://pascal.hansotten.com/delphi/driverlynx-dlportio-and-windows-7-and-8- and-64-bit/)
However, that was working before i've upgraded to WINE 8. What's the problem now? I've tried to reinstall the driver, but to no avail. Evidently, removing the driver would cause the debug window to cease popping up, but why does this driver causes problems with WINE 8?
Hello, Some direct I/O support was removed with release 5.4: https://source.winehq.org/git/wine.git/history/d637640f9af4ccfb6639361fc548d... Regards. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 --- Comment #10 from Zeb Figura <z.figura12(a)gmail.com> --- (In reply to TCH from comment #8)
However, that was working before i've upgraded to WINE 8. What's the problem now? I've tried to reinstall the driver, but to no avail. Evidently, removing the driver would cause the debug window to cease popping up, but why does this driver causes problems with WINE 8?
I tried to explain this in comment 6, but basically, the most likely explanation is that the driver didn't work in wine 7 either, but it failed in a less noisy way. (In reply to Olivier F. R. Dierick from comment #9)
Hello,
Some direct I/O support was removed with release 5.4:
https://source.winehq.org/git/wine.git/history/ d637640f9af4ccfb6639361fc548d4bbeaafeb6f:/dlls/krnl386.exe16/ioports.c
That's not related here. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 --- Comment #11 from TCH <tch(a)protonmail.com> --- (In reply to Olivier F. R. Dierick from comment #9)
Hello,
Some direct I/O support was removed with release 5.4:
https://source.winehq.org/git/wine.git/history/ d637640f9af4ccfb6639361fc548d4bbeaafeb6f:/dlls/krnl386.exe16/ioports.c
Regards.
This seems DOS stuff to me; the driver i've had installed is a pure NT driver. (In reply to Zeb Figura from comment #10)
I tried to explain this in comment 6, but basically, the most likely explanation is that the driver didn't work in wine 7 either, but it failed in a less noisy way.
I understood what you've tried to explain, but i have no experience in windows, so i had no idea what to do. This was just a sudden idea, a blind shot. It was sheer luck, that it did hit. As for WINE 7, i've upgraded from WINE 4.15 or 4.16 to WINE 8, i've never used WINE 7. So, you say, this is not gonna work ever again, so i can just uninstall the driver? Why WINE team removed the driver level access to I/O ports? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 Fabian Maurer <dark.shadow4(a)web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4(a)web.de --- Comment #12 from Fabian Maurer <dark.shadow4(a)web.de> ---
So, you say, this is not gonna work ever again, so i can just uninstall the driver? Why WINE team removed the driver level access to I/O ports?
It did never work, wine didn't remove anything relevant. The thing Olivier linked is unrelated and only affects DOS applications. Drivers that need I/O port access are not very likely to work anytime soon in Wine, and you don't seem to need it anyways, so I'd just uninstall the driver. If you feel worried you can always make a backup of the WINEPREFIX first. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 --- Comment #13 from TCH <tch(a)protonmail.com> --- (In reply to Fabian Maurer from comment #12)
It did never work, wine didn't remove anything relevant. The thing Olivier linked is unrelated and only affects DOS applications.
I know that commit only affected DOS stuff, i even said it. However, under WINE 4.x this did not cause any errors. I cannot recall though, if LPT controllong Delphi programs did work under it, or not...
Drivers that need I/O port access are not very likely to work anytime soon in Wine, and you don't seem to need it anyways, so I'd just uninstall the driver. If you feel worried you can always make a backup of the WINEPREFIX first.
Currently i do not need it, but i do use the LPT for controlling stuff, for example my 1541 emulator (http://oscomp.hu/?details/e1541_Linux_AMD64_v1.0.2_Linux_1489) or my Amiga<->PC programs. Sure, those are all Linux programs, but if i want to run a win32 program which controls the LPT, i would need it. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 --- Comment #14 from Olivier F. R. Dierick <o.dierick(a)piezo-forte.be> --- Hello, Sorry for the confusion. I downloaded port95nt.zip from the link in comment 8 and tried to replicate the issue without success. All I get are those lines in the default output: --- snippet --- 0114:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\DLPortIO": c0000142 003c:fixme:service:scmdatabase_autostart_services Auto-start service L"DLPortIO" failed to start: 1114 --- end --- I don't get a debugging window or a mention of an unimplemented function call. That driver is obviously not functioning, but at least it fails gracefully. I couldn't find any dlportio.sys file anywhere in the prefixes. The linked program installs a DLPORTIO.DLL, though. Can you compare the date/version of the drivers? (Was tested on Wine 8.9 with both 32-bit and shared WoW64 fresh wineprefixes, with windows version set to default win10) Regards. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 --- Comment #15 from Olivier F. R. Dierick <o.dierick(a)piezo-forte.be> --- (In reply to Olivier F. R. Dierick from comment #14)
Can you compare the date/version of the drivers?
$ ls -l DLPORTIO.dll -rw-r--r-- 1 olivier olivier 34816 sep 27 1996 DLPORTIO.dll $ sha1sum DLPORTIO.dll dc0cb7a8158c797e57463504915f382771369481 DLPORTIO.dll The archive from the download URL: $ sha1sum port95nt.zip 93ac227ebe0b34d4a6d35d548462d27b513c5167 port95nt.zip -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 --- Comment #16 from Olivier F. R. Dierick <o.dierick(a)piezo-forte.be> --- Hello, I can partially reproduce the issue when the version is set to winXP. --- snippet --- wine: Call from 7B0123AC to unimplemented function ntoskrnl.exe.Ke386QueryIoAccessMap, aborting wine: Unimplemented function ntoskrnl.exe.Ke386QueryIoAccessMap called at address 7B0123AC (thread 0114), starting debugger... 0050:err:ole:start_rpcss Failed to start RpcSs service 003c:err:service:process_send_command service protocol error - failed to read pipe r = 0 count = 0! 003c:fixme:service:scmdatabase_autostart_services Auto-start service L"DLPortIO" failed to start: 1053 --- end --- And then there is a dlportio.sys file in windows/system32/drivers: $ ls -l DLPORTIO.sys -rw-r--r-- 1 olivier olivier 3584 sep 27 1996 DLPORTIO.sys $ sha1sum DLPORTIO.sys 41c2d0bde311dcf53fed4bf9e8976bfc69bd914c DLPORTIO.sys However, I don't get a debugger window, only a terminal that just flashes once in the background. Regards. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 --- Comment #17 from TCH <tch(a)protonmail.com> --- I use WINE 8.0.1 and the environment is set to WinXp. Let's synchronize our terminology. What do you mean by debugging window and terminal? When i run WINE with that driver installed, i get a black window with white text, which prints out error and debug messages. Is that WINE's debug window, or it's terminal? I am not familiar with windows. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 --- Comment #18 from Olivier F. R. Dierick <o.dierick(a)piezo-forte.be> --- Created attachment 74635 --> https://bugs.winehq.org/attachment.cgi?id=74635 Patch - Implement minimal Ke386QueryIoAccessMap() stub. (In reply to TCH from comment #17)
I use WINE 8.0.1 and the environment is set to WinXp.
Let's synchronize our terminology. What do you mean by debugging window and terminal? When i run WINE with that driver installed, i get a black window with white text, which prints out error and debug messages. Is that WINE's debug window, or it's terminal? I am not familiar with windows.
Oh, sorry, I thought you got a winedbg crash window (the kind that let you save a backtrace), that's what I thought you called 'debugger window'. The black window with white text is just a terminal to me. I'm not familiar with Wine opening a terminal for debugging purpose, though it may be a feature that I'm unaware of that depends on the severity of the error. In my case, It blinks so fast I can't barely see any text in it. I get the command output in the gnome terminal I use to run the wine command with. I guess this means that we get the same result. Can you compile Wine with the attached patch? It implements a minimal stub function that makes the driver fail gracefully. Regards. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 --- Comment #19 from Olivier F. R. Dierick <o.dierick(a)piezo-forte.be> --- (In reply to Olivier F. R. Dierick from comment #18)
function that makes the driver fail gracefully.
Or silently working, I don't know. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 --- Comment #20 from TCH <tch(a)protonmail.com> --- Yes, it flashes too fastly to read it, aside from the first message which is described in the opening post. So, that is a terminal window then. Sorry for the misunderstanding. I've recompiled WINE 8.0.1 with your patch and reinstalled the driver. The terminal window is gone for good. Thank you very much for the fix. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 Olivier F. R. Dierick <o.dierick(a)piezo-forte.be> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #21 from Olivier F. R. Dierick <o.dierick(a)piezo-forte.be> --- Hello, Merge request sent: https://gitlab.winehq.org/wine/wine/-/merge_requests/3095 Regards. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 --- Comment #22 from Olivier F. R. Dierick <o.dierick(a)piezo-forte.be> --- (In reply to TCH from comment #20)
I've recompiled WINE 8.0.1 with your patch and reinstalled the driver. The terminal window is gone for good. Thank you very much for the fix.
Thank you for the feedback. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 Olivier F. R. Dierick <o.dierick(a)piezo-forte.be> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Summary|unknown program needs |Installed windows driver |unimplemented function |triggers a window when |ntoskrnl.exe.Ke386QueryIoAc |running any program |cessMap |(unimplemented function | |ntoskrnl.exe.Ke386QueryIoAc | |cessMap) Keywords| |download, patch URL| |http://pascal.hansotten.com | |/delphi/driverlynx-dlportio | |-and-windows-7-and-8-and-64 | |-bit/ Fixed by SHA1| |58e81212fc426d8022d93f40490 | |abb8de532c289 Resolution|--- |FIXED --- Comment #23 from Olivier F. R. Dierick <o.dierick(a)piezo-forte.be> --- Hello, Should be fixed by 58e81212fc426d8022d93f40490abb8de532c289. Also rewording summary to better reflect the actual issue, and filling some fields & keywords. Regards. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 Olivier F. R. Dierick <o.dierick(a)piezo-forte.be> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Installed windows driver |Installed windows driver |triggers a window when |triggers a window when |running any program |running any program in |(unimplemented function |winXP mode (unimplemented |ntoskrnl.exe.Ke386QueryIoAc |function |cessMap) |ntoskrnl.exe.Ke386QueryIoAc | |cessMap) -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 --- Comment #24 from TCH <tch(a)protonmail.com> --- Will it be included in WINE 8.0.2? Or there will not be a WINE 8.0.2? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 Olivier F. R. Dierick <o.dierick(a)piezo-forte.be> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mstefani(a)winehq.org --- Comment #25 from Olivier F. R. Dierick <o.dierick(a)piezo-forte.be> --- (In reply to TCH from comment #24)
Will it be included in WINE 8.0.2? Or there will not be a WINE 8.0.2?
Hello, It will be included in Wine 8.11, Friday, end of this week. For the wine-stable releases (8.0.x), the question should be directed at the stable branch maintainer (I'm CC'ing him to this bug so that he may reply). Regards. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 --- Comment #26 from TCH <tch(a)protonmail.com> --- Thanks. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 --- Comment #27 from Michael Stefaniuc <mstefani(a)winehq.org> --- Sounds good for 8.0.3. Too new for 8.0.2 as that includes stuff from wine-8.5 to 8.8. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 --- Comment #28 from TCH <tch(a)protonmail.com> --- Thanks for the answer. No problem, i'll patch 8.0.2 by hand again, when it comes out. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #29 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 8.11. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54380 Michael Stefaniuc <mstefani(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |8.0.x -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=54380 Michael Stefaniuc <mstefani(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|8.0.x |--- -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla