Created attachment 1852179[details]
Preprocessed source code
Description of problem:
ICE caused by SEGV during a koji build (https://koji.fedoraproject.org/koji/taskinfo?taskID=81524235) on ppc64le:
cd /builddir/build/BUILD/libosmium-2.17.3/libosmium/redhat-linux-build/examples && /usr/bin/g++ -DOSMIUM_WITH_LZ4 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/builddir/build/BUILD/libosmium-2.17.3/libosmium/include -isystem /usr/include/gdal -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -std=c++11 -pthread -MD -MT examples/CMakeFiles/osmium_debug.dir/osmium_debug.cpp.o -MF CMakeFiles/osmium_debug.dir/osmium_debug.cpp.o.d -o CMakeFiles/osmium_debug.dir/osmium_debug.cpp.o -c /builddir/build/BUILD/libosmium-2.17.3/libosmium/examples/osmium_debug.cpp
*** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins.
Event | Plugins
PLUGIN_FINISH_UNIT | annobin: Generate final annotations
PLUGIN_START_UNIT | annobin: Generate global annotations
PLUGIN_ALL_PASSES_START | annobin: Generate per-function annotations
PLUGIN_ALL_PASSES_END | annobin: Register per-function end symbols
during RTL pass: final
In file included from /builddir/build/BUILD/libosmium-2.17.3/libosmium/test/test_main.cpp:2:
/usr/include/catch2/catch.hpp: In member function 'Catch::LazyExpression::LazyExpression(bool)':
/usr/include/catch2/catch.hpp:8185:5: internal compiler error: Segmentation fault
8185 | LazyExpression::LazyExpression( bool isNegated )
| ^~~~~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Version-Release number of selected component (if applicable):
12.0.1-0.2.fc36
How reproducible:
Two attempts in koji have failed the same way but I have been unable to reproduce it using the ppc64le test machine with the same compiler.
Additional info:
Although I couldn't reproduce it on the test machine running under valgrind did report a number of issues.
I will attach the preprocessed source and the valgrind log.