NeuronRobotics / nrjavaserial

A Java Serial Port system. This is a fork of the RXTX project that uses in jar loading of the native code.
Other
344 stars 142 forks source link

A fatal error has been detected by the Java Runtime Environment: # SIGSEGV (0xb) at pc=0x00000000000039fe #220

Open PrasadReddy75 opened 2 years ago

PrasadReddy75 commented 2 years ago

We have a debian package called thirdparty and while de packaging this debian, intermittently, the server is crashing. We are using java 8.

Following is the Problematic frame C 0x00000000000039fe And complete error dump is here hs_err_pid1553.log

It appears the problematic is with RXTXPort calls ? And I'm not sure how to resolve it. Any help would be greatly appreciated.

{code} 0x00000000000039de:
[error occurred during error reporting (printing registers, top of stack, instructions near pc), id 0xb]

Register to memory mapping:

RAX=0x0000000000000000 is an unknown value RBX=0x00007fc3bc5b0898 is pointing into the stack for thread: 0x00007fc3d0ef5000 RCX=0x00007fc3d7f4030d: nanosleep+0x2d in /lib/x86_64-linux-gnu/libc.so.6 at 0x00007fc3d7e74000 RDX=0x0000000000000000 is an unknown value RSP=0x00007fc3bc5b07a8 is pointing into the stack for thread: 0x00007fc3d0ef5000 RBP=0x00007fc3bc5b0918 is pointing into the stack for thread: 0x00007fc3d0ef5000 RSI=0x0000000000000000 is an unknown value RDI=0x00007fc3bc5b07c0 is pointing into the stack for thread: 0x00007fc3d0ef5000 R8 =0x0000000000000005 is an unknown value R9 =0x0000000000000006 is an unknown value R10=0x0000000000000006 is an unknown value R11=0x0000000000000000 is an unknown value R12=0x00007fc3bc5b07c0 is pointing into the stack for thread: 0x00007fc3d0ef5000 R13={method} {0x00007fc366af3d90} 'eventLoop' '()V' in 'gnu/io/RXTXPort' R14=0x00007fc3bc5b0a10 is pointing into the stack for thread: 0x00007fc3d0ef5000 R15=0x00007fc3d0ef5000 is a thread

Stack: [0x00007fc3bc4b1000,0x00007fc3bc5b2000], sp=0x00007fc3bc5b07a8, free space=1021k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C 0x00000000000039fe C 0x00000000000003e3

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j gnu.io.RXTXPort.eventLoop()V+0 j gnu.io.RXTXPort$MonitorThread.run()V+12 v ~StubRoutines::call_stub {code}

Thanks, Prasad

erikhh commented 2 years ago

I'm having fatal errors too on OpenJDK Runtime Environment Zulu17.32+13-CA (17.0.2+8) (build 17.0.2+8-LTS)