Re: RFR: 8314491: Linux: jexec launched via PATH fails to find java [v7]

2023-09-05 Thread Roger Riggs
On Wed, 30 Aug 2023 20:34:01 GMT, Vladimir Petko wrote: >> 8314491: Linux: jexec launched via PATH fails to find java > > Vladimir Petko has updated the pull request with a new target base due to a > merge or a rebase. The incremental webrev excludes the unrelated changes > brought in by the me

Re: RFR: 8314491: Linux: jexec launched via PATH fails to find java [v7]

2023-09-04 Thread Vladimir Petko
On Mon, 4 Sep 2023 08:01:16 GMT, Julian Waters wrote: > Is this all clear for sponsorship? Yes, I have checked with @dholmes-ora - PR Comment: https://git.openjdk.org/jdk/pull/15343#issuecomment-1704827486

Re: RFR: 8314491: Linux: jexec launched via PATH fails to find java [v7]

2023-09-04 Thread Julian Waters
On Wed, 30 Aug 2023 20:34:01 GMT, Vladimir Petko wrote: >> 8314491: Linux: jexec launched via PATH fails to find java > > Vladimir Petko has updated the pull request with a new target base due to a > merge or a rebase. The incremental webrev excludes the unrelated changes > brought in by the me

Re: RFR: 8314491: Linux: jexec launched via PATH fails to find java [v7]

2023-08-30 Thread Vladimir Petko
> 8314491: Linux: jexec launched via PATH fails to find java Vladimir Petko has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains ten additional commits sinc

Re: RFR: 8314491: Linux: jexec launched via PATH fails to find java [v6]

2023-08-28 Thread Vladimir Petko
On Fri, 25 Aug 2023 07:04:50 GMT, Vladimir Petko wrote: >> 8314491: Linux: jexec launched via PATH fails to find java > > Vladimir Petko has updated the pull request with a new target base due to a > merge or a rebase. The incremental webrev excludes the unrelated changes > brought in by the me

Re: RFR: 8314491: Linux: jexec launched via PATH fails to find java [v6]

2023-08-28 Thread Alan Bateman
On Fri, 25 Aug 2023 07:04:50 GMT, Vladimir Petko wrote: >> 8314491: Linux: jexec launched via PATH fails to find java > > Vladimir Petko has updated the pull request with a new target base due to a > merge or a rebase. The incremental webrev excludes the unrelated changes > brought in by the me

Re: RFR: 8314491: Linux: jexec launched via PATH fails to find java [v6]

2023-08-27 Thread David Holmes
On Fri, 25 Aug 2023 07:04:50 GMT, Vladimir Petko wrote: >> 8314491: Linux: jexec launched via PATH fails to find java > > Vladimir Petko has updated the pull request with a new target base due to a > merge or a rebase. The incremental webrev excludes the unrelated changes > brought in by the me

Re: RFR: 8314491: Linux: jexec launched via PATH fails to find java [v6]

2023-08-25 Thread Vladimir Petko
> 8314491: Linux: jexec launched via PATH fails to find java Vladimir Petko has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains eight additional commits si

Re: RFR: 8314491: Linux: jexec launched via PATH fails to find java [v3]

2023-08-21 Thread Vladimir Petko
On Mon, 21 Aug 2023 21:36:13 GMT, David Holmes wrote: >>> Nit: no need to pre-declare this, just use `int error = getJavaPath(...)` >> >> This one was intentional to keep the style consistent =) > > The others are more widely used and there is a desire to document their > meaning. That isn't ne

Re: RFR: 8314491: Linux: jexec launched via PATH fails to find java [v5]

2023-08-21 Thread Vladimir Petko
> 8314491: Linux: jexec launched via PATH fails to find java Vladimir Petko has updated the pull request incrementally with one additional commit since the last revision: declare error in-place - Changes: - all: https://git.openjdk.org/jdk/pull/15343/files - new: https://git.

Re: RFR: 8314491: Linux: jexec launched via PATH fails to find java [v3]

2023-08-21 Thread David Holmes
On Mon, 21 Aug 2023 20:30:54 GMT, Vladimir Petko wrote: >> src/java.base/unix/native/launcher/jexec.c line 162: >> >>> 160: int argi = 0; /* index into old array */ >>> 161: size_talen = 0; /* length of new array */ >>> 162: int e

Re: RFR: 8314491: Linux: jexec launched via PATH fails to find java [v4]

