Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.java > #12066
| Path | csiph.com!aioe.org!news.servidellagleba.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Tiago Daitx <tiago.daitx@canonical.com> |
| Newsgroups | linux.debian.maint.java, linux.debian.ports.mips |
| Subject | Re: Potential bug in openjdk-11 on mips64el |
| Date | Sun, 14 Feb 2021 01:00:01 +0100 |
| Message-ID | <BIcZr-2Yw-1@gated-at.bofh.it> (permalink) |
| References | <BHOu6-5eX-7@gated-at.bofh.it> <BHXQJ-2p7-3@gated-at.bofh.it> <BI7n4-82x-5@gated-at.bofh.it> |
| X-Original-To | Olek Wojnar <olek@debian.org> |
| X-Mailbox-Line | From debian-java-request@lists.debian.org Sat Feb 13 23:56:56 2021 |
| Old-Return-Path | <tiago.daitx@canonical.com> |
| X-Amavis-Spam-Status | No, score=-11.978 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .canonical. - helo: .youngberry.canonical. - helo-domain: .canonical.) 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:content-transfer-encoding; bh=ol1oQMDe1KEG3TBu6UCTWV66EltrnwIX4/Xqfiqlglc=; b=hdm9bOrdmjfUy0TffnTuEBmDuXLrYj2fHH3+vvOdYw4gDPrvFedKpBhrdJWq52+njK Ms/oUhpu7LKJzZSGOpf+DJKIa6CFUfSSdVCC9MpN62QcLwp8gi3lNGdnIB/32LMCy0o6 4crUpGxcWGPSfXWXneJVSvAt3CQSSplsU5f4rz1hXoJEYEun2jdqXtXWlUkqqe8YiU4P eUCCNPyiIe3npnFeEQsvYBXnHegtr5YMq3X9q8w4BobYAfZx+99caYQLArclXKF//iYR BEwjc/o5gdc8J+M0LbgOCWrr1Typr07c2SGenp7gWegKO7kbW5hJMZDEufrg7UJHTGWu 2Hpw== |
| X-Gm-Message-State | AOAM531/TpXQRIOZZWDXFPn7YWT9ZppqrLiOg71PRgtxl6VN7R1Hpi9q CHRsWQqNr+MUBIbXTpCKI4IICgmCAfAuETHwBGeWb/g5OebFGvYukkI2uPMqiSqHYHVC+amLKdr +8oCHTgkr4J0Ilw2edgHGUxDPwIkr7PdrZgbCSm+FUsGege+r21XGd9XYpw== |
| X-Received | by 2002:a05:6602:2a43:: with SMTP id k3mr7805518iov.16.1613260596551; Sat, 13 Feb 2021 15:56:36 -0800 (PST) |
| X-Google-SMTP-Source | ABdhPJxuCtbPkcetgy78scrmDwPuwT1y8S1QY/e5vw4BMyCePmkX8OGGX9A1eOFkM6gd7zSrQqz2PoTyQXRLANynpzg= |
| X-Received | by 2002:a05:6602:2a43:: with SMTP id k3mr7805514iov.16.1613260596361; Sat, 13 Feb 2021 15:56:36 -0800 (PST) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Content-Transfer-Encoding | quoted-printable |
| X-Mailing-List | <debian-java@lists.debian.org> archive/latest/22693 |
| List-ID | <debian-java.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-java/> |
| List-Archive | https://lists.debian.org/msgid-search/CAC-Dh9-rCxUc1PkiJLaejXuNQo=+8F5AiC=EwTUV1jEENXO5bQ@mail.gmail.com |
| Approved | robomod@news.nic.it |
| Lines | 46 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Cc | openjdk-11@packages.debian.org, Debian Java List <debian-java@lists.debian.org>, "debian-mips@lists.debian.org" <debian-mips@lists.debian.org>, Debian Bazel Packaging Team <bazel-team@lists.launchpad.net> |
| X-Original-Date | Sat, 13 Feb 2021 20:56:25 -0300 |
| X-Original-Message-ID | <CAC-Dh9-rCxUc1PkiJLaejXuNQo=+8F5AiC=EwTUV1jEENXO5bQ@mail.gmail.com> |
| X-Original-References | <CAJj0crRGJ+=e-PCr6c187uoJs8iD2Sjov4cFLE_e4YstMxeWLA@mail.gmail.com> <22ba18ae-501b-3db3-47db-b3ac6f6fb1b6@debian.org> <CAJj0crS79kgmrJL1rPrVuQU5czJhL2pF1_RznLbdvec5JGCJEQ@mail.gmail.com> |
| Xref | csiph.com linux.debian.maint.java:12066 linux.debian.ports.mips:2891 |
Cross-posted to 2 groups.
Show key headers only | View raw
Hi, This particular exception is being thrown by the call to unlinkat [1] which calls native unlinkat. Man page for unlinkat describes EISDIR error [2] as: "EISDIR pathname refers to a directory, and AT_REMOVEDIR was not specified in flags." Assuming unlinkat is telling the truth and this is indeed a directory, it can be seen from the stacktrace that deleteRecursivelySecure is calling deleteFile [3] instead of deleteDir (deleteDir does set AT_REMOVERDIR). 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. References: [1] unlinkat call https://sources.debian.org/src/openjdk-11/11.0.10+9-1/src/java.base/unix/classes/sun/nio/fs/UnixSecureDirectoryStream.java/#L200 [2] EISDIR in OpenJDK: https://sources.debian.org/src/openjdk-11/11.0.10+9-1/src/hotspot/share/runtime/os.cpp/#L1504 [3] https://salsa.debian.org/java-team/guava-libraries/-/blob/master/guava/src/com/google/common/io/MoreFiles.java#L630 [4] https://salsa.debian.org/java-team/guava-libraries/-/blob/master/guava/src/com/google/common/io/MoreFiles.java#L335 [5] https://sources.debian.org/src/openjdk-11/11.0.10+9-1/src/java.base/unix/classes/sun/nio/fs/UnixFileAttributes.java/#L90 cheers, -- Tiago Stürmer Daitx Software Engineer tiago.daitx@canonical.com PGP Key: 4096R/F5B213BE (hkp://keyserver.ubuntu.com) Fingerprint = 45D0 FE5A 8109 1E91 866E 8CA4 1931 8D5E F5B2 13BE
Back to linux.debian.maint.java | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Potential bug in openjdk-11 on mips64el Olek Wojnar <olek@debian.org> - 2021-02-12 22:50 +0100
Re: Potential bug in openjdk-11 on mips64el Matthias Klose <doko@debian.org> - 2021-02-13 08:50 +0100
Re: Potential bug in openjdk-11 on mips64el Olek Wojnar <olek@debian.org> - 2021-02-13 19:00 +0100
Re: Potential bug in openjdk-11 on mips64el raphael.jolly@free.fr - 2021-02-13 20:30 +0100
Re: Potential bug in openjdk-11 on mips64el Tiago Daitx <tiago.daitx@canonical.com> - 2021-02-14 01:00 +0100
Re: Potential bug in openjdk-11 on mips64el Tiago Daitx <tiago.daitx@canonical.com> - 2021-02-14 01:00 +0100
Re: Potential bug in openjdk-11 on mips64el Olek Wojnar <olek@debian.org> - 2021-02-15 02:00 +0100
Re: Potential bug in openjdk-11 on mips64el Matthias Klose <doko@debian.org> - 2021-02-15 09:40 +0100
Re: Potential bug in openjdk-11 on mips64el Aleksey Shipilev <shade@redhat.com> - 2021-02-15 16:00 +0100
Re: Potential bug in openjdk-11 on mips64el Ao Qi <aoqi@loongson.cn> - 2021-02-15 18:00 +0100
Re: Potential bug in openjdk-11 on mips64el Ao Qi <aoqi@loongson.cn> - 2021-02-20 10:10 +0100
Re: Potential bug in openjdk-11 on mips64el Olek Wojnar <olek@debian.org> - 2021-02-21 21:20 +0100
Re: Potential bug in openjdk-11 on mips64el Olek Wojnar <olek@debian.org> - 2021-02-28 18:30 +0100
Re: Potential bug in openjdk-11 on mips64el Olek Wojnar <olek@debian.org> - 2021-03-02 18:40 +0100
csiph-web