From: Simon Greaves <S.J.Greaves () hw ! ac ! uk>
To: tru64-unix-managers
Subject: DU3.2D-1 code bombs if not member aligned?
Date: Thu, 01 Aug 1996 16:22:10 +0000 [thread overview]
Message-ID: <96076337821236.tru64-unix-managers.marc@archive.invalid> (raw)
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
reply other threads:[~1996-08-01 16:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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