From: Alex Rhomberg <rhomberg@ife.ee.ethz.ch>
Subject: Re: Unaligned trap
Date: 1999/12/02 [thread overview]
Message-ID: <38463D77.CEFF2D96@ife.ee.ethz.ch> (raw)
In-Reply-To: 3845CD8F.BFCB1B12@kdc.no
Idar Tollefsen wrote:
>
> Pierre Asselin wrote:
>
> > The program tried to load or store a word from/to a memory address that
> > is not a multiple of the word size. The hardware trapped, the OS kicked
> > in and performed the memory access byte by byte on behalf of the program,
> > logged the event in syslog, and marked the process as runnable again to
> > resume after the trapped instruction. It's harmless, it just slows down
> > the running program.
>
> > This is more common on alphas because long integers must be aligned
> > on 8-byte boundaries. Programs developed on x86's often assume that
> > 4-byte alignment is enough.
>
> Thank you. This cleared things up. And it's good to know it's not damaging
> to the system.
>
> A logical follow up question: Can anything be done about this?
Additional clarification:
Many of the unaligned traps appeared when time_t switched from int to
long with (internally with kernel 2.1, the API switched with glibc 2.1)
The funniest was when ping stopped working...
What you can do is: patch the software. Go into a debugger and look at
the address given in the console message. Check for bad memory accesses.
The easy way to change it is to memcpy the information from an unaligned
location to an aligned one.
- Alex
next prev parent reply other threads:[~1999-12-02 5:00 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-12-01 5:00 Unaligned trap Idar Tollefsen
1999-12-01 5:00 ` Sashka Nochkin
1999-12-01 5:00 ` Idar Tollefsen
1999-12-02 5:00 ` Sashka Nochkin
1999-12-01 5:00 ` Pierre Asselin
1999-12-02 5:00 ` Idar Tollefsen
1999-12-02 5:00 ` Alex Rhomberg [this message]
1999-12-02 5:00 ` Idar Tollefsen
1999-12-03 5:00 ` Alex Rhomberg
1999-12-02 5:00 ` Michal Jaegermann
1999-12-02 5:00 ` Idar Tollefsen
-- strict thread matches above, loose matches on Subject: below --
2001-01-28 18:55 unaligned trap klimadmin
2001-01-28 21:25 ` Hartmann Schaffer
2001-01-28 23:56 ` klimadmin
2001-01-29 2:13 ` JJ
2001-01-29 17:05 ` michal
2001-01-30 12:49 ` Paul Repacholi
2001-01-29 16:56 ` michal
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox