std::chrono::current_zone crashes on MSVC builds
See original GitHub issueThe simple program in https://godbolt.org/z/Gs35jzodK that compiles:
#include <chrono>
int main() {
(void)std::chrono::current_zone();
}
crashes on MSVC builds with error : Program returned: 3221226505 (this is STATUS_STACK_BUFFER_OVERRUN)
Issue Analytics
- State:
- Created a year ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Compiler Crash with chrono and initializer lists
I'm seeing a compiler internal error when initializing arrays of structs that contain chrono::duration that is not the first element of the struct....
Read more >msvc std::chrono::time_zone::get_info throws an exception ...
c++ - msvc std::chrono::time_zone::get_info throws an exception saying: The operation completed successfully - Stack Overflow. Stack Overflow ...
Read more >HowardHinnant/date - Gitter
I noticed that this does not work correctly with the GCC compiler and the built-in 128-bits integer as its std::chrono implementation contains static...
Read more >Using std::chrono | Andrzej's C++ blog : r/cpp - Reddit
If you can represent fractions, there is little reason to represent anything but seconds, so mixing units by accident becomes very unlikely. Of ......
Read more >Finding build bottlenecks with C++ Build Insights
Copy the perf_msvcbuildinsights.dll file from your Visual Studio 2019's MSVC installation directory to your newly installed WPA directory. This ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://github.com/microsoft/STL/wiki/VS-2019-Changelog#vs-2019-1610
If the VMs are using Windows Server 2019, that would explain this - it’s too old for time zones. Windows Server 2022 will work (that’s what the STL’s own test VMs use).
We are currently blocked by the version of Windows that Kubernetes supports. As soon as we can upgrade to Server 2022 we will. Until then there is nothing we can do here sadly. 😦