Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #5598

Re: Memory corruption problem

Path csiph.com!feeder.erje.net!1.eu.feeder.erje.net!border1.nntp.ams1.giganews.com!nntp.giganews.com!buffer1.nntp.ams1.giganews.com!buffer2.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date Fri, 16 Nov 2018 17:46:37 -0600
From Martin <News03@avisoft.f9.co.uk>
Subject Re: Memory corruption problem
Newsgroups comp.sys.acorn.programmer
Date Fri, 16 Nov 2018 23:46:15 +0000 (GMT)
Message-ID <5758174fd0News03@avisoft.f9.co.uk> (permalink)
References <2e86dd5757.Alan.Adams@ArmX6.adamshome.org.uk> <5757e90ea1News03@avisoft.f9.co.uk> <dd0dec5757.Alan.Adams@ArmX6.adamshome.org.uk> <575802fd6cNews03@avisoft.f9.co.uk> <3414115857.Alan.Adams@ArmX6.adamshome.org.uk>
User-Agent Pluto/3.17k (RISC OS/5.24) NewsHound/v1.52-32
Organization None
Lines 44
X-Usenet-Provider http://www.giganews.com
X-Trace sv3-g09Ctyt/X5l0ZXT7xhnvbaBBBLSI4R8GQxd34ivVZN87YxgrhS9tjCNk7FUuAcJCpAGH5GdF4VO0auO!G4er8LcYCGsu23dxbtU9RPTQhNcmMphhi/L+WFIX6Euu0i5QVLYM74dZ9qvqS6MqM25/v6uXbyBi!MOA=
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 2867
Xref csiph.com comp.sys.acorn.programmer:5598

Show key headers only | View raw


On 16 Nov in article <3414115857.Alan.Adams@ArmX6.adamshome.org.uk>,
   Alan Adams <alan@adamshome.org.uk> wrote:
> In message <575802fd6cNews03@avisoft.f9.co.uk>
>           Martin <News03@avisoft.f9.co.uk> wrote:
> > On 16 Nov in article <dd0dec5757.Alan.Adams@ArmX6.adamshome.org.uk>,
> >    Alan Adams <alan@adamshome.org.uk> wrote:

[Snip]

> > If there are a multiplicity of writes that cannot be verified, can
> > you add a guard word at the end of each block, and check they are
> > valid as often as possible?

> I'm doing that for the ring buffers, to guard against overruns.
> However I don't think this is an overrun, more likely a
> miscalculated pointer, which could be absolutely anywhere in the
> address space.

All I can suggest is to write a simple PROC to validate a pointer as
between TOP and HIMEM. Then add calls before your most likely pointer
writes, until you have either done them all or found a culprit. 
Tedious, unless anyone can think of a better way!

> It would be nice to have proper memory protection - I grew up with
> VMS which would produce "access violation" when this happened, and
> a stack dump to show you how you got to it. Unfortunately putting
> reportstack in the error handler is useless, because the call
> stack has already gone.

It is one of the limitations of RISC OS, and BASIC in particular.
I was used to MVS protection and debugging facilities!

> I've upgraded to 5.25, which made no difference. I don't think it's 
> high-vector though - how can I tell?

!ScrHelp from Chris Hall will tell you ... and there are probably
other ways as well.

Martin

-- 
Martin Avison 
Note that unfortunately this email address will become invalid
without notice if (when) any spam is received. 

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Memory corruption problem Alan Adams <alan@adamshome.org.uk> - 2018-11-16 13:15 +0000
  Re: Memory corruption problem Martin <News03@avisoft.f9.co.uk> - 2018-11-16 15:21 +0000
    Re: Memory corruption problem Alan Adams <alan@adamshome.org.uk> - 2018-11-16 15:53 +0000
      Re: Memory corruption problem Martin <News03@avisoft.f9.co.uk> - 2018-11-16 20:04 +0000
        Re: Memory corruption problem Alan Adams <alan@adamshome.org.uk> - 2018-11-16 22:38 +0000
          Re: Memory corruption problem Martin <News03@avisoft.f9.co.uk> - 2018-11-16 23:46 +0000
  Re: Memory corruption problem David Buck <dbuckhome@gmail.com> - 2018-11-16 23:15 -0800
    Re: Memory corruption problem Alan Adams <alan@adamshome.org.uk> - 2018-11-17 12:21 +0000
      Re: Memory corruption problem Alan Adams <alan@adamshome.org.uk> - 2018-11-17 13:10 +0000
        Re: Memory corruption problem Martin <News03@avisoft.f9.co.uk> - 2018-11-17 19:01 +0000
          Re: Memory corruption problem Alan Adams <alan@adamshome.org.uk> - 2018-11-17 21:04 +0000
        Re: Memory corruption problem Erik G <noreply123@xs4all.nl> - 2018-11-24 20:17 +0100
    Re: Memory corruption problem "John Williams (News)" <UCEbin@tiscali.co.uk> - 2018-11-17 12:26 +0000
    Re: Memory corruption problem David Higton <dave@davehigton.me.uk> - 2018-11-17 20:59 +0000

csiph-web