-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
JRE writes "Duplicate cpuset controllers detected." to stdout in a FHSUserEnv #163164
Comments
Just to also say that I am experiencing this bug as well. This seems to be the relevant line, but I am definitely not good enough at cpp to diagnose this. Here is my reproducing flake.nix:
And flake.lock:
Although I expect that the problem is that I'm using the nix-chroot installation and hence this won't be easily reproducible. |
The open upstream bug about this is https://bugs.openjdk.java.net/browse/JDK-8272121 Apparently it was intentionally done as per https://bugs.openjdk.java.net/browse/JDK-8153723 Unfortunately it seems With With All this is easy to test with |
With this background I'm OK to close this issue: upstream is unlikely to change the behavior, I don't think we should deviate too much from upstream, and now we know what parameters to add downstream if we want to avoid this output. Feel free to reopen, but I personally no longer think a change in nixpkgs is desirable. |
@raboof The underlying problem I believe is the duplicate cpuset error, which I couldn't work out how to debug... Its annoying that java logs the error to stdout (borking anything that communicates over stdout), but that is fixable in most cases by adding the relevant flags (in others it becomes... inconvenient, see gradle and various language servers). |
Describe the bug
In a
nix-shell
sessions usingbuildFHSUserEnv
, any invocation ofjava
(evenjava -version
) will write an error tostdout
:(the first line goes to
stdout
, the rest tostderr
.This causes problems when the
stdout
is supposed to be interpreted by another tool in some pipeline.Steps To Reproduce
Use this
shell.nix
:Expected behavior
Warnings/errors should go to
stderr
Additional context
The 'real' bug is in OpenJDK, and it has been reported upstream as https://bugs.openjdk.java.net/browse/JDK-8270087 but closed as not reproducible. I'm pretty sure they didn't reproduce the warning at all (and consequently didn't see it get reported on
stdout
instead ofstderr
).Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.The text was updated successfully, but these errors were encountered: