Date: Wed, 12 Nov 2008 04:10:40 GMT From: Yui Sakazume <saka@michiga.com> To: freebsd-gnats-submit@FreeBSD.org Subject: java/128809: JVM aborted when GNU RXTX write to serial port. Message-ID: <200811120410.mAC4AeVm021125@www.freebsd.org> Resent-Message-ID: <200811120420.mAC4K3uZ038405@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 128809 >Category: java >Synopsis: JVM aborted when GNU RXTX write to serial port. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-java >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Nov 12 04:20:02 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Yui Sakazume >Release: 7.0-RELEASE >Organization: >Environment: FreeBSD oxygen2.michiga.com 7.0-RELEASE FreeBSD 7.0-RELEASE #1: Wed Jun 25 00:18:27 JST 2008 saka@oxygen.michiga.com:/usr/obj/usr/src/sys/OXYGEN i386 >Description: java died with SEGV when GNU RXTX write to serial port. command line output is as follows. The core file and hs_err file are generated. Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 # # An unexpected error has been detected by Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x28ecc335, pid=99763, tid=0x4d61a100 # # Java VM: Diablo Java HotSpot(TM) Server VM (10.0-b23 mixed mode bsd-x86) # Problematic frame: # C [librxtxSerial.so+0x4335] Java_gnu_io_RXTXPort_writeArray+0x145 # # An error report file with more information is saved as: # /usr/local/javaprssrvr/hs_err_pid99763.log # # Please submit bug reports to freebsd-java@FreeBSD.org # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # Experimental: JNI_OnLoad called. Abort trap (core dumped) hs_err_pid99763.log: # # An unexpected error has been detected by Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x28ecc335, pid=99763, tid=0x4d61a100 # # Java VM: Diablo Java HotSpot(TM) Server VM (10.0-b23 mixed mode bsd-x86) # Problematic frame: # C [librxtxSerial.so+0x4335] Java_gnu_io_RXTXPort_writeArray+0x145 # # Please submit bug reports to freebsd-java@FreeBSD.org # 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 (0x4d602800): JavaThread "KISS Write Thread" [_thread_in_native, id=1298243840, stack(0x7f12b000,0x7f17b000)] siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x00000144 Registers: EAX=0x00000000, EBX=0x28ed32c4, ECX=0x00000000, EDX=0x000187ca ESP=0x7f17aa60, EBP=0x7f17aa98, ESI=0x0000004d, EDI=0x0000004d EIP=0x28ecc335, EFLAGS=0x00010246 Top of Stack: (sp=0x7f17aa60) 0x7f17aa60: 4d6028f4 7f17aafc 4d715060 00000000 0x7f17aa70: 00000000 0000004d 28ed0cf0 009395c8 0x7f17aa80: 00000000 0000000c 4d715060 2c435f80 0x7f17aa90: 2c435f7c 4d602800 7f17aae0 2900a3aa 0x7f17aaa0: 4d6028f4 7f17ab00 7f17aafc 00000000 0x7f17aab0: 0000004d 00000000 0000004d 285f48e0 0x7f17aac0: 7f17aac0 00000000 7f17ab00 2c440598 0x7f17aad0: 00000000 2c435f80 00000000 7f17aaf0 Instructions: (pc=0x28ecc335) 0x28ecc325: 80 7d e7 00 75 c7 8b 4d e8 85 c9 75 26 8b 45 e8 0x28ecc335: c7 80 44 01 00 00 01 00 00 00 8d 83 d0 e3 ff ff Stack: [0x7f12b000,0x7f17b000], sp=0x7f17aa60, free space=318k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [librxtxSerial.so+0x4335] Java_gnu_io_RXTXPort_writeArray+0x145 v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::StubRoutines (1) V [libjvm.so+0x300f9c] V [libjvm.so+0x48cd29] V [libjvm.so+0x3000cf] V [libjvm.so+0x3001d5] V [libjvm.so+0x300a8a] V [libjvm.so+0x354ab6] V [libjvm.so+0x55e1f1] V [libjvm.so+0x55e2ab] V [libjvm.so+0x491f87] C [libthr.so.3+0x6b1f] pthread_getprio+0xcf Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::StubRoutines (1) --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x4e303000 JavaThread "192.168.10.3:54842->165.91.140.28:14580" [_thread_blocked, id=1311891712, stack(0x7e8f1000,0x7e941000)] 0x4de03000 JavaThread "192.168.10.3:54842<-165.91.140.28:14580" [_thread_in_native, id=1306632704, stack(0x7e942000,0x7e992000)] 0x28f21800 JavaThread "DestroyJavaVM" [_thread_blocked, id=673190400, stack(0x7f9af000,0x7f9ff000)] 0x4e671000 JavaThread "Utility Thread" daemon [_thread_blocked, id=687041024, stack(0x7e993000,0x7e9e3000)] 0x4e670800 JavaThread "Listening on 127.0.0.1:14508 TNC log port" [_thread_in_native, id=687040768, stack(0x7e9e4000,0x7ea34000)] 0x4e670000 JavaThread "Listening on 127.0.0.1:14507 connection log port" [_thread_in_native, id=687040512, stack(0x7ea35000,0x7ea85000)] 0x4e66f800 JavaThread "Listening on 127.0.0.1:14506 call log port" [_thread_in_native, id=687040256, stack(0x7ea86000,0x7ead6000)] 0x4e661800 JavaThread "Listening on 127.0.0.1:14505 looped packet log port" [_thread_in_native, id=687040000, stack(0x7ead7000,0x7eb27000)] 0x4e661000 JavaThread "Listening on 127.0.0.1:14504 dupe log port" [_thread_in_native, id=687039744, stack(0x7eb28000,0x7eb78000)] 0x4e660800 JavaThread "Listening on 127.0.0.1:14503 error log port" [_thread_in_native, id=687039488, stack(0x7eb79000,0x7ebc9000)] 0x4e660000 JavaThread "Listening on 127.0.0.1:14502 log port" [_thread_in_native, id=687039232, stack(0x7ebca000,0x7ec1a000)] 0x4e65f800 JavaThread "Listening on 14501 status port" [_thread_in_native, id=687038976, stack(0x7ec1b000,0x7ec6b000)] 0x4e65f000 JavaThread "Listening on 127.0.0.1:14500 console port" [_thread_in_native, id=687038720, stack(0x7ec6c000,0x7ecbc000)] 0x4e65e800 JavaThread "Listening on 14580u IGate port" [_thread_in_native, id=687038464, stack(0x7ecbd000,0x7ed0d000)] 0x4e65d800 JavaThread "UDPReader - 0.0.0.0/0.0.0.0:14580" [_thread_in_native, id=687038208, stack(0x7ed0e000,0x7ed5e000)] 0x4e65d000 JavaThread "UDPWriter - 14580" [_thread_blocked, id=687037952, stack(0x7ed5f000,0x7edaf000)] 0x4e65c800 JavaThread "Listening on 1314u msg-only port" [_thread_in_native, id=687037696, stack(0x7ee01000,0x7ee51000)] 0x4e65c000 JavaThread "UDPReader - 0.0.0.0/0.0.0.0:1314" [_thread_in_native, id=687037440, stack(0x7ee52000,0x7eea2000)] 0x4e65b800 JavaThread "UDPWriter - 1314" [_thread_blocked, id=687037184, stack(0x7eea3000,0x7eef3000)] 0x4e65b000 JavaThread "Listening on 10152u no-echo port" [_thread_in_native, id=687036928, stack(0x7eef4000,0x7ef44000)] 0x4e65a800 JavaThread "UDPReader - 0.0.0.0/0.0.0.0:10152" [_thread_in_native, id=687036672, stack(0x7ef45000,0x7ef95000)] 0x4db58000 JavaThread "UDPWriter - 10152" [_thread_blocked, id=687036416, stack(0x7ef96000,0x7efe6000)] 0x4db58800 JavaThread "Upstream Dispatcher" [_thread_blocked, id=687036160, stack(0x7efe7000,0x7f037000)] 0x4d802800 JavaThread "IGate Adjunct Send" [_thread_blocked, id=1300340992, stack(0x7f089000,0x7f0d9000)] 0x4db57800 JavaThread "IGate Adjunct Receive" [_thread_blocked, id=687035648, stack(0x7f0da000,0x7f12a000)] =>0x4d602800 JavaThread "KISS Write Thread" [_thread_in_native, id=1298243840, stack(0x7f12b000,0x7f17b000)] 0x4db57000 JavaThread "KISSInterface Read" [_thread_blocked, id=687035392, stack(0x7f17c000,0x7f1cc000)] 0x4db56800 JavaThread "Listening on 127.0.0.1:14509" [_thread_in_native, id=687035136, stack(0x7f1cd000,0x7f21d000)] 0x4db55800 JavaThread "Serial Input Thread" [_thread_in_native, id=687034880, stack(0x7f21e000,0x7f26e000)] 0x4db54800 JavaThread "IGate ID Timer" [_thread_blocked, id=687034368, stack(0x7f3c1000,0x7f411000)] 0x4db54000 JavaThread "Input Queue" daemon [_thread_blocked, id=687034112, stack(0x7f412000,0x7f462000)] 0x4db52000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=687033600, stack(0x7f4e4000,0x7f534000)] 0x28f27800 JavaThread "CompilerThread1" daemon [_thread_blocked, id=687033344, stack(0x7f535000,0x7f5b5000)] 0x28f27000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=687033088, stack(0x7f5b6000,0x7f636000)] 0x28f26800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=687032320, stack(0x7f637000,0x7f687000)] 0x28f25000 JavaThread "Finalizer" daemon [_thread_blocked, id=687032832, stack(0x7f688000,0x7f6d8000)] 0x28f24800 JavaThread "Reference Handler" daemon [_thread_blocked, id=687032576, stack(0x7f6d9000,0x7f729000)] Other Threads: 0x28f24000 VMThread [stack: 0x7f72a000,0x7f7aa000] [id=687032064] 0x4db52800 WatcherThread [stack: 0x7f463000,0x7f4e3000] [id=687033856] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap PSYoungGen total 3584K, used 158K [0x49f00000, 0x4a300000, 0x4d2c0000) eden space 3072K, 5% used [0x49f00000,0x49f279c0,0x4a200000) from space 512K, 0% used [0x4a280000,0x4a280000,0x4a300000) to space 512K, 0% used [0x4a200000,0x4a200000,0x4a280000) PSOldGen total 26496K, used 352K [0x300c0000, 0x31aa0000, 0x49f00000) object space 26496K, 1% used [0x300c0000,0x30118180,0x31aa0000) PSPermGen total 16384K, used 3947K [0x2c0c0000, 0x2d0c0000, 0x300c0000) object space 16384K, 24% used [0x2c0c0000,0x2c49ae80,0x2d0c0000) Dynamic libraries: 0x08048000 /usr/local/diablo-jdk1.6.0/bin/java 0x2808d000 /lib/libthr.so.3 0x280a0000 /lib/libc.so.7 0x28300000 /usr/local/diablo-jdk1.6.0/jre/lib/i386/server/libjvm.so 0x28d5f000 /usr/lib/libstdc++.so.6 0x2819c000 /lib/libm.so.5 0x281b1000 /lib/libgcc_s.so.1 0x281bd000 /usr/local/diablo-jdk1.6.0/jre/lib/i386/native_threads/libhpi.so 0x281d8000 /usr/local/diablo-jdk1.6.0/jre/lib/i386/libverify.so 0x28e54000 /usr/local/diablo-jdk1.6.0/jre/lib/i386/libjava.so 0x281e5000 /usr/local/diablo-jdk1.6.0/jre/lib/i386/libzip.so 0x281ee000 /lib/libz.so.4 0x28eaf000 /usr/local/diablo-jdk1.6.0/jre/lib/i386/libnet.so 0x28ec8000 /usr/local/diablo-jdk1.6.0/jre/lib/i386/librxtxSerial.so 0x28059000 /libexec/ld-elf.so.1 VM Arguments: java_command: javAPRSSrvr Launcher Type: SUN_STANDARD Environment Variables: JAVA_HOME=/usr/local/diablo-jdk1.6.0 PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin LD_LIBRARY_PATH=/usr/local/diablo-jdk1.6.0/jre/lib/i386/server:/usr/local/diablo-jdk1.6.0/jre/lib/i386:/usr/local/diablo-jdk1.6.0/jre/../lib/i386 SHELL=/bin/sh HOSTTYPE=FreeBSD OSTYPE=FreeBSD MACHTYPE=i386 Signal Handlers: SIGSEGV: [libjvm.so+0x59f5d0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGBUS: [libjvm.so+0x59f5d0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGFPE: [libjvm.so+0x48dcb0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGPIPE: [libjvm.so+0x48dcb0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGXFSZ: [libjvm.so+0x48dcb0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGILL: [libjvm.so+0x48dcb0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGUSR1: SIG_DFL, sa_mask[0]=0xfffefeff, sa_flags=0x00000000 SIGUSR2: [libjvm.so+0x4903b0], sa_mask[0]=0x00000000, sa_flags=0x00000042 SIGHUP: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000002 SIGINT: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000 SIGTERM: [libjvm.so+0x48f4a0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGQUIT: [libjvm.so+0x48f4a0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 --------------- S Y S T E M --------------- OS:Bsd uname:FreeBSD 7.0-RELEASE FreeBSD 7.0-RELEASE #1: Wed Jun 25 00:18:27 JST 2008 saka@oxygen.michiga.com:/usr/obj/usr/src/sys/OXYGEN i386 rlimit: STACK 65536k, CORE infinity, NPROC 5547, NOFILE 11095 CPU:total 4 (1 cores per cpu, 2 threads per core) family 15 model 4 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht Memory: 4k page, physical 1901464k(475366k free) vm_info: Diablo Java HotSpot(TM) Server VM (10.0-b23) for bsd-x86 JRE (1.6.0_07-b02), built on May 12 2008 23:06:05 by "truk" with gcc 4.2.1 20070719 [FreeBSD] time: Thu Nov 6 23:45:05 2008 elapsed time: 1200 seconds >How-To-Repeat: This problem happens every time when the same application is run. >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811120410.mAC4AeVm021125>