Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Truth has always been found to promote the best interests of mankind... -- Percy Bysshe Shelley


computers / comp.os.vms / Re: %SYSTEM-F-ACCVIO in LIBOTS after several hours

SubjectAuthor
* %SYSTEM-F-ACCVIO in LIBOTS after several hoursMark Daniel
+* Re: %SYSTEM-F-ACCVIO in LIBOTS after several hoursSimon Clubley
|`* Re: %SYSTEM-F-ACCVIO in LIBOTS after several hoursMark Daniel
| `* Re: %SYSTEM-F-ACCVIO in LIBOTS after several hoursArne Vajhøj
|  `* Re: %SYSTEM-F-ACCVIO in LIBOTS after several hoursMark Daniel
|   `* Re: %SYSTEM-F-ACCVIO in LIBOTS after several hoursMark Daniel
|    `* Re: %SYSTEM-F-ACCVIO in LIBOTS after several hoursArne Vajhøj
|     +- Re: %SYSTEM-F-ACCVIO in LIBOTS after several hoursVolker Halle
|     `- Re: %SYSTEM-F-ACCVIO in LIBOTS after several hoursMark Daniel
`* Re: %SYSTEM-F-ACCVIO in LIBOTS after several hoursArne Vajhøj
 `* Re: %SYSTEM-F-ACCVIO in LIBOTS after several hoursSimon Clubley
  `* Re: %SYSTEM-F-ACCVIO in LIBOTS after several hoursArne Vajhøj
   `- Re: %SYSTEM-F-ACCVIO in LIBOTS after several hoursSimon Clubley

1
%SYSTEM-F-ACCVIO in LIBOTS after several hours

<ZgQVJ.61269$5u1.40267@fx13.ams4>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=21264&group=comp.os.vms#21264

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx13.ams4.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:91.0)
Gecko/20100101 Thunderbird/91.6.2
From: mark.dan...@wasd.vsm.com.au (Mark Daniel)
Subject: %SYSTEM-F-ACCVIO in LIBOTS after several hours
Reply-To: mark.daniel@wasd.vsm.com.au
Newsgroups: comp.os.vms
Content-Language: en-US
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 83
Message-ID: <ZgQVJ.61269$5u1.40267@fx13.ams4>
X-Complaints-To: abuse@eweka.nl
NNTP-Posting-Date: Tue, 08 Mar 2022 21:55:05 UTC
Organization: Eweka Internet Services
Date: Wed, 9 Mar 2022 08:25:02 +1030
X-Received-Bytes: 5670
 by: Mark Daniel - Tue, 8 Mar 2022 21:55 UTC

Reproducible after several hours of continuous execution.

> %SYSTEM-F-ACCVIO, access violation, reason mask=04, virtual address=0000000000039B00, PC=FFFFFFFF842341D0, PS=0000001B
> %TRACE-F-TRACEBACK, symbolic stack dump follows
> image module routine line rel PC abs PC
> LIBOTS 0 00000000000121D0 FFFFFFFF842341D0
> DECC$SHR C$TXDOPRINT putbuf 43567 000000000000CA82 FFFFFFFF84BC4FA2
> DECC$SHR C$TXDOPRINT decc$$txdoprint 43658 000000000000CD62 FFFFFFFF84BC5282
> DECC$SHR C$TXDOPRINT sprintf 44192 0000000000012492 FFFFFFFF84BCA9B2
> HTTPDMON HTTPDMON TcpIpLookup 60709 00000000000109A2 00000000000409A2
> HTTPDMON HTTPDMON AddRequest 60536 0000000000009A62 0000000000039A62
> HTTPDMON HTTPDMON MonitorHttpd 58867 0000000000001392 0000000000031392
> HTTPDMON HTTPDMON main 58751 0000000000000962 0000000000030962
> HTTPDMON HTTPDMON __main 58666 00000000000000B2 00000000000300B2
> 0 FFFFFFFF80A37952 FFFFFFFF80A37952
> DCL 0 000000000007D2B2 000000007AE292B2
> %TRACE-I-END, end of TRACE stack dump

Line 60790 is

> 3 60709 sprintf (ares[aCacheIdx], "[%s]", strerror(errno));

and the machine code around it

> 00010930 L$142: // 060708
> { .mii
> 008082000800 00010930 ld4 in0 = [in0] // r32 = [r32] // 060709
> 012000000640 00010931 mov ai = 0 ;; // r25 = 0
> 00A7BB740800 00010932 shl in0 = in0, 8 ;; // r32 = r32, 8
> }
> { .mii
> 000008000000 00010940 nop.m 0
> 0000B2000800 00010941 sxt4 in0 = in0 ;; // r32 = r32
> 010002048800 00010942 add in0 = r36, in0 // r32 = r36, r32
> }
> { .mfb
> 000008000000 00010950 nop.m 0
> 000008000000 00010951 nop.f 0
> 00A000001000 00010952 br.call.sptk.many rp = // br0 = CMA$TIS_ERRNO_GET_ADDR
> CMA$TIS_ERRNO_GET_ADDR ;;
> }
> { .mii
> 008080800A80 00010960 ld4 out0 = [r8] // r42 = [r8]
> 012000002640 00010961 mov ai = 1 // r25 = 1
> 010802900040 00010962 mov gp = r41 ;; // r1 = r41
> }
> { .mib
> 000008000000 00010970 nop.m 0
> 0000B2A00A80 00010971 sxt4 out0 = out0 // r42 = r42
> 00A000001000 00010972 br.call.sptk.many rp = DECC$STRERROR ;; // br0 = DECC$STRERROR
> }
> { .mii
> 010802900040 00010980 mov gp = r41 // r1 = r41
> 012000006640 00010981 mov ai = 3 // r25 = 3
> 0000B0800B00 00010982 sxt4 out2 = r8 // r44 = r8
> }
> { .mmi
> 010802000A80 00010990 mov out0 = in0 ;; // r42 = r32
> 0120001008C0 00010991 add in3 = @ltoff($LITERAL$+432), // r35 = @ltoff($LITERAL$+432), r1
> gp
> 000008000000 00010992 nop.i 0 ;;
> }
> { .mfb
> 0080C2300AC0 000109A0 ld8 out1 = $LITERAL$ // r43 = [r35]
> 000008000000 000109A1 nop.f 0
> 00A000001000 000109A2 br.call.sptk.many rp = DECC$TXSPRINTF ;; // br0 = DECC$TXSPRINTF
> }
> { .mfi
> 010802900040 000109B0 mov gp = r41 // r1 = r41
> 000008000000 000109B1 nop.f 0
> 000008000000 000109B2 nop.i 0
> }
> 000109C0 L$152:

