Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alpine image variants pick up JDK_JAVA_OPTIONS twice #546

Open
twbecker opened this issue Jul 18, 2022 · 5 comments
Open

Alpine image variants pick up JDK_JAVA_OPTIONS twice #546

twbecker opened this issue Jul 18, 2022 · 5 comments
Labels
alpine-linux bug Something isn't working help wanted Extra attention is needed keep This label can be applied to prevent the Stale bot from closing it after a period of inactivity

Comments

@twbecker
Copy link

Please provide a brief summary of the bug

The *-alpine images I've tested for both JDK 11 and 18 pick up the value for JDK_JAVA_OPTIONS twice. In some cases this is harmless but if you specify options that are not permitted to be provided multiple times (such as for debugging) the process fails to start.

Please provide steps to reproduce where possible

One liner to test this:
docker run -e JDK_JAVA_OPTIONS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005" -it --rm eclipse-temurin:18-jre-alpine java -version

Expected Results

Expected the JVM to start normally.

Actual Results

NOTE: Picked up JDK_JAVA_OPTIONS: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005
NOTE: Picked up JDK_JAVA_OPTIONS: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005
ERROR: Cannot load this JVM TI agent twice, check your java command line for duplicate jdwp options.
Error occurred during initialization of VM
agent library failed to init: jdwp

What Java Version are you using?

openjdk version "18.0.1" 2022-04-19 OpenJDK Runtime Environment Temurin-18.0.1+10 (build 18.0.1+10) OpenJDK 64-Bit Server VM Temurin-18.0.1+10 (build 18.0.1+10, mixed mode, sharing). Also appears with JDK 11.

What is your operating system and platform?

No response

How did you install Java?

No response

Did it work before?

No response

Did you test with other Java versions?

No response

Relevant log output

No response

@twbecker twbecker added the bug Something isn't working label Jul 18, 2022
@twbecker
Copy link
Author

Likely related #303

@karianna karianna added the help wanted Extra attention is needed label Jul 18, 2022
@github-actions
Copy link

We are marking this issue as stale because it has not been updated for a while. This is just a way to keep the support issues queue manageable.
It will be closed soon unless the stale label is removed by a committer, or a new comment is made.

@github-actions github-actions bot added the stale label Oct 17, 2022
@twbecker
Copy link
Author

Still an issue...

@karianna karianna removed the stale label Oct 17, 2022
@github-actions
Copy link

We are marking this issue as stale because it has not been updated for a while. This is just a way to keep the support issues queue manageable.
It will be closed soon unless the stale label is removed by a committer, or a new comment is made.

@github-actions
Copy link

We are marking this issue as stale because it has not been updated for a while. This is just a way to keep the support issues queue manageable.
It will be closed soon unless the stale label is removed by a committer, or a new comment is made.

@github-actions github-actions bot added the stale label Apr 17, 2023
@karianna karianna added keep This label can be applied to prevent the Stale bot from closing it after a period of inactivity and removed stale labels Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alpine-linux bug Something isn't working help wanted Extra attention is needed keep This label can be applied to prevent the Stale bot from closing it after a period of inactivity
Projects
None yet
Development

No branches or pull requests

2 participants