http://bugs.winehq.org/show_bug.cgi?id=17838
Summary: I/O error 32 while opening executable for reading Product: Wine Version: unspecified Platform: Other OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: jonatan@cmteknik.se
Created an attachment (id=20105) --> (http://bugs.winehq.org/attachment.cgi?id=20105) Debug messages
I have a Win16 Delphi application that I try to run with Wine.
It works fine until at one point it tries to open and read its own executable.
Then it shows a message box: "I/O error 32". A quick google tells me it has to do with sharing files.
I've made sure the user has read and write permissions on the file.
I've run the application with "WINEDEBUG=+file" and attached the log to this report. The log ends when the message is shown.
I've tested with the official Wine-packages on Ubuntu 8.04 and 8.10 (Wine version 1.0) and with version 1.1.17 on Ubuntu 8.04, using the repositories listed at WineHQ.org.
I've run this application on Win 3.11, 95, 98, XP over the years with no problem.
http://bugs.winehq.org/show_bug.cgi?id=17838
--- Comment #1 from Andrew Nguyen arethusa26@gmail.com 2009-03-25 01:59:25 --- Please attach a compressed WINEDEBUG=+relay,+seh,+tid trace (lzma would be a good choice).
http://bugs.winehq.org/show_bug.cgi?id=17838
--- Comment #2 from Jonatan Magnusson jonatan@cmteknik.se 2009-03-25 03:44:03 --- Created an attachment (id=20114) --> (http://bugs.winehq.org/attachment.cgi?id=20114) Debug output using +relay,+seh,+tid
I've attached debug output as requested.
The problem occurs at around line 275457.
http://bugs.winehq.org/show_bug.cgi?id=17838
--- Comment #3 from Andrew Nguyen arethusa26@gmail.com 2009-03-25 04:22:30 --- Is there an available download for this application for test purposes? My quick and probably hasty conclusion was that Wine does OpenFile16 on NE modules with flags OF_READ|OF_SHARE_DENY_WRITE (dlls/kernel32/module.c:950), which seems to be getting in the way of the CreateFileW call on the line you mentioned:
0019:Call KERNEL32.CreateFileW(006dd540 L"C:\condi\CONDILNK.EXE",c0000000,00000003,00000000,00000003,00000000,00000000) ret=7e8779a1 0019:Ret KERNEL32.CreateFileW() retval=ffffffff ret=7e8779a1
http://bugs.winehq.org/show_bug.cgi?id=17838
Jonatan Magnusson jonatan@cmteknik.se changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jonatan@cmteknik.se
--- Comment #4 from Jonatan Magnusson jonatan@cmteknik.se 2009-03-25 05:04:53 --- Sorry, no public download available, but I can send the application on request.
http://bugs.winehq.org/show_bug.cgi?id=17838
--- Comment #5 from Jonatan Magnusson jonatan@cmteknik.se 2009-03-25 05:48:19 --- You were right!
I downloaded the source (1.1.17) and tried to compile it and run the application: same thing.
Then I removed the OF_SHARE_DENY_WRITE from line 950 in "ne_module.c" (not "module.c"), recompiled, and it worked!
So, which is the correct behaviour? Will I have to make a custom compile for my clients, or will it eventually be included in future Wine releases?
http://bugs.winehq.org/show_bug.cgi?id=17838
--- Comment #6 from Andrew Nguyen arethusa26@gmail.com 2009-03-25 06:48:54 --- While I know nothing of kernel32 and thus don't know when or what a proper fix would be, you could certainly keep the hack in your local tree to suit your needs.
http://bugs.winehq.org/show_bug.cgi?id=17838
--- Comment #7 from Dmitry Timoshkov dmitry@codeweavers.com 2009-03-25 06:50:07 --- Sounds like the same problem as in the bug 2332.
http://bugs.winehq.org/show_bug.cgi?id=17838
--- Comment #8 from Andrew Nguyen arethusa26@gmail.com 2009-03-26 01:30:06 --- Agreed. This should be marked as a duplicate.
http://bugs.winehq.org/show_bug.cgi?id=17838
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE
--- Comment #9 from Dmitry Timoshkov dmitry@codeweavers.com 2009-03-27 11:10:07 --- Marking as a duplicate.
*** This bug has been marked as a duplicate of bug 2332 ***
http://bugs.winehq.org/show_bug.cgi?id=17838
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Dmitry Timoshkov dmitry@codeweavers.com 2009-03-27 11:10:54 --- Closing dup.