The ACCVIO is related to the target, ares[aCacheIdx], or to the
argument, strerror(errno)), or...?

TIA for any input.

--
Anyone, who using social-media, forms an opinion regarding anything
other than the relative cuteness of this or that puppy-dog, needs
seriously to examine their critical thinking.

Re: %SYSTEM-F-ACCVIO in LIBOTS after several hours

<t08rg3$6fr$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=21270&group=comp.os.vms#21270

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: %SYSTEM-F-ACCVIO in LIBOTS after several hours
Date: Wed, 9 Mar 2022 00:13:56 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 67
Message-ID: <t08rg3$6fr$1@dont-email.me>
References: <ZgQVJ.61269$5u1.40267@fx13.ams4>
Injection-Date: Wed, 9 Mar 2022 00:13:56 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="f32a36f06d4c22817480eb7a1261b018";
logging-data="6651"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Cx1YKw+EmMrguKMr/lklN7kS/9ASvVtQ="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:3gUsaxDBMP1TP3EeToCnixtpXjo=
 by: Simon Clubley - Wed, 9 Mar 2022 00:13 UTC

On 2022-03-08, Mark Daniel <mark.daniel@wasd.vsm.com.au> wrote:
> Reproducible after several hours of continuous execution.
>
>> %SYSTEM-F-ACCVIO, access violation, reason mask=04, virtual address=0000000000039B00, PC=FFFFFFFF842341D0, PS=0000001B
>> %TRACE-F-TRACEBACK, symbolic stack dump follows
>> image module routine line rel PC abs PC
>> LIBOTS 0 00000000000121D0 FFFFFFFF842341D0
>> DECC$SHR C$TXDOPRINT putbuf 43567 000000000000CA82 FFFFFFFF84BC4FA2
>> DECC$SHR C$TXDOPRINT decc$$txdoprint 43658 000000000000CD62 FFFFFFFF84BC5282
>> DECC$SHR C$TXDOPRINT sprintf 44192 0000000000012492 FFFFFFFF84BCA9B2
>> HTTPDMON HTTPDMON TcpIpLookup 60709 00000000000109A2 00000000000409A2
>> HTTPDMON HTTPDMON AddRequest 60536 0000000000009A62 0000000000039A62
>> HTTPDMON HTTPDMON MonitorHttpd 58867 0000000000001392 0000000000031392
>> HTTPDMON HTTPDMON main 58751 0000000000000962 0000000000030962
>> HTTPDMON HTTPDMON __main 58666 00000000000000B2 00000000000300B2
>> 0 FFFFFFFF80A37952 FFFFFFFF80A37952
>> DCL 0 000000000007D2B2 000000007AE292B2
>> %TRACE-I-END, end of TRACE stack dump
>
> Line 60790 is
>
>> 3 60709 sprintf (ares[aCacheIdx], "[%s]", strerror(errno));
>

[snip]

>
> The ACCVIO is related to the target, ares[aCacheIdx], or to the
> argument, strerror(errno)), or...?
>
> TIA for any input.
>

Since no-one else has replied, some generic observations:

Given the address and reason mask, it looks like something is trying to
write into what looks like RO program code.

Does changing the optimisation level (or disabling optimisation) change
the behaviour ?

Don't assume errno is valid or that strerror() has behaved in an
intelligent way if it has been presented with an invalid errno value.

Can you take an image dump when the program crashes and then look around
the general area of the failing VA to see if there are any clues about
what is at that location ?

Are you sure that ares[aCacheIdx] points to a memory location big enough
to hold the message ? Before that line of code is executed, you could
try writing to a temporary file both errno and the length of the output
from strerror(). Also try dumping the current value of aCacheIdx to that
file.

This has the feel of some out-of-bounds write. Whether that's due to a
VMS issue or your code I can't tell.

Also, consider the use of snprintf() instead of sprintf() if it is
available to you. That line of code looks like an error reporting
version of an unbounded strcpy() call and there's a reason why
strncpy() and friends now exist. :-)

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.

Re: %SYSTEM-F-ACCVIO in LIBOTS after several hours

<6227fb69$0$693$14726298@news.sunsite.dk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=21273&group=comp.os.vms#21273

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Tue, 8 Mar 2022 19:57:08 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.6.2
Subject: Re: %SYSTEM-F-ACCVIO in LIBOTS after several hours
Content-Language: en-US
Newsgroups: comp.os.vms
References: <ZgQVJ.61269$5u1.40267@fx13.ams4>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <ZgQVJ.61269$5u1.40267@fx13.ams4>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 42
Message-ID: <6227fb69$0$693$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: ae305218.news.sunsite.dk
X-Trace: 1646787434 news.sunsite.dk 693 arne@vajhoej.dk/68.9.63.232:61262
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Wed, 9 Mar 2022 00:57 UTC

