From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199707141709.LAA07950@ellpspace.math.ualberta.ca> Date: Mon, 14 Jul 1997 11:09:27 -0600 (MDT) From: Michal Jaegermann Subject: Re: malloc() problems > > 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