-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
P4
-
Affects Version/s: 21, 25
-
Component/s: hotspot
-
generic
-
generic
ADDITIONAL SYSTEM INFORMATION :
Generic / MacOS / Java 21
A DESCRIPTION OF THE PROBLEM :
CoreUtils.java , At line 168 in `getCoreFileLocation`, the code calls `line.split("\s", 2)`. The string literal `"\s"` contains a backspace character (`\u0008`), not a whitespace regex pattern. `String.split(String regex)` expects a regex pattern. As a result, the current code does not split on whitespace characters. The current code splits on backspace only. When no backspace is present, the split returns an array with one element containing the entire line.
REGRESSION : Last worked in version 21.0.9-oracle
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
N/A - Code path analysis only.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The code is expected to split the line on whitespace characters to extract the first field from `/proc/sys/kernel/core_pattern`.
ACTUAL -
The code splits on backspace characters only. When no backspace is present, the split operation returns the entire line as the first element.
Generic / MacOS / Java 21
A DESCRIPTION OF THE PROBLEM :
CoreUtils.java , At line 168 in `getCoreFileLocation`, the code calls `line.split("\s", 2)`. The string literal `"\s"` contains a backspace character (`\u0008`), not a whitespace regex pattern. `String.split(String regex)` expects a regex pattern. As a result, the current code does not split on whitespace characters. The current code splits on backspace only. When no backspace is present, the split returns an array with one element containing the entire line.
REGRESSION : Last worked in version 21.0.9-oracle
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
N/A - Code path analysis only.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The code is expected to split the line on whitespace characters to extract the first field from `/proc/sys/kernel/core_pattern`.
ACTUAL -
The code splits on backspace characters only. When no backspace is present, the split operation returns the entire line as the first element.
- caused by
-
JDK-8260296 SA's dumpreplaydata fails
-
- Resolved
-
- relates to
-
JDK-8375477 CoreUtils support for SA tests should attempt to locate and unzip core files when they have been zipped
-
- New
-
- links to
-
Review(master)
openjdk/jdk/28984