Red Hat Bugzilla – Bug 123656
NX bit interferes with Java JRE 1.4.2
Last modified: 2013-08-05 21:07:00 EDT
Description of problem:
Sun Java JRE 1.4.2 crashes during execution if the noexecute option
is enabled in RHEL3 U2 for AMD64. The application does not crash if
the 'noexec=off' command line parameter is passed to the kernel.
Version-Release number of selected component (if applicable):
Sun J2SE JRE 1.4.2
Steps to Reproduce:
1. Install RHEL3 U2 for AMD64 on an Opteron system.
2. Install 32-bit Java JRE 1.4.2 on the same system.
3. run `/usr/java/j2re1.4.2_04/bin/java -version` and observe
unsightly crash message.
4. Reboot system and pass `noexec=off` as a kernel boot paramater.
5. Rerun `/usr/java/j2re1.4.2_04/bin/java -version` and observe
"Java version 1.4.2_04"
huge ugly crash message
Java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
The support for NX bit has been added to Sun JDK 1.4.2_05
and 1.5-beta2. Both are in testing right now and will be
released to the public very soon. As Mark mentioned, boot
with 'noexec=off' will work around the problem.
If the change was made by mistake please fix it as soon as
possible; if it was made for security reasons, it should
be well documented in the release notes.
Is there an update you can provide on how testing has proceeded? Has
the version of the JDK with this fix now publicly available?
This is indeed fixed as of 2.4.21-19.EL Be aware, though, that there
is another outstanding Java issue: Bug 128735.
An errata has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.
We've noted the same problem but the bug appears to be fixed only with
UP, so re-opening.
With SMP, it's still there (or at least one with similar symptoms) in
Either using UP or passing noexec=off fixes the problem for that kernel.
The only related/similar PR I could find was #137138.
(note: 128735 above is non-public report.)
Hello, Pekka. The problem originally reported in this bug was fixed
in U3. A variant of the problem, which I believe you've encountered,
has been fixed in U4 (related bugs are 137138, 137464, 142749).
I'm reclosing this bug. Please feel free to test out the beta version
of U4 here:
U4 is scheduled for release on Monday (12/20). I've made bug 128735 public,
and I expect that one to be resolved with U4 as well.
*** Bug 139930 has been marked as a duplicate of this bug. ***