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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,aa0a204aba5ffa1 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news3.google.com!news.glorb.com!peer1.news.newnet.co.uk!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!mutlu.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: GNAT Spitbol segmentation fault Date: Thu, 18 Jan 2007 22:31:10 +0000 Organization: Pushface Message-ID: References: <5197nkF1jbsb0U1@mid.individual.net> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1169159470 744 62.49.19.209 (18 Jan 2007 22:31:10 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Thu, 18 Jan 2007 22:31:10 +0000 (UTC) Cancel-Lock: sha1:M4rn8eiV8sKMn/JkuetON/McMRg= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news2.google.com comp.lang.ada:8288 Date: 2007-01-18T22:31:10+00:00 List-Id: "Alex R. Mosteo" writes: > Very rarely I get a Storage_Error and segment violation that kills > the program. Running inside gdb I get this backtrace: > > #0 0xb7ddf37c in memcpy () from /lib/tls/i686/cmov/libc.so.6 > #1 0x081b7d8d in ada.strings.fixed.replace_slice () > #2 0x081bd6cf in ada.strings.unbounded.replace_slice () > #3 0x081d4f5e in gnat.spitbol.patterns.match () > > Unfortunately, address2line doesn't make any valid source lines from > these addresses, I suppose because the gdb wrapping (but this is > just a guess). For reasons I don't understand the GNAT runtime is compiled without -g. You could rebuild the RTL (there is a script to do so in the adalib directory, I think -- yes, Makefile.adalib -- not always completely straightforward to use IME but usually possible!).