RFR: JDK-8285987: executing shell scripts without #! fails on Alpine linux

Alan Bateman alanb at openjdk.java.net
Thu May 5 13:47:19 UTC 2022


On Wed, 4 May 2022 12:04:47 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> A couple a tests like java/lang/ProcessBuilder/Basic.java#id0.Basic_id0 and jdk/jshell/ExternalEditorTest.java.ExternalEditorTest try to start small shell scripts without #! at the first line of the script. This fails with error=8, Exec format error when running on Alpine 3.15 .
> Looks like this is a known issue on musl / Alpine, see also
> https://www.openwall.com/lists/musl/2018/03/09/2
> and
> https://github.com/scala-steward-org/scala-steward/issues/1374
> (we see it on Alpine 3.15).

test/lib/jdk/test/lib/Platform.java line 192:

> 190:     }
> 191: 
> 192:     public static boolean isMusl() {

I think this will need test/lib/TestMutuallyExclusivePlatformPredicates.java to be updated too.

-------------

PR: https://git.openjdk.java.net/jdk/pull/8535


More information about the core-libs-dev mailing list