Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
> Still trying to make CMN work with ECL, I succeeded in=20
> interpreted form, thanks to recent changes. However, I get a=20
> segmentation fault in compiled form.
> Itracked down the problem and the crash occurs when loading=20
> the compiled cmn0.fasl file at a cl_list() call with 73=20
> arguments (it corresponds to a class definition with a lot of=20
> 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>=20
> 73); however, the stack pointer is an unsigned int, so it is=20
> actually set to a very large number, due to underflow
> 2) at the first cl_va_arg() call, the code tries to access=20
> cl_env.stack[args.sp++] and segfaults; indeed the computed=20
> index is very large due to unsigned underflow from step 1.
The attached file reproduces the problem.
Compile and load the FAS file.