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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fb264cdd67c2f20f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Newsgroups: comp.lang.ada Subject: Re: Compiler Bug or what I'm doing wrong? References: <05lkrrojfd.fsf@hod.lan.m-e-leypold.de> <1150875880.103859.95200@p79g2000cwp.googlegroups.com> From: M E Leypold Date: 21 Jun 2006 14:29:59 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Some cool user agent (SCUG) NNTP-Posting-Host: 88.72.203.42 X-Trace: news.arcor-ip.de 1150892647 88.72.203.42 (21 Jun 2006 14:24:07 +0200) X-Complaints-To: abuse@arcor-ip.de Path: g2news2.google.com!news4.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-ip.de!news.arcor-ip.de!not-for-mail Xref: g2news2.google.com comp.lang.ada:4873 Date: 2006-06-21T14:29:59+02:00 List-Id: "Ludovic Brenta" writes: > M E Leypold writes : > > I've generated a core and also can reproduce the SIGSEGV in this > > configuration 100% of the time. Don't hesitate to ask for more > > debugger output or more code. > > I'd ask for *less* code :-) > > It would be nice if you could write a minimal test case that reproduces > the problem. Yes, it takes time. I cannot do that for you, for various I've already done that (it took me 10 hours so far to isolate the problem from a larger program): The original program was much larger. I'll be trying to even strip the example furter, but the problem with the bug seems to be that it's a Heisenbug which vanishes when you delete some fields in the datastructure, then turns up again if you delete more fields and so on. The malloc() implementation of libc which the GNAt runtime uses is unchecked so obviously one gets sometimes away when freeing unvalid pointers and (as we know from C programming). Whatever: I'll try to produce an even smaller test case. > reasons. Please have a look at Debian's bug tracking system (package > gnat) or GCC's bugzilla for examples of good test cases. Yes, I know what a good test case is and I know the debian bug tracking system. You might consider my post to c.l.a. as a kind of preliminary report: Basically I wanted to be sure that I haven't overlooked anything glaringly obvious. Regards -- Markus