Open bluebear94 opened 8 months ago
This sounds like a job for Valgrind.
Okay, here’s the output under Valgrind; the program doesn’t immediately crash this time, but it raises a bunch of errors.
Thanks! Does the clang-compiled version produce the same memory violations? I wouldn't want to go bug-hunting when it could potentially be a compiler-related issue...
Yep, it produces the same errors under valgrind.
To reproduce, compile foma with
-DCMAKE_TYPE=RelWithDebInfo
with GCC 13.2.1:This crash does not happen if foma is compiled with Clang 17.0.6.
Backtrace for segfault: