SSBMTonberry/pocketlzma

Make sure Clang 11, 12 and 13 works.

SSBMTonberry opened this issue · 0 comments

In Tileson it seems like decompression tests are failing with Clang 11, 12 and 13.
Find out the cause and fix!

Output from an issue posted there:

tileson-src/build> ./tests/tileson_tests
tileson_tests(61818,0x1059e0e00) malloc: can't allocate region
:*** mach_vm_map(size=140732882980864, flags: 100) failed (error code=3)
tileson_tests(61818,0x1059e0e00) malloc: *** set a breakpoint in malloc_error_break to debug

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tileson_tests is a Catch v2.13.8 host application.
Run with -? for options

-------------------------------------------------------------------------------
Parse a whole COMPRESSED map by file
-------------------------------------------------------------------------------
/Users/dmlary/src/flecs-magnum/build/_deps/tileson-src/tests/tests_main.cpp:408
...............................................................................

/Users/dmlary/src/flecs-magnum/build/_deps/tileson-src/tests/tests_main.cpp:408: FAILED:
due to unexpected exception with message:
  std::bad_alloc

tileson_tests(61818,0x1059e0e00) malloc: can't allocate region
:*** mach_vm_map(size=140732882980864, flags: 100) failed (error code=3)
tileson_tests(61818,0x1059e0e00) malloc: *** set a breakpoint in malloc_error_break to debug
-------------------------------------------------------------------------------
Parse a whole COMPRESSED map by memory
-------------------------------------------------------------------------------
/Users/dmlary/src/flecs-magnum/build/_deps/tileson-src/tests/tests_main.cpp:435
...............................................................................

/Users/dmlary/src/flecs-magnum/build/_deps/tileson-src/tests/tests_main.cpp:435: FAILED:
due to unexpected exception with message:
  std::bad_alloc

m_str: CustomValueFile not found: ../../content/test-maps/issues/issue_17.json
tileson_tests(61818,0x1059e0e00) malloc: can't allocate region
:*** mach_vm_map(size=140732882980864, flags: 100) failed (error code=3)
tileson_tests(61818,0x1059e0e00) malloc: *** set a breakpoint in malloc_error_break to debug
-------------------------------------------------------------------------------
Run benchmarks on all supported json-backends
-------------------------------------------------------------------------------
/Users/dmlary/src/flecs-magnum/build/_deps/tileson-src/tests/tests_benchmarks.cpp:20
...............................................................................

/Users/dmlary/src/flecs-magnum/build/_deps/tileson-src/tests/tests_benchmarks.cpp:20: FAILED:
due to unexpected exception with message:
  std::bad_alloc

===============================================================================
test cases:   98 |   95 passed | 3 failed
assertions: 1672 | 1669 passed | 3 failed