admin@ip-172-16-0-229:~$ cat Test.java import java.net.*; public class Test { public static void main(String[] args) { for (int i = 0; i < 500; i++) { new Thread(() -> { try { var url = new URL("http://jgssbug.twosigma.com/krb"); var huc = url.openConnection(); var response = huc.getInputStream().readAllBytes(); //System.out.println(java.util.Arrays.toString(response)); } catch (Exception e) { e.printStackTrace(); } }).start(); } } } admin@ip-172-16-0-229:~$ java -Dsun.security.jgss.native=true Test.java java.lang.NullPointerException: Cannot read field "pName" because "this.targetName" is null at java.security.jgss/sun.security.jgss.wrapper.NativeGSSContext.initSecContext(NativeGSSContext.java:287) at java.security.jgss/sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:266) at java.security.jgss/sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:196) at java.security.jgss/sun.net.www.protocol.http.spnego.NegotiatorImpl.nextToken(NegotiatorImpl.java:162) at java.base/sun.net.www.protocol.http.NegotiateAuthentication.nextToken(NegotiateAuthentication.java:245) at java.base/sun.net.www.protocol.http.NegotiateAuthentication.setHeaders(NegotiateAuthentication.java:202) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1851) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589) at Test.lambda$main$0(Test.java:10) at java.base/java.lang.Thread.run(Thread.java:833) java.io.IOException: Authentication failure at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1853) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589) at Test.lambda$main$0(Test.java:10) at java.base/java.lang.Thread.run(Thread.java:833) double free or corruption (out) Aborted admin@ip-172-16-0-229:~$ java -Dsun.security.jgss.native=true Test.java # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007fb739065220, pid=4463, tid=4477 # # JRE version: OpenJDK Runtime Environment (17.0.8+7) (build 17.0.8+7-Debian-1deb12u1) # Java VM: OpenJDK 64-Bit Server VM (17.0.8+7-Debian-1deb12u1, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, serial gc, linux-amd64) # Problematic frame: # C [libkrb5.so.3+0x3f220] krb5_free_authdata+0x20 # # 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: # /home/admin/hs_err_pid4463.log # # If you would like to submit a bug report, please visit: # https://bugs.debian.org/openjdk-17 # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # Aborted admin@ip-172-16-0-229:~$ java -Dsun.security.jgss.native=true Test.java # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007f4d2fc76dd6, pid=4593, tid=4691 # # JRE version: OpenJDK Runtime Environment (17.0.8+7) (build 17.0.8+7-Debian-1deb12u1) # Java VM: OpenJDK 64-Bit Server VM (17.0.8+7-Debian-1deb12u1, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, serial gc, linux-amd64) # Problematic frame: # C [libkrb5.so.3+0x50dd6][thread 4729 also had an error] krb5_free_address+0x6 # # 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: # /home/admin/hs_err_pid4593.log # # If you would like to submit a bug report, please visit: # https://bugs.debian.org/openjdk-17 # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # Aborted admin@ip-172-16-0-229:~$ java -Dsun.security.jgss.native=true Test.java java.lang.NullPointerException: Cannot invoke "sun.net.www.protocol.http.Negotiator.nextToken(byte[])" because "this.negotiator" is null at java.base/sun.net.www.protocol.http.NegotiateAuthentication.nextToken(NegotiateAuthentication.java:245) at java.base/sun.net.www.protocol.http.NegotiateAuthentication.setHeaders(NegotiateAuthentication.java:202) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1851) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589) at Test.lambda$main$0(Test.java:10) at java.base/java.lang.Thread.run(Thread.java:833) java.lang.NullPointerException: Cannot invoke "sun.net.www.protocol.http.Negotiator.nextToken(byte[])" because "this.negotiator" is null at java.base/sun.net.www.protocol.http.NegotiateAuthentication.nextToken(NegotiateAuthentication.java:245) at java.base/sun.net.www.protocol.http.NegotiateAuthentication.setHeaders(NegotiateAuthentication.java:202) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1851) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589) at Test.lambda$main$0(Test.java:10) at java.base/java.lang.Thread.run(Thread.java:833) java.lang.NullPointerException: Cannot invoke "sun.net.www.protocol.http.Negotiator.nextToken(byte[])" because "this.negotiator" is null at java.base/sun.net.www.protocol.http.NegotiateAuthentication.nextToken(NegotiateAuthentication.java:245) at java.base/sun.net.www.protocol.http.NegotiateAuthentication.setHeaders(NegotiateAuthentication.java:202) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1851) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589) at Test.lambda$main$0(Test.java:10) at java.base/java.lang.Thread.run(Thread.java:833) double free or corruption (fasttop) Aborted