No longer works with Java, causes one of the CPUs to lock up
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.
FWIW I cannot reproduce this on 399e3b1 with OpenJDK 8.
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.
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).
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.