segmentation faults when loading Lisp code



On 1/20/11 11:38 AM, Oliver Kullmann wrote:
> Hello,
>
> we have a problem with Maxima, the same in 5.21.1 and 5.23.2,
> where we use Ecl 10.4.1.
>
>
[snip]
> This all works when called from the Maxima shell, but Maxima segfaults when loading a file
> containing the expression
>
> default_memory_ecl();
>
> (where this file loads the .mac-file containing the above Maxima-definitions, and
> that file loads the file with the above Lisp-definitions).
>
> Whether the segfault occurs depends on the circumstances, sometimes a "batch"
> succeeds where a load doesn't. But altogether it seems completely impossible
> to set the memory-limits in batch-mode (and that's what we need --- we need to
> run Maxima in batch-mode for performing many computations, which all need more
> memory).
FWIW, I can reproduce this by putting

load("ecl-size.lisp");
load("eclset.mac");
default_memory_ecl();

in testecl.mac, and running batch("testecl.mac").  The file
ecl-size.lisp contains the lisp code, and eclset.mac contains maxima
code you gave.

I don't know enough about ecl to say more than this.

Ray