From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,122fe49294f74514 X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,122fe49294f74514 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-08-27 07:45:53 PST Xref: gmd.de comp.unix.osf.osf1:921 comp.sys.dec:9747 Newsgroups: comp.unix.osf.osf1,comp.sys.dec Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!ames!decwrl!pa.dec.com!nntpd2.cxo.dec.com!nntpd.lkg.dec.com!lkg.dec.com!thomas From: thomas@lkg.dec.com (Matt Thomas) Subject: Re: How can I cause unaligned access to generate SIGBUS under DEC OSF/1? Message-ID: <1993Aug27.143358.1812@nntpd.lkg.dec.com> Sender: thomas@netrix.lkg.dec.com (Matt Thomas) Reply-To: thomas@lkg.dec.com Organization: Digital Equipment Corporation X-Newsreader: mxrn 6.18-5 References: Date: Fri, 27 Aug 1993 14:33:58 GMT In article , 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 #include 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.