Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"I'm not afraid of dying, I just don't want to be there when it happens." -- Woody Allen


devel / comp.lang.ada / Unpropagated exception handling on zfp

SubjectAuthor
* Unpropagated exception handling on zfpKevin Chadwick
`- Re: Unpropagated exception handling on zfpKevin Chadwick

1
Unpropagated exception handling on zfp

<ui3fpr$2t7kq$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10242&group=comp.lang.ada#10242

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: kc-usenet@chadwicks.me.uk (Kevin Chadwick)
Newsgroups: comp.lang.ada
Subject: Unpropagated exception handling on zfp
Date: Fri, 3 Nov 2023 18:56:59 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <ui3fpr$2t7kq$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 3 Nov 2023 18:56:59 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="bef5d5f89874f91266e8b81092c46e45";
logging-data="3055258"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18LYQpV4XRqnLpeqH1d4uWtYQs+52/6AeM="
User-Agent: PhoNews/3.13.1 (Android/13)
Cancel-Lock: sha1:AkPcSncqDBppxwG1kHQBkekCk3o=
 by: Kevin Chadwick - Fri, 3 Nov 2023 18:56 UTC

On zfp with no exception propagation. You can use a local exception handler
to return thereby avoiding the last chance handler for this one procedure
or even exception type.

Obviously it would be better to take the time and prove an absence of
runtime errors.

However, when you do not have that time. I believe it is not risky if you
are sure the stack will be cleaned up upon return. Indeed the handler can
return or set known safe values. I assume that out of bounds writes are
caught by constraint checks before they occur? Sometimes you do not want to
reset the micro but just drop some functionality by return but would still
like to get the exception message to log.

The only issue is that I cannot see how to get to the exception messages
System.Address except via the last chance handler. zfp does not permit
exception propagation and so the Exception_Occurence cannot be used.

Is it possible with gnat 13, even if I need to enable the secondary stack,
just for this capability?

--
Regards, Kc

Re: Unpropagated exception handling on zfp

<ui550c$3am5f$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10245&group=comp.lang.ada#10245

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!news.samoylyk.net!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.mixmin.net!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: kc-usenet@chadwicks.me.uk (Kevin Chadwick)
Newsgroups: comp.lang.ada
Subject: Re: Unpropagated exception handling on zfp
Date: Sat, 4 Nov 2023 10:05:01 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <ui550c$3am5f$1@dont-email.me>
References: <ui3fpr$2t7kq$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 4 Nov 2023 10:05:01 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="005eee85155c253d6d4f1a60a8ed3dda";
logging-data="3496111"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+NjzRywmWln8iuQyhfE0PCzLML2Zu2Wa4="
User-Agent: PhoNews/3.13.1 (Android/13)
Cancel-Lock: sha1:A3HBQyBDWb9x9zkdmezU25w8M9w=
In-Reply-To: <ui3fpr$2t7kq$1@dont-email.me>
 by: Kevin Chadwick - Sat, 4 Nov 2023 10:05 UTC

>The only issue is that I cannot see how to get to the exception messages
> System.Address except via the last chance handler. zfp does not permit
> exception propagation and so the Exception_Occurence cannot be used.
>

If not, then atleast I can log the exception type and function but not the
line information when I wish to avoid micro reset.

--
Regards, Kc

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor