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=0.1 required=5.0 tests=BAYES_05,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,976a050e0f89277c,start X-Google-Attributes: gid103376,public From: Guido Tesch Subject: Urgent question: malloc and ada... Date: 1998/04/07 Message-ID: <352A79C2.15FB7483@nathan.gmd.de>#1/1 X-Deja-AN: 341797846 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Organization: GMD, Sankt Augustin, Germany Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-04-07T00:00:00+00:00 List-Id: High there. I have a serious problem with interfacing between Ada and C. In a C program, I allocate a lot of memory via malloc (more than one MB). When I run the Ada program that interfaces with the C stuff, I get a segmentation fault exactly at a point, where a subprocedure is called, before even the first code line of this procedure is touched. My guess is that the memory management from C and Ada do not work together when doing big mallocs, and that some portion of my Ada program code had been overwritten by C's mallocs. Do you have experiences with this kind of stuff? Could you tell me if I'm right and how to solve this ugly problem? Thanks in advance. Guido P.S.: Answers please via mailto:guido.tesch@gmd.de Thank you. -- //// 0(o o)0 -oOO--(_)--OOo-------------------------------------------------------- University of Bonn, Germany Guido E-Mail: tesch@informatik.uni-bonn.de Tesch URL: http://titan.informatik.uni-bonn.de/~tesch oooO Presently working at GMD, Sankt Augustin, Germany ( ) Oooo http://www.gmd.de/ Tel.: +49-2241-14-2714 ---\ (---( )-------------------------------------------------------- \_) ) / (_/