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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,dbbbb21ed7f581b X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Operation can be dispatching in only one type Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <025105f2-5571-400e-a66f-ef1c3dc9ef32@g27g2000yqn.googlegroups.com> <94e76749-c49c-45aa-b7dc-386da0d71c66@e4g2000prn.googlegroups.com> <1u0im1tdws15u.1n9v9rz7bu4t4$.dlg@40tude.net> <39kf90ha60px$.d7746cf5cx6h.dlg@40tude.net> <691d6892-bc5e-4d81-8025-c36556bf2593@13g2000prl.googlegroups.com> <1h9hilcg5i6il.12edpgu4szw1h.dlg@40tude.net> <1wtsriaxu0s4s$.ikwnnz5teukp$.dlg@40tude.net> <1iipp3bn16fe2.yqa1gz1ru17a$.dlg@40tude.net> <18wh86jvjvoe0.cofxcc8udm6q$.dlg@40tude.net> <53a35ed9-88ac-43dc-b2a2-8d6880802328@j19g2000yqk.googlegroups.com> <4b091fb9$0$6567$9b4e6d93@newsspool4.arcor-online.net> Date: Sun, 22 Nov 2009 17:25:36 +0100 Message-ID: <1w0q3zxzw79pt$.5z0juiky7kfd$.dlg@40tude.net> NNTP-Posting-Date: 22 Nov 2009 17:25:34 CET NNTP-Posting-Host: a73c6f77.newsspool1.arcor-online.net X-Trace: DXC=ic7b_VRcZ[ZAX0F2i>Sh[[6LHn;2LCV^[ On Sun, 22 Nov 2009 12:25:40 +0100, Georg Bauhaus wrote: > On 11/22/09 6:45 AM, xorque wrote: >> >> For this (minor) project, I tried a multitude of different approaches >> and ended up >> with one that appeared safe, right until it ended up causing GNAT to >> have some >> sort of heart attack: >> >> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42140 > > Do you get segmentation fault with GNAT run in Ada mode? > (Currently, this would mean options -gnato -fstack-check > and no -gnatp, I think.) The code is broken. It creates a temporal object and takes an access to its component. The obtained pointer is dangling. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de