Skip to content

Commit 0825bc5

Browse files
committed
8261929: ClhsdbFindPC fails with java.lang.RuntimeException: 'In java stack' missing from stdout/stderr
Reviewed-by: amenkov, stuefe, sspitsyn
1 parent c2509ea commit 0825bc5

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

test/hotspot/jtreg/serviceability/sa/ClhsdbFindPC.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,15 @@ private static void testFindPC(boolean withXcomp, boolean withCore) throws Excep
203203
parts = parts[1].split(" \\[");
204204
parts = parts[1].split("\\]");
205205
String stackAddress = parts[0]; // address of the thread's stack
206-
cmdStr = "findpc " + stackAddress;
207-
cmds = List.of(cmdStr);
208-
expStrMap = new HashMap<>();
209-
expStrMap.put(cmdStr, List.of("In java stack"));
210-
runTest(withCore, cmds, expStrMap);
206+
if (Long.decode(stackAddress) == 0L) {
207+
System.out.println("Stack address is " + stackAddress + ". Skipping test.");
208+
} else {
209+
cmdStr = "findpc " + stackAddress;
210+
cmds = List.of(cmdStr);
211+
expStrMap = new HashMap<>();
212+
expStrMap.put(cmdStr, List.of("In java stack"));
213+
runTest(withCore, cmds, expStrMap);
214+
}
211215

212216
// Run 'examine <addr>' using a thread's tid as the address. The
213217
// examine output will be the of the form:

0 commit comments

Comments
 (0)