[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] eval of (0) crashes app
From: |
Heinrich Taube |
Subject: |
[Chicken-users] eval of (0) crashes app |
Date: |
Tue, 25 Mar 2008 08:30:30 -0500 |
Hi in csi when i eval bogus funcall like (foo) and (0) then i get
error messages as I would expect:
#;1> (foo)
Error: unbound variable: foo
Call history:
<syntax> (foo)
<eval> (foo) <--
#;1> (0)
Error: call of non-procedure: 0
Call history:
<syntax> (0)
<eval> (0) <--
#;1>
but if i do the same in my app via CHICKEN_eval_string_to_string then
the (foo) case gets caught but the (0) case crashes my app :/
calling eval node 2, input '(0)'
[1]+ Bus error exec build/Release/Grace.app/Contents/
MacOS/grace
i know from tracing that this call never returns:
res = CHICKEN_eval_string_to_string( (char *)expr.toUTF8(),
schemeThread->evalBuffer,
8192);
does anyone have an idea about what might make the (foo) error get
trapped but (0) crash the app?
thanks for any hints!
best, rick
- [Chicken-users] eval of (0) crashes app,
Heinrich Taube <=