-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
The test below crashes Java 11 runtime, when the line that adds the DNSSEC extension is removed then the test runs fine.
with this line the java vm crashes, without it runs fine.
extensions.put(ExtensionName.DNSSEC_RETURN_STATUS, GetDNSConstants.GETDNS_EXTENSION_TRUE);
@Test
public void testdnssecTemp() {
String queryString = "getdnsapi.net";
String type = "A";
final IGetDNSContextSync context = GetDNSFactory.createSync(1, null);
HashMap<ExtensionName, Object> extensions = new HashMap<ExtensionName, Object>();
extensions.put(ExtensionName.DNSSEC_RETURN_STATUS, GetDNSConstants.GETDNS_EXTENSION_TRUE);
HashMap<String, Object> info =
context.generalSync(queryString, RRType.valueOf(type), extensions);
if (info != null) {
System.out.println(info);
} else {
System.out.println("No response form DNS SERVER");
}
context.close();
}
test output :
A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000000130dbab65, pid=47609, tid=9219
#
# JRE version: Java(TM) SE Runtime Environment (11.0.2+9) (build 11.0.2+9-LTS)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (11.0.2+9-LTS, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64)
# Problematic frame:
# C [libgetdns.10.dylib+0x1db65] my_event_del+0x1e
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# ./hs_err_pid47609.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
Metadata
Metadata
Assignees
Labels
No labels