From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,5b6571d409d2fc0e,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-09-15 19:41:01 PST Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!spool.mu.edu!nigel.msen.com!yale.edu!not-for-mail From: majid-fazal@math.yale.edu (Fazal Majid) Newsgroups: comp.unix.osf.osf1 Subject: Finding address of segmentation violation access Followup-To: poster Date: 15 Sep 1993 22:20:19 -0400 Organization: Yale University Mathematics Department Distribution: world Message-ID: <278ih3INNopg@CANTOR.MATH.YALE.EDU> NNTP-Posting-Host: cantor.math.yale.edu I am trying to port elk-2.1 to DEC-OSF/1 for the Alpha. The new generational garbage collector calls mprotect(2) and needs to know where an illegal access was done from within the SIGSEGV signal handler. On Mips systems, this was done using the sc_badvaddr field of the sigcontext struct. There is no siginfo structure field corresponding. So how does a SIGSEGV exception handler determine where the violation took place ? -- Fazal MAJID | /\ /\ /\ /\ 0- Sarff, the serpent majid@math.yale.edu | /\ / \ / \ / \ / \ / with the terrible majid@inf.enst.fr | \/ \/ \/ \/ \/ sting.