[Ecls-list] Segfault in c:build-program

Philipp Marek philipp at marek.priv.at
Mon Aug 1 19:55:46 UTC 2011


When using (c:build-program #P".." :lisp-files (list "..." "...")) I get a segmentation
fault:

    Condition of type: SEGMENTATION-VIOLATION
    Detected access to an invalid or protected memory address.

The two .o files got built by (compile-file ... :system-p T).

This is with ECL 599f8017e19e382528768ab68f06264c44730694 (current git), on debian
unstable/amd64.


Using GDB shows this:

Program received signal SIGSEGV, Segmentation fault.
si_munmap (map=0x1) at /home/no_backup/src/ecl-dyn/src/c/ffi/mmap.d:133
Line number 133 out of range; /home/no_backup/src/ecl-dyn/src/c/ffi/mmap.d has 127 lines.
(gdb) bt
#0  si_munmap (map=0x1) at /home/no_backup/src/ecl-dyn/src/c/ffi/mmap.d:133
#1  0x00002aaaac6cc8e7 in L20builder (narg=<value optimized out>, V1=0x2791080,
V2=0x2d26e70) at cmp/cmpmain.c:979
#2  0x00002aaaaadf0e87 in cl_apply (narg=<value optimized out>, fun=0x2761540,
lastarg=<value optimized out>)
    at /home/no_backup/src/ecl-dyn/src/c/eval.d:163
#3  0x00002aaaac6ca236 in L22build_program (narg=<value optimized out>) at
cmp/cmpmain.c:1215
#4  0x00002aaaaadf322d in ecl_interpret (frame=0x7fffffffd6b0, env=<value optimized
out>, bytecodes=0x307a320)
    at /home/no_backup/src/ecl-dyn/src/c/interpreter.d:499
#5  0x00002aaaaadf8004 in eval_nontrivial_form (env=0x2aaaab111000, form=<value
optimized out>)
    at /home/no_backup/src/ecl-dyn/src/c/compiler.d:2350
#6  eval_form (env=0x2aaaab111000, form=<value optimized out>) at
/home/no_backup/src/ecl-dyn/src/c/compiler.d:2365
#7  0x00002aaaaadf9d7b in si_eval_with_env (narg=<value optimized out>, form=0x3bf06d1)
at /home/no_backup/src/ecl-dyn/src/c/compiler.d:3096
#8  0x00002aaaaae46081 in si_load_source (source=0x20688c0, verbose=<value optimized
out>, print=0x1, external_format=<value optimized out>)
    at /home/no_backup/src/ecl-dyn/src/c/load.d:121


Any more information I should provide?


Thank you for all help.


Regards,

Phil





More information about the ecl-devel mailing list