Rob Jenkins (robj++at++barney.reading.sgi.com)
Thu, 30 Nov 1995 17:15:08 +0000
> If I crawl around in the program using dbx I reach a call to gversion(), the
> code then magically jumps to the line of code three lines above, next it
> executes the gversion() line again, then hurls. No core file is
> generated. On an Onyx RE it doesn't crash. It bus errors just on the
> Indigo.
>
Are you compiling with -g ?
> I don't expect you to debug this for me, just wondered if the unusual
> error message at the console is a clue.
>
> One more question, what libraries am I supposed to have when I build
> using -align? Do I need to call handle_unaligned_traps()? If so, what is
> its include file?
>
from man f77:
The following three options when used at compile time generate various
degrees of misaligned data in common blocks, and the code to deal with
the misalignment. You must include these options to f77 in the
compilation of all modules that reference or define common blocks with
misaligned data. Failure to do so could cause core dumps (if the trap
handler is not used), or mismatched common blocks.
To load the system libraries capable of handling misaligned data, use the
-L/usr/lib/align switch at load time. The trap handler may be needed to
handle misaligned data passed to system libraries not included in the
/usr/lib/align directory (see fixade(3f) and unaligned(3x)).
so you do need to handle any align errors.
What happens if you don't use -align ? NOTE from man fixade ( check it out if
you haven't already ):
NOTE: the use of this trap handler is intended for diagnostic
purposes only. Program efficiency may be severely impacted by
its use.
> Thanks.
>
> Robin
>-- End of excerpt from Robin Rowe
-- ________________________________________________________________ Rob Jenkins, Software Support Group, Silicon Graphics UK Ltd. Forum 1, Station Road, Theale, Reading, UK, RG7 4SB. tel 01734 257736, fax 01734 257553, email robj++at++reading.sgi.com,
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:04 PDT