From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a6b:3ad7:: with SMTP id h206-v6mr1085897ioa.35.1530355711718; Sat, 30 Jun 2018 03:48:31 -0700 (PDT) X-Received: by 2002:a9d:53c1:: with SMTP id i1-v6mr218901oth.1.1530355711426; Sat, 30 Jun 2018 03:48:31 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!feeder4.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!d7-v6no1245280itj.0!news-out.google.com!z3-v6ni938iti.0!nntp.google.com!u78-v6no1226582itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 30 Jun 2018 03:48:31 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:c7d:3c35:b000:325a:3aff:fe0f:37a5; posting-account=L2-UcQkAAAAfd_BqbeNHs3XeM0jTXloS NNTP-Posting-Host: 2a02:c7d:3c35:b000:325a:3aff:fe0f:37a5 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <70c11a71-3832-4f57-8127-f3f1c48a052f@googlegroups.com> Subject: Strange crash on custom iterator From: Lucretia Injection-Date: Sat, 30 Jun 2018 10:48:31 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:53472 Date: 2018-06-30T03:48:31-07:00 List-Id: I finally got around to getting back to my iterator and on a first test implementation, i.e. to just iterate over each element of the array, the thing crashes in the Element function when accessing the array through the cursor. The source is https://bpaste.net/show/6c5fca4c0ffd and the gdb session is https://bpaste.net/show/5b0cf9d2be79 Any idea how it could be doing this? I'm wondering if this is because I'm not using a tagged type.