https://bugs.winehq.org/show_bug.cgi?id=41086
Bug ID: 41086 Summary: Unimplemented function msvcp140.dll.??0?$codecvt@_WDU_Mbstatet@@@std@@QAE@I@Z needed by Battle.net Product: Wine Version: 1.9.16 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: msvcp Assignee: wine-bugs@winehq.org Reporter: audiger@live.fr Distribution: ---
With the new version of Battle.net which needed msvcp140, there is a function not implemented and this caused an error during the launching:
wine: Call from 0x7b43bfac to unimplemented function msvcp140.dll.??0?$codecvt@_WDU_Mbstatet@@@std@@QAE@I@Z, aborting wine: Unimplemented function msvcp140.dll.??0?$codecvt@_WDU_Mbstatet@@@std@@QAE@I@Z called at address 0x7b43bfac (thread 0023), starting debugger...
https://bugs.winehq.org/show_bug.cgi?id=41086
audiger@live.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |41085
https://bugs.winehq.org/show_bug.cgi?id=41086
audiger@live.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on|41085 |
https://bugs.winehq.org/show_bug.cgi?id=41086
audiger@live.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |41085
https://bugs.winehq.org/show_bug.cgi?id=41086
Ker noa blue-t@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |blue-t@web.de
https://bugs.winehq.org/show_bug.cgi?id=41086
Frédéric Delanoy frederic.delanoy@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |frederic.delanoy@gmail.com Keywords| |download URL| |http://us.battle.net/en/app | |/
https://bugs.winehq.org/show_bug.cgi?id=41086
Caio César Gallo caio.gallo@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |caio.gallo@gmail.com
--- Comment #1 from Caio César Gallo caio.gallo@gmail.com --- Confirmed as of wine-1.9.16-329-g04ed94f
https://bugs.winehq.org/show_bug.cgi?id=41086
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |o.dierick@piezo-forte.be
--- Comment #2 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Created attachment 55505 --> https://bugs.winehq.org/attachment.cgi?id=55505 add missing function
Made this patch. Got Unhandled page fault with it.
https://bugs.winehq.org/show_bug.cgi?id=41086
--- Comment #3 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Created attachment 55506 --> https://bugs.winehq.org/attachment.cgi?id=55506 terminal output (wine 1.9.17 with patch)
https://bugs.winehq.org/show_bug.cgi?id=41086 Bug 41086 depends on bug 41085, which changed state.
Bug 41085 Summary: Unimplemented function msvcp140.dll._Thrd_id needed by Battle.net https://bugs.winehq.org/show_bug.cgi?id=41085
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
https://bugs.winehq.org/show_bug.cgi?id=41086
Frédéric Delanoy frederic.delanoy@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW
--- Comment #4 from Frédéric Delanoy frederic.delanoy@gmail.com --- Confirmed in wine-1.9.18-121-g4e9cc30
https://bugs.winehq.org/show_bug.cgi?id=41086
--- Comment #5 from audiger@live.fr --- (In reply to Olivier F. R. Dierick from comment #2)
Created attachment 55505 [details] add missing function
Made this patch. Got Unhandled page fault with it.
I didn't test with your patch but I'll do it. Currently the bug is still here for Wine 1.9.19-nightly.
https://bugs.winehq.org/show_bug.cgi?id=41086
--- Comment #6 from audiger@live.fr --- Created attachment 55689 --> https://bugs.winehq.org/attachment.cgi?id=55689 Console output with the patch
I made a test with Olivier F. R. Dierick's patch and I didn't get an unhandled page fault but I got something else. It's in the attachment. After that the program ended prematurely.
https://bugs.winehq.org/show_bug.cgi?id=41086
sworddragon2@aol.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sworddragon2@aol.com
https://bugs.winehq.org/show_bug.cgi?id=41086
--- Comment #7 from audiger@live.fr --- Created attachment 55735 --> https://bugs.winehq.org/attachment.cgi?id=55735 Console output with msvcp debug channel activated
This time I did the test with a a debug channel. As you can see, the exception comes from a bad allocation.
https://bugs.winehq.org/show_bug.cgi?id=41086
wine-devel@hurrikhan.eu changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wine-devel@hurrikhan.eu
--- Comment #8 from wine-devel@hurrikhan.eu --- Created attachment 55744 --> https://bugs.winehq.org/attachment.cgi?id=55744 With stack trace
locale__Locimp__Locimp_Addfac is called with 'id' set to 4125123688 = 0xF5E06468 void __cdecl locale__Locimp__Locimp_Addfac(locale__Locimp *locimp, locale_facet *facet, MSVCP_size_t id)
If id is bigger than what is currently supported in 'facet', it tries to grow 'facet' to that size ... and of course it blows up.
Actually the math overflows before the call, which may result in successful allocation of a (bogus) very small size (ie: 0x0007fffe 00000001, truncated into 00000001)
One may want to add something like "if( ( <MSVCP_size_t_MAX> / sizeof(locale_facet*)) < new_size ) { complain }"
https://bugs.winehq.org/show_bug.cgi?id=41086
--- Comment #9 from audiger@live.fr --- This bug seems to be resolved with this commits: http://source.winehq.org/git/wine.git/commit/dd6b7239c997bd56a8b64c0b4400e60...
The next error is: wine: Call from 0x7b43c14c to unimplemented function msvcp140.dll._Cnd_destroy_in_situ, aborting But a commit has already been created: http://source.winehq.org/git/wine.git/commit/42cfb0ab0e42aeae3e55bb2d75e4fe9... I need to test it right now!
https://bugs.winehq.org/show_bug.cgi?id=41086
audiger@live.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #10 from audiger@live.fr --- I can now launched Battle.net with the last Wine nightly version (currently af37b187ad86191110b80bef814d25ce3ac350db). Can anyone confirm me if it's working elsewhere?
https://bugs.winehq.org/show_bug.cgi?id=41086
--- Comment #11 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Created attachment 55767 --> https://bugs.winehq.org/attachment.cgi?id=55767 crash backtrace wine-1.9.19-161-gaf37b18
Not this bug but still crashing for me.
https://bugs.winehq.org/show_bug.cgi?id=41086
--- Comment #12 from audiger@live.fr --- It's weird. I thought I did something wrong yesterday. That's why I just create a clean 32-bit wineprefix and install Battle.net on it but again seems to work. I am now able to at least see the login screen of Battle.net
https://bugs.winehq.org/show_bug.cgi?id=41086
--- Comment #13 from Frédéric Delanoy frederic.delanoy@gmail.com --- (In reply to Olivier F. R. Dierick from comment #11)
Created attachment 55767 [details] crash backtrace wine-1.9.19-161-gaf37b18
Not this bug but still crashing for me.
Created bug 41409 for this new issue.
https://bugs.winehq.org/show_bug.cgi?id=41086
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #14 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.9.20.
https://bugs.winehq.org/show_bug.cgi?id=41086
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wylda@volny.cz Fixed by SHA1| |dd6b7239c997bd56a8b64c0b440 | |0e60fdbbc0bfb