On 3/8/2022 4:55 PM, Mark Daniel wrote:
> Reproducible after several hours of continuous execution.
>
>> %SYSTEM-F-ACCVIO, access violation, reason mask=04, virtual
>> address=0000000000039B00, PC=FFFFFFFF842341D0, PS=0000001B
>> %TRACE-F-TRACEBACK, symbolic stack dump follows
>> image     module    routine               line      rel PC
>> abs PC
>> LIBOTS                                       0 00000000000121D0
>> FFFFFFFF842341D0
>> DECC$SHR  C$TXDOPRINT  putbuf            43567 000000000000CA82
>> FFFFFFFF84BC4FA2
>> DECC$SHR  C$TXDOPRINT  decc$$txdoprint   43658 000000000000CD62
>> FFFFFFFF84BC5282
>> DECC$SHR  C$TXDOPRINT  sprintf           44192 0000000000012492
>> FFFFFFFF84BCA9B2
>> HTTPDMON  HTTPDMON  TcpIpLookup          60709 00000000000109A2
>> 00000000000409A2
>> HTTPDMON  HTTPDMON  AddRequest           60536 0000000000009A62
>> 0000000000039A62
>> HTTPDMON  HTTPDMON  MonitorHttpd         58867 0000000000001392
>> 0000000000031392
>> HTTPDMON  HTTPDMON  main                 58751 0000000000000962
>> 0000000000030962

> Line 60790 is
>
>>       3   60709             sprintf (ares[aCacheIdx], "[%s]",
>> strerror(errno));

> The ACCVIO is related to the target, ares[aCacheIdx], or to the
> argument, strerror(errno)), or...?

The access violation is trying to write to 39B00, so it has to be
ares[aCacheIdx].

And if ares is a valid array of char arrays, then every indication
is that aCacheIdx has a bad value.

Arne

Re: %SYSTEM-F-ACCVIO in LIBOTS after several hours

<t0aa9n$fuo$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=21283&group=comp.os.vms#21283

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: %SYSTEM-F-ACCVIO in LIBOTS after several hours
Date: Wed, 9 Mar 2022 13:32:40 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 57
Message-ID: <t0aa9n$fuo$2@dont-email.me>
References: <ZgQVJ.61269$5u1.40267@fx13.ams4> <6227fb69$0$693$14726298@news.sunsite.dk>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 9 Mar 2022 13:32:40 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="f32a36f06d4c22817480eb7a1261b018";
logging-data="16344"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18pLOyCl1aJTRuYx7LU7aaNHTnypBlGk/E="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:5Yup/dGZJDx1Gm123215dF0KSe4=
 by: Simon Clubley - Wed, 9 Mar 2022 13:32 UTC

On 2022-03-08, Arne Vajhøj <arne@vajhoej.dk> wrote:
> On 3/8/2022 4:55 PM, Mark Daniel wrote:
>> Reproducible after several hours of continuous execution.
>>
>>> %SYSTEM-F-ACCVIO, access violation, reason mask=04, virtual
>>> address=0000000000039B00, PC=FFFFFFFF842341D0, PS=0000001B
>>> %TRACE-F-TRACEBACK, symbolic stack dump follows
>>> image     module    routine               line      rel PC
>>> abs PC
>>> LIBOTS                                       0 00000000000121D0
>>> FFFFFFFF842341D0
>>> DECC$SHR  C$TXDOPRINT  putbuf            43567 000000000000CA82
>>> FFFFFFFF84BC4FA2
>>> DECC$SHR  C$TXDOPRINT  decc$$txdoprint   43658 000000000000CD62
>>> FFFFFFFF84BC5282
>>> DECC$SHR  C$TXDOPRINT  sprintf           44192 0000000000012492
>>> FFFFFFFF84BCA9B2
>>> HTTPDMON  HTTPDMON  TcpIpLookup          60709 00000000000109A2
>>> 00000000000409A2
>>> HTTPDMON  HTTPDMON  AddRequest           60536 0000000000009A62
>>> 0000000000039A62
>>> HTTPDMON  HTTPDMON  MonitorHttpd         58867 0000000000001392
>>> 0000000000031392
>>> HTTPDMON  HTTPDMON  main                 58751 0000000000000962
>>> 0000000000030962
>
>> Line 60790 is
>>
>>>       3   60709             sprintf (ares[aCacheIdx], "[%s]",
>>> strerror(errno));
>
>> The ACCVIO is related to the target, ares[aCacheIdx], or to the
>> argument, strerror(errno)), or...?
>
> The access violation is trying to write to 39B00, so it has to be
> ares[aCacheIdx].
>
> And if ares is a valid array of char arrays, then every indication
> is that aCacheIdx has a bad value.
>

Or alternatively, depending on how the VMS linker gathers any static
data areas within a module when generating a final image, there could
have been a buffer overflow from a writable page into a following R/O
code page.

Take another look at the reported virtual address. Don't you find it
suspicious that the failing VA is exactly at the start of a page boundary ?

Oh, and that sprintf() really should become snprintf() if it's available
to Mark on the systems he supports people running this code on.

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.

Re: %SYSTEM-F-ACCVIO in LIBOTS after several hours

<ho2WJ.22596$an1.6612@fx10.ams4>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=21284&group=comp.os.vms#21284

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!news.freedyn.de!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx10.ams4.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:91.0)
Gecko/20100101 Thunderbird/91.6.2
Reply-To: mark.daniel@wasd.vsm.com.au
Subject: Re: %SYSTEM-F-ACCVIO in LIBOTS after several hours
Content-Language: en-US
Newsgroups: comp.os.vms
References: <ZgQVJ.61269$5u1.40267@fx13.ams4> <t08rg3$6fr$1@dont-email.me>
From: mark.dan...@wasd.vsm.com.au (Mark Daniel)
In-Reply-To: <t08rg3$6fr$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 103
Message-ID: <ho2WJ.22596$an1.6612@fx10.ams4>
X-Complaints-To: abuse@eweka.nl
NNTP-Posting-Date: Wed, 09 Mar 2022 13:58:37 UTC
Organization: Eweka Internet Services
Date: Thu, 10 Mar 2022 00:28:33 +1030
X-Received-Bytes: 5303
 by: Mark Daniel - Wed, 9 Mar 2022 13:58 UTC

