Bug 152882

Summary: comms/rxtx page fault/crash
Product: Ports & Packages Reporter: Bob Frazier <bobf>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.shar none

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 freebsd_triage 2011-01-03 18:55:13 UTC
State Changed
From-To: open->closed

Patch committed, thanks.
Comment 2 dfilter service freebsd_committer freebsd_triage 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 
                         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"