JDK-8130650 : com/sun/net/httpserver/Test6a.jia failed java.io.IOException: Error writing request body to server
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 9
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: generic
  • Submitted: 2015-07-07
  • Updated: 2016-05-20
  • Resolved: 2016-05-20
Related Reports
Duplicate :  
Description
It is an intermittent failure. I reproduced once on Oracle Linux 5.6 32 bit with 5 times reruns. But tried tens of times. no one reproduced on another Oracle Linux 6.4 environment.

Test output:
----------messages:(3/107)----------
command: main Test6a
reason: User specified action: run main/othervm Test6a 
elapsed time (seconds): 1.365
----------System.out:(1/9)----------
Test6a: 
----------System.err:(17/1096)----------
java.io.IOException: Error writing request body to server
	at sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.checkError(HttpURLConnection.java:3487)
	at sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.write(HttpURLConnection.java:3470)
	at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:81)
	at java.io.BufferedOutputStream.write(BufferedOutputStream.java:95)
	at Test6a.main(Test6a.java:68)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:502)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
	at java.lang.Thread.run(Thread.java:745)

Comments
This may be caused by JDK-8130341
20-07-2015

RULE com/sun/net/httpserver/Test6a.java Exception java.io.IOException: Error writing request body to server RULE com/sun/net/httpserver/Test6a.java Crash SIGSEGV RULE com/sun/net/httpserver/Test6a.java ExitCode 134
13-07-2015

