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 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!newsfeed0.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: hreba Newsgroups: comp.lang.ada Subject: Re: storage error: stack overflow Date: Fri, 14 Aug 2015 10:53:49 -0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net 3tVG7QQ6p3n3CoZMWpTJyA4HGnXoEKaChgMjQh54Nzw4ZPxQdT Cancel-Lock: sha1:RO+8e77429NFLFPVjvjx5RsWARk= User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 In-Reply-To: Xref: news.eternal-september.org comp.lang.ada:27450 Date: 2015-08-14T10:53:49-03:00 List-Id: On 08/13/2015 04:05 AM, Simon Wright wrote: > hreba writes: > >> ==4823== at 0x66FF1A0: ada__strings__unbounded__reference (in >> /usr/lib/x86_64-linux-gnu/libgnat-4.6.so.1) >> ==4823== by 0x6703851: ada__strings__unbounded___assign__2 (in >> /usr/lib/x86_64-linux-gnu/libgnat-4.6.so.1) >> ==4823== by 0x425FE5: surfaces__deep_copy_base (surfaces.adb:12) > > If you built your program with -g it should have linked with the static > version of the libraries rather than the dynamic one, which would > probably have been able to provide line number information within > libgnat. Is it possible you don't have libgnat.a installed? Is there > some -dev version of the libraries that you don't have? (I don't know > Debian-based systems well). > All project files have "-g" as Compiler switch. One imported project file has it additionally as builder and linker switch. Makes it a difference? The installed files from libgnat are /usr /usr/lib /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libgnarl-4.6.so.1 /usr/lib/x86_64-linux-gnu/libgnat-4.6.so.1 /usr/share /usr/share/doc /usr/share/doc/libgnat-4.6 /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/libgnat-4.6 So there are only dynamic libraries. 'find /usr -name libgnat.a' found /usr/lib/gcc/x86_64-linux-gnu/4.6/rts-native/adalib/libgnat.a but I don't know where this comes from (perhaps I tried AdaCore earlier, I don't remember) and if this directory is being searched. -- Frank Hrebabetzky +55 / 48 / 3235 1106 Florianopolis, Brazil