While compiling gcj on my msterrebase branch ( https://github.com/Zopolis4/gcj/tree/msterrebase), the compilation fails on a segfault in prims.cc: make[5]: Entering directory '/home/zopolis4/gcjbuild/x86_64-pc-linux-gnu/32/libjava' depbase=`echo prims.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/bash ./libtool --tag=CXX --mode=compile /home/zopolis4/gcjbuild/./gcc/xgcc -shared-libgcc -B/home/zopolis4/gcjbuild/./gcc -nostdinc++ -L/home/zopolis4/gcjbuild/x86_64-pc-linux-gnu/32/libstdc++-v3/src -L/home/zopolis4/gcjbuild/x86_64-pc-linux-gnu/32/libstdc++-v3/src/.libs -L/home/zopolis4/gcjbuild/x86_64-pc-linux-gnu/32/libstdc++-v3/libsupc++/.libs -B/usr/local/x86_64-pc-linux-gnu/bin/ -B/usr/local/x86_64-pc-linux-gnu/lib/ -isystem /usr/local/x86_64-pc-linux-gnu/include -isystem /usr/local/x86_64-pc-linux-gnu/sys-include -fno-checking -m32 -DHAVE_CONFIG_H -I. -I../../../../gcj/libjava -I./include -I./gcj -I../../../../gcj/libjava -Iinclude -I../../../../gcj/libjava/include -I../../../../gcj/libjava/classpath/include -Iclasspath/include -I../../../../gcj/libjava/classpath/native/fdlibm -I../../../../gcj/libjava/../boehm-gc/include -I../boehm-gc/include -I../../../../gcj/libjava/libltdl -I../../../../gcj/libjava/.././libjava/../libgcc -I../../../../gcj/libjava/../zlib -I../../../../gcj/libjava/../libffi/include -I../libffi/include -fno-rtti -fnon-call-exceptions -fdollars-in-identifiers -Wswitch-enum -D_FILE_OFFSET_BITS=64 -ffloat-store -fomit-frame-pointer -Usun -Wextra -Wall -D_GNU_SOURCE -DPREFIX="\"/usr/local\"" -DTOOLEXECLIBDIR="\"/usr/local/lib/../lib32\"" -DJAVA_HOME="\"/usr/local\"" -DBOOT_CLASS_PATH="\"/usr/local/share/java/libgcj-13.0.0.jar\"" -DJAVA_EXT_DIRS="\"/usr/local/share/java/ext\"" -DGCJ_ENDORSED_DIRS="\"/usr/local/share/java/gcj-endorsed\"" -DGCJ_VERSIONED_LIBDIR="\"/usr/local/lib/../lib32/gcj-13.0.0-18\"" -DPATH_SEPARATOR="\":\"" -DECJ_JAR_FILE="\"\"" -DLIBGCJ_DEFAULT_DATABASE="\"/usr/local/lib/../lib32/gcj-13.0.0-18/classmap.db\"" -DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL="\"gcj-13.0.0-18/classmap.db\"" -fno-omit-frame-pointer -g -O2 -D_GNU_SOURCE -m32 -MT prims.lo -MD -MP -MF $depbase.Tpo -c -o prims.lo ../../../../gcj/libjava/prims.cc &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: /home/zopolis4/gcjbuild/./gcc/xgcc -shared-libgcc -B/home/zopolis4/gcjbuild/./gcc -nostdinc++ -L/home/zopolis4/gcjbuild/x86_64-pc-linux-gnu/32/libstdc++-v3/src -L/home/zopolis4/gcjbuild/x86_64-pc-linux-gnu/32/libstdc++-v3/src/.libs -L/home/zopolis4/gcjbuild/x86_64-pc-linux-gnu/32/libstdc++-v3/libsupc++/.libs -B/usr/local/x86_64-pc-linux-gnu/bin/ -B/usr/local/x86_64-pc-linux-gnu/lib/ -isystem /usr/local/x86_64-pc-linux-gnu/include -isystem /usr/local/x86_64-pc-linux-gnu/sys-include -fno-checking -m32 -DHAVE_CONFIG_H -I. -I../../../../gcj/libjava -I./include -I./gcj -I../../../../gcj/libjava -Iinclude -I../../../../gcj/libjava/include -I../../../../gcj/libjava/classpath/include -Iclasspath/include -I../../../../gcj/libjava/classpath/native/fdlibm -I../../../../gcj/libjava/../boehm-gc/include -I../boehm-gc/include -I../../../../gcj/libjava/libltdl -I../../../../gcj/libjava/.././libjava/../libgcc -I../../../../gcj/libjava/../zlib -I../../../../gcj/libjava/../libffi/include -I../libffi/include -fno-rtti -fnon-call-exceptions -fdollars-in-identifiers -Wswitch-enum -D_FILE_OFFSET_BITS=64 -ffloat-store -fomit-frame-pointer -Usun -Wextra -Wall -D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DTOOLEXECLIBDIR=\"/usr/local/lib/../lib32\" -DJAVA_HOME=\"/usr/local\" -DBOOT_CLASS_PATH=\"/usr/local/share/java/libgcj-13.0.0.jar\" -DJAVA_EXT_DIRS=\"/usr/local/share/java/ext\" -DGCJ_ENDORSED_DIRS=\"/usr/local/share/java/gcj-endorsed\" -DGCJ_VERSIONED_LIBDIR=\"/usr/local/lib/../lib32/gcj-13.0.0-18\" -DPATH_SEPARATOR=\":\" -DECJ_JAR_FILE=\"\" -DLIBGCJ_DEFAULT_DATABASE=\"/usr/local/lib/../lib32/gcj-13.0.0-18/classmap.db\" -DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL=\"gcj-13.0.0-18/classmap.db\" -fno-omit-frame-pointer -g -O2 -D_GNU_SOURCE -m32 -MT prims.lo -MD -MP -MF .deps/prims.Tpo -c ../../../../gcj/libjava/prims.cc -fPIC -DPIC -o .libs/prims.o ../../../../gcj/libjava/prims.cc: In function ‘void _Jv_catch_segv(int, siginfo_t*, void*)’: ../../../../gcj/libjava/prims.cc:182:23: internal compiler error: Segmentation fault 182 | = new java::lang::NullPointerException; | ^~~~~~~~~~~~~~~~~~~~ 0x11bd5af crash_signal ../../gcj/gcc/toplev.cc:322 0x7f56707c8d5f ??? ./signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0 0xbda1b4 location_wrapper_p(tree_node const*) ../../gcj/gcc/tree.h:4210 0xbda1b4 tree_strip_any_location_wrapper(tree_node*) ../../gcj/gcc/tree.h:4222 0xbda1b4 is_overloaded_fn(tree_node*) ../../gcj/gcc/cp/tree.cc:2565 0xbda4d8 really_overloaded_fn(tree_node*) ../../gcj/gcc/cp/tree.cc:2607 0xa70eba build_new_1 ../../gcj/gcc/cp/init.cc:3343 0xa73831 build_new(unsigned int, vec<tree_node*, va_gc, vl_embed>**, tree_node*, tree_node*, vec<tree_node*, va_gc, vl_embed>**, int, int) ../../gcj/gcc/cp/init.cc:4068 0xb2d1b7 cp_parser_new_expression ../../gcj/gcc/cp/parser.cc:9307 0xb2d821 cp_parser_unary_expression ../../gcj/gcc/cp/parser.cc:8895 0xafbc36 cp_parser_binary_expression ../../gcj/gcc/cp/parser.cc:10043 0xafc7be cp_parser_assignment_expression ../../gcj/gcc/cp/parser.cc:10347 0xafeb61 cp_parser_constant_expression ../../gcj/gcc/cp/parser.cc:10650 0xafec61 cp_parser_initializer_clause ../../gcj/gcc/cp/parser.cc:25340 0xb0234c cp_parser_initializer ../../gcj/gcc/cp/parser.cc:25280 0xb325e3 cp_parser_init_declarator ../../gcj/gcc/cp/parser.cc:22844 0xb0c738 cp_parser_simple_declaration ../../gcj/gcc/cp/parser.cc:15315 0xb0e4d0 cp_parser_declaration_statement ../../gcj/gcc/cp/parser.cc:14394 0xb0ed49 cp_parser_statement ../../gcj/gcc/cp/parser.cc:12471 0xb0fc9d cp_parser_statement_seq_opt ../../gcj/gcc/cp/parser.cc:12883 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. make[5]: *** [Makefile:9945: prims.lo] Error 1 make[5]: Leaving directory '/home/zopolis4/gcjbuild/x86_64-pc-linux-gnu/32/libjava' make[4]: *** [Makefile:10258: all-recursive] Error 1 make[4]: Leaving directory '/home/zopolis4/gcjbuild/x86_64-pc-linux-gnu/32/libjava' make[3]: *** [Makefile:12792: multi-do] Error 1 make[3]: Leaving directory '/home/zopolis4/gcjbuild/x86_64-pc-linux-gnu/libjava' make[2]: *** [Makefile:12758: all-multi] Error 2 make[2]: Leaving directory '/home/zopolis4/gcjbuild/x86_64-pc-linux-gnu/libjava' make[1]: *** [Makefile:23521: all-target-libjava] Error 2 make[1]: Leaving directory '/home/zopolis4/gcjbuild' make: *** [Makefile:1085: all] Error 2 Is this an error within prims.cc? Or is it catching an error from somewhere else? Should I report this as per the instructions? If so, how do I do that when the arguments are already set?