2023-08-21 Thread Vladimir Petko
> 8314491: Linux: jexec launched via PATH fails to find java Vladimir Petko has updated the pull request incrementally with one additional commit since the last revision: remove unused imports - Changes: - all: https://git.openjdk.org/jdk/pull/15343/files - new: https://git.o

Re: RFR: 8314491: Linux: jexec launched via PATH fails to find java [v3]

2023-08-21 Thread Vladimir Petko
On Mon, 21 Aug 2023 07:59:35 GMT, David Holmes wrote: > Nit: no need to pre-declare this, just use `int error = getJavaPath(...)` This one was intentional to keep the style consistent =) - PR Review Comment: https://git.openjdk.org/jdk/pull/15343#discussion_r1300614894

Re: RFR: 8314491: Linux: jexec launched via PATH fails to find java [v3]

2023-08-21 Thread Roger Riggs
On Mon, 21 Aug 2023 07:14:44 GMT, Vladimir Petko wrote: >> 8314491: Linux: jexec launched via PATH fails to find java > > Vladimir Petko has updated the pull request incrementally with one additional > commit since the last revision: > > Review comment: use /proc/self/exe as the backup option

Re: RFR: 8314491: Linux: jexec launched via PATH fails to find java [v3]

2023-08-21 Thread David Holmes
On Mon, 21 Aug 2023 07:14:44 GMT, Vladimir Petko wrote: >> 8314491: Linux: jexec launched via PATH fails to find java > > Vladimir Petko has updated the pull request incrementally with one additional > commit since the last revision: > > Review comment: use /proc/self/exe as the backup option

Re: RFR: 8314491: Linux: jexec launched via PATH fails to find java [v3]

2023-08-21 Thread Vladimir Petko
> 8314491: Linux: jexec launched via PATH fails to find java Vladimir Petko has updated the pull request incrementally with one additional commit since the last revision: Review comment: use /proc/self/exe as the backup option - Changes: - all: https://git.openjdk.org/jdk/pull/

Re: RFR: 8314491: Linux: jexec launched via PATH fails to find java [v3]

2023-08-21 Thread Vladimir Petko
On Mon, 21 Aug 2023 06:33:50 GMT, David Holmes wrote: > To minimise the impact on existing users can this be implemented as a > fallback if the initial attempt to locate `java` fails? Updated and re-run the affected test: == Test summary

Re: RFR: 8314491: Linux: jexec launched via PATH fails to find java [v2]

2023-08-20 Thread David Holmes
On Mon, 21 Aug 2023 06:18:15 GMT, Vladimir Petko wrote: > realpath call in getJavaPath() function translates the symbolic link into the > binary path. Okay so a specific API makes this work as intended. What I can't determine is whether this may have an adverse effect on anyone using an "unus

Re: RFR: 8314491: Linux: jexec launched via PATH fails to find java [v2]

2023-08-20 Thread Vladimir Petko
On Mon, 21 Aug 2023 04:38:56 GMT, David Holmes wrote: > I get the sense from the comment in jexec.c that it is only intended to be > launched via a full path, so having it in the $PATH seems like a usage error > to me. Unfortunately this executable is linked in /usr/bin and is assumed to work

Re: RFR: 8314491: Linux: jexec launched via PATH fails to find java [v2]

2023-08-20 Thread Vladimir Petko
> 8314491: Linux: jexec launched via PATH fails to find java Vladimir Petko has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits sin

Re: RFR: 8314491: Linux: jexec launched via PATH fails to find java

2023-08-20 Thread David Holmes
On Fri, 18 Aug 2023 10:06:19 GMT, Vladimir Petko wrote: > 8314491: Linux: jexec launched via PATH fails to find java I get the sense from the comment in jexec.c that it is only intended to be launched via a full path, so having it in the $PATH seems like a usage error to me. That said this ch

Re: RFR: 8314491: Linux: jexec launched via PATH fails to find java

2023-08-20 Thread Vladimir Petko
On Fri, 18 Aug 2023 10:06:19 GMT, Vladimir Petko wrote: > 8314491: Linux: jexec launched via PATH fails to find java When jexec is found in the PATH, e.g. we run ``$jexec myjar.jar``, the `argv[0]` contains `jexec` and Java can not be found. Running updated test without fix in jexec.c: $make

RFR: 8314491: Linux: jexec launched via PATH fails to find java

2023-08-20 Thread Vladimir Petko
8314491: Linux: jexec launched via PATH fails to find java - Commit messages: - Use /proc/self/exec to identify path to the executable. - Create failing test for jexec in PATH issue Changes: https://git.openjdk.org/jdk/pull/15343/files Webrev: https://webrevs.openjdk.org/?repo=jdk