Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!bellcore!uunet!stanford.edu!leland.Stanford.EDU!jln From: jln@leland.Stanford.EDU (Jared Nedzel) Newsgroups: comp.lang.lisp Subject: Lucid Lisp/ Foreign Function Interface/ Malloc question? Summary: Can I create a linked list in a C object file? Message-ID: <1991Apr30.191914.21681@leland.Stanford.EDU> Date: 30 Apr 91 19:19:14 GMT Distribution: usa Organization: AIR, Stanford University Lines: 20 Help! I'm writing a network communication utility that is written in C but is called by Lucid Lisp 4.0 (on a Sun Sparcstation SLC) through the foreign function interface. The C routines use a linked list to buffer messages before they are sent to the Lisp routines. However, when I try to create a new structure in the C code using malloc, the Lisp bombs with the message: >>Trap: Interrupt: segmentation violation Any idea what is going on here? Is dynamic memory allocation in a routine called by the foreign function interface verboten? Please send e-mail. I'll repost if there is enough interest. Thanks, -- --------------------------------------------------------------------- Jared L. Nedzel nedzel@cive.stanford.edu jln@portia.stanford.edu