http://bugs.winehq.org/show_bug.cgi?id=20226
Summary: builtin xcopy.exe crashes with page fault when source directory does not exist. Product: Wine Version: 1.1.30 Platform: PC-x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P3 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: robbak@gmail.com
Created an attachment (id=23862) --> (http://bugs.winehq.org/attachment.cgi?id=23862) backtrace from crash in xcopy.exe
The builtin implemetnation of xcopy.exe has a bug wherein xcopy pagefaults on exit when the source file does not exist, and option\e (copy empty subdirectories) is used. Example below:
wine xcopy.exe /e Z:\home\robbak\testdir\nonexistant z:\home\robbak\testdir\nonexist_target Path not found
wine: Unhandled page fault on write access to 0x003a005e at address 0x7bc460f4 (thread 0042), starting debugger... err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x7bc460f4 [1]+ Done wine notepad.exe
Attached is a dump created while running autopatcher, which runs uses xcopy.exe. (my simple test did not produce a backtrace.)
http://bugs.winehq.org/show_bug.cgi?id=20226
--- Comment #1 from Robert Backhaus robbak@gmail.com 2009-09-30 20:53:03 --- (In reply to comment #0)
Created an attachment (id=23862)
--> (http://bugs.winehq.org/attachment.cgi?id=23862) [details]
backtrace from crash in xcopy.exe
The builtin implemetnation of xcopy.exe has a bug wherein xcopy pagefaults on exit when the source file does not exist, and option\e (copy empty subdirectories) is used. Example below:
wine xcopy.exe /e Z:\home\robbak\testdir\nonexistant z:\home\robbak\testdir\nonexist_target Path not found
wine: Unhandled page fault on write access to 0x003a005e at address 0x7bc460f4 (thread 0042), starting debugger... err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x7bc460f4 [1]+ Done wine notepad.exe
Attached is a dump created while running autopatcher, which runs uses xcopy.exe. (my simple test did not produce a backtrace.)
a little further examination revealed that you need a nonexistant source and an existing target: so wine xcopy.exe /e Z:\home\robbak\testdir\nonexistant z:\home\robbak\testdir\target File not found
wine: Unhandled page fault on write access to 0x003a005e at address 0x7bc460f4 (thread 004e), starting debugger... err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x7bc460f4
What it actually does seems to be a bit random: Most of the time I get a selection of folders from my home directory in the target, other times I get a crash and backtrace, and the folder stays empty.
http://bugs.winehq.org/show_bug.cgi?id=20226
--- Comment #2 from Vincent Povirk madewokherd@gmail.com 2009-09-30 22:05:19 --- The backtrace is lacking debug symbols.
http://bugs.winehq.org/show_bug.cgi?id=20226
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
http://bugs.winehq.org/show_bug.cgi?id=20226
Niko Sandschneider nsandschn@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nsandschn@gmx.de
--- Comment #3 from Niko Sandschneider nsandschn@gmx.de 2010-06-09 14:28:28 --- I cannot reproduce this with wine-1.2-rc2-224-ga2791a0.
http://bugs.winehq.org/show_bug.cgi?id=20226
Robert Backhaus robbak@robbak.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |robbak@robbak.com
--- Comment #4 from Robert Backhaus robbak@robbak.com 2010-06-09 19:20:36 --- While it is no longer crashing for me on 1.2rc2, it is not doing what it should, as follows:
robbak@robbak-pc:~$ rm -r testdir robbak@robbak-pc:~$ mkdir testdir robbak@robbak-pc:~$ mkdir testdir/target robbak@robbak-pc:~$ wine xcopy.exe /e testdir\nonexistant testdir\target File not found
^Crobbak@robbak-pc:~$ ls testdir target robbak@robbak-pc:~$ ls testdir/target/ business Downloads histfile openwrt openwrt-dl snapview temp Videos
Which is the contents of my home directory, or as much of it as it copied before I ^C'd it.
On XP, xcopy dies immediately:
xcopy.exe testdir\nonexistant testdir\target
File not found - nonexistant 0 File(s) copied
http://bugs.winehq.org/show_bug.cgi?id=20226
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #5 from Alexandre Julliard julliard@winehq.org 2010-06-10 12:37:04 --- Should be fixed by b7da23eb29a3f68b6acf0d0e884e54f546241bab.
http://bugs.winehq.org/show_bug.cgi?id=20226
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org 2010-06-11 12:52:04 --- Closing bugs fixed in 1.2-rc3.
http://bugs.winehq.org/show_bug.cgi?id=20226
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |b7da23eb29a3f68b6acf0d0e884 | |e54f546241bab CC| |focht@gmx.net Component|-unknown |programs