You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2015/05/14 13:52:33 UTC

[Bug 57521] Tomcat randomly crashes with [libtcnative-1.so.0.1.30+0xe965] Java_org_apache_tomcat_jni_Socket_sendbb+0x75.

https://bz.apache.org/bugzilla/show_bug.cgi?id=57521

--- Comment #9 from timofeevda@gmail.com ---
We have the same issue but with newer Tomcat and Native library. JVM randomly
crashes with the following dump. Unfortunately it's hard for us to track this
issue down in our environment. So, it's just a comment that the issue is
reproducible with the newer versions.

Tomcat 7.0.59
Websockets and HTTP streaming over Atmopshere Framework
Tomcat Native library 1.1.32
APR version 1.3.9
Java version 1.7.0_21
OS version Red Hat Enterprise Linux 6.6 (64bit)

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f2376b61b8b, pid=14828, tid=139778958763776
#
# JRE version: 7.0_21-b11
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode linux-amd64
compressed oops)
# Problematic frame:
# C  [libtcnative-1.so+0x13b8b]  Java_org_apache_tomcat_jni_Socket_send+0x7b
#
# Failed to write core dump. Core dumps have been disabled. To enable core
dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  T H R E A D  ---------------

Current thread (0x00007f1fd8020000):  JavaThread "Atmosphere-Shared-AsyncOp-13"
daemon [_thread_in_native, id=31127,
stack(0x00007f20d31f2000,0x00007f20d32f3000)]

siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR),
si_addr=0x0000000000000040

Registers:
RAX=0x0000000000000000, RBX=0x00007f20a82a0c28, RCX=0x0000000000000081,
RDX=0x00007f20d32ef188
RSP=0x00007f20d32ef160, RBP=0x00007f1fd80201d8, RSI=0x00007f20d32ef190,
RDI=0x0000000000000000
R8 =0x00007f20d32ef190, R9 =0x0000000000000001, R10=0x00007f239d9c7cfb,
R11=0x0000000000000001
R12=0x00007f20d32ef190, R13=0x000000000000004c, R14=0x00007f20d32f11f0,
R15=0x00007f1fd8020000
RIP=0x00007f2376b61b8b, EFLAGS=0x0000000000010246, CSGSFS=0x0000000000000033,
ERR=0x0000000000000004
  TRAPNO=0x000000000000000e

Top of Stack: (sp=0x00007f20d32ef160)
0x00007f20d32ef160:   2c4e4f4954415249 69646e6f00000000
0x00007f20d32ef170:   4952503d00000000 00007f2000000000
0x00007f20d32ef180:   6f6d612c44455341 0000000000000001
0x00007f20d32ef190:   707974227b7c3681 56524553223a2265
0x00007f20d32ef1a0:   224f464e00000000 3a2279646f62222c
0x00007f20d32ef1b0:   726576726573227b 34313a22656d6954
0x00007f20d32ef1c0:   3936393736343133 2274222c7d333235
0x00007f20d32ef1d0:   373634313334313a 7b7d363630313739
0x00007f20d32ef1e0:   3a22644974656222 3438303733313532
0x00007f20d32ef1f0:   74756f797562222c 363a2265756c6156
0x00007f20d32ef200:   343730333339392e 313a2274222c5d7d
0x00007f20d32ef210:   3739373634313334 2e393a7d34363830
0x00007f20d32ef220:   746562222c323634 323135323a226449
0x00007f20d32ef230:   222c5d7d38373936 34313334313a2274
0x00007f20d32ef240:   3436383037393736 3a226449747d7d7d
0x00007f20d32ef250:   3238363734313532 313a2274222c5d7d
0x00007f20d32ef260:   3639373634313334 3a22647d39393637
0x00007f20d32ef270:   3630343535313532 313a2274222c5d7d
0x00007f20d32ef280:   3639373634313334 7d33327d35363337
0x00007f20d32ef290:   6552746e656d6574 7672655300000000
0x00007f20d32ef2a0:   737365733f74656c 317b3d64496e6f69
0x00007f20d32ef2b0:   6e756f636361267d 267d327b3d644974
0x00007f20d32ef2c0:   7b3d646f69726570 6c61636f6c267d33
0x00007f20d32ef2d0:   222c227d347b3d65 22746e756f636361
0x00007f20d32ef2e0:   756f636361227b3a 3a2265646f43746e
0x00007f20d32ef2f0:   305f615f73617122 62222c2230333932
0x00007f20d32ef300:   6572727543657361 4247223a2279636e
0x00007f20d32ef310:   6f636361222c2250 2265707954746e75
0x00007f20d32ef320:   544e45494c43223a 756f636361222c22
0x00007f20d32ef330:   697461657243746e 3a22656d69546e6f
0x00007f20d32ef340:   3537393334393331 62222c3432313435
0x00007f20d32ef350:   6572727543657361 696365725079636e 

