From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x34.google.com (mail-oa1-x34.google.com [IPv6:2001:4860:4864:20::34]) by sourceware.org (Postfix) with ESMTPS id 1A7A13857424 for ; Wed, 18 May 2022 09:23:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1A7A13857424 Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-f189b07f57so1911303fac.1 for ; Wed, 18 May 2022 02:23:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ufm4toPbTJyaESeV1F2RbDD8pyEL2DEEJ+gEW0ZMp8A=; b=7wkgI2/jwymK/aeW90SMSA8oyNIoHa2XFM9KFTsuxv98BJwsb+XM8VpzAqrAFKHhKH U+MXPDmquk9Tra7zCy+JeGO6FcD7onx1mJlbUreBAZl1gpIRPCoKsYWgAj+2ASQCMDL+ d0wviYl5e5XflDxO+4YzkwbwIh4jAFF9YeMkCysbgZWNlZBW/mTbqbdU2lpgHOiWEiWM RxvIN9bCbVOgB7UukHJ51UzJupqUFnXae5Nvdelcd1U6Jyi4pAbKBGuvGIZNp7yfQn3y XKSghUDSjIsM8ZPRvDK0FnIbZQVfrL9T1sXcH7xOr2fqQ++jo+UjekIH7hf6n6z1z6fI fc4Q== X-Gm-Message-State: AOAM530tCDbGBi+A5ZmgsLMxCZhhFOnFxxOK16IocA69YhX6JWtSDCTa saaXA1d4gmCmOxcBVXcGWb4+bvyABzs1/zX2Zj6cUtd8iew= X-Google-Smtp-Source: ABdhPJx5SRADXYm2yLRV2CHPAk4m3sEAeBxYm8HkSwfUqUjBB9JTcR2SZDipS0yfXyDwYNqS+s5ae/mspNePiEQJsok= X-Received: by 2002:a05:6870:e245:b0:de:9321:9ea3 with SMTP id d5-20020a056870e24500b000de93219ea3mr14680704oac.79.1652865822970; Wed, 18 May 2022 02:23:42 -0700 (PDT) MIME-Version: 1.0 From: Zopolis0 Date: Wed, 18 May 2022 19:23:32 +1000 Message-ID: Subject: Segfault in libjava/prims.cc while compiling gcj To: gcc-help X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, WEIRD_PORT autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2022 09:23:47 -0000 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=3D`echo prims.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/bash ./libtool --tag=3DCXX --mode=3Dcompile /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++/.li= bs -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=3D64 -ffloat-store -fomit-frame-pointer -Usun -Wextra -Wall -D_GNU_SOURCE -DPREFIX=3D"\"/usr/local\"" -DTOOLEXECLIBDIR=3D"\"/usr/local/lib/../lib32\"" -DJAVA_HOME=3D"\"/usr/loca= l\"" -DBOOT_CLASS_PATH=3D"\"/usr/local/share/java/libgcj-13.0.0.jar\"" -DJAVA_EXT_DIRS=3D"\"/usr/local/share/java/ext\"" -DGCJ_ENDORSED_DIRS=3D"\"/usr/local/share/java/gcj-endorsed\"" -DGCJ_VERSIONED_LIBDIR=3D"\"/usr/local/lib/../lib32/gcj-13.0.0-18\"" -DPATH_SEPARATOR=3D"\":\"" -DECJ_JAR_FILE=3D"\"\"" -DLIBGCJ_DEFAULT_DATABASE=3D"\"/usr/local/lib/../lib32/gcj-13.0.0-18/classm= ap.db\"" -DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL=3D"\"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++/.li= bs -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=3D64 -ffloat-store -fomit-frame-pointer -Usun -Wextra -Wall -D_GNU_SOURCE -DPREFIX=3D\"/usr/local\" -DTOOLEXECLIBDIR=3D\"/usr/local/lib/../lib32\" -DJAVA_HOME=3D\"/usr/local\" -DBOOT_CLASS_PATH=3D\"/usr/local/share/java/libgcj-13.0.0.jar\" -DJAVA_EXT_DIRS=3D\"/usr/local/share/java/ext\" -DGCJ_ENDORSED_DIRS=3D\"/usr/local/share/java/gcj-endorsed\" -DGCJ_VERSIONED_LIBDIR=3D\"/usr/local/lib/../lib32/gcj-13.0.0-18\" -DPATH_SEPARATOR=3D\":\" -DECJ_JAR_FILE=3D\"\" -DLIBGCJ_DEFAULT_DATABASE=3D\"/usr/local/lib/../lib32/gcj-13.0.0-18/classma= p.db\" -DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL=3D\"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 =E2=80=98void _Jv_catch_segv(= int, siginfo_t*, void*)=E2=80=99: ../../../../gcj/libjava/prims.cc:182:23: internal compiler error: Segmentation fault 182 | =3D 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*, tree_node*, vec**, 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 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?