[Bug 55897] New: cpython 3.12.0 crashes due to unimplemented CopyFile2
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(a)winehq.org Reporter: tobias-winehq(a)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")'` -- 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=55897 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source -- 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=55897 Fabian Maurer <dark.shadow4(a)web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |dark.shadow4(a)web.de Ever confirmed|0 |1 --- Comment #1 from Fabian Maurer <dark.shadow4(a)web.de> --- Confirming -- 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=55897 Bartosz <gang65(a)poczta.onet.pl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gang65(a)poczta.onet.pl --- Comment #2 from Bartosz <gang65(a)poczta.onet.pl> --- More information about CopyFile2: https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-copyf... -- 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=55897 Kartavya Vashishtha <sendtokartavya(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sendtokartavya(a)gmail.com --- Comment #3 from Kartavya Vashishtha <sendtokartavya(a)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. -- 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=55897 winetaste(a)gmx.net changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |winetaste(a)gmx.net -- 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=55897 Marcelo Duarte <marcelotduarte(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marcelotduarte(a)gmail.com -- 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=55897 --- Comment #4 from Fabian Maurer <dark.shadow4(a)web.de> --- @Kartavya Are you still working on a patch? -- 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=55897 --- Comment #5 from Kartavya Vashishtha <sendtokartavya(a)gmail.com> --- If you're interested in creating a patch for this, feel free to do so. -- 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=55897 --- Comment #6 from Fabian Maurer <dark.shadow4(a)web.de> --- Not right now, I already have 22 open MRs. Did you give up on this? -- 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=55897 --- Comment #7 from Kartavya Vashishtha <sendtokartavya(a)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. -- 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=55897 --- Comment #8 from Kartavya Vashishtha <sendtokartavya(a)gmail.com> --- Created MR https://gitlab.winehq.org/wine/wine/-/merge_requests/5020 -- 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=55897 temp82(a)luukku.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |temp82(a)luukku.com --- Comment #9 from temp82(a)luukku.com --- fixed? "Zebediah Figura approved this merge request 2 days ago" -- 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=55897 --- Comment #10 from Fabian Maurer <dark.shadow4(a)web.de> ---
fixed?
No, nothing is merged yet. -- 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=55897 Vijay Kamuju <infyquest(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |infyquest(a)gmail.com Fixed by SHA1| |1e348427994e5675ded3b1540a1 | |5a8af85cc8ebc Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #11 from Vijay Kamuju <infyquest(a)gmail.com> --- Fix merged - https://source.winehq.org/git/wine.git/commit/1e348427994e5675ded3b1540a15a8... -- 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=55897 Zeb Figura <z.figura12(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |oli.huber(a)gmail.com --- Comment #12 from Zeb Figura <z.figura12(a)gmail.com> --- *** Bug 56349 has been marked as a duplicate of this bug. *** -- 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=55897 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #13 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 9.3. -- 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=55897 Fabian Maurer <dark.shadow4(a)web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cooperwilliams2008(a)icloud.c | |om --- Comment #14 from Fabian Maurer <dark.shadow4(a)web.de> --- *** Bug 57015 has been marked as a duplicate of this bug. *** -- 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=55897 Michael Stefaniuc <mstefani(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |9.0.x -- 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=55897 Michael Stefaniuc <mstefani(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|9.0.x |--- --- Comment #15 from Michael Stefaniuc <mstefani(a)winehq.org> --- Removing the 9.0.x milestone from bug fixes included in 9.0.1. -- 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