responses to question on "unaligned access exception"

From: Martin Cohen <mcohen_at_nrtc.northrop.com>
Date: Fri, 5 Apr 96 13:04:56 PST

I must echo with gratitude my appreciation to the
members of this group - you are amazing!!!!

My question was:

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

When running a Fortran program that is being ported
from VMS Fortran to f2c+gcc on DU 3.0, I get
the following message:

Unaligned access pid=7137 <testrob.exe> va=14001a022 pc=12000e638 ra=12000f60c type=ldl

I cannot get the program to stop at the message,
even when compiling with the "-g" option
and using gdb.

1. How can I most directly find where the error is occurring?

2. Is this serious?

3. Should I be concerned?

Thanks.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

I got answers (in less than two hours!) from:

Gernot M. Fuchs (gfuchs_at_golay.med.unc.edu)
John (jtk_at_atria.com)
Jack (jackb_at_pgw.picker.com)

Gernot said that the message was not serious and can be turned
off with the "uac" command (there is a "uac" man page).

John sent a program that causes the shell to issue a
SIGBUS message and coredump at the uac.

Jack suggested the "uac" man page.

I used John's program and it works - Thanks John!

Here is the program:

#include <sys/types.h>
#include <sys/sysinfo.h>
#include <sys/proc.h>

main()
{
    int rc;
    int buf[2];
    buf[0] = SSIN_UACPARNT;
    buf[1] = UAC_SIGBUS|UAC_NOFIX;

    rc = setsysinfo(SSI_NVPAIRS, buf, 1, 0, 0);
    if (rc == -1)
        perror("setsysinfo");
}

Martin Cohen
mcohen_at_nrtc.northrop.com
Received on Fri Apr 05 1996 - 23:24:54 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:46 NZDT