comp.lang.ada
 help / color / mirror / Atom feed
From: eachus@mitre-bedford.arpa  (Robert I. Eachus)
Subject: Re: Weird error using SunAda
Date: 9 Jul 93 19:57:11 GMT	[thread overview]
Message-ID: <EACHUS.93Jul9145711@spectre.mitre.org> (raw)

In article <MAC.93Jul9153020@caribe.dit.upm.es> mac@dit.upm.es (M. Alvarez-Camp
ana) writes:

   When I run the program I get a 'Bus error (core dumped)' message
   and the program aborts. Using the debugger I get:

   a.db example
   >r
   example 
   "Bus error" [10]
   --> Hardware alignment error
    stopped 1 instruction after "/tmp/topnet-sublib/xs_kernel.a":130 in deposit
'3
    130              if TM /= 0.0 then

   Normally I would say it's time to exercise your compiler support
contract, but there may be enough information here to diagnose the
problem...

   The SPARC architecture has fairly severe memory alignment
requirements.  In particular requiring 64-bit values to be doubleword
(64-bit/8-byte) aligned in memory.  Thirty-two bit values must be word
aligned, 16-bit values half-word aligned.  The VAX on the other hand,
is willing to reference any object at any byte boundary.

    The SunAda compiler does allow you to "shoot yourself in the foot"
by misaligning floating point values in records.  Usually you have to
ask for trouble with alignment or record representation clauses, but
it might be possible to cause the problem by nesting records.  In any
case, a priority 10 trap is mem_address_not_aligned, and I suspect
that the bad reference is in line 131.

--

					Robert I. Eachus

with Standard_Disclaimer;
use  Standard_Disclaimer;
function Message (Text: in Clever_Ideas) return Better_Ideas is...

             reply	other threads:[~1993-07-09 19:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-07-09 19:57 Robert I. Eachus [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-07-09 17:47 Weird error using SunAda agate!howland.reston.ans.net!usc!cs.utexas.edu!tamsun.tamu.edu!news.utdal
1993-07-09 15:36 David Tannen
1993-07-09 14:30 M. Alvarez-Campana
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox