From: hreba <f_hreba@yahoo.com.br>
Subject: Re: storage error: stack overflow
Date: Wed, 12 Aug 2015 21:55:35 -0300
Date: 2015-08-12T21:55:35-03:00 [thread overview]
Message-ID: <d32887F344U1@mid.individual.net> (raw)
In-Reply-To: <ly4mk4rcyq.fsf@pushface.org>
On 08/12/2015 07:57 AM, Simon Wright wrote:
> hreba <f_hreba@yahoo.com.br> writes:
>
>> I am developing a program on 3 computers in parallel (depending on
>> where I am). On 2 of them the executable works as expected, on one I
>> get:
>>
>> raised PROGRAM_ERROR ; adjust/finalize raised STORAGE_ERROR: stack
>> overflow (or erroneous memory access)
>
>> How can I find out what is wrong?
>
> Use the debugger and 'catch exception storage_error'?
>
> I'd think it's more likely an erroneous memory access than a stack
> overflow. As I remember, GNAT catches a SIGSEGV and does its best to
> work out what the problem was, but at that level it can be hard to tell.
>
The name of my program is "sos". Calling it with gdb:
-----------------------------------------------------
~/Projects/SOS/Exec $ gdb sos
<some infos about gdb>
Reading symbols from sos...done
(gdb) catch exception storage_error
Unable to insert catchpoint. Try to start the program first.
(gdb) run
Starting program: /home/frank/Projects/SOS/Exec/sos
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1"
(process:2365): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale
Program received signal SIGSEGV, segmentation fault.
0x00007ffff627a1a0 in ada.strings.unbounded.reference () from
/usr/lib/x86_64-linux-gnu/libgnat-4.6.so.1
(gdb) catch exception storage_error
Your Ada runtime appears to be missing some debug information.
Cannot insert Ada exception catchpoint in this configuration.
---------------------------------------------------------
I compiled my program for debugging, but the debug information perhaps
is missing in libgnat. Anyway, the problem has to do with
Ada.Strings.Unbounded. For more, see my answer to Emmanuel Briot.
--
Frank Hrebabetzky +55 / 48 / 3235 1106
Florianopolis, Brazil
next prev parent reply other threads:[~2015-08-13 0:55 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-11 21:53 storage error: stack overflow hreba
2015-08-11 22:19 ` Jeffrey R. Carter
2015-08-12 15:01 ` hreba
2015-08-12 16:00 ` AdaMagica
2015-08-12 17:51 ` Jeffrey R. Carter
2015-08-13 2:17 ` hreba
2015-08-12 8:27 ` briot.emmanuel
2015-08-13 1:34 ` hreba
2015-08-13 2:53 ` Jeffrey R. Carter
2015-08-13 7:05 ` Simon Wright
2015-08-14 13:53 ` hreba
2015-08-14 16:01 ` Simon Wright
2015-08-14 17:00 ` Simon Wright
2015-08-13 7:19 ` Simon Wright
2015-08-14 13:20 ` hreba
2015-08-12 10:31 ` Markus Schöpflin
2015-08-13 1:36 ` hreba
2015-08-12 10:57 ` Simon Wright
2015-08-13 0:55 ` hreba [this message]
2015-08-13 6:58 ` Simon Wright
2015-08-18 2:16 ` hreba
2015-08-18 5:49 ` Jeffrey R. Carter
2015-08-18 7:24 ` Egil H H
2015-08-18 12:23 ` hreba
2015-08-18 12:37 ` Jacob Sparre Andersen
2015-08-18 14:02 ` hreba
2015-08-18 14:11 ` Dmitry A. Kazakov
2015-08-18 14:16 ` Jeffrey R. Carter
2015-08-18 20:56 ` Randy Brukardt
2015-08-19 1:48 ` hreba
2015-08-19 5:10 ` Jeffrey R. Carter
2015-08-19 8:44 ` Georg Bauhaus
2015-08-19 11:56 ` hreba
2015-08-19 20:53 ` Bob Duff
2015-08-18 14:15 ` Egil H H
2015-08-19 13:07 ` hreba
2015-08-18 14:16 ` Jeffrey R. Carter
2015-08-19 13:12 ` hreba
2015-08-19 20:47 ` Bob Duff
2015-08-19 21:47 ` Jeffrey R. Carter
2015-08-20 7:18 ` Dmitry A. Kazakov
2015-08-20 20:48 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox