Skip to content

Test #9: test-cbor test case sample.json fails in debug mode - Stack overflow #2955

Closed
@Andreas-Schniertshauer

Description

@Andreas-Schniertshauer

What is the issue you have?

9/61 Test  #9: test-cbor ....................................***Failed    3.83 sec
[doctest] doctest version is "2.4.6"
[doctest] run with "--help" for options
===============================================================================
test\src\unit-cbor.cpp(1914):
TEST CASE:  single CBOR roundtrip
  sample.json

test\src\unit-cbor.cpp(1914): FATAL ERROR: test case CRASHED: SIGSEGV - Stack overflow

===============================================================================
test\src\unit-cbor.cpp(1914):
TEST CASE:  single CBOR roundtrip

DEEPEST SUBCASE STACK REACHED (DIFFERENT FROM THE CURRENT ONE):
  sample.json

===============================================================================
[doctest] test cases:       2 |       1 passed | 1 failed | 5 skipped
[doctest] assertions: 1640539 | 1640539 passed | 0 failed |
[doctest] Status: FAILURE!

Please describe the steps to reproduce the issue.

  1. cmake .. -D JSON_Install:BOOL=OFF -D JSON_ImplicitConversions:BOOL=OFF -D JSON_BuildTests:BOOL=ON
  2. cmake --build . --config Debug
  3. ctest -C Debug -LE not_reproducible -LE git_required --output-on-failure

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?

  • Compiler: Visual Studio 2019 16.11.0 Professional
  • Operating system: Windows 10 21H1

Which version of the library did you use?

  • latest release version 3.10.0 (zip file)
  • other release - please state the version: ___
  • the develop branch

If you experience a compilation error: can you compile and run the unit tests?

  • yes
  • no - please copy/paste the error message below

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions