[news.software.anu-news] Help with access violation needed...

ANUNEWSMGR@CRNLVAX5.BITNET (12/12/89)

Hi all,
We are testing VMS NEWS V5.9 (09-Jul-89) and running VMS V5.1-1.
We have the following problem:
Occasionally, when posting or, to a lesser extent, when reading, we get:
     
%SYSTEM-F-ACCVIO, access violation, reason mask=01, virtual address=FFFFFFFC, PC
=00138142, PSL=03C00000
  Improperly handled condition, image exit forced.
        Signal arguments              Stack contents
<stuff deleted>
     Register dump
<more stuff deleted>
     
When this happens, and the user trys exactly the same thing again, it will
function properly.
     
Any experience, suggestions with this problem ???
     
Thank You,
Bisham

tanner@cerritos.edu (12/12/89)

I ran into one of these awhile back, but it was reproducible - at least for
the moment.  I tracked it to a descriptor being trashed by malloc!

Not knowing whether it was a bug in malloc, or something done in a prior
call, I punted.

I put the following in one of the header files:

#define malloc VAXC$MALLOC_OPT
#define calloc VAXC$CALLOC_OPT
#define realloc VAXC$REALLOC_OPT
#define free VAXC$FREE_OPT
#define cfree VAXC$CFREE_OPT

I may have just moved memory around enough to wipe out some other 
location, but I don't think I've seen an ACCVIO since.

-Bruce
-- 
Bruce Tanner        (213) 860-2451 x 596    Tanner@Cerritos.EDU
Cerritos College    Norwalk, CA             cerritos!tanner

gih900@UUNET.UU.NET (Geoff Huston) (12/16/89)

Bruce Tanner writes:...
     
>I ran into one of these awhile back, but it was reproducible - at least for
>the moment.  I tracked it to a descriptor being trashed by malloc!
>
>Not knowing whether it was a bug in malloc, or something done in a prior
>call, I punted.
>
>I put the following in one of the header files:
>
>#define malloc VAXC$MALLOC_OPT
>#define calloc VAXC$CALLOC_OPT
>#define realloc VAXC$REALLOC_OPT
>#define free VAXC$FREE_OPT
>#define cfree VAXC$CFREE_OPT
>
>I may have just moved memory around enough to wipe out some other
>location, but I don't think I've seen an ACCVIO since.
     
I have also put these lines into NEWSINCLUDE.H, and haven't seen a problem with
using these definitions so far......
     
Thanks Bruce,
     
Geoff Huston