From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.0 required=3.0 tests=BAYES_40,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a37:2d02:0:b0:71a:23b2:e2 with SMTP id t2-20020a372d02000000b0071a23b200e2mr1468668qkh.139.1676274188650; Sun, 12 Feb 2023 23:43:08 -0800 (PST) X-Received: by 2002:aca:1218:0:b0:37b:8f4c:c230 with SMTP id 24-20020aca1218000000b0037b8f4cc230mr1384208ois.151.1676274188394; Sun, 12 Feb 2023 23:43:08 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 12 Feb 2023 23:43:08 -0800 (PST) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=88.160.66.39; posting-account=6yLzewoAAABoisbSsCJH1SPMc9UrfXBH NNTP-Posting-Host: 88.160.66.39 References: <823bfde7-adb3-4cd2-adca-744cf676864an@googlegroups.com> <5176a59b-9224-45a0-a803-df1acf8ab8c7n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: pragmas in doubly linked lists From: Emmanuel Briot Injection-Date: Mon, 13 Feb 2023 07:43:08 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 2171 Xref: reader01.eternal-september.org comp.lang.ada:64908 List-Id: On Monday, February 13, 2023 at 8:40:25 AM UTC+1, Mario Blunk wrote: > Thanks for your reply. All the cursors in my scenario are still valid. As= far as I understood from John Barnes book Ada 2005, a cursor identifies th= e container and the item. In my case both the items and the containers stil= l exist. So I assumed that collecting cursors in a list should work. Fair enough, The next things I would try (I am on linux, not sure what works on other pl= atforms) are: - valgrind to detect invalid memory access (that will immediately which= cursor, if any, is accessing free memory and where that memory was freed) - address sanitiser (asan) which does the same but so much faster. Tha= t requires recompiling your executable with `-fsanitizer=3Daddress` though