Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 154592 - >=sci-mathematics/maxima-9.5.3 lisp error "out of range"
Summary: >=sci-mathematics/maxima-9.5.3 lisp error "out of range"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-09 12:44 UTC by Artemii
Modified: 2007-01-13 10:45 UTC (History)
0 users

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 Artemii 2006-11-09 12:44:11 UTC
>=sci-mathematics/maxima-9.5.3 with clisp, gcl, sbcl as licp compilers, crashes with lisp error:

Maxima encountered a Lisp error:


AREF: index 0 for "" is out of range

If I set LC_ALL to C then maxima works with gcl and sbcl, but switch in debug mode with clisp:

*** - invalid byte #xD0 in CHARSET:ASCII conversion
The following restarts are available:
ABORT          :R1      ABORT
ABORT          :R2      ABORT
ABORT          :R3      ABORT
ABORT          :R4      ABORT
ABORT          :R5      ABORT
ABORT          :R6      ABORT

My localce:
localhost ~ # locale
LANG=ru_RU.UTF-8
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC=POSIX
LC_TIME="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_PAPER="ru_RU.UTF-8"
LC_NAME="ru_RU.UTF-8"
LC_ADDRESS="ru_RU.UTF-8"
LC_TELEPHONE="ru_RU.UTF-8"
LC_MEASUREMENT="ru_RU.UTF-8"
LC_IDENTIFICATION="ru_RU.UTF-8"
LC_ALL=

latest maxima
localhost ~ # emerge -pv maxima

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sci-mathematics/maxima-5.10.0  USE="clisp gcl nls sbcl tetex tk unicode -auctex (-cmucl) -emacs" LINGUAS="-es -pt" 0 kB [2]

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Portage overlays:
 [1] /usr/local/portage
 [2] /usr/local/portage/layman/science

lisp compilers:
localhost ~ # emerge -pv sbcl gcl clisp

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-lisp/sbcl-0.9.17  USE="unicode -doc -ldb -source -threads" 0 kB
[ebuild   R   ] dev-lisp/gcl-2.6.7-r1  USE="X ansi custreloc dlopen gprof readline -debug -doc -emacs -tcltk" 0 kB
[ebuild   R   ] dev-lisp/clisp-2.39  USE="X pcre readline zlib -fastcgi -new-clx -postgres" 0 kB


My emerge --info:
ocalhost ~ # emerge --info
Portage 2.1.2_rc1-r5 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.18-ck1-r1 x86_64)
=================================================================
System uname: 2.6.18-ck1-r1 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.6
Last Sync: Wed, 08 Nov 2006 01:47:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo/distfiles"
LANG="ru_RU.UTF-8"
LC_ALL=""
LINGUAS="ru en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/layman/science"
SYNC="rsync://mirror.aiya.ru/gentoo-portage"
USE="amd64 7zip X Xaw3d a52 aac acpi alsa amr apache2 arts artworkextra audiofile avi berkdb bitmap-fonts bluetooth boost browserplugin bzip2 cairo cdr cli cracklib crypt cups dbus directfb djvu dlloader dri dts dv dvb dvd dvdr dvdread elibc_glibc encode esd exif fbcon ffmpeg flac flash foomaticdb fortran freetype2 gcc64 gdbm gif gimp gnome gphoto2 gpm gtk gtk2 guile hal iconv ieee1394 imagemagick imlib input_devices_joystik input_devices_keyboard input_devices_mouse input_devices_penmount ipv6 isdnlog jack java jpeg jpeg2k kde kdeenablefinal kernel_linux ladspa lcms ldap libg++ libsamplerate linguas_en linguas_ru lirc lirc_devices_devinput lm_sensors logrotate lzw lzw-tiff mad mng mono mozilla mp3 mpeg mysql ncurses neXt nls nptl nptlonly nsplugin ntfs nvidia ogg oggvorbis openal openexr opengl pam pcre pdf pdflib perl png ppds pppd python qt qt3 qt4 quicktime readline reflection reiserfs sdl sensord session slang sndfile sox speex spell spl ssl svg tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales utf8 v4l v4l2 vcd video_cards_nv video_cards_nvidia video_cards_radeon video_cards_vesa visualization vorbis wmf x264 xml2 xorg xpm xprint xrandr xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Artemii 2006-11-09 12:48:28 UTC
excuse me version is >=sci-mathematics/maxima-5.9.3
Comment 2 Artemii 2006-12-03 03:08:50 UTC
LC_ALL is nil, and reads before LANG and LC_MESSAGES (init-cl.lisp). A temporary (while projects developers don't fix it) fix is read LANG before LC_ALL


This is diff for init-cl.lisp

217,219c217,219
<       (setq locale (or (maxima-getenv "LANG")
<                        (maxima-getenv "LC_ALL")
<                          (maxima-getenv "LC_MESSAGES")))
---
>       (setq locale (or (maxima-getenv "LC_ALL")
>                          (maxima-getenv "LC_MESSAGES")
>                          (maxima-getenv "LANG")))
Comment 3 Artemii 2007-01-11 19:19:47 UTC
(In reply to comment #2)
> LC_ALL is nil, and reads before LANG and LC_MESSAGES (init-cl.lisp).

Authors fix this bug in 5.11.0
Comment 4 Marcus D. Hanwell (RETIRED) gentoo-dev 2007-01-13 10:45:54 UTC
I have just bumped this package to 5.11.0 and so hopefully this is now fixed. Thanks to Andrey Grozin <A.G.Grozin@inp.nsk.su> and  Sebastien Fabbro <seb@ist.utl.pt> for the work they put into this ebuild in the overlay.