Re: [Ecls-list] cl_boot crash

2010-07-28 Thread John DeSoi
On Jul 28, 2010, at 5:36 AM, Juan Jose Garcia-Ripoll wrote: > There might be some incompatibility between the garbage collector and 4D's > code. To ensure this is not the case, remove the call to cl_boot() and call > instead GC_init(). If the collector still crashes then this is the culprit. I

Re: [Ecls-list] Executing lisp in custom C REPL, require stops eval

2010-07-28 Thread Juan Jose Garcia-Ripoll
On Wed, Jul 28, 2010 at 2:33 PM, Louis Höfler wrote: > If I simply do (terpri) then everything is printed. > > If I try (finish-output), which I read, is the > > equivalent to fflush in c, nothing is printed. > There was a typo in ECL that made FORCE-OUTPUT and FINISH-OUTPUT behave differently

Re: [Ecls-list] Executing lisp in custom C REPL, require stops eval

2010-07-28 Thread Louis Höfler
Ah, yes I’m sorry I forgot that. If I simply do (terpri) then everything is printed. If I try (finish-output), which I read, is the equivalent to fflush in c, nothing is printed. Well that’s something I find out by myself, since I wasted mail traffic with my last question. But, if at least

Re: [Ecls-list] Executing lisp in custom C REPL, require stops eval

2010-07-28 Thread Juan Jose Garcia-Ripoll
Add a FORCE-OUTPUT at the end of your code. Since you do not have a REPL nothing is flushing the I/O cache of your lisp. BTW, your module does not handle reloading of pages gracefully. If I use Firefox' reload button, the server just keeps spinning. Juanjo On Tue, Jul 27, 2010 at 5:24 PM, Louis

Re: [Ecls-list] cl_boot crash

2010-07-28 Thread Juan Jose Garcia-Ripoll
On Wed, Jul 28, 2010 at 2:13 AM, John DeSoi wrote: > I'm trying to create a 4D plugin to host ECL (OS X 10.5.8). I call cl_boot > when the plugin is initialized, but 4D always crashes. If I trace under GDB, > it appears to crash in GC_push_all_eager at the line "q = (ptr_t)(*p);" > There might b