-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test #9: test-cbor test case sample.json fails in debug mode - Stack overflow #2955
Comments
Can you please try in release mode and/or with an increased stack depth? |
We're using |
Sorry forget to mention in release mode all is fine. |
Alright, this behavior is known. Increasing the stack size should fix it. |
Thanks, increasing the stack size solved this issue, is it possible to add this to the CMakeLists as standard? |
I guess, but I'm not using MSVC myself and I'm not too good with CMake's generator expressions - so if anyone would volunteer, I'd be happy to merge a PR for this. |
@Andreas-Schniertshauer Can you try to add target_compile_options(test-cbor PRIVATE $<$<CXX_COMPILER_ID:MSVC>:/STACK:4000000;>) to test/CMakeLists.txt? |
This does not work, it goes to the C/C++/Command Line/Additional Options (because of target_compile_options) instead of the linker section, it must be target_link_options instead of target_compile_options than it works. |
Ah, I meant I created a PR #2961 to set the flags and also adjusted the CI settings accordingly. Please let me know if this works for you. |
I switched back to using a linker flag. The changes seem to work in the CI. I will merge them once AppVeyor has completed the MSVC checks. |
What is the issue you have?
Please describe the steps to reproduce the issue.
Can you provide a small but working code example?
What is the expected behavior?
Test should not fail in debug mode
And what is the actual behavior instead?
Test fails in debug mode
Which compiler and operating system are you using?
Which version of the library did you use?
develop
branchIf you experience a compilation error: can you compile and run the unit tests?
The text was updated successfully, but these errors were encountered: