From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076337821236.tru64-unix-managers.marc@archive.invalid> From: Simon Greaves Date: Thu, 01 Aug 1996 16:22:10 +0000 To: tru64-unix-managers Subject: DU3.2D-1 code bombs if not member aligned? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076337821236 I'm attempting to compile some C code in which I'd like to byte align the data structure elements. A quick look at the manual page looks like I should use either the -Zpn flag or a combination of -migrate and -nomemmber_alignment. Using either of these generates code without warnings, but which core dumps on a fprintf call. Dbx says: (dbx) run -d signal Segmentation fault at >*[memcpy, 0x3ff80847ee4] stq_u r3, 0(r16) which looks like it's somewhere in a system library. Needless to say the same code _without_ byte alignment runs flawlessly. Am I'm doing something wrong, or is there a problem with the compiler/libraries? Any ideas anyone? Simon -- Simon Greaves email: S.J.Greaves@hw.ac.uk Systems development manager phone: +44 (0) 131 451 3265 Computer Centre, Heriot-Watt University fax: +44 (0) 131 451 3261 Edinburgh, EH14 4AS, UK