comp.lang.ada
 help / color / mirror / Atom feed
* Urgent question: malloc and ada...
@ 1998-04-07  0:00 Guido Tesch
  1998-04-09  0:00 ` Joe Gwinn
  0 siblings, 1 reply; 43+ messages in thread
From: Guido Tesch @ 1998-04-07  0:00 UTC (permalink / raw)



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
---\ (---(   )--------------------------------------------------------
    \_)   ) /
         (_/




^ permalink raw reply	[flat|nested] 43+ messages in thread

end of thread, other threads:[~1998-05-12  0:00 UTC | newest]

Thread overview: 43+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-04-07  0:00 Urgent question: malloc and ada Guido Tesch
1998-04-09  0:00 ` Joe Gwinn
1998-04-10  0:00   ` Urgent question: malloc and ada...READ/NEW/FOLLOWUP Larry Kilgallen
1998-04-12  0:00     ` Joe Gwinn
1998-04-14  0:00       ` Robert Dewar
1998-04-16  0:00         ` Joe Gwinn
1998-04-17  0:00           ` Robert Dewar
1998-04-18  0:00             ` Joe Gwinn
1998-04-18  0:00               ` Robert Dewar
1998-04-25  0:00                 ` Joe Gwinn
1998-04-26  0:00                   ` Robert Dewar
1998-04-26  0:00                     ` Jonathan Guthrie
1998-04-26  0:00                       ` Simon Wright
1998-04-26  0:00                         ` Larry Kilgallen
1998-04-27  0:00                           ` Stephen Leake
1998-04-26  0:00                       ` Robert Dewar
1998-04-30  0:00                       ` Robert I. Eachus
1998-04-30  0:00                         ` Urgent question: malloc and ada Larry Kilgallen
1998-05-01  0:00                           ` Robert Dewar
1998-05-01  0:00                             ` Charles Hixson
1998-05-02  0:00                               ` Jonathan Guthrie
1998-05-02  0:00                             ` Corey Minyard
1998-05-06  0:00                             ` Robert I. Eachus
1998-05-12  0:00                               ` Craig T. Spannring
1998-05-12  0:00                                 ` Robert Dewar
     [not found]                           ` <matthew_heaney-ya023680003004981723000001@news.ni.net>
1998-05-01  0:00                             ` Robert Dewar
1998-05-01  0:00                               ` Larry Kilgallen
1998-05-02  0:00                                 ` Robert Dewar
1998-05-02  0:00                                   ` Jonathan Guthrie
1998-05-03  0:00                                     ` Richard Kenner
1998-05-03  0:00                                       ` Jonathan Guthrie
1998-05-03  0:00                                         ` Richard Kenner
1998-05-03  0:00                                         ` Robert Dewar
1998-05-03  0:00                                     ` Robert Dewar
1998-05-03  0:00                                   ` Larry Kilgallen
1998-05-01  0:00                       ` Urgent question: malloc and ada...READ/NEW/FOLLOWUP Fergus Henderson
1998-05-01  0:00                     ` Joe Gwinn
1998-05-02  0:00                       ` Larry Kilgallen
1998-05-05  0:00                       ` Robert Dewar
1998-04-10  0:00   ` Urgent question: malloc and ada Robert Dewar
1998-04-12  0:00     ` Joe Gwinn
1998-04-12  0:00       ` Enumeration Types (was: Urgent question: malloc and ada) Matthew Heaney
1998-04-13  0:00         ` Mark A Biggar

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