comp.lang.ada
 help / color / mirror / Atom feed
From: James Alan Farrell <anonymous@anonymous.com>
Subject: STORAGE_ERROR in adainit
Date: Wed, 11 Aug 2004 17:31:24 -0400
Date: 2004-08-11T17:31:24-04:00	[thread overview]
Message-ID: <b43lh0pqd1o8tlgc0nu05emrrncumkf3du@4ax.com> (raw)

Hello,
I am asking this question again because I think I did not explain it
well before.  (most of the answers boiled down to "make sure you are
calling adainit" -- but adainit is what is giving the error!)

I hope that did not sound snide - I do appreciate that people took the
time to answer.

I have a mixed language program with the main function written in C.
There are several libraries written C and one written in Ada.  The
first command in main is adainit, and that function is raising the
following error:

raised STORAGE_ERROR : stack overflow (or erroneous memory access)

If I remove all the calls to C library routines the call to adainit
does not raise this error.  All the removed calls take place AFTER the
call to adainit -- which makes me think there is something wrong with
how the libraries are linked.  It feels like one library is
overwriting another or something.

I am using gnat version 3.15p to compile the Ada, and gcc 2.8.1 to
compile the C code.

I have looked through the GNAT manual sections on creating libraries
and mixed language programming, and as far as I can tell everything is
correct.  I believe I gave the details in the previous posting.  Due
to the answers to that posting I will simply emphasize that I have
read the relevant sections and unless I am not understanding
something, the makefile is correct.  And again I will emphasize that I
am calling adainit, and that is where the problem is occuring.

Is there anything special I have to do to create C libraries when
linking to Ada libraries?

I've been stuck on this issue for a week and would REALLY like to show
some forward progress.  If anyone has some insight into this problem I
would REALLY appreciate hearing it.

Thank you,
James Alan Farrell
GrammaTech, inc.



             reply	other threads:[~2004-08-11 21:31 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-11 21:31 James Alan Farrell [this message]
2004-08-11 22:29 ` STORAGE_ERROR in adainit Marc A. Criley
2004-08-12 13:35   ` James Alan Farrell
2004-08-12 14:20     ` Frode Tenneboe
2004-08-12 15:55       ` James Alan Farrell
2004-08-12 21:17         ` Björn Persson
2004-08-12 19:28 ` James Alan Farrell
2004-08-12 19:42   ` Ludovic Brenta
2004-08-12 22:10     ` Stephen Leake
2004-08-12 21:15   ` Björn Persson
2004-08-13 13:36     ` James Alan Farrell
2004-08-17 21:37       ` Björn Persson
2004-08-18 14:00         ` James Alan Farrell
2004-08-18 15:57           ` Björn Persson
2004-08-18 19:44           ` Simon Wright
2004-08-18 21:13             ` James Alan Farrell
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox