http://bugs.winehq.org/show_bug.cgi?id=9607
Summary: Wine causes process hang in kernel when running applications from FAT partition Product: Wine Version: 0.9.39. Platform: Other OS/Version: other Status: UNCONFIRMED Severity: major Priority: P2 Component: wine-kernel AssignedTo: wine-bugs@winehq.org ReportedBy: krzysiek-bugs.winehq.org@lichota.net
Distro: Kubuntu Dapper 6.06 Wine: 0.9.9-0ubuntu2 (tested also with 0.9.39 from winehq.org) Kernel: 2.6.15-29-386 (2.6.15-29.58)
This is kernel bug, but affects only wine, so workaround in wine is easier.
When .exe is run from FAT partition, wine process gets stuck in kernel in "D" state and cannot be killed.
I have straced the process and it appears it is stuck in: ioctl(9, TUNIOCGETINFO or VFAT_IOCTL_READDIR_BOTH This way user can prevent unmounting FAT partition by running wine on FAT partition. To reproduce: 1. Mount any FAT volume (for example USB pendrive) 2. Copy some file.exe file to it. 3. Run: wine /media/mydisk/file.exe 4. Wine hangs and cannot be killed.
Possible workaround is to recompile wine with "#define VFAT_IOCTL_READDIR_BOTH" in dlls/ntdll/directory.c commented out. I have checked that it works.
See also here: https://bugs.launchpad.net/ubuntu/+source/wine/+bug/137978
http://bugs.winehq.org/show_bug.cgi?id=9607
James Hawkins truiken@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID
--- Comment #1 from James Hawkins truiken@gmail.com 2007-09-07 11:11:47 ---
This is kernel bug, but affects only wine, so workaround in wine is easier.
Invalid right from the gate.
When .exe is run from FAT partition
Wine does not support running apps from a FAT partition.
http://bugs.winehq.org/show_bug.cgi?id=9607
James Hawkins truiken@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from James Hawkins truiken@gmail.com 2007-09-07 11:12:03 --- Closing.
http://bugs.winehq.org/show_bug.cgi?id=9607
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |UNCONFIRMED Resolution|INVALID |
--- Comment #3 from Vitaliy Margolen vitaliy@kievinfo.com 2007-09-07 11:40:33 --- James it a perfectly valid bug report. Please do not close something that does not fit the google's perspective on the world.
http://bugs.winehq.org/show_bug.cgi?id=9607
--- Comment #4 from Vitaliy Margolen vitaliy@kievinfo.com 2007-09-07 11:41:47 --- Reporter, upgrade to the latest Wine version (which is wine-0.9.44) and retest. However you should really upgrade your kernel version.
http://bugs.winehq.org/show_bug.cgi?id=9607
--- Comment #5 from Dmitry Timoshkov dmitry@codeweavers.com 2007-09-07 11:43:37 ---
Wine does not support running apps from a FAT partition.
According to http://wiki.winehq.org/FAQ,%22Does it matter what filesystem I use?" <quote> Wine is written to be file system independent, so MS Windows applications will install and run under virtually any file system supported by your brand of UNIX. </quote>
Wine already has workarounds for various kernel bugs in VFAT driver, so adding one more shouldn't hurt IMO.
Re-opening.
http://bugs.winehq.org/show_bug.cgi?id=9607
--- Comment #6 from Jesse Allen the3dfxdude@gmail.com 2007-09-07 12:35:58 --- Have we talked to the kernel dev for vfat about these problems?
http://bugs.winehq.org/show_bug.cgi?id=9607
--- Comment #7 from Krzysztof Lichota krzysiek-bugs.winehq.org@lichota.net 2007-09-07 12:40:25 --- (In reply to comment #1)
Wine does not support running apps from a FAT partition.
Wine contains hooks which are valid only on FAT partition, like the mentioned VFAT_IOCTL_READDIR_BOTH ioctl.
I will re-test on wine 0.44, but from reading the source I am pretty sure it is the same.
http://bugs.winehq.org/show_bug.cgi?id=9607
Krzysztof Lichota krzysiek-bugs.winehq.org@lichota.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|0.9.39. |0.9.44.
--- Comment #8 from Krzysztof Lichota krzysiek-bugs.winehq.org@lichota.net 2007-09-07 13:01:40 --- Tested with 0.9.44 (0.9.44~winehq0~ubuntu~6.06-1). It is the same: 3525 pts/2 D+ 0:00 ./putty.exe
http://bugs.winehq.org/show_bug.cgi?id=9607
James Hawkins truiken@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|0.9.44. |0.9.39.
--- Comment #9 from James Hawkins truiken@gmail.com 2007-09-07 13:15:20 --- Please don't change the original reported version.
http://bugs.winehq.org/show_bug.cgi?id=9607
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dank@kegel.com
--- Comment #10 from Dan Kegel dank@kegel.com 2007-09-07 16:43:10 --- How urgent is this to fix?
Does it e.g. hurt people using "portable apps" on pen drives? I haven't heard of any complaints from those folks for some reason...
http://bugs.winehq.org/show_bug.cgi?id=9607
--- Comment #11 from Krzysztof Lichota krzysiek-bugs.winehq.org@lichota.net 2007-09-07 16:53:29 --- I guess this does not happen in newer kernel version. Kernel 2.6.15 is though used in Ubuntu 6.06, which is long-term supported version, so it should be spotted by some people.
I have come across the bug when some other user reported he cannot run application from his Windows partition (which used FAT), but FAT Windows partitions are rare this time.
http://bugs.winehq.org/show_bug.cgi?id=9607
Jesse Allen the3dfxdude@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- OS/Version|other |Linux Platform|Other |PC
--- Comment #12 from Jesse Allen the3dfxdude@gmail.com 2007-09-07 17:36:39 --- If this particular bug is fixed newer kernels, can we just resolve this invalid then? It's not a wine bug.
If you want this fixed in ubuntu LTS, you should file a bug report there. That seems reasonable enough.
http://bugs.winehq.org/show_bug.cgi?id=9607
--- Comment #13 from Krzysztof Lichota krzysiek-bugs.winehq.org@lichota.net 2007-09-08 05:36:48 --- (In reply to comment #12)
If this particular bug is fixed newer kernels, can we just resolve this invalid then? It's not a wine bug.
If you want this fixed in ubuntu LTS, you should file a bug report there. That seems reasonable enough.
I don't know if it is fixed in newer kernel versions. If it is, I guess you should close the bug.
http://bugs.winehq.org/show_bug.cgi?id=9607
Mikolaj Zalewski mikolaj.zalewski@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mikolaj.zalewski@gmail.com
--- Comment #14 from Mikolaj Zalewski mikolaj.zalewski@gmail.com 2007-09-08 13:21:13 --- I have sucessfuly started several programs from a pen-drive on my 2.6.20-16 kernel from Ubuntu 7.04 and then unmounted the drive. Do you have this problem with every executable you try to run or only certain directories or executables triggers the bug? Can you create a small FAT image (let's say no more than 360kB) that triggers it and attach it (compressed) to this bug?
http://bugs.winehq.org/show_bug.cgi?id=9607
James Hawkins truiken@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |ABANDONED
--- Comment #15 from James Hawkins truiken@gmail.com 2008-01-08 05:15:53 --- Abandoned.
http://bugs.winehq.org/show_bug.cgi?id=9607
James Hawkins truiken@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #16 from James Hawkins truiken@gmail.com 2008-01-08 05:16:02 --- Closing.
http://bugs.winehq.org/show_bug.cgi?id=9607
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |UNCONFIRMED Resolution|ABANDONED |
--- Comment #17 from Lei Zhang thestig@google.com 2008-05-17 15:17:32 --- I ran into this bug with wine 1.0-rc1 and Picasa on a machine running Ubuntu Dapper. Picasa scanned a USB drive and hung on the ioctl call.
I'll test on more machines when I get a chance. Reopening.
http://bugs.winehq.org/show_bug.cgi?id=9607
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID
--- Comment #18 from Lei Zhang thestig@google.com 2008-05-20 18:59:39 --- This is a kernel bug only found in Ubuntu Dapper 2.6.15-28 and up, due to a copy and paste error in the Ubuntu specific patches. Fortunately it's an one-liner so hopefully Ubuntu will push out a new update soon.
http://bugs.winehq.org/show_bug.cgi?id=9607
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #19 from Austin English austinenglish@gmail.com 2008-09-10 13:25:01 --- Closing invalid.
http://bugs.winehq.org/show_bug.cgi?id=9607
--- Comment #20 from Lei Zhang thestig@google.com 2008-09-19 11:28:41 --- FYI, the one liner patch has been committed into Ubuntu. A linux kernel with version > 2.6.15-52.71 should be available for Dapper in the near future.