Bug 152882 - comms/rxtx page fault/crash
Summary: comms/rxtx page fault/crash
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
Depends on:
Reported: 2010-12-07 06:10 UTC by Bob Frazier
Modified: 2011-01-03 19:00 UTC (History)
0 users

See Also:

file.shar (8.54 KB, text/plain)
2010-12-07 06:10 UTC, Bob Frazier
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Frazier 2010-12-07 06:10:10 UTC
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.
Comment 1 Steve Price freebsd_committer 2011-01-03 18:55:13 UTC
State Changed
From-To: open->closed

Patch committed, thanks.
Comment 2 dfilter service freebsd_committer 2011-01-03 18:55:20 UTC
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 
  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
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"