A software coding error in comms/rxtx causes a page fault when attempting to access a java variable by reference. The error is due to incorrect use of GetIntField instead of GetObjectField. A set of patches have been included that appear to correct the problem when placed into the 'files' directory of the port prior to building the port.
Fix: the three files src/SerialImp.c src/SerialImp.cpp and src/SerialImp.h must be patched using the attached files (or similar).
Patch attached with submission follows:
How-To-Repeat: using a java COMM application (such as devel/arduino) attempt to do serial I/O on a comm port. In my case it was a USB comm port '/dev/ttyU0'. Simply attempting a transfer is enough to cause the crash.
Patch committed, thanks.
steve 2011-01-03 18:55:09 UTC
FreeBSD ports repository
comms/rxtx/files patch-SerialImp.c patch-SerialImp.cpp
Fix a page fault when attempting to access a java variable by reference.
Submitted by: Bob Frazier <firstname.lastname@example.org>
Revision Changes Path
1.22 +1 -1 ports/comms/rxtx/Makefile
1.1 +159 -0 ports/comms/rxtx/files/patch-SerialImp.c (new)
1.1 +53 -0 ports/comms/rxtx/files/patch-SerialImp.cpp (new)
1.3 +16 -0 ports/comms/rxtx/files/patch-SerialImp.h (new)
email@example.com mailing list
To unsubscribe, send any mail to "firstname.lastname@example.org"