Instructions: (pc=0x00007f2376b61b8b)
0x00007f2376b61b6b:   30 48 89 ef 44 89 c9 4d 89 e0 ff 90 40 06 00 00
0x00007f2376b61b7b:   48 8b 43 30 48 8d 54 24 28 48 8b 7b 18 4c 89 e6
0x00007f2376b61b8b:   ff 50 40 85 c0 0f 84 8a 00 00 00 83 f8 0b 0f 94
0x00007f2376b61b9b:   c2 3d c2 d4 01 00 75 65 48 8b 4c 24 28 48 85 c9 

Register to memory mapping:

RAX=0x0000000000000000 is an unknown value
RBX=0x00007f20a82a0c28 is an unknown value
RCX=0x0000000000000081 is an unknown value
RDX=0x00007f20d32ef188 is pointing into the stack for thread:
0x00007f1fd8020000
RSP=0x00007f20d32ef160 is pointing into the stack for thread:
0x00007f1fd8020000
RBP=0x00007f1fd80201d8 is an unknown value
RSI=0x00007f20d32ef190 is pointing into the stack for thread:
0x00007f1fd8020000
RDI=0x0000000000000000 is an unknown value
R8 =0x00007f20d32ef190 is pointing into the stack for thread:
0x00007f1fd8020000
R9 =0x0000000000000001 is an unknown value
R10=0x00007f239d9c7b10 [CodeBlob (0x00007f239d9c7b10)]
Framesize: 10
R11=0x0000000000000001 is an unknown value
R12=0x00007f20d32ef190 is pointing into the stack for thread:
0x00007f1fd8020000
R13=0x000000000000004c is an unknown value
R14=0x00007f20d32f11f0 is pointing into the stack for thread:
0x00007f1fd8020000
R15=0x00007f1fd8020000 is a thread


Stack: [0x00007f20d31f2000,0x00007f20d32f3000],  sp=0x00007f20d32ef160,  free
space=1012k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libtcnative-1.so+0x13b8b]  Java_org_apache_tomcat_jni_Socket_send+0x7b

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J  org.apache.tomcat.jni.Socket.$$YJP$$send(J[BII)I
J 
org.apache.catalina.websocket.WsOutbound.doWriteBytes(Ljava/nio/ByteBuffer;Z)V
J 
org.atmosphere.container.version.TomcatWebSocket.write(Ljava/lang/String;)Lorg/atmosphere/websocket/WebSocket;
J 
org.atmosphere.websocket.WebSocket.write(Lorg/atmosphere/cpr/AtmosphereResponse;[BII)Lorg/atmosphere/websocket/WebSocket;
J 
org.atmosphere.websocket.WebSocket.write(Lorg/atmosphere/cpr/AtmosphereResponse;[B)Lorg/atmosphere/websocket/WebSocket;
J  org.atmosphere.cpr.AtmosphereResponse$2.write([B)V
J 
****.MessageSerializerInterceptor$1.write(Ljava/io/OutputStream;Ljava/lang/Object;)V
J 
org.atmosphere.handler.AbstractReflectorAtmosphereHandler.onStateChange(Lorg/atmosphere/cpr/AtmosphereResourceEvent;)V
J 
org.atmosphere.config.managed.ManagedAtmosphereHandler.onStateChange(Lorg/atmosphere/cpr/AtmosphereResourceEvent;)V
J 
org.atmosphere.cpr.DefaultBroadcaster$WriteOperation.call()Ljava/lang/Object;
J 
org.atmosphere.cpr.DefaultBroadcaster.prepareInvokeOnStateChange(Lorg/atmosphere/cpr/AtmosphereResource;Lorg/atmosphere/cpr/AtmosphereResourceEvent;)V
J 
org.atmosphere.cpr.DefaultBroadcaster.executeAsyncWrite(Lorg/atmosphere/cpr/DefaultBroadcaster$AsyncWriteToken;)V
J  org.atmosphere.cpr.DefaultBroadcaster$3.run()V
J  java.util.concurrent.FutureTask.run()V
J 
java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V
j  java.util.concurrent.ThreadPoolExecutor$Worker.run()V+14
j  java.lang.Thread.run()V+20
v  ~StubRoutines::call_stub

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org