On 9/3/22 10:43 am, Simon Clubley wrote:
> On 2022-03-08, Mark Daniel <mark.daniel@wasd.vsm.com.au> wrote:
>> Reproducible after several hours of continuous execution.
>>
>>> %SYSTEM-F-ACCVIO, access violation, reason mask=04, virtual address=0000000000039B00, PC=FFFFFFFF842341D0, PS=0000001B
>>> %TRACE-F-TRACEBACK, symbolic stack dump follows
>>> image module routine line rel PC abs PC
>>> LIBOTS 0 00000000000121D0 FFFFFFFF842341D0
>>> DECC$SHR C$TXDOPRINT putbuf 43567 000000000000CA82 FFFFFFFF84BC4FA2
>>> DECC$SHR C$TXDOPRINT decc$$txdoprint 43658 000000000000CD62 FFFFFFFF84BC5282
>>> DECC$SHR C$TXDOPRINT sprintf 44192 0000000000012492 FFFFFFFF84BCA9B2
>>> HTTPDMON HTTPDMON TcpIpLookup 60709 00000000000109A2 00000000000409A2
>>> HTTPDMON HTTPDMON AddRequest 60536 0000000000009A62 0000000000039A62
>>> HTTPDMON HTTPDMON MonitorHttpd 58867 0000000000001392 0000000000031392
>>> HTTPDMON HTTPDMON main 58751 0000000000000962 0000000000030962
>>> HTTPDMON HTTPDMON __main 58666 00000000000000B2 00000000000300B2
>>> 0 FFFFFFFF80A37952 FFFFFFFF80A37952
>>> DCL 0 000000000007D2B2 000000007AE292B2
>>> %TRACE-I-END, end of TRACE stack dump
>>
>> Line 60790 is
>>
>>> 3 60709 sprintf (ares[aCacheIdx], "[%s]", strerror(errno));
>>
>
> [snip]
>
>>
>> The ACCVIO is related to the target, ares[aCacheIdx], or to the
>> argument, strerror(errno)), or...?
>>
>> TIA for any input.
>>
>
> Since no-one else has replied, some generic observations:
>
> Given the address and reason mask, it looks like something is trying to
> write into what looks like RO program code.

Normally you don't see to many LIBOTS or DECC$SHR references in such
traces. Not too much in the FFFFFFFFxxxxxxxx space at all.

BTW: VSI C V7.4-001 on OpenVMS IA64 V8.4-2L1

Image name: "DECC$SHR"
Global Symbol Table name: "DECC$SHR"
Image file identification: "V8.4-00"
Image build identification: "XE4H-H4N-000066"
Link identification: "Linker I02-37"
Link Date/Time: 22-AUG-2020 13:30:50.69

> Does changing the optimisation level (or disabling optimisation) change
> the behaviour ?
>
> Don't assume errno is valid or that strerror() has behaved in an
> intelligent way if it has been presented with an invalid errno value.

Fair enough observation.

> Can you take an image dump when the program crashes and then look around
> the general area of the failing VA to see if there are any clues about
> what is at that location ? > > Are you sure that ares[aCacheIdx] points to a memory location big
enough
> to hold the message ? Before that line of code is executed, you could
> try writing to a temporary file both errno and the length of the output
> from strerror(). Also try dumping the current value of aCacheIdx to that
> file.

Should be.

#define CACHE_MAX 16

static aCacheIdx, nCacheIdx;
static char abuf [CACHE_MAX][256],
ares [CACHE_MAX][256],
nbuf [CACHE_MAX][256],
nres [CACHE_MAX][256];
8< snip 8<
idx = nCacheIdx++ % CACHE_MAX;

The ACCVIO is very indeterminate. I mean the CACHE_MAX limit (16) will
have been round-robined many times in the 8+ hours since last activated.
There are thousands/16 over that period.

> This has the feel of some out-of-bounds write. Whether that's due to a
> VMS issue or your code I can't tell.

You'd think it would be caught before being passed to LIBOTS.

> Also, consider the use of snprintf() instead of sprintf() if it is
> available to you. That line of code looks like an error reporting
> version of an unbounded strcpy() call and there's a reason why
> strncpy() and friends now exist. :-)

Yes. Embarrassing. Have moved these to snprintf().

> Simon.
Thanks.

--
Anyone, who using social-media, forms an opinion regarding anything
other than the relative cuteness of this or that puppy-dog, needs
seriously to examine their critical thinking.

Re: %SYSTEM-F-ACCVIO in LIBOTS after several hours

<6228b507$0$700$14726298@news.sunsite.dk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=21285&group=comp.os.vms#21285

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Wed, 9 Mar 2022 09:09:08 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.6.2
Subject: Re: %SYSTEM-F-ACCVIO in LIBOTS after several hours
Content-Language: en-US
Newsgroups: comp.os.vms
References: <ZgQVJ.61269$5u1.40267@fx13.ams4>
<6227fb69$0$693$14726298@news.sunsite.dk> <t0aa9n$fuo$2@dont-email.me>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <t0aa9n$fuo$2@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 61
Message-ID: <6228b507$0$700$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 06d65a8c.news.sunsite.dk
X-Trace: 1646834951 news.sunsite.dk 700 arne@vajhoej.dk/68.9.63.232:52424
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Wed, 9 Mar 2022 14:09 UTC

