From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
Subject: Re: malloc() problems
Date: Mon, 14 Jul 1997 11:09:27 -0600 (MDT) [thread overview]
Message-ID: <199707141709.LAA07950@ellpspace.math.ualberta.ca> (raw)
>
> zm31mig(1382): unaligned trap at 0000000000000025: 000000012013b10c 29 1
These may happen for binaries which do not follow alpha alignment
requirements. For valid addresses you take an exception, machine
recovers but you get a substantial performance hit - so these are
warnings.
> What's odd is that sometimes, on the same binary, I get only the first
> error. Other times I get all three. From looking at the kernel source,
> the message is saying the program counter is at 0...25, the va?? is at
> 000000012013b10c, the instruction is 29 (load quadword) into register 1.
> I guess a quadword must align to a 16 byte boundary and that address is
> not on a 16 byte boundary so the message is valid. My main concern is
> understanding where that address of 0...25 came from. It doesn't seem
> like a normal address to me.
Your analysis is valid. Screwed up addresses probably come from
an application which was compiled without paying attention to warnings
about converting pointers to integers and vice-versa (they are both
4-bytes wide for Intel and many other processors so no harm will be
done there). Another possibility is of passing arguments of wrong
width to functions either because prototypes were not used or warnings
about faulty conversions forced by prototypes were not headed. This
would mess up your stack and all bets are off.
It is not likely to be malloc() itself. Probably a return value from
malloc was stored in int, or something like that. But addresses
returned by malloc should be properly aligned for alpha in any case.
Michal
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next reply other threads:[~1997-07-14 17:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-07-14 17:09 Michal Jaegermann [this message]
-- strict thread matches above, loose matches on Subject: below --
1997-07-14 12:20 malloc() problems Greg Lindahl
1997-07-14 5:47 wsb
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