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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ec31fb6eda682268 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!news2.telebyte.nl!fu-berlin.de!uni-berlin.de!not-for-mail From: "Marc A. Criley" Newsgroups: comp.lang.ada Subject: Re: STORAGE_ERROR in adainit Date: Wed, 11 Aug 2004 17:29:01 -0500 Message-ID: <2nvktgF5530iU1@uni-berlin.de> References: X-Trace: news.uni-berlin.de V2E0LkeCIqRBgGaej8Fx0AwM3TW/bilPFTdE0jxksTPL5NgOVx X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Xref: g2news1.google.com comp.lang.ada:2684 Date: 2004-08-11T17:29:01-05:00 List-Id: "James Alan Farrell" wrote: > 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) Can you write a toy program with a C main that calls into Ada? Like building one of the example programs. Just to make sure there's no environmental issue that's causing interference. Then how about a C main that just calls adainit? Do you get a storage error on adainit when calling just one of the library functions? If not, which function triggers the problem and in what library does it reside? This is the kind of stuff I'd try to try to starting localizing the problem... > Is there anything special I have to do to create C libraries when > linking to Ada libraries? No, just plain old compilation of them should work fine.