[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
PR 1098: "struct ipovly" notpacked.
- Date: Tue, 11 Jul 2006 16:57:39 +0200
- From: ralf.corsepius at rtems.org (Ralf Corsepius)
- Subject: PR 1098: "struct ipovly" notpacked.
On Tue, 2006-07-11 at 21:27 +0800, ray wrote:
> In fact, the PR works for the ARM board.
In fact the patch attached to the PR is wrong.
> And the __attribute__((packed)) do really convert the 32bit load/store
> instruction to 2 16bit load/store instruction(or 4 8bit load/store).
> The struct may seems well format, but after packing and copying, the
> head point of tcpiphdr is not 32bit aligned, which may cause data
> access abort. And in the new version of BSD, the mal-aligned members
> (ti_next, ti_prev) have gone.
You are playing with symptoms. The fact it might pamper over the symtoms
probably isn't much more than a random accident.
So far, nobody has found the actual cause (I have a suspect, but it's
too early to pronounce it in public.)
Ralf