https://bugs.winehq.org/show_bug.cgi?id=55897
Bug ID: 55897 Summary: cpython 3.12.0 crashes due to unimplemented CopyFile2 Product: Wine Version: 8.20 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: kernel32 Assignee: wine-bugs@winehq.org Reporter: tobias-winehq@23.gs Distribution: ---
Newer Python versions (starting with 3.12.0) contain an optimized implementation of shutil.copy2 (https://devdocs.io/python~3.11/library/shutil#shutil.copy2), which uses kernel32.CopyFile2 in the background (Implementation: https://github.com/python/cpython/pull/105086/files#diff-db8ac59326160713929...). This leads to crashes if this method is used. Unfortunatly, this method is used by pip in some cases, so a random `wine pip install pysftp` leads to a crash...
To reproduce: 1. Install Python 3.12.0 from https://www.python.org/ 2. Run `wine python -c 'import shutil; shutil.copy2("a", "b")'`
https://bugs.winehq.org/show_bug.cgi?id=55897
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source
https://bugs.winehq.org/show_bug.cgi?id=55897
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |dark.shadow4@web.de Ever confirmed|0 |1
--- Comment #1 from Fabian Maurer dark.shadow4@web.de --- Confirming
https://bugs.winehq.org/show_bug.cgi?id=55897
Bartosz gang65@poczta.onet.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gang65@poczta.onet.pl
--- Comment #2 from Bartosz gang65@poczta.onet.pl --- More information about CopyFile2: https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-copyf...
https://bugs.winehq.org/show_bug.cgi?id=55897
Kartavya Vashishtha sendtokartavya@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sendtokartavya@gmail.com
--- Comment #3 from Kartavya Vashishtha sendtokartavya@gmail.com --- I'm a first-time contributor to Wine; it seems that this issue may be approachable and thus I'd like to express my interest in creating a patch for this.
https://bugs.winehq.org/show_bug.cgi?id=55897
winetaste@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetaste@gmx.net
https://bugs.winehq.org/show_bug.cgi?id=55897
Marcelo Duarte marcelotduarte@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |marcelotduarte@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=55897
--- Comment #4 from Fabian Maurer dark.shadow4@web.de --- @Kartavya Are you still working on a patch?
https://bugs.winehq.org/show_bug.cgi?id=55897
--- Comment #5 from Kartavya Vashishtha sendtokartavya@gmail.com --- If you're interested in creating a patch for this, feel free to do so.
https://bugs.winehq.org/show_bug.cgi?id=55897
--- Comment #6 from Fabian Maurer dark.shadow4@web.de --- Not right now, I already have 22 open MRs. Did you give up on this?
https://bugs.winehq.org/show_bug.cgi?id=55897
--- Comment #7 from Kartavya Vashishtha sendtokartavya@gmail.com --- I would still like to work on it, and hopefully I'll make time this week or the next. To anyone reading this: feel free to tackle this if I haven't created a comment/MR/email in two weeks.
https://bugs.winehq.org/show_bug.cgi?id=55897
--- Comment #8 from Kartavya Vashishtha sendtokartavya@gmail.com --- Created MR https://gitlab.winehq.org/wine/wine/-/merge_requests/5020
https://bugs.winehq.org/show_bug.cgi?id=55897
temp82@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |temp82@luukku.com
--- Comment #9 from temp82@luukku.com --- fixed?
"Zebediah Figura approved this merge request 2 days ago"
https://bugs.winehq.org/show_bug.cgi?id=55897
--- Comment #10 from Fabian Maurer dark.shadow4@web.de ---
fixed?
No, nothing is merged yet.
https://bugs.winehq.org/show_bug.cgi?id=55897
Vijay Kamuju infyquest@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |infyquest@gmail.com Fixed by SHA1| |1e348427994e5675ded3b1540a1 | |5a8af85cc8ebc Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #11 from Vijay Kamuju infyquest@gmail.com --- Fix merged - https://source.winehq.org/git/wine.git/commit/1e348427994e5675ded3b1540a15a8...
https://bugs.winehq.org/show_bug.cgi?id=55897
Zeb Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |oli.huber@gmail.com
--- Comment #12 from Zeb Figura z.figura12@gmail.com --- *** Bug 56349 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=55897
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #13 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 9.3.
https://bugs.winehq.org/show_bug.cgi?id=55897
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |cooperwilliams2008@icloud.c | |om
--- Comment #14 from Fabian Maurer dark.shadow4@web.de --- *** Bug 57015 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=55897
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |9.0.x