Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: thomas@lkg.dec.com (Matt Thomas)
Subject: Re: How can I cause unaligned access to generate SIGBUS under DEC OSF/1?
Date: Fri, 27 Aug 1993 14:33:58 GMT	[thread overview]
Message-ID: <1993Aug27.143358.1812@nntpd.lkg.dec.com> (raw)
In-Reply-To: CCF86q.M2s@helios.physics.utoronto.ca


In article <CCF86q.M2s@helios.physics.utoronto.ca>, sysmark@helios.physics.utoronto.ca (Mark Bartelt) writes:
|>Someone in our group is trying to debug a rather ugly chunk of Fortran
|>code on our AXPs, and is getting a number of runtime "Unaligned access"
|>messages.  I know how to use the "uac" command to turn the message off,
|>but since I suspect that the existence of the unaligned access probably
|>means that the code is broken, I'd like to be able to trap them.

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

    int nvpair[2];

    nvpair[0] = SSIN_UACPROC;
    nvpair[1] = UAC_SIGBUS;

    setsysinfo(SSI_NVPAIRS, (char *) nvpair, 1, NULL, 0);

-- 
Matt Thomas                            Internet:   thomas@lkg.dec.com
U*X Networking                         UUCP:       ...!decwrl!thomas
Digital Equipment Corporation          Disclaimer: This message reflects my own
Littleton, MA                                      warped views, etc.


  reply	other threads:[~1993-08-27 14:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-08-27 13:59 How can I cause unaligned access to generate SIGBUS under DEC OSF/1? Mark Bartelt
1993-08-27 14:33 ` Matt Thomas [this message]
1993-08-27 15:32 ` SUMMARY: " Mark Bartelt
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