yhirose / cpp-peglib

A single file C++ header-only PEG (Parsing Expression Grammars) library
MIT License
916 stars 113 forks source link

Testsuite segv #189

Closed yurivict closed 2 years ago

yurivict commented 2 years ago
[...]
[       OK ] LeftRecursiveTest.PEG_EndOfFile (0 ms)
[----------] 24 tests from LeftRecursiveTest (3 ms total)

[----------] 1 test from UserRuleTest
[ RUN      ] UserRuleTest.User_defined_rule_test
*** Signal 11

Stop.

Version: 1.3.9 clang-12 OS: FreeBSD 13

yhirose commented 2 years ago

@yurivict, could you give me more detail please? Thank you.

yurivict commented 2 years ago

This is how tests are run:

        @cd ${BUILD_WRKSRC} && \
                ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DFREEBSD_BUILD_TESTS:BOOL=ON ${CMAKE_SOURCE_PATH} && \
                ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
                test/test-main

test/test-main prints the above SEGV message.

yhirose commented 2 years ago

@yurivict, could you try ctest instead?

yurivict commented 2 years ago

This works, thank you for your help!