jln@leland.Stanford.EDU (Jared Nedzel) (05/01/91)
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
jln@leland.Stanford.EDU (Jared Nedzel) (05/01/91)
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