[Bug 54157] New: dir command of cmd fails on Z: on Ubuntu under WSL
https://bugs.winehq.org/show_bug.cgi?id=54157 Bug ID: 54157 Summary: dir command of cmd fails on Z: on Ubuntu under WSL Product: Wine Version: 8.0-rc1 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs(a)winehq.org Reporter: mterrisse(a)free.fr Distribution: --- Wine 8.0 rc1, Ubuntu 22.10 under WSL (Windows SubSystem for Linux, Windows 11 22H2) Hello, You will probably think it is a weird idea running Wine in Ubuntu under WSL. I tried it to avoid copying many files with my program to test it under Wine. I noticed this: wine64 cmd.exe dir This works fine on C: But if I do Z: dir I receive Invalid function. I tried this WINEDEBUG=warn+file wine64 cmd.exe Z: dir and there is something more explicit 0108:warn:file:get_mountmgr_fs_info failed to retrieve filesystem type from mountmgr, status 0xc000000e Invalid function. Do you know what is wrong? Regards, Michel Terrisse -- 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=54157 --- Comment #1 from Michel Terrisse <mterrisse(a)free.fr> --- I had a look at the source code, dlls/ntdll/unix/file.c It seams that NtDeviceIoControlFile has failed. -- 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=54157 Michel Terrisse <mterrisse(a)free.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |ntdll -- 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=54157 Zeb Figura <z.figura12(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12(a)gmail.com --- Comment #2 from Zeb Figura <z.figura12(a)gmail.com> --- Is wine compiled with dbus support? -- 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=54157 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish(a)gmail.com --- Comment #3 from Austin English <austinenglish(a)gmail.com> --- (In reply to Zeb Figura from comment #2)
Is wine compiled with dbus support?
Curious for myself, but how would one check that on a binary package (assuming the user used one)? -- 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=54157 --- Comment #4 from Michel Terrisse <mterrisse(a)free.fr> --- I installed wine (winehq-devel) using this procedure: https://wiki.winehq.org/Ubuntu I don't know if it was compiled with dbus support. -- 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=54157 --- Comment #5 from Zeb Figura <z.figura12(a)gmail.com> --- Probably WINEDEBUG=+mountmgr and look for dbus traces. If compiled without dbus, you'll see a single message to that effect; if dbus was present at compile time but missing at runtime, you should see a message to that effect too. In this case... can you please attach a log with WINEDEBUG=+mountmgr,+file,+seh,+pid? -- 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=54157 --- Comment #6 from Michel Terrisse <mterrisse(a)free.fr> --- Indeed dbus is not loaded. 0054:trace:mountmgr:add_mount_point created L"\\DosDevices\\Z:" id (null) for L"\\Device\\HarddiskVolume2" 0064:trace:mountmgr:run_diskarbitration_loop Skipping, Disk Arbitration support not compiled in 0064:warn:mountmgr:run_dbus_loop failed to get system dbus connection: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory When I run "dir" on Z: I get 0058:trace:mountmgr:mountmgr_ioctl ioctl 6d4084 insize 32 outsize 512 -- 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=54157 Michel Terrisse <mterrisse(a)free.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mterrisse(a)free.fr --- Comment #7 from Michel Terrisse <mterrisse(a)free.fr> --- Created attachment 73721 --> https://bugs.winehq.org/attachment.cgi?id=73721 Trace for dir command in cmd.exe Trace obtained with WINEDEBUG=+mountmgr,+file,+seh,+pid wine64 cmd.exe &> 54157.log and the commands dir and exit -- 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=54157 --- Comment #8 from Michel Terrisse <mterrisse(a)free.fr> --- I tried this: sudo service dbus start * Starting system message bus dbus [ OK ] Now if I run WINEDEBUG=+mountmgr wine64 cmd.exe I get this: 005c:trace:mountmgr:add_mount_point created L"\\DosDevices\\Z:" id (null) for L"\\Device\\HarddiskVolume2" 006c:trace:mountmgr:run_diskarbitration_loop Skipping, Disk Arbitration support not compiled in 0084:fixme:wineusb:query_id Unhandled ID query type 0x5. 006c:trace:mountmgr:udisks_filter ignoring message type=4 path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameAcquired and when I run dir on Z: I still have 0060:trace:mountmgr:mountmgr_ioctl ioctl 6d4084 insize 32 outsize 512 I hope this can help. Regards, Michel Terrisse -- 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=54157 --- Comment #9 from Michel Terrisse <mterrisse(a)free.fr> --- Created attachment 73722 --> https://bugs.winehq.org/attachment.cgi?id=73722 Same as before with dbus service strated With dbus service started I have run the command WINEDEBUG=+mountmgr,+file,+seh,+pid wine64 cmd.exe /c dir &> 54157.log -- 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=54157 --- Comment #10 from Zeb Figura <z.figura12(a)gmail.com> --- There's dbus but no udisks2, so we can't detect volumes. We should probably fix the fallback in that case, though. We should be creating volumes for any the user has manually assigned. -- 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=54157 --- Comment #11 from Michel Terrisse <mterrisse(a)free.fr> --- Hello, You said There's dbus but no udisks2 So I tried sudo apt install udisks2, and I received udisks2 is already the newest version (2.9.4-3). Do I need to start something? Regards, Michel Terrisse -- 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=54157 Zeb Figura <z.figura12(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|ntdll |mountmgr.sys --- Comment #12 from Zeb Figura <z.figura12(a)gmail.com> --- (In reply to Michel Terrisse from comment #11)
Do I need to start something?
I don't know at what point we start running into weird WSL limitations, but you'll probably need to start udisks2.service (e.g. `sudo systemctl start udisks2`). -- 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=54157 --- Comment #13 from Michel Terrisse <mterrisse(a)free.fr> --- Hello, Thank you for your answer. I tried sudo systemctl start udisks2: System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down Regards, Michel Terrisse -- 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=54157 --- Comment #14 from Ken Sharp <imwellcushtymelike(a)gmail.com> --- Please upgrade Wine and retry. https://gitlab.winehq.org/wine/wine/-/wikis/Download -- 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=54157 --- Comment #15 from Michel Terrisse <mterrisse(a)free.fr> --- Hello, I have tried with Wine 10.12 and indeed the bug is fixed. Everythning works fine now. You can close this ticket. Regards, Michel Terrisse -- 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=54157 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #16 from Austin English <austinenglish(a)gmail.com> --- (In reply to Michel Terrisse from comment #15)
Hello,
I have tried with Wine 10.12 and indeed the bug is fixed. Everythning works fine now. You can close this ticket.
Regards,
Michel Terrisse
Reported fixed. -- 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=54157 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #17 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 10.13. -- 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