doctest icon indicating copy to clipboard operation
doctest copied to clipboard

Workaround access violation

Open isaevil opened this issue 3 years ago • 1 comments

Description

Due to race between exiting the process and starting of a new detached thread in Windows, thread local variables, which constructors or destructors have calls to runtime functions (e.g. free() function) can cause access violation since TBB along with runtime library may have been unloaded by the time these variables are constructed or destroyed. The workaround is do not call constructors and/or destructors for such variables if they are not used.

isaevil avatar Dec 03 '21 14:12 isaevil

Heya!

Any way this could get integrated? This patch is the only way I found to get version 2.4.9 to work without issue on windows...

Thanks!

belkiss avatar Aug 11 '22 18:08 belkiss