[Ecls-list] Embedding question

KONOVALOV, Vadim (Vadim)** CTR ** vkonovalov at alcatel-lucent.com
Thu May 22 14:19:19 UTC 2008


Hi,

I'm embedding ECL, and so far so good.

I succesfully can "eval" strings:
        cl_object def, res;
        char *argv1[] = {""};
        cl_boot(0,argv1);
        def = c_string_to_object("(format nil \"~A\" (expt 2 1000))");
        res = cl_eval(def);

The problem becomes when I eval undefined function:

        def = c_string_to_object("(frustrated)");
        res = cl_eval(def);

ECL prints following at stderr:

The function FRUSTRATED is undefined.
0 is an illegal frs index.
0 is an illegal frs index.
0 is an illegal frs index.
0 is an illegal frs index.
0 is an illegal frs index.
0 is an illegal frs index.
....

and following at stdout:
Broken at SI:TOP-LEVEL.No restarts available.
Broken at EVAL.No restarts available.
Broken at EVAL.No restarts available.
Broken at EVAL.No restarts available.
Broken at EVAL.No restarts available.
Broken at EVAL.No restarts available.
Broken at EVAL.No restarts available.
Broken at EVAL.No restarts available.
Broken at EVAL.No restarts available.
Broken at EVAL.No restarts available.
.....

After that seemingly some overflow happens and the program terminates.

What should I do to avoid this?

TIA,
Vadim.




More information about the ecl-devel mailing list