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!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: GNAT Spitbol segmentation fault Date: Fri, 19 Jan 2007 10:32:37 +0100 Message-ID: <51bhglF1ifn0bU1@mid.individual.net> References: <5197nkF1jbsb0U1@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: individual.net RK66+cIkkNPi/+b99G6KtwDzzwvUcwHHE19uGFqZPmVweFEWo= User-Agent: KNode/0.10.4 Xref: g2news2.google.com comp.lang.ada:8316 Date: 2007-01-19T10:32:37+01:00 List-Id: Simon Wright wrote: > "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. Ah, I see, that's the reason. > 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!). The error happens so rarely that I have more pressing matters, but I'll try if I come to it. Thanks for all the suggestions, A. Mosteo.