[comp.lang.c++] Unaligned data error with AT&T 2.1 on DECStation

ajb@blakey.WPI.EDU (Arthur J. Butler) (06/18/91)

hi.  i'm running AT&T C++ 2.1 (3/19/90) on a DECStation.

	[ULTRIX V4.1 (Rev. 52) System #1: Tue Jan 15 15:25:58 EST 1991
		UWS V4.1 (Rev. 197)]

for some programs when i compile (default arguments -- i tried various
levels of optimization include -O0), i get the following error at RUN
TIME:

	Fixed up unaligned data access for pid 7468 (example4) at pc 0x406cb0
	Fixed up unaligned data access for pid 7468 (example4) at pc .....
		--- continues for 10 or so lines of same stuff ---

some programs function properly after printing out these messages
while some do not.  not all programs exhibit this phenomena.

i have yet to find a small program which causes this problem - so i
cannot be more specific at this time.  any ideas on what might be
causing this, so i know where to look??  thanks.

arthur butler (ajb@ee.wpi.edu)	
	

fay@rugsucker.WPI.EDU (Peter R Fay) (06/19/91)

On Mon, 17 Jun 1991 18:45:41 GMT,
ajb@blakey.WPI.EDU (Arthur J. Butler) said:

ajb> hi.  i'm running AT&T C++ 2.1 (3/19/90) on a DECStation.

ajb> 	[ULTRIX V4.1 (Rev. 52) System #1: Tue Jan 15 15:25:58 EST 1991
ajb> UWS V4.1 (Rev. 197)]

ajb> for some programs when i compile (default arguments -- i tried
ajb> various levels of optimization include -O0), i get the following
ajb> error at RUN TIME:

[...]

ajb> i have yet to find a small program which causes this problem - so
ajb> i cannot be more specific at this time.  any ideas on what might
ajb> be causing this, so i know where to look??  thanks.

This is output from AT&T's translator, but to pin down the application
code causing it would require seeing the program.

As only one machine on campus has this version of C++, you'll probably
have to consult the AT&T C++ manuals in CCC or Usenet (comp.lang.c++).
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Peter Fay                      College Computing Center        ~
~ (fay@wpi.wpi.edu)              Worcester Polytechnic Institute ~
~ (508)831-5725                  100 Institute Road              ~
~                                Worcester, MA 01609             ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~