#298 crash on first GC on OpenBSD

segfault
closed-fixed
Sam Steingold
clisp (525)
5
2006-06-30
2005-12-22
Sam Steingold
No

SF CF x86-openbsd1: worked on 3.4,
crashes on the first GC after the box was upgraded to 3.8
(both with and without generational GC)

Discussion

  • Sam Steingold
    Sam Steingold
    2006-05-18

    Logged In: YES
    user_id=5735

    more specifically, this happens on the initial gc:
    > (load "init.lisp")

    Program received signal SIGSEGV, Segmentation fault.
    subst_circ_mark (ptr=0x80359070) at spvw_circ.d:1790
    1790 if (marked(TheCons(obj))) # object already
    marked?
    (gdb) where
    #0 subst_circ_mark (ptr=0x80359070) at spvw_circ.d:1790
    #1 0x1c00a107 in subst_circ (ptr=0x80359070, alist=0x3) at
    spvw_circ.d:1628
    #2 0x1c05629d in make_references (obj=0x8a3a3aab) at io.d:2248
    #3 0x1c056551 in read_top (stream_=0x80359024,
    whitespace_p=0x3) at io.d:2290
    #4 0x1c0989ac in C_load () at debug.d:597
    #5 0x1c016df9 in eval_subr (fun=0x3c161b62) at eval.d:3557
    #6 0x1c016744 in eval1 (form=0x83043c5b) at eval.d:3033
    #7 0x1c0162e9 in eval (form=0x83043c5b) at eval.d:2907
    #8 0x1c098275 in C_read_eval_print () at debug.d:408
    #9 0x1c01a0fc in funcall_subr (fun=0x3c161b22,
    args_on_stack=1) at eval.d:5338
    #10 0x1c098523 in driver () at debug.d:489
    #11 0x1c00df5c in main (argc=1, argv=0xcfbc15cc) at spvw.d:3366
    (gdb)

    (with --disable-mmap)

     
  • Sam Steingold
    Sam Steingold
    2006-06-15

    Logged In: YES
    user_id=5735

    without --disable-mmap:
    ./lisp.run -B . -N locale -Efile UTF-8 -Eterminal UTF-8
    -Emisc 1:1 -norc -m 1800KW -x "(and (load \"init.lisp\")
    (sys::%saveinitmem) (ext::exit)) (ext::exit t)"Cannot map
    memory to address 0xe729c000 .
    [spvw_mmap.d:359] errno = EINVAL: Invalid argument.
    Trying to make room through a GC...
    Cannot map memory to address 0xe729c000 .
    [spvw_mmap.d:359] errno = EINVAL: Invalid argument.
    Trying to make room through a GC...
    Segmentation fault (core dumped)
    *** Error code 139

     
  • Sam Steingold
    Sam Steingold
    2006-06-30

    Logged In: YES
    user_id=5735

    Pass "--with-gmalloc" to ./configure to work around this
    problem.

     
  • Sam Steingold
    Sam Steingold
    2006-06-30

    • assigned_to: haible --> sds
    • status: open --> closed-fixed