http://bugs.winehq.org/show_bug.cgi?id=58212
Bug ID: 58212 Summary: boost::interprocess::named_mutex does not work Product: Wine Version: 10.6 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: kernel32 Assignee: wine-bugs@winehq.org Reporter: christiaan.arnoldus@outlook.com Distribution: ---
Created attachment 78525 --> http://bugs.winehq.org/attachment.cgi?id=78525 Small program that demonstrates the issue
I was testing our Windows-only app on Wine and in general I was pleasantly surprised by the results, but I did find one crash that wasn't happening on Windows.
When an instance of the boost::interprocess::named_mutex class is created (I think this just used the CreateMutex Win32 API internally), an exception is thrown when running on Wine.
Consider the attached executable (and source code). On Windows, the program prints:
Mutex created
while with Wine it prints:
boost::interprocess_exception::library_error
It would be great if this could be looked at.
http://bugs.winehq.org/show_bug.cgi?id=58212
Andrew Nguyen arethusa26@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Component|kernel32 |-unknown
--- Comment #1 from Andrew Nguyen arethusa26@gmail.com --- I was able to reproduce the crash with the latest Wine from master (wine-10.7-99-gccb99cd00f5). When built with the macro BOOST_INTERPROCESS_BOOTSTAMP_IS_SESSION_MANAGER_BASED set, the boost interprocess library expects the registry key HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters\BootId to exist: https://github.com/boostorg/interprocess/blob/3ae98a5f0d85814bcb646839fc4814...
I created a MR to address this issue: https://gitlab.winehq.org/wine/wine/-/merge_requests/8002
http://bugs.winehq.org/show_bug.cgi?id=58212
--- Comment #2 from Christiaan Arnoldus christiaan.arnoldus@outlook.com --- I can confirm that creating the registry key fixes the crash with Wine 10.6. Thanks!
http://bugs.winehq.org/show_bug.cgi?id=58212
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |69f26893bcf9281dfc94568194a | |306d01cd572a3 Status|NEW |RESOLVED Keywords| |download, source, testcase Resolution|--- |FIXED
--- Comment #3 from Austin English austinenglish@gmail.com --- (In reply to Christiaan Arnoldus from comment #2)
I can confirm that creating the registry key fixes the crash with Wine 10.6. Thanks!
https://gitlab.winehq.org/wine/wine/-/commit/69f26893bcf9281dfc94568194a306d...
http://bugs.winehq.org/show_bug.cgi?id=58212
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 10.8.