snitch-org / snitch

Lightweight C++20 testing framework.
Boost Software License 1.0
257 stars 7 forks source link

MSYS2-UCRT ICE and segfault on #103

Closed willwray closed 1 year ago

willwray commented 1 year ago

My wrapDB snitch PR CI is all passing apart from MSYS2-UCRT64

Compiling C++ object subprojects/snitch-1.1.1/libsnitch.a.p/src_snitch.cpp.obj
FAILED: subprojects/snitch-1.1.1/libsnitch.a.p/src_snitch.cpp.obj 
"c++" "-Isubprojects/snitch-1.1.1/libsnitch.a.p" "-Isubprojects/snitch-1.1.1" "-I../subprojects/snitch-1.1.1" "-I../subprojects/snitch-1.1.1/include" "-fdiagnostics-color=always" "-D_FILE_OFFSET_BITS=64" "-Wall" "-Winvalid-pch" "-std=c++20" "-O0" "-g" -MD -MQ subprojects/snitch-1.1.1/libsnitch.a.p/src_snitch.cpp.obj -MF "subprojects/snitch-1.1.1/libsnitch.a.p/src_snitch.cpp.obj.d" -o subprojects/snitch-1.1.1/libsnitch.a.p/src_snitch.cpp.obj "-c" ../subprojects/snitch-1.1.1/src/snitch.cpp
In file included from ../subprojects/snitch-1.1.1/include/snitch/snitch_string.hpp:5,
                 from ../subprojects/snitch-1.1.1/include/snitch/snitch_append.hpp:7,
                 from ../subprojects/snitch-1.1.1/src/snitch_append.cpp:1,
                 from ../subprojects/snitch-1.1.1/src/snitch.cpp:1:
../subprojects/snitch-1.1.1/include/snitch/snitch_vector.hpp:215:37: internal compiler error: Segmentation fault
  215 |     std::array<ElemType, MaxLength> data_buffer = {};
      |                                     ^~~~~~~~~~~

It may be some environment or resource issue with that particular CI build.

Opening as an issue here in case it smokes out a problem in snitch code.

tocic commented 1 year ago

That's a gcc bug — https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109730.

cschreib commented 1 year ago

Thank you for reporting this issue, and thanks @tocic for reporting the bug back to GCC. Looks like a fix has been found and will be released in GCC 12.4, 13.2, 14.0. I assume GCC <= 11 isn't affected. Closing as "not our bug".