Hello,<br><br>I'm experimenting with Gambit as an embedded scripting engine <br>(to replace a Lua-based one) inside a large application written in C.<br>For the most part, the scm<->c interop is working well for my use-case.<br>
<br>I would now like to add a remote REPL for debugging and changing <br>application logic on the fly. I added examples//web-repl.scm<br>into my app and exposed start-repl-server within a c-define.<br><br>Surprisingly it works, but I notice that if I do ,q or ,qt the application segfaults.<br>
gdb bt is no help<br>#0  0x00007ffff742c2b8 in siglongjmp () from /lib/libc.so.6<br>#1  0x00000000004c0f3c in ___call ()<br>#2  0x00000000004bff3e in start_repltest ()<br>#3  0x00000000004c0060 in main ()<br><br>Also, the application no longer responds to ctrl-c.<br>
Furthermore, as soon as I hit ctrl-c, the app starts eating up massive amount of cpu and ram.<br>ram usage rapidly increase  and segfaults when it runs out <br>(goes from few megabytes to 8GB in less than a minute).<br><br>
I've attached a small 30 line c file + web-repl based scm combo that reproduces this<br>on my machine<br><br>Linux  2.6.33-ARCH #1 SMP PREEMPT Mon Apr 26 19:31:00 CEST 2010 <br>x86_64 Intel(R) Xeon(R) CPU E5410 @ 2.33GHz GenuineIntel GNU/Linux<br>
<br>Gambit v4.6.0<br><br>Any suggestions would be much appreciated.<br><br>-Emit<br>