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

No longer works with Java, causes one of the CPUs to lock up #62

Open
Xavion opened this issue Sep 27, 2017 · 4 comments
Open

No longer works with Java, causes one of the CPUs to lock up #62

Xavion opened this issue Sep 27, 2017 · 4 comments

Comments

@Xavion
Copy link

Xavion commented Sep 27, 2017

I've had to disable 'stderred' because it was causing even the simplest Java commands to freeze. A full description of the problem - including a thread dump - is available in this forum thread.

@eigengrau
Copy link

eigengrau commented Sep 28, 2017

FWIW I cannot reproduce this on 399e3b1 with OpenJDK 8.

@Xavion
Copy link
Author

Xavion commented Sep 28, 2017

What about after a reboot? If I re-add "/usr/lib/libstderred.so" to 'LD_PRELOAD', "java -version" works as expected. However, if I do so via a shell config file and restart the computer, the problem returns (and never goes away).

This was working fine until a few weeks ago. Perhaps 'stderred' is conflicting with an updated library on my bleeding-edge (Arch Linux) system. I've tried it with OpenJDK v8, JDK v8, and JDK v9. The problem occurs in all three cases.

@eigengrau
Copy link

I wonder if it’s wise to enable stderred for everything via .profile & co. Maybe a dev can chime in on that. In the thread you indicated you are seeing the process lock up and thrash the CPU, so I wonder whether maybe there’s some infinite loop going on there. Maybe it would be worthwhile to run java --version via strace (unfortunately, ltrace doesn’t seem to work with Java).

@Xavion
Copy link
Author

Xavion commented Sep 28, 2017

That sounds like a good idea. As such, I have generated three 'strace' outputs: one without 'stderred', one with 'stderred' working, and one with 'stderred' broken. Let me know if any other testing is required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants