Java segfaults when recieving serial data

The Arduino IDE is dying with this error when recieving serial data from the Arduino with the monitor open:

RXTX Warning:  Removing stale lock file. /var/lock/LCK..ttyUSB0
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fbf18827edd, pid=19125, tid=140458726655760
#
# JRE version: 6.0-b16
# Java VM: OpenJDK 64-Bit Server VM (14.0-b16 mixed mode linux-amd64 )
# Distribution: Custom build (Tue Nov 10 14:13:51 UTC 2009)
# Problematic frame:
# C  [librxtxSerial.so+0x6edd]  read_byte_array+0x3d
#
# An error report file with more information is saved as:
# /tmp/hs_err_pid19125.log
#
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
#   http://icedtea.classpath.org/bugzilla
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
./arduino: line 20: 19125 Aborted                 java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel processing.app.Base

I'm running Arduino 0017 on 64-bit Linux. Any suggestions?

Hi, I suggest you switch to a JavaRuntimeEnvironment provided by Sun. There have been a lot of reports for problems when using the OpenJDK runtime.

Eberhard

That did seem to solve some other minor issues I was having, but this one is still happening:

Binary sketch size: 2312 bytes (of a 14336 byte maximum)

A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0x00007f7c1a528edd, pid=12228, tid=140171002066704

JRE version: 6.0_17-b04

Java VM: Java HotSpot(TM) 64-Bit Server VM (14.3-b01 mixed mode linux-amd64 )

Problematic frame:

C [librxtxSerial.so+0x6edd] read_byte_array+0x3d

An error report file with more information is saved as:

/tmp/hs_err_pid12228.log

If you would like to submit a bug report, please visit:

http://java.sun.com/webapps/bugreport/crash.jsp

The crash happened outside the Java Virtual Machine in native code.

See problematic frame for where to report the bug.

./arduino: line 20: 12228 Aborted java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel processing.app.Base

Got it. The solution was to install a newer version of rxtx and copy its librxtxSerial.so to /usr/share/arduino/lib.