Subject: clisp-1999-01-08 SGI build: Bus error

From: Tobias Kunze <[email-masked]>
Date: Mon, 15 Feb 1999 14:45:49 -0500

Hi-

Did anyone manage to build clisp-1999-01-08 under Irix 6.5?
 
Everything works fine:

  % setenv CC "cc -woff all"
  % ./configure
  % cd src
  % ./makemake --with-readline --with-dynamic-ffi --with-gettext \
    > Makefile
  % make config.lsp
  % make init
  % make allc
  % make libreadline.a
  % make lisp.run
  % make interpreted.mem
  % make lispinit.mem

up to the point where init.fas is loaded:

 ./lisp.run -N locale -norc -x \
   "(load \"init.fas\") (sys::%saveinitmem) (exit)"

The first fas to be loaded by init, defseq, then dumps core:

  ;; Loading file defseq.fas ...*** Termination code 138 (bu21)

Here is a dbx stack backtrace:

  tkunze@ulysses:/usr/local/lisp/clisp-1999-01-08/src [248]> dbx lisp.run core
  dbx version 7.2.1 Mar 13 1998 19:00:36
  Core from signal SIGBUS: Bus error
  (dbx) where
  >  0 setjmp(0x7fff19b4, 0x10158d14, 0x10158d14, 0x10155c48, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/xlv52/6.5.2f/work/irix/lib/libc/libc_n32_M3/signal/setjmp.s":130, 0xfac8ac4]
     1 interpret_bytecode_(0x7fff19b4, 0x10158d14, 0x10158d14, 0x10155c48, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/eval.d":7515, 0x100388a4]
     2 funcall_closure(0x26868471, 0x5, 0x10158d14, 0x0, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/eval.d":5811, 0x100303e0]
     3 funcall(0x0, 0x0, 0x10158d14, 0x10155c48, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/eval.d":5026, 0x1002f2e4]
     4 interpret_bytecode_(0x7fff19b4, 0x10158d14, 0x10158d14, 0x10155c48, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/eval.d":7010, 0x10035068]
     5 funcall_closure(0x26868cd9, 0x0, 0x10158d14, 0x0, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/eval.d":5829, 0x10030564]
     6 funcall(0x26868cd9, 0x0, 0x10158d14, 0x10155c48, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/eval.d":5019, 0x1002f244]
     7 C_load(0x7fff19b4, 0x10158d14, 0x10158d14, 0x10155c48, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/debug.d":422, 0x100b0b30]
     8 eval_subr(0x10141b52, 0x10158d14, 0x10158d14, 0x10155c48, 0x10158d10, 0x10158d10, 0x0, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/eval.d":3649, 0x10029214]
     9 eval1(0x10155c48, 0x10158d14, 0x10158d14, 0x10155c48, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/eval.d":3128, 0x1002863c]
     10 eval(0x69a0dc33, 0x10145861, 0x10158d14, 0x10155c48, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/eval.d":2980, 0x10027f0c]
     11 C_read_eval_print(0x7fff19b4, 0x10158d14, 0x10158d14, 0x10155c48, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/debug.d":240, 0x100b01c8]
     12 funcall_subr(0x10141b3a, 0x1, 0x10158d14, 0x10155c48, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/eval.d":5391, 0x1002f584]
     13 funcall(0x10141b3a, 0x0, 0x10158d14, 0x10155c48, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/eval.d":5017, 0x1002f1f0]
     14 driver(0x7fff19b4, 0x10158d14, 0x10158d14, 0x10155c48, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/debug.d":312, 0x100b0614]
     15 main(0x6, 0x7fff2ee0, 0x10158d14, 0x6, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/spvw.d":2928, 0x1001e888]
     16 __start() ["/xlv55/kudzu-apr12/work/irix/lib/libc/libc_n32_M3/csu/crt1text.s":177, 0x10015584]
  (dbx) 

Any idea what went wrong?

My sysinfo is:

  tkunze@ulysses:~ [555]> uname -aR 
  IRIX ulysses 6.5 6.5.2f 11051211 IP22
  tkunze@ulysses:~ [556]> cc -version
  MIPSpro Compilers: Version 7.2.1.2m

The system itself is an r4600sc Indy and the SGI_ABI defaults to -n32.

Best, 

-Tobias

______________________________________________________________________

Tobias Kunze                     [email-masked]
CCRMA, Stanford University       http://www-ccrma.stanford.edu/~tkunze