Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Olek Wojnar Newsgroups: linux.debian.maint.java,linux.debian.ports.mips Subject: Re: Potential bug in openjdk-11 on mips64el Date: Mon, 15 Feb 2021 02:00:06 +0100 Message-ID: References: X-Mailbox-Line: From debian-java-request@lists.debian.org Mon Feb 15 00:57:22 2021 Old-Return-Path: X-Amavis-Spam-Status: No, score=-4.381 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DIGITS_LETTERS=1, FOURLA=0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=2, LDO_WHITELIST=-5, MD5_SHA1_SUM=-1, MURPHY_DRUGS_REL8=0.02, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001] autolearn=no autolearn_force=no X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-qk1-f178.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -5.5 X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HFenaIl+eq+8R6bEenvpfAqC3xo5kE+f++FGF0wnhq8=; b=QvKsetjHzKMxJjRAYPZiqcNs+elnFFeMDJ9LSj5XzMBRZgdlBMchpEpytiZtDJCYbK 3nz8OBeyumn466WAewKqhvUsu1zqhTde+hhjJiCbzWN31KLv3VZyTtc9O/k6cbXcYnou zbddElYzmlwj/xdXY+RKAxc7GoRQBgoQ27SAEsWV6SosbsVXzA42LXn/Jb6qI5X8s8K0 Lyqf9bhXt5pVs9whPU/hn40KJ36z8WvuMuWEOGPgfImcug7EMaCSsux0ed8rQd9Jg9bG B4h7026HV+Ddfm2n4dFfd00i1j0FI/tvum+tlCbyjraFdqp4gGS7ZLqoPlp7IAKZgiEj GQdg== X-Gm-Message-State: AOAM533zi0L6mLG7K83bKDvicMUH41iI5S0lc6l8mFJKZ5I240nRlI34 lafnEtEr+q757ODsog5W6lWVUhDDTYk= X-Google-SMTP-Source: ABdhPJz45RtY8WuroDiVZGoJDk2OLTrr3eu2xp/ODonFS6PLYRNEQDU+h2X+kq721QgOQ6eGUnyAqg== X-Received: by 2002:a05:620a:151a:: with SMTP id i26mr7417199qkk.29.1613349686650; Sun, 14 Feb 2021 16:41:26 -0800 (PST) X-Received: by 2002:a05:620a:1285:: with SMTP id w5mr12206907qki.420.1613349686098; Sun, 14 Feb 2021 16:41:26 -0800 (PST) MIME-Version: 1.0 X-Gmail-Original-Message-ID: Content-Type: multipart/alternative; boundary="000000000000f0404a05bb553e17" X-Mailing-List: archive/latest/22695 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CAJj0crT9HF4kGx=V_xaCa+f0L=Kj+_3GQYMEFiGH7q=JjQrGkg@mail.gmail.com Approved: robomod@news.nic.it Lines: 95 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Debian Bazel Packaging Team X-Original-Date: Sun, 14 Feb 2021 19:40:50 -0500 X-Original-Message-ID: X-Original-References: <22ba18ae-501b-3db3-47db-b3ac6f6fb1b6@debian.org> Xref: csiph.com linux.debian.maint.java:12068 linux.debian.ports.mips:2893 --000000000000f0404a05bb553e17 Content-Type: text/plain; charset="UTF-8" Thank you all for your inputs and suggestions! On Sat, Feb 13, 2021 at 2:43 AM Matthias Klose wrote: > > you could try to debug with java -zero / javac -J-zero on amd64. Done! [1] Unfortunately, I don't see anything useful there but perhaps one of you will. On Sat, Feb 13, 2021 at 2:21 PM wrote: > It selects the "Zero" VM, which I assume is the one used on mips64el. > > https://openjdk.java.net/projects/zero/ Ah, thanks for the explanation! It helped me to appropriately adjust build-depends. Hmm, it looks like Zero is not supported on MIPS at the moment, but perhaps that site is just out-of-date? On Sat, Feb 13, 2021 at 6:56 PM Tiago Daitx wrote: > > This seems to indicate that the isDirectory call [4] is getting wrong > file attributes. Following the trail, those file attributes come from > a fstatat call [5] which ultimately come from the native stack in > UnixNativeDispatcher.c [6]. The actual way that fstatat is called > depends on the build flags and defines from the arch, so somebody with > better knowledge might want to take a look at UnixNativeDispatcher.c > [6] and tell if OpenJDK is picking the right function to call for > mips64el. > Thanks for the excellent analysis! So is this indeed a bug in OpenJDK on mips64el then? I'm happy to file the bug, referencing all of the information in this thread, if that's the probable culprit here. -Olek [1] https://gist.githubusercontent.com/olekw/32e54c0829d739e8fa88893a853c0fa8/raw/b2fce4d2ab77555a3d28c22441f1de3cb2d99f38/bazel-bootstrap-zero-jre --000000000000f0404a05bb553e17 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you all for your inputs and suggest= ions!

On Sat= , Feb 13, 2021 at 2:43 AM Matthias Klose <doko@debian.org> wrote:

you could try to debug with java -zero / javac -J-zero on amd64.

Done! [1] Unfortunately, I don't see anythi= ng useful there but perhaps one of you will.

On Sat, Feb 13, 2021 at 2:21 PM <raphael.jolly@free.fr> wrote:
=
It selects the &quo= t;Zero" VM, which I assume is the one used on mips64el.

https://openjdk.java.net/projects/zero/
=
Ah, thanks for the explanation! It helped me to appropriatel= y adjust build-depends. Hmm, it looks like Zero is not supported on MIPS at= the moment, but perhaps that site is just out-of-date?

On Sat, Feb 13= , 2021 at 6:56 PM Tiago Daitx <tiago.daitx@canonical.com> wrote:

This seems to indicate that the isDirectory call [4] is getting wrong
file attributes. Following the trail, those file attributes come from
a fstatat call [5] which ultimately come from the native stack in
UnixNativeDispatcher.c [6]. The actual way that fstatat is called
depends on the build flags and defines from the arch, so somebody with
better knowledge might want to take a look at UnixNativeDispatcher.c
[6] and tell if OpenJDK is picking the right function to call for
mips64el.

Thanks for the excellent anal= ysis! So is this indeed a bug in OpenJDK on mips64el then? I'm happy to= file the bug, referencing all of the information in this thread, if that&#= 39;s the probable culprit=C2=A0here.

-Olek

--000000000000f0404a05bb553e17--