On 3/9/2022 8:32 AM, Simon Clubley wrote:
> On 2022-03-08, Arne Vajhøj <arne@vajhoej.dk> wrote:
>> On 3/8/2022 4:55 PM, Mark Daniel wrote:
>>> Reproducible after several hours of continuous execution.
>>>
>>>> %SYSTEM-F-ACCVIO, access violation, reason mask=04, virtual
>>>> address=0000000000039B00, PC=FFFFFFFF842341D0, PS=0000001B
>>>> %TRACE-F-TRACEBACK, symbolic stack dump follows
>>>> image     module    routine               line      rel PC
>>>> abs PC
>>>> LIBOTS                                       0 00000000000121D0
>>>> FFFFFFFF842341D0
>>>> DECC$SHR  C$TXDOPRINT  putbuf            43567 000000000000CA82
>>>> FFFFFFFF84BC4FA2
>>>> DECC$SHR  C$TXDOPRINT  decc$$txdoprint   43658 000000000000CD62
>>>> FFFFFFFF84BC5282
>>>> DECC$SHR  C$TXDOPRINT  sprintf           44192 0000000000012492
>>>> FFFFFFFF84BCA9B2
>>>> HTTPDMON  HTTPDMON  TcpIpLookup          60709 00000000000109A2
>>>> 00000000000409A2
>>>> HTTPDMON  HTTPDMON  AddRequest           60536 0000000000009A62
>>>> 0000000000039A62
>>>> HTTPDMON  HTTPDMON  MonitorHttpd         58867 0000000000001392
>>>> 0000000000031392
>>>> HTTPDMON  HTTPDMON  main                 58751 0000000000000962
>>>> 0000000000030962
>>
>>> Line 60790 is
>>>
>>>>       3   60709             sprintf (ares[aCacheIdx], "[%s]",
>>>> strerror(errno));
>>
>>> The ACCVIO is related to the target, ares[aCacheIdx], or to the
>>> argument, strerror(errno)), or...?
>>
>> The access violation is trying to write to 39B00, so it has to be
>> ares[aCacheIdx].
>>
>> And if ares is a valid array of char arrays, then every indication
>> is that aCacheIdx has a bad value.
>
> Or alternatively, depending on how the VMS linker gathers any static
> data areas within a module when generating a final image, there could
> have been a buffer overflow from a writable page into a following R/O
> code page.

That is also a problem of aCacheIdx.

> Take another look at the reported virtual address. Don't you find it
> suspicious that the failing VA is exactly at the start of a page boundary ?

39B00 is not on a page boundary.

> Oh, and that sprintf() really should become snprintf() if it's available
> to Mark on the systems he supports people running this code on.

snprintf is available on VMS.

Arne

Re: %SYSTEM-F-ACCVIO in LIBOTS after several hours

<6228b760$0$695$14726298@news.sunsite.dk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=21286&group=comp.os.vms#21286

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Wed, 9 Mar 2022 09:19:09 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.6.2
Subject: Re: %SYSTEM-F-ACCVIO in LIBOTS after several hours
Content-Language: en-US
Newsgroups: comp.os.vms
References: <ZgQVJ.61269$5u1.40267@fx13.ams4> <t08rg3$6fr$1@dont-email.me>
<ho2WJ.22596$an1.6612@fx10.ams4>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <ho2WJ.22596$an1.6612@fx10.ams4>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 74
Message-ID: <6228b760$0$695$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 06d65a8c.news.sunsite.dk
X-Trace: 1646835552 news.sunsite.dk 695 arne@vajhoej.dk/68.9.63.232:52684
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Wed, 9 Mar 2022 14:19 UTC

On 3/9/2022 8:58 AM, Mark Daniel wrote:
>> On 2022-03-08, Mark Daniel <mark.daniel@wasd.vsm.com.au> wrote:
>>> Reproducible after several hours of continuous execution.
>>>
>>>> %SYSTEM-F-ACCVIO, access violation, reason mask=04, virtual
>>>> address=0000000000039B00, PC=FFFFFFFF842341D0, PS=0000001B
>>>> %TRACE-F-TRACEBACK, symbolic stack dump follows
>>>> image     module    routine               line      rel PC
>>>> abs PC
>>>> LIBOTS                                       0 00000000000121D0
>>>> FFFFFFFF842341D0
>>>> DECC$SHR  C$TXDOPRINT  putbuf            43567 000000000000CA82
>>>> FFFFFFFF84BC4FA2
>>>> DECC$SHR  C$TXDOPRINT  decc$$txdoprint   43658 000000000000CD62
>>>> FFFFFFFF84BC5282
>>>> DECC$SHR  C$TXDOPRINT  sprintf           44192 0000000000012492
>>>> FFFFFFFF84BCA9B2
>>>> HTTPDMON  HTTPDMON  TcpIpLookup          60709 00000000000109A2
>>>> 00000000000409A2
>>>> HTTPDMON  HTTPDMON  AddRequest           60536 0000000000009A62
>>>> 0000000000039A62
>>>> HTTPDMON  HTTPDMON  MonitorHttpd         58867 0000000000001392
>>>> 0000000000031392
>>>> HTTPDMON  HTTPDMON  main                 58751 0000000000000962

>>> Line 60790 is
>>>
>>>>        3   60709             sprintf (ares[aCacheIdx], "[%s]",
>>>> strerror(errno));

> Should be.
>
> #define CACHE_MAX 16
>
>    static  aCacheIdx, nCacheIdx;
>    static char  abuf [CACHE_MAX][256],
>                 ares [CACHE_MAX][256],
>                 nbuf [CACHE_MAX][256],
>                 nres [CACHE_MAX][256];
> 8< snip 8<
>       idx = nCacheIdx++ % CACHE_MAX;

