Subject: Sparc64 install fails: 'sbcl.sh install-clc' segfaults
From: "J.P. Larocque" <[email-masked]>
To: Debian Bug Tracking System <[email-masked]>
Date: Sun, 22 Oct 2006 16:51:15 -0700

Package: sbcl
Version: 1:0.8.16-1
Severity: important

I cannot install sbcl on a Sun Ultra 1.  sbcl crashes during package
configuration.  The package isn't even marked as broken.

--->8--->8---
Selecting previously deselected package common-lisp-controller.
(Reading database ... 43010 files and directories currently installed.)
Unpacking common-lisp-controller (from .../common-lisp-controller_4.15sarge3_all.deb) ...
Setting up common-lisp-controller (4.15sarge3) ...

Selecting previously deselected package sbcl.
(Reading database ... 43034 files and directories currently installed.)
Unpacking sbcl (from .../sbcl_1%3a0.8.16-1_sparc.deb) ...
Setting up sbcl (0.8.16-1) ...
/usr/lib/common-lisp/bin/sbcl.sh loading and dumping clc.
/usr/lib/common-lisp/bin/sbcl.sh: line 58: 12442 Segmentation fault      (core dumped) sbcl --core /usr/lib/sbcl/sbcl-dist.core --noinform --sysinit /etc/sbcl.rc --userinit /dev/null --load "/usr/lib/sbcl/install-clc.lisp" 2>/dev/null
mv: cannot stat `sbcl-new.core': No such file or directory
FAILED

Reading Package Lists... Done
Building Dependency Tree
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
---8<---8<---

I read some old bug report leading me to believe that my locale could
be a problem for SBCL.  The above output is with LC_ALL=C and LANG=C
on the environment.

The stack trace produced below probably doesn't convey any meaningful
information.

--->8--->8---
$ sudo gdb sbcl /usr/lib/sbcl/core
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-linux"...(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".

Core was generated by `sbcl --core /usr/lib/sbcl/sbcl-dist.core --noinform --sysinit /etc/sbcl.rc --us'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
#0  0x000189f8 in handle_control_stack_guard_triggered ()
(gdb) bt
#0  0x000189f8 in handle_control_stack_guard_triggered ()
#1  0x0001da80 in os_install_interrupt_handlers ()
#2  0x0001da80 in os_install_interrupt_handlers ()
Previous frame identical to this frame (corrupt stack?)
---8<---8<---

Attempts to use sbcl:

--->8--->8---
$ sbcl
This is SBCL 0.8.16, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
Segmentation fault (core dumped)
---8<---8<---

--->8--->8---
$ gdb sbcl
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-linux"...(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /usr/bin/sbcl 
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
This is SBCL 0.8.16, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.

Program received signal SIGSEGV, Segmentation fault.
0x0001516c in alloc_base_string ()
(gdb) bt
#0  0x0001516c in alloc_base_string ()
#1  0x0001abb8 in main ()
---8<---8<---

Please let me know if I can be of any help.

-- System Information:
Debian Release: 3.1
Architecture: sparc (sparc64)
Kernel: Linux 2.6.18
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages sbcl depends on:
ii  common-lisp-controlle 4.15sarge3         This is a Common Lisp source and c
ii  libc6                 2.3.2.ds1-22sarge4 GNU C Library: Shared libraries an

-- no debconf information

-- 
J.P. Larocque is <[email-masked]> and <[email-masked]>
Encrypted/signed e-mail preferred; http://ely.ath.cx/~piranha/pgp
Fpr 5612 10A8 4986 2D85 A995  252B 4C02 5E02 F61D 2E61; ID 0xF61D2E61