https://bugs.winehq.org/show_bug.cgi?id=39333
Bug ID: 39333 Summary: Tera: Unimplemented function bcrypt.dll.BCryptCreateHash Product: Wine Version: 1.7.51 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: bcrypt Assignee: wine-bugs@winehq.org Reporter: skotlex@mailforce.net Distribution: ---
Ever since today's (2015.09.24) update to Tera, the client crashes every half an hour or so due to this missing function.
The console prints out:
fixme:bcrypt:BCryptOpenAlgorithmProvider 0x1598e22c, L"SHA256", L"Microsoft Primitive Provider", 00000000 - stub wine: Call from 0x7edcaf66 to unimplemented function bcrypt.dll.BCryptCreateHash, aborting wine: Unimplemented function bcrypt.dll.BCryptCreateHash called at address 0x7edcaf66 (thread 0091), starting debugger...
Is there anything that can be done here? I imagine a stub won't do for the missing create hash function?
https://bugs.winehq.org/show_bug.cgi?id=39333
PB phaseburn@phaseburn.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |phaseburn@phaseburn.net
--- Comment #1 from PB phaseburn@phaseburn.net --- Seeing this on wine-1.7.51-staging and 1.7.51 on Arch Linux.
https://bugs.winehq.org/show_bug.cgi?id=39333
Eli Wapniarski eli@orbsky.homelinux.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |eli@orbsky.homelinux.org
--- Comment #2 from Eli Wapniarski eli@orbsky.homelinux.org --- Confirmed on wine-stagging. I will report the bug there
https://bugs.winehq.org/show_bug.cgi?id=39333
--- Comment #3 from Eli Wapniarski eli@orbsky.homelinux.org --- (In reply to Eli Wapniarski from comment #2)
Confirmed on wine-stagging. I will report the bug there
https://bugs.wine-staging.com/show_bug.cgi?id=585
https://bugs.winehq.org/show_bug.cgi?id=39333
Marcus Meissner marcus@jet.franken.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |marcus@jet.franken.de
--- Comment #4 from Marcus Meissner marcus@jet.franken.de --- Created attachment 52413 --> https://bugs.winehq.org/attachment.cgi?id=52413 0002-bcrypt-BCryptCreateHash-stub.patch
trivial stub.
however it will either lead to a crash or the next missing function.
https://bugs.winehq.org/show_bug.cgi?id=39333
--- Comment #5 from PB phaseburn@phaseburn.net --- (In reply to Marcus Meissner from comment #4)
Created attachment 52413 [details] 0002-bcrypt-BCryptCreateHash-stub.patch
trivial stub.
however it will either lead to a crash or the next missing function.
I rarely if ever take pleasure in telling people that they are wrong, but, you, my friend, are totally wrong and I couldn't be happier. The trivial stub has corrected the issue - it would appear that the nonsense it returns is non-fatal and the app keeps running instead of crashing.
Logs of it invoking the stub function are as follows:
fixme:bcrypt:BCryptOpenAlgorithmProvider 0x1627e1dc, L"SHA256", L"Microsoft Primitive Provider", 00000000 - stub fixme:bcrypt:BCryptCreateHash (nil), 0x1627e200, 0x1e3e828, 2909090752, (nil), 0, 00000000 - stub fixme:bcrypt:BCryptOpenAlgorithmProvider 0x1627e1a4, L"SHA256", L"Microsoft Primitive Provider", 00000000 - stub fixme:bcrypt:BCryptCreateHash (nil), 0x1627e1c8, 0x1627e1e0, 0, (nil), 0, 00000000 - stub fixme:bcrypt:BCryptOpenAlgorithmProvider 0x1627e168, L"SHA256", L"Microsoft Primitive Provider", 00000008 - stub fixme:bcrypt:BCryptCreateHash (nil), 0x1627e1a8, 0x3d1ad8c0, 371712664, 0x21d3af00, 44, 00000000 - stub fixme:bcrypt:BCryptOpenAlgorithmProvider 0x1627e168, L"SHA256", L"Microsoft Primitive Provider", 00000008 - stub fixme:bcrypt:BCryptCreateHash (nil), 0x1627e1a8, 0x3d1ad8c0, 371712664, (nil), 0, 00000000 - stub fixme:bcrypt:BCryptOpenAlgorithmProvider 0x1627e168, L"SHA256", L"Microsoft Primitive Provider", 00000008 - stub fixme:bcrypt:BCryptCreateHash (nil), 0x1627e1a8, 0x3d1ad8c0, 371712664, (nil), 0, 00000000 - stub fixme:bcrypt:BCryptOpenAlgorithmProvider 0x1627e168, L"SHA256", L"Microsoft Primitive Provider", 00000008 - stub fixme:bcrypt:BCryptCreateHash (nil), 0x1627e1a8, 0x3d1ad8c0, 371712664, (nil), 0, 00000000 - stub fixme:bcrypt:BCryptOpenAlgorithmProvider 0x1627e1dc, L"SHA256", L"Microsoft Primitive Provider", 00000008 - stub fixme:bcrypt:BCryptCreateHash (nil), 0x1627e21c, 0x1ced4e0, 0, (nil), 0, 00000000 - stub
https://bugs.winehq.org/show_bug.cgi?id=39333
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, patch Status|UNCONFIRMED |NEW URL| |http://tera.enmasse.com/dow | |nload CC| |focht@gmx.net Summary|Tera: Unimplemented |TERA client 2015.09.24 |function |crashes on unimplemented |bcrypt.dll.BCryptCreateHash |function | |bcrypt.dll.BCryptCreateHash Ever confirmed|0 |1
--- Comment #6 from Anastasius Focht focht@gmx.net --- Hello folks,
refining some fields and confirming.
Regards
https://bugs.winehq.org/show_bug.cgi?id=39333
--- Comment #7 from Marcus Meissner marcus@jet.franken.de --- nice to hear it already works :)
the bcrypt hash apis at some point in time will need to be implemented though.
https://bugs.winehq.org/show_bug.cgi?id=39333
--- Comment #8 from Eli Wapniarski eli@orbsky.homelinux.org --- This is why I love Linux. A fix in place with hours of reporting the problem. You just gotta love it.
I have compiled in the patch and will be testing.. I will let you know how things go.
https://bugs.winehq.org/show_bug.cgi?id=39333
--- Comment #9 from Eli Wapniarski eli@orbsky.homelinux.org --- (In reply to Eli Wapniarski from comment #8)
This is why I love Linux. A fix in place with hours of reporting the problem. You just gotta love it.
I have compiled in the patch and will be testing.. I will let you know how things go.
Seems to work just fine... thank you
https://bugs.winehq.org/show_bug.cgi?id=39333
artemis3@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |artemis3@gmail.com
--- Comment #10 from artemis3@gmail.com --- (In reply to Marcus Meissner from comment #4)
Created attachment 52413 [details] 0002-bcrypt-BCryptCreateHash-stub.patch
trivial stub.
however it will either lead to a crash or the next missing function.
This patch did not work for me, it does lead to a frozen state:
fixme:bcrypt:BCryptOpenAlgorithmProvider 0x2b93e22c, L"SHA256", L"Microsoft Primitive Provider", 00000000 - stub wine: Call from 0x7b83cf09 to unimplemented function bcrypt.dll.BCryptCreateHash, aborting wine: Unimplemented function bcrypt.dll.BCryptCreateHash called at address 0x7b83cf09 (thread 0092), starting debugger... err:ntdll:RtlpWaitForCriticalSection section 0xf6128f78 "wined3d_main.c: wined3d_cs" wait timed out in thread 00a3, blocked by 00db, retrying (60 sec) err:ntdll:RtlpWaitForCriticalSection section 0xf6128f78 "wined3d_main.c: wined3d_cs" wait timed out in thread 00a3, blocked by 00db, retrying (60 sec) (endless repeating, game remains frozen until killed).
Before your patch the game would simply crash. Note the game was working perfectly until they patched it sep24 (i did play several hours before they patched it that morning).
https://bugs.winehq.org/show_bug.cgi?id=39333
--- Comment #11 from Bruno Jesus 00cpxxx@gmail.com ---
wine: Call from 0x7b83cf09 to unimplemented function bcrypt.dll.BCryptCreateHash, aborting
This line implies that wine was not run with the patch, please double check that the patch was applied and compiled.
https://bugs.winehq.org/show_bug.cgi?id=39333
Marcus Meissner marcus@jet.franken.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |5b33f18cfc11f73e8b85fcae0f7 | |e9a6326c8c5af Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #12 from Marcus Meissner marcus@jet.franken.de --- patch is now in winehq git for next releae
https://bugs.winehq.org/show_bug.cgi?id=39333
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #13 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.52.