Details
-
Bug
-
Resolution: Fixed
-
P4
-
11, 12, 13
-
b14
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8262947 | 11.0.12-oracle | Dukebot | P4 | Resolved | Fixed | b01 |
JDK-8231834 | 11.0.6 | Markus Grönlund | P4 | Resolved | Fixed | b01 |
JDK-8257484 | openjdk8u282 | Ekaterina Vergizova | P4 | Resolved | Fixed | b04 |
Description
Emergency dump does not work when disk=false is set to -XX:StartFlightRecodging.
I investigated this with strace on Linux x64. HotSpot attempted to open emergency flight record file, but open syscall returned ENOENT as below:
-------------
[pid 4929] openat(AT_FDCWD, "/home/ysuenaga/github/garakuta/NativeSEGV/hs_err_pid4928.jfr", O_RDWR|O_CLOEXEC) = -1 ENOENT (No such file or directory)
-------------
We need to pass `O_CREAT | O_WRONLY` to `os::open()`.
(disk=true (default) works fine)
How to reproduce:
1. Build testcase
https://github.com/YaSuenag/garakuta/tree/master/NativeSEGV
$ export JAVA_HOME=<path>
$ make
2. Run testcase
$ $JAVA_HOME/bin/java -XX:StartFlightRecording=disk=false -Djava.library.path=. NativeSEGV
I investigated this with strace on Linux x64. HotSpot attempted to open emergency flight record file, but open syscall returned ENOENT as below:
-------------
[pid 4929] openat(AT_FDCWD, "/home/ysuenaga/github/garakuta/NativeSEGV/hs_err_pid4928.jfr", O_RDWR|O_CLOEXEC) = -1 ENOENT (No such file or directory)
-------------
We need to pass `O_CREAT | O_WRONLY` to `os::open()`.
(disk=true (default) works fine)
How to reproduce:
1. Build testcase
https://github.com/YaSuenag/garakuta/tree/master/NativeSEGV
$ export JAVA_HOME=<path>
$ make
2. Run testcase
$ $JAVA_HOME/bin/java -XX:StartFlightRecording=disk=false -Djava.library.path=. NativeSEGV
Attachments
Issue Links
- backported by
-
JDK-8231834 Emergency dump does not work when disk=false is set
- Resolved
-
JDK-8257484 Emergency dump does not work when disk=false is set
- Resolved
-
JDK-8262947 Emergency dump does not work when disk=false is set
- Resolved
- relates to
-
JDK-8261020 Wrong format parameter in create_emergency_chunk_path
- Resolved