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.
State Changed From-To: open->closed Patch committed, thanks.
steve 2011-01-03 18:55:09 UTC FreeBSD ports repository Modified files: comms/rxtx Makefile Added files: comms/rxtx/files patch-SerialImp.c patch-SerialImp.cpp patch-SerialImp.h Log: Fix a page fault when attempting to access a java variable by reference. PR: 152882 Submitted by: Bob Frazier <bobf@mrp3.com> 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) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"