Raise to P2, because, with latest nightly build, it has been crashed for times with a fatal error. Please suggest if this is the same issue. ----------messages:(3/107)---------- command: main Test6a reason: User specified action: run main/othervm Test6a elapsed time (seconds): 2.193 ----------System.out:(19/942)---------- Test6a: # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0xaf0c3112, pid=17820, tid=0x84aaeb90 # # JRE version: Java(TM) SE Runtime Environment (9.0-b73) (build 1.9.0-ea-langtools-nightly-h2978-20150709-b73) # Java VM: Java HotSpot(TM) Server VM (1.9.0-ea-langtools-nightly-h2978-20150709-b73 mixed mode linux-x86 ) # Problematic frame: # J 924 C2 com.sun.crypto.provider.GaloisCounterMode.decryptFinal([BII[BI)I (256 bytes) @ 0xaf0c3112 [0xaf0c2300+0xe12] # # 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: # /Users/aurora/sandbox/gresults/testoutput/jdk_net/JTwork/scratch/hs_err_pid17820.log [thread -2061833328 also had an error] # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp # ----------System.err:(2/56)---------- Phoning home... Using server: 10.161.186.18, port 4711 I attache the hs_err log. Please see the following snippet. It looks related with changes on ghash area. Stack: [0x84977000,0x849c8000], sp=0x849c6590, free space=317k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) J 937 C2 com.sun.crypto.provider.GaloisCounterMode.decryptFinal([BII[BI)I (256 bytes) @ 0xaf1d5192 [0xaf1d4380+0xe12] J 822 C1 com.sun.crypto.provider.CipherCore.finalNoPadding([BI[BII)I (189 bytes) @ 0xa7d93118 [0xa7d92e40+0x2d8] J 821 C1 com.sun.crypto.provider.CipherCore.doFinal([BII[BI)I (660 bytes) @ 0xa7d8b8cc [0xa7d8aea0+0xa2c] J 834 C1 com.sun.crypto.provider.AESCipher.engineDoFinal([BII[BI)I (15 bytes) @ 0xa7d9a620 [0xa7d9a520+0x100] J 918 C1 javax.crypto.CipherSpi.bufferCrypt(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;Z)I (617 bytes) @ 0xa7dc0894 [0xa7dbe840+0x2054] J 916 C1 javax.crypto.Cipher.doFinal(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I (66 bytes) @ 0xa7dbd9c0 [0xa7dbd6c0+0x300] J 909 C1 sun.security.ssl.CipherBox.decrypt(Ljava/nio/ByteBuffer;I)I (339 bytes) @ 0xa7dcbfd0 [0xa7dcbf20+0xb0] J 883 C1 sun.security.ssl.InputRecord.decrypt(Lsun/security/ssl/Authenticator;Lsun/security/ssl/CipherBox;BLjava/nio/ByteBuffer;[B)Ljava/nio/ByteBuffer; (251 bytes) @ 0xa7db58e8 [0xa7db57a0+0x148] J 907 C1 sun.security.ssl.SSLEngineInputRecord.decodeInputRecord(Ljava/nio/ByteBuffer;)Lsun/security/ssl/Plaintext; (621 bytes) @ 0xa7db3038 [0xa7db2ec0+0x178] J 906 C1 sun.security.ssl.SSLEngineInputRecord.decode(Ljava/nio/ByteBuffer;)Lsun/security/ssl/Plaintext; (96 bytes) @ 0xa7dc9b74 [0xa7dc9ac0+0xb4] J 891 C1 sun.security.ssl.SSLEngineImpl.readRecord(Ljava/nio/ByteBuffer;[Ljava/nio/ByteBuffer;II)Lsun/security/ssl/Plaintext; (208 bytes) @ 0xa7dc7b7c [0xa7dc7a00+0x17c] J 954 C1 sun.security.ssl.SSLEngineImpl.readNetRecord(Ljava/nio/ByteBuffer;[Ljava/nio/ByteBuffer;II)Ljavax/net/ssl/SSLEngineResult; (759 bytes) @ 0xa7de6e80 [0xa7de5de0+0x10a0] J 887 C1 sun.security.ssl.SSLEngineImpl.unwrap(Ljava/nio/ByteBuffer;[Ljava/nio/ByteBuffer;II)Ljavax/net/ssl/SSLEngineResult; (69 bytes) @ 0xa7dc6888 [0xa7dc6720+0x168] J 885 C1 sun.net.httpserver.SSLStreams$EngineWrapper.recvAndUnwrap(Ljava/nio/ByteBuffer;)Lsun/net/httpserver/SSLStreams$WrapperResult; (333 bytes) @ 0xa7dc5000 [0xa7dc4c20+0x3e0] J 934 C2 sun.net.httpserver.SSLStreams$InputStream.read()I (28 bytes) @ 0xaf1d3230 [0xaf1d30a0+0x190] J 832 C2 sun.net.httpserver.LeftOverInputStream.read()I (50 bytes) @ 0xaf1cd840 [0xaf1cd340+0x500] J 929% C1 Test6a$Handler.handle(Lcom/sun/net/httpserver/HttpExchange;)V (83 bytes) @ 0xa7ddb454 [0xa7ddb120+0x334] j com.sun.net.httpserver.Filter$Chain.doFilter(Lcom/sun/net/httpserver/HttpExchange;)V+17 j sun.net.httpserver.AuthFilter.doFilter(Lcom/sun/net/httpserver/HttpExchange;Lcom/sun/net/httpserver/Filter$Chain;)V+121 j com.sun.net.httpserver.Filter$Chain.doFilter(Lcom/sun/net/httpserver/HttpExchange;)V+41 j sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(Lcom/sun/net/httpserver/HttpExchange;)V+5 j com.sun.net.httpserver.Filter$Chain.doFilter(Lcom/sun/net/httpserver/HttpExchange;)V+17 j sun.net.httpserver.ServerImpl$Exchange.run()V+884 j java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V+95 j java.util.concurrent.ThreadPoolExecutor$Worker.run()V+5 j java.lang.Thread.run()V+11 v ~StubRoutines::call_stub V [libjvm.so+0x569724] JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*)+0xce4 V [libjvm.so+0x7b47c4] os::os_exception_wrapper(void (*)(JavaValue*, methodHandle*, JavaCallArguments*, Thread*), JavaValue*, methodHandle*, JavaCallArguments*, Thread*)+0x24 V [libjvm.so+0x5673dc] JavaCalls::call_virtual(JavaValue*, KlassHandle, Symbol*, Symbol*, JavaCallArguments*, Thread*)+0x21c V [libjvm.so+0x56788c] JavaCalls::call_virtual(JavaValue*, Handle, KlassHandle, Symbol*, Symbol*, Thread*)+0x5c V [libjvm.so+0x5d60c4] thread_entry(JavaThread*, Thread*)+0xa4 V [libjvm.so+0x8fe473] JavaThread::thread_main_inner()+0xf3 V [libjvm.so+0x8fe629] JavaThread::run()+0x179 V [libjvm.so+0x7adaf8] java_start(Thread*)+0xd8 C [libpthread.so.0+0x5832] C [libc.so.6+0xd20ae] clone+0x5e
13-07-2015