From: Goffioul Michael <goffioul@im...> - 2006-04-25 08:31:19
Still trying to make CMN work with ECL, I succeeded in interpreted form,
to recent changes. However, I get a segmentation fault in compiled form.
Itracked down the problem and the crash occurs when loading the compiled
file at a cl_list() call with 73 arguments (it corresponds to a class
with a lot of slots). When I follow the code:
1) cl__va_start() sets up the args object, but sets the stack pointer
(sp) to a
negative number (cl_stack_index() =3D> 10 and args.narg =3D> 73);
stack pointer is an unsigned int, so it is actually set to a very large
due to underflow
2) at the first cl_va_arg() call, the code tries to access
and segfaults; indeed the computed index is very large due to unsigned
from step 1.