Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 118201 - Broken clisp machines on ~AMD64
Summary: Broken clisp machines on ~AMD64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Common Lisp Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-07 10:26 UTC by Gustavo Felisberto (RETIRED)
Modified: 2007-10-10 14:27 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gustavo Felisberto (RETIRED) gentoo-dev 2006-01-07 10:26:03 UTC
I am trying to get a lisp machine to use with slime on a AI course i'm going to take. I tried all the implementations in portage that i know off and none works:
dev-lisp/clisp-2.36
humpback@sam ~ $ clisp
  i i i i i i i       ooooo    o        ooooooo   ooooo   ooooo
  I I I I I I I      8     8   8           8     8     o  8    8
  I  \ `+' /  I      8         8           8     8        8    8
   \  `-+-'  /       8         8           8      ooooo   8oooo
    `-__|__-'        8         8           8           8  8
        |            8     o   8           8     o     8  8
  ------+------       ooooo    8oooooo  ooo8ooo   ooooo   8

Copyright (c) Bruno Haible, Michael Stoll 1992, 1993
Copyright (c) Bruno Haible, Marcus Daniels 1994-1997
Copyright (c) Bruno Haible, Pierpaolo Bernardi, Sam Steingold 1998
Copyright (c) Bruno Haible, Sam Steingold 1999-2000
Copyright (c) Sam Steingold, Bruno Haible 2001-2005


*** - invalid byte sequence #xE7 #x61 #x2E in CHARSET:UTF-8 conversion
The following restarts are available:
ABORT          :R1      ABORT
Break 1 [2]>                                                                                            

This faills starting so i went to sbcl:
dev-lisp/sbcl-0.9.8:

.......................
; compiling (!BACKQ-COLD-INIT)
; compiling (DEFVAR *BACKQ-TOKENS* ...)
; compiling (DEFUN %READER-ERROR ...)
; compiling (/SHOW0 "done with backq.lisp")
; file: /var/tmp/portage/sbcl-0.9.8/work/sbcl-0.9.8/src/code/backq.lisp
; in: DEFUN %READER-ERROR
;     (SB!INT:BUG "READER-ERROR on stream ~S: ~?"
;               STREAM
;               SB!IMPL::FORMAT-STRING
;               SB!IMPL::FORMAT-ARGS)
;
; caught STYLE-WARNING:
;   undefined function: BUG

;
; caught STYLE-WARNING:
;   This function is undefined:
;     BUG
;
; compilation unit finished
;   caught 2 STYLE-WARNING conditions


; /var/tmp/portage/sbcl-0.9.8/work/sbcl-0.9.8/obj/from-host/src/code/backq.lisp-obj-tmp written
; compilation finished in 0:00:01
; compiling file "/var/tmp/portage/sbcl-0.9.8/work/sbcl-0.9.8/src/code/defsetfs.lisp" (written 06 SEP 2005 03:29:01 PM):
; compiling (SB!INT:/SHOW0 "entering defsetfs.lisp")
; compiling (IN-PACKAGE "SB!ALIEN")
; compiling (DEFSETF SLOT ...)
; compiling (DEFSETF DEREF ...)fatal error encountered in SBCL pid 21407(tid 46912504221712):
GC invariant lost, file "gc-common.c", line 190
The system is too badly corrupted or confused to continue at the Lisp
level. If the system had been compiled with the SB-LDB feature, we'd drop
into the LDB low-level debugger now. But there's no LDB in this build, so
we can't really do anything but just exit, sorry.

!!! ERROR: dev-lisp/sbcl-0.9.8 failed.
!!! Function src_compile, Line 101, Exitcode 1
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

Probably a good idea to make this bug depend on two others, one for sbcl and one for clisp.



my emerge info:
humpback@sam ~ $ emerge  info
Portage 2.1_pre3-r1 (default-linux/amd64/2005.1, gcc-3.4.5, glibc-2.3.6-r1, 2.6.14-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.14-gentoo-r5 x86_64 AMD Turion(tm) 64 Mobile Technology MT-32
Gentoo Base System version 1.12.0_pre13
ccache version 2.4 [enabled]
dev-lang/python:     2.3.4-r1, 2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache cvs distlocks sandbox sfperms sign strict"
GENTOO_MIRRORS=" http://felisberto.net/pub/gentoo http://ftp.ua.pt/pub/gentoo "
LANG="pt_PT.utf8"
LC_ALL="pt_PT.utf8"
LINGUAS="pt"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.pt.gentoo.org/gentoo-portage"
USE="amd64 X aalib acpi alsa apache2 audiofile avi bash-completion berkdb bitmap-fonts bluetooth bzip2 cdparanoia cdr crypt cups curl dbus doc dv dvb dvd dvdr dvdread dvi eds emacs emboss encode esd ethereal evo examples exif expat extras fam fbsplash ffmpeg flac foomaticdb fortran gd gdbm geoip gif glut gmp gnome gnome-print gpm gstreamer gtk gtk2 hal howl idn imagemagick imlib ipv6 java jpeg junit kde kdeenablefinal lcms libgda libwww lzw lzw-tiff mad mikmod mng motif mozilla mp3 mpeg mplayer musepack ncurses new-login nls nptl nptlonly objc odbc offensive ogg oggvorbis openal opengl pam pcmcia pcre pdflib perl php pic plotutils png postgres python qt quicktime readline samba sdl source spell sqlite ssl tcltk tcpd tetex threads tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales vcd vorbis wmf xine xml2 xmms xpm xv xvid zeroconf zlib elibc_glibc kernel_linux linguas_pt userland_GNU"
Unset:  ASFLAGS, CTARGET, LDFLAGS
Comment 1 Matthew Kennedy (RETIRED) gentoo-dev 2006-01-07 13:05:44 UTC
Is there anything in your ~/.clisprc?
Comment 2 Matthew Kennedy (RETIRED) gentoo-dev 2006-01-07 13:38:47 UTC
As for SBCL, I can't tell from your output if the fault occurs in bootstrap or after.  I just updated the bootstrap compiler to the next available binary (0.9.8).  Please try that and report any difference.
Comment 3 Gustavo Felisberto (RETIRED) gentoo-dev 2006-01-07 17:35:14 UTC
time/osf1-os.c ./src/runtime/breakpoint.c ./src/runtime/save.c ./src/runtime/time.c ./src/runtime/vars.c ./src/runtime/util.c ./src/runtime/runtime.c ./src/runtime/alloc.c ./src/runtime/wrap.c ./src/runtime/thread.c ./src/runtime/parse.c ./src/runtime/globals.c ./src/runtime/dynbind.c ./src/runtime/mips-arch.c ./src/runtime/x86-64-arch.c ./src/runtime/backtrace.c ./src/runtime/x86-sunos-os.c ./src/runtime/monitor.c ./src/runtime/x86-64-linux-os.c ./src/runtime/ppc-darwin-langinfo.c ./src/runtime/print.c ./src/runtime/interr.c ./contrib/sb-bsd-sockets/alien/undefs.c ./contrib/sb-bsd-sockets/alien/get-h-errno.c ./contrib/sb-bsd-sockets/foo.c ./contrib/sb-posix/alien/waitpid-macros.c ./contrib/sb-posix/alien/stat-macros.c ./contrib/sb-posix/foo.c ./tests/stack-alignment-offset.c ./tools-for-build/os-provides-putwc-test.c ./tools-for-build/determine-endianness.c ./tools-for-build/os-provides-dladdr-test.c ./tools-for-build/where-is-mcontext.c ./tools-for-build/os-provides-dlopen-test.c ./tools-for-build/grovel-headers.c ./src/runtime/gc.h ./src/runtime/os.h ./src/runtime/x86-arch.h ./src/runtime/target-os.h ./src/runtime/ppc-darwin-spacelist.h ./src/runtime/alpha-arch.h ./src/runtime/hppa-arch.h ./src/runtime/hppa-linux-os.h ./src/runtime/sparc-sunos-os.h ./src/runtime/x86-linux-os.h ./src/runtime/ppc-linux-os.h ./src/runtime/alpha-osf1-os.h ./src/runtime/interrupt.h ./src/runtime/bsd-os.h ./src/runtime/gencgc-internal.h ./src/runtime/purify.h ./src/runtime/x86-64-lispregs.h ./src/runtime/alpha-linux-os.h ./src/runtime/x86-bsd-os.h ./src/runtime/sparc-linux-os.h ./src/runtime/sunos-os.h ./src/runtime/target-lispregs.h ./src/runtime/undefineds.h ./src/runtime/cheneygc-internal.h ./src/runtime/ppc-darwin-os.h ./src/runtime/mips-linux-os.h ./src/runtime/ppc-arch.h ./src/runtime/arch.h ./src/runtime/ppc-darwin-dlshim.h ./src/runtime/validate.h ./src/runtime/core.h ./src/runtime/hppa-lispregs.h ./src/runtime/x86-lispregs.h ./src/runtime/search.h ./src/runtime/gencgc-alloc-region.h ./src/runtime/ppc-lispregs.h ./src/runtime/sparc-arch.h ./src/runtime/linux-os.h ./src/runtime/osf1-os.h ./src/runtime/breakpoint.h ./src/runtime/save.h ./src/runtime/alpha-lispregs.h ./src/runtime/vars.h ./src/runtime/sparc-lispregs.h ./src/runtime/util.h ./src/runtime/runtime.h ./src/runtime/alloc.h ./src/runtime/target-arch-os.h ./src/runtime/thread.h ./src/runtime/parse.h ./src/runtime/mips-lispregs.h ./src/runtime/globals.h ./src/runtime/dynbind.h ./src/runtime/mips-arch.h ./src/runtime/gc-internal.h ./src/runtime/x86-64-arch.h ./src/runtime/lispregs.h ./src/runtime/fixnump.h ./src/runtime/target-arch.h ./src/runtime/x86-sunos-os.h ./src/runtime/monitor.h ./src/runtime/x86-64-linux-os.h ./src/runtime/ppc-darwin-langinfo.h ./src/runtime/print.h ./src/runtime/interr.h
/$scratchfilename=/tmp/canonicalize-whitespace-1.2974.tmp
//entering make-host-1.sh
//building cross-compiler, and doing first genesis
This is SBCL 0.9.8, 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.
*
5
* fatal error encountered in SBCL pid 3880(tid 46912504221712):
GC invariant lost, file "gc-common.c", line 355

The system is too badly corrupted or confused to continue at the Lisp
level. If the system had been compiled with the SB-LDB feature, we'd drop
into the LDB low-level debugger now. But there's no LDB in this build, so
we can't really do anything but just exit, sorry.

!!! ERROR: dev-lisp/sbcl-0.9.8 failed.
!!! Function src_compile, Line 100, Exitcode 1
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

sam dev-lisp #



and .clisprc does not exist
Comment 4 Jory A. Pratt 2006-01-29 08:05:08 UTC
sbcl-0.9.9 is in the tree and actually working properly for the time being. I am working on clisp later today so with a little luck it will be back up and rolling soon enough.
Comment 5 Matthew Kennedy (RETIRED) gentoo-dev 2006-04-24 13:53:32 UTC
Jory, Gustavo -- does the SBCL problem persist for 0.9.11?

As for the CLISP problem, can you reproduce one more time and enter ":bt" when you get the debugger.  That will print out the backtrace that lead to the error.  Could you then include that output in the bug report.  I suspect CLISP sees you're environment is utf-8 encoded:

  LANG="pt_PT.utf8"
  LC_ALL="pt_PT.utf8"

However something in your environment clisp is reading is not actually utf-8 encoded.  I tried the byte sequence CLISP doesn't like in SBCL:

  (let ((octets (make-array 3 :element-type '(unsigned-byte 8) 
                            :initial-contents '(#xE7 #x61 #x2E))))                                                                      
    (octets-to-string octets))

And SBCL seem to agree that it is invalid utf-8:

Illegal :UTF-8 character starting at byte position 0.
   [Condition of type SB-IMPL::INVALID-UTF8-CONTINUATION-BYTE]

Restarts:
  0: [USE-VALUE] Supply a replacement string designator.
  1: [ABORT-REQUEST] Abort handling SLIME request.
  2: [TERMINATE-THREAD] Terminate this thread (#<THREAD "repl-thread" {B18CCE9}>)

Backtrace:
  0: (SB-IMPL::DECODING-ERROR #(231 97 46) 0 1 :UTF-8 SB-IMPL::INVALID-UTF8-CONTINUATION-$
Comment 6 Simon Stelling (RETIRED) gentoo-dev 2007-02-20 13:33:42 UTC
I have no idea about lisp or whatever, but is the amd64 team of any help here? This bug was inactive for about 9 months...
Comment 7 Marijn Schouten (RETIRED) gentoo-dev 2007-10-10 14:27:23 UTC
assuming fixed in current versions...