From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x32.google.com (mail-oa1-x32.google.com [IPv6:2001:4860:4864:20::32]) by sourceware.org (Postfix) with ESMTPS id 1A10F3858292 for ; Fri, 17 Jun 2022 09:20:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1A10F3858292 Received: by mail-oa1-x32.google.com with SMTP id 586e51a60fabf-100eb6f7782so4917828fac.2 for ; Fri, 17 Jun 2022 02:20:57 -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:references:in-reply-to:from:date :message-id:subject:to:cc; bh=O11XIkQv5NFHmDblv+GeEk9UDW1alDpQITkmRG0uu0k=; b=aV6dV/kd2jZEzB646TWgAJpu0Ga6WhnplAIsEWN10ib6cmZFjZfO/4DLMwpsg4uLiR V6aytek9lhwcl9iso6vJ/ZwGcma4gjtKYRnN3CiyEGFY71/9gXBAPPlg1EvgalFtcBug T34gjbV7K5XrSf4pxzpOBv5l+/gzsgJvPhPpEAITq0sS36/WFdzEDrSD8QA+BurlJ+7+ BfxLbn6bgcpGcMWr8/XUzhcsBRV4+mPw5EsyQsi5K5RwUbHql6sTmF37cGvs5JfYBbzz g1cVW6znvKITafvuqO8q6PrpXFIDm9N3J3009k/rA7wN4NrB4fQpkKV2LFKCGVuN0ubu WRAw== X-Gm-Message-State: AJIora/UQjnFtFBozyfzaSktCOn9wzztxIXwv5s8RBlQYz81QmX6spAZ gcT/ujO+ANxLPjX9XT2fbi4HTJfYGRBRRsqN5Qw= X-Google-Smtp-Source: AGRyM1vLKG92zXI5ox/Lprrr7OqomyocKLoQFUzpFKEB/1DeSDqXnt1cA309Gg9w0JbvK0cKQg0ahVHFcJ9G2H/VCCc= X-Received: by 2002:a05:6870:d20f:b0:fe:110:267c with SMTP id g15-20020a056870d20f00b000fe0110267cmr10776986oac.250.1655457656398; Fri, 17 Jun 2022 02:20:56 -0700 (PDT) MIME-Version: 1.0 References: <87r14pyf1x.fsf@oldenburg.str.redhat.com> In-Reply-To: From: Zopolis0 Date: Fri, 17 Jun 2022 19:20:45 +1000 Message-ID: Subject: Re: Segfault in libjava/prims.cc while compiling gcj To: Florian Weimer Cc: Zopolis0 via Gcc-help X-Spam-Status: No, score=0.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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" 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: Fri, 17 Jun 2022 09:20:59 -0000 At my wit's end here, posted a bounty: https://app.bountysource.com/issues/109355626-ice-s On Wed, Jun 15, 2022 at 5:51 PM Zopolis0 wrote: > Never mind, that was a coincidence. All of the errors are on lines calling > java:: something, or calling _Jv_ something. > > On Sat, 21 May 2022 at 17:12, Zopolis0 wrote: > >> Running with make -k reveals that all the errors are segfaults, and all >> of them are on return new or throw new statements. One such error is on >> the return new FileOutputStream (ch); line in natVMChannels.cc: >> >> FileOutputStream* >> VMChannels::newOutputStream(FileChannelImpl* ch) >> { >> // Needs to be native to bypass Java access protection. >> return new FileOutputStream (ch); >> } >> >> Given that this does not seem like the kind of code to generate a >> segfault, I think there is a different issue here. >> >> >> On Thu, May 19, 2022 at 10:22 PM Zopolis0 >> wrote: >> >>> It's the same implementation from when it was removed, unless you mean >>> code outside of gcc/java and libjava, which in that case I could have made >>> an error copying it in or modernising it. >>> >>> On Thu, May 19, 2022 at 8:47 PM Florian Weimer >>> wrote: >>> >>>> * Zopolis: >>>> >>>> > ../../../../gcj/libjava/prims.cc:182:23: internal compiler error: >>>> > Segmentation fault >>>> > 182 | = new java::lang::NullPointerException; >>>> > | ^~~~~~~~~~~~~~~~~~~~ >>>> >>>> This is likely a bug in the CNI implementation, specific to your GCJ >>>> port. Allocation of CNI classes is different from regular C++ classes. >>>> >>>> Thanks, >>>> Florian >>>> >>>>