[RTEMS Project] #2249: misaligned address exception in cpukit/librpc/src/rpc/get_myaddress.c
RTEMS trac
trac at rtems.org
Tue Feb 3 21:22:45 UTC 2015
#2249: misaligned address exception in cpukit/librpc/src/rpc/get_myaddress.c
--------------------+---------------------------------------
Reporter: johill | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 4.11
Component: cpukit | Version: 4.10
Severity: normal | Keywords: get_myaddress sun powerpc
--------------------+---------------------------------------
We see a misaligned address exception in
cpukit/librpc/src/rpc/get_myaddress.c on nios2 architecture.
See bug report #1401 describing maybe a fix for the root cause, and that
might avoid any need for the patch attached here. I am attaching this
patch in a bug report only to call out attention to the need for a fix for
#1401.
Note that we have also found it necessary to place an RTEMS specific patch
within EPICS for this same #1401 issue.
I have attached a patch, modelled after the EPICS fix, which isn’t claimed
to be optimal, minimal, carefully designed, etc but that does appear to
resolve the issue here.
The cause appears to be that the individual address data structures copied
into the user's buffer by the SIOCGIFCONF ioctl are not properly aligned.
--
Ticket URL: <http://devel.rtems.org/ticket/2249>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list