And similar for aCacheIdx I presume.

> The ACCVIO is very indeterminate.  I mean the CACHE_MAX limit (16) will
> have been round-robined many times in the 8+ hours since last activated.
>  There are thousands/16 over that period.

I would put in a:

if(aCacheIdx < 0 || CACHE_MAX <= aCacheIdx)
{ printf("We have a problem aCacheIdx = %d\n", aCacheIdx);
} sprintf (ares[aCacheIdx], "[%s]", strerror(errno));

Or maybe:

if(aCacheIdx < 0 || CACHE_MAX <= aCacheIdx)
{ printf("We have a problem aCacheIdx = %d\n", aCacheIdx);
} if(strlen(strerror(errno)) > 255)
{ printf("We have a problem strlen(strrerror) = %d\n",
strlen(strerror(errno)));
} sprintf (ares[aCacheIdx], "[%s]", strerror(errno));

Something must be overwriting something.

Multithreaded code?

Arne

Re: %SYSTEM-F-ACCVIO in LIBOTS after several hours

<V73WJ.62017$5u1.56248@fx13.ams4>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=21287&group=comp.os.vms#21287

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx13.ams4.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:91.0)
Gecko/20100101 Thunderbird/91.6.2
Reply-To: mark.daniel@wasd.vsm.com.au
Subject: Re: %SYSTEM-F-ACCVIO in LIBOTS after several hours
Content-Language: en-US
Newsgroups: comp.os.vms
References: <ZgQVJ.61269$5u1.40267@fx13.ams4> <t08rg3$6fr$1@dont-email.me>
<ho2WJ.22596$an1.6612@fx10.ams4> <6228b760$0$695$14726298@news.sunsite.dk>
From: mark.dan...@wasd.vsm.com.au (Mark Daniel)
In-Reply-To: <6228b760$0$695$14726298@news.sunsite.dk>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 103
Message-ID: <V73WJ.62017$5u1.56248@fx13.ams4>
X-Complaints-To: abuse@eweka.nl
NNTP-Posting-Date: Wed, 09 Mar 2022 14:49:25 UTC
Organization: Eweka Internet Services
Date: Thu, 10 Mar 2022 01:19:25 +1030
X-Received-Bytes: 4386
 by: Mark Daniel - Wed, 9 Mar 2022 14:49 UTC

On 10/3/22 12:49 am, Arne Vajhøj wrote:
> On 3/9/2022 8:58 AM, Mark Daniel wrote:
>>> On 2022-03-08, Mark Daniel <mark.daniel@wasd.vsm.com.au> wrote:
>>>> Reproducible after several hours of continuous execution.
>>>>
>>>>> %SYSTEM-F-ACCVIO, access violation, reason mask=04, virtual
>>>>> address=0000000000039B00, PC=FFFFFFFF842341D0, PS=0000001B
>>>>> %TRACE-F-TRACEBACK, symbolic stack dump follows
>>>>> image     module    routine               line      rel PC abs PC
>>>>> LIBOTS                                       0 00000000000121D0
>>>>> FFFFFFFF842341D0
>>>>> DECC$SHR  C$TXDOPRINT  putbuf            43567 000000000000CA82
>>>>> FFFFFFFF84BC4FA2
>>>>> DECC$SHR  C$TXDOPRINT  decc$$txdoprint   43658 000000000000CD62
>>>>> FFFFFFFF84BC5282
>>>>> DECC$SHR  C$TXDOPRINT  sprintf           44192 0000000000012492
>>>>> FFFFFFFF84BCA9B2
>>>>> HTTPDMON  HTTPDMON  TcpIpLookup          60709 00000000000109A2
>>>>> 00000000000409A2
>>>>> HTTPDMON  HTTPDMON  AddRequest           60536 0000000000009A62
>>>>> 0000000000039A62
>>>>> HTTPDMON  HTTPDMON  MonitorHttpd         58867 0000000000001392
>>>>> 0000000000031392
>>>>> HTTPDMON  HTTPDMON  main                 58751 0000000000000962
>
>>>> Line 60790 is
>>>>
>>>>>        3   60709             sprintf (ares[aCacheIdx], "[%s]",
>>>>> strerror(errno));
>
>> Should be.
>>
>> #define CACHE_MAX 16
>>
>>     static  aCacheIdx, nCacheIdx;
>>     static char  abuf [CACHE_MAX][256],
>>                  ares [CACHE_MAX][256],
>>                  nbuf [CACHE_MAX][256],
>>                  nres [CACHE_MAX][256];
>> 8< snip 8<
>>        idx = nCacheIdx++ % CACHE_MAX;
>
> And similar for aCacheIdx I presume.

Yes.

idx = nCacheIdx++ % CACHE_MAX;

>> The ACCVIO is very indeterminate.  I mean the CACHE_MAX limit (16)
>> will have been round-robined many times in the 8+ hours since last
>> activated.   There are thousands/16 over that period.
>
> I would put in a:
>
> if(aCacheIdx < 0 || CACHE_MAX <= aCacheIdx)
> {
>     printf("We have a problem aCacheIdx = %d\n", aCacheIdx);
> }
> sprintf (ares[aCacheIdx], "[%s]", strerror(errno));
>
> Or maybe:
>
> if(aCacheIdx < 0 || CACHE_MAX <= aCacheIdx)
> {
>     printf("We have a problem aCacheIdx = %d\n", aCacheIdx);
> }

As "debug" statements; can be done. Would signal on corruption of the
indices.

2147483647 is a big number of lookups.

At 100/S that's ~249 days before rollover.

The maximum lookup rate is actually once every 2 seconds.

