Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uunet!stanford.edu!leland.Stanford.EDU!jln From: jln@leland.Stanford.EDU (Jared Nedzel) Newsgroups: comp.lang.lisp Subject: Re: Lucid Lisp/ Foreign Function Interface/ Malloc question? Summary: Found the problem Message-ID: <1991Apr30.230644.22265@leland.Stanford.EDU> Date: 30 Apr 91 23:06:44 GMT References: <1991Apr30.191914.21681@leland.Stanford.EDU> Distribution: usa Organization: AIR, Stanford University Lines: 22 In article <1991Apr30.191914.21681@leland.Stanford.EDU> jln@leland.Stanford.EDU (Jared Nedzel) writes: >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? I'll tell you what's going on here. I'm an idiot. Found my silly bug (and it wasn't in the Lisp routines). Thanks to Eric from Lucid. So don't bother to send me e-mail. >Jared L. Nedzel nedzel@cive.stanford.edu jln@portia.stanford.edu -- --------------------------------------------------------------------- Jared L. Nedzel nedzel@cive.stanford.edu jln@portia.stanford.edu