> if(strlen(strerror(errno)) > 255)
> {
>     printf("We have a problem strlen(strrerror) = %d\n",
> strlen(strerror(errno)));
> }
> sprintf (ares[aCacheIdx], "[%s]", strerror(errno));

As a "debug" statement; can do.

The move to snprintf() should mitigate any effect though.

Will wait and see if that has any effect.

> Something must be overwriting something.

Yes. And most commonly laid at the feet (or fingertips) of the developer.

> Multithreaded code?

No.

> Arne

--
Anyone, who using social-media, forms an opinion regarding anything
other than the relative cuteness of this or that puppy-dog, needs
seriously to examine their critical thinking.

Re: %SYSTEM-F-ACCVIO in LIBOTS after several hours

<7b3WJ.165941$391.77537@fx05.ams4>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=21288&group=comp.os.vms#21288

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!193.141.40.65.MISMATCH!npeer.as286.net!npeer-ng0.as286.net!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx05.ams4.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:91.0)
Gecko/20100101 Thunderbird/91.6.2
Reply-To: mark.daniel@wasd.vsm.com.au
Subject: Re: %SYSTEM-F-ACCVIO in LIBOTS after several hours
Content-Language: en-US
Newsgroups: comp.os.vms
References: <ZgQVJ.61269$5u1.40267@fx13.ams4> <t08rg3$6fr$1@dont-email.me>
<ho2WJ.22596$an1.6612@fx10.ams4> <6228b760$0$695$14726298@news.sunsite.dk>
<V73WJ.62017$5u1.56248@fx13.ams4>
From: mark.dan...@wasd.vsm.com.au (Mark Daniel)
In-Reply-To: <V73WJ.62017$5u1.56248@fx13.ams4>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 17
Message-ID: <7b3WJ.165941$391.77537@fx05.ams4>
X-Complaints-To: abuse@eweka.nl
NNTP-Posting-Date: Wed, 09 Mar 2022 14:52:51 UTC
Organization: Eweka Internet Services
Date: Thu, 10 Mar 2022 01:22:48 +1030
X-Received-Bytes: 1424
 by: Mark Daniel - Wed, 9 Mar 2022 14:52 UTC

On 10/3/22 1:19 am, Mark Daniel wrote:
8< snip 8<
>> And similar for aCacheIdx I presume.
>
> Yes.
>
>       idx = nCacheIdx++ % CACHE_MAX;
8< snip 8<

Oops...

idx = aCacheIdx++ % CACHE_MAX;

--
Anyone, who using social-media, forms an opinion regarding anything
other than the relative cuteness of this or that puppy-dog, needs
seriously to examine their critical thinking.

Re: %SYSTEM-F-ACCVIO in LIBOTS after several hours

<6228c2ab$0$698$14726298@news.sunsite.dk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=21289&group=comp.os.vms#21289

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Wed, 9 Mar 2022 10:07:21 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.6.2
Subject: Re: %SYSTEM-F-ACCVIO in LIBOTS after several hours
Content-Language: en-US
Newsgroups: comp.os.vms
References: <ZgQVJ.61269$5u1.40267@fx13.ams4> <t08rg3$6fr$1@dont-email.me>
<ho2WJ.22596$an1.6612@fx10.ams4> <6228b760$0$695$14726298@news.sunsite.dk>
<V73WJ.62017$5u1.56248@fx13.ams4> <7b3WJ.165941$391.77537@fx05.ams4>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <7b3WJ.165941$391.77537@fx05.ams4>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 32
Message-ID: <6228c2ab$0$698$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 23c6559d.news.sunsite.dk
X-Trace: 1646838444 news.sunsite.dk 698 arne@vajhoej.dk/68.9.63.232:54959
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Wed, 9 Mar 2022 15:07 UTC

On 3/9/2022 9:52 AM, Mark Daniel wrote:
> On 10/3/22 1:19 am, Mark Daniel wrote:
> 8< snip 8<
>>> And similar for aCacheIdx I presume.
>>
>> Yes.
>>
>>        idx = nCacheIdx++ % CACHE_MAX;
> 8< snip 8<
>
> Oops...
>
>       idx = aCacheIdx++ % CACHE_MAX;

Something is missing.

idx = aCacheIdx++ % CACHE_MAX;
sprintf (ares[aCacheIdx], "[%s]", strerror(errno));

must be equivalent of:

idx = aCacheIdx % CACHE_MAX;
aCacheIdx = aCacheIdx + 1;
sprintf (ares[aCacheIdx], "[%s]", strerror(errno));

and that does not limit aCacheIdx.

Typo?

Arne

Re: %SYSTEM-F-ACCVIO in LIBOTS after several hours

<ec5184d1-4a77-4bc9-b272-c491c440866en@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=21290&group=comp.os.vms#21290

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:620a:993:b0:67b:1385:242a with SMTP id x19-20020a05620a099300b0067b1385242amr90301qkx.14.1646839446524;
Wed, 09 Mar 2022 07:24:06 -0800 (PST)
X-Received: by 2002:a05:6214:5284:b0:42c:8d98:53ee with SMTP id
kj4-20020a056214528400b0042c8d9853eemr39702qvb.114.1646839446179; Wed, 09 Mar
2022 07:24:06 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Wed, 9 Mar 2022 07:24:05 -0800 (PST)
In-Reply-To: <6228c2ab$0$698$14726298@news.sunsite.dk>
Injection-Info: google-groups.googlegroups.com; posting-host=2003:c0:8f0f:590b:495:8626:d1c2:265e;
posting-account=cHmS7AoAAACMYAFH9kP9m4l8qjrXLvte
NNTP-Posting-Host: 2003:c0:8f0f:590b:495:8626:d1c2:265e
References: <ZgQVJ.61269$5u1.40267@fx13.ams4> <t08rg3$6fr$1@dont-email.me>
<ho2WJ.22596$an1.6612@fx10.ams4> <6228b760$0$695$14726298@news.sunsite.dk>
<V73WJ.62017$5u1.56248@fx13.ams4> <7b3WJ.165941$391.77537@fx05.ams4> <6228c2ab$0$698$14726298@news.sunsite.dk>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ec5184d1-4a77-4bc9-b272-c491c440866en@googlegroups.com>
Subject: Re: %SYSTEM-F-ACCVIO in LIBOTS after several hours
From: volker_h...@hotmail.com (Volker Halle)
Injection-Date: Wed, 09 Mar 2022 15:24:06 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 6
 by: Volker Halle - Wed, 9 Mar 2022 15:24 UTC

Mark,

just create/run that process using the /DUMP qualifier. It should create a process dump, when hitting the ACCVIO. Then you can analyze the dump using ANALYZE/CRASH (or ANALYZE/PROCESS) and look at the failing instruction code and data.

Reason Mask = 4 indicates an error during WRITE of data

Volker.

Re: %SYSTEM-F-ACCVIO in LIBOTS after several hours

<lM3WJ.22706$an1.5899@fx10.ams4>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=21292&group=comp.os.vms#21292

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!news.freedyn.de!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx10.ams4.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:91.0)
Gecko/20100101 Thunderbird/91.6.2
Reply-To: mark.daniel@wasd.vsm.com.au
Subject: Re: %SYSTEM-F-ACCVIO in LIBOTS after several hours
Content-Language: en-US
Newsgroups: comp.os.vms
References: <ZgQVJ.61269$5u1.40267@fx13.ams4> <t08rg3$6fr$1@dont-email.me>
<ho2WJ.22596$an1.6612@fx10.ams4> <6228b760$0$695$14726298@news.sunsite.dk>
<V73WJ.62017$5u1.56248@fx13.ams4> <7b3WJ.165941$391.77537@fx05.ams4>
<6228c2ab$0$698$14726298@news.sunsite.dk>
From: mark.dan...@wasd.vsm.com.au (Mark Daniel)
In-Reply-To: <6228c2ab$0$698$14726298@news.sunsite.dk>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 61
Message-ID: <lM3WJ.22706$an1.5899@fx10.ams4>
X-Complaints-To: abuse@eweka.nl
NNTP-Posting-Date: Wed, 09 Mar 2022 15:32:33 UTC
Organization: Eweka Internet Services
Date: Thu, 10 Mar 2022 02:02:33 +1030
X-Received-Bytes: 2693
 by: Mark Daniel - Wed, 9 Mar 2022 15:32 UTC

On 10/3/22 1:37 am, Arne Vajhøj wrote:
> On 3/9/2022 9:52 AM, Mark Daniel wrote:
>> On 10/3/22 1:19 am, Mark Daniel wrote:
>> 8< snip 8<
>>>> And similar for aCacheIdx I presume.
>>>
>>> Yes.
>>>
>>>        idx = nCacheIdx++ % CACHE_MAX;
>> 8< snip 8<
>>
>> Oops...
>>
>>        idx = aCacheIdx++ % CACHE_MAX;
>
> Something is missing.
>
> idx = aCacheIdx++ % CACHE_MAX;
> sprintf (ares[aCacheIdx], "[%s]", strerror(errno));
>
> must be equivalent of:
>
> idx = aCacheIdx % CACHE_MAX;
> aCacheIdx = aCacheIdx + 1;
> sprintf (ares[aCacheIdx], "[%s]", strerror(errno));
>
> and that does not limit aCacheIdx.
>
> Typo?

No. Cut-and-paste :-) But a bug all the same. Well-spotted!

There are two code paths. One for Ipv4 and another for 6.

Everywhere uses ares[idx] except one :-{

> memset (&addr6, 0, sizeof(addr6));
> if (inet_pton (AF_INET6, Address, &addr6.sin6_addr) > 0)
> {
8< snip 8<
> }
> else
> snprintf (ares[aCacheIdx], sizeof(ares[0]),
> "[%s]", strerror(errno));
> return (ares[idx]);

That's likely it!

And IPv6 addresses are resolved so infrequently -- and are corrupted
even less frequently -- that would explain the frequency of the crash.

> Arne

Thank you Arne.

And Simon; note the clip is from the revised code.

--
Anyone, who using social-media, forms an opinion regarding anything
other than the relative cuteness of this or that puppy-dog, needs
seriously to examine their critical thinking.

Re: %SYSTEM-F-ACCVIO in LIBOTS after several hours

<t0aqmv$d2b$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=21293&group=comp.os.vms#21293

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: %SYSTEM-F-ACCVIO in LIBOTS after several hours
Date: Wed, 9 Mar 2022 18:12:48 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <t0aqmv$d2b$1@dont-email.me>
References: <ZgQVJ.61269$5u1.40267@fx13.ams4> <6227fb69$0$693$14726298@news.sunsite.dk> <t0aa9n$fuo$2@dont-email.me> <6228b507$0$700$14726298@news.sunsite.dk>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 9 Mar 2022 18:12:48 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="f32a36f06d4c22817480eb7a1261b018";
logging-data="13387"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/MtCaRTYh3qmLXM6KK+nXYtKM5Q1zzCrc="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:GzH1FfCdKcA2KsPdcLATJ+ugCFs=
 by: Simon Clubley - Wed, 9 Mar 2022 18:12 UTC

On 2022-03-09, Arne Vajhøj <arne@vajhoej.dk> wrote:
>
> 39B00 is not on a page boundary.
>

You are correct sorry. Wrong number of trailing zero digits in my head
while doing the sums.

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor