Crafty 20.1 seems to start normally, but when I make it think, it crashes immediately. I tried running it with gdb, and this is what I got christos@glorfindel ~ $ gdb crafty ... (gdb) run Starting program: /usr/games/bin/crafty [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 25900)] unable to open book file [/usr/local/share/chess/crafty/book.bin]. book is disabled unable to open book file [/usr/local/share/chess/crafty/books.bin]. unable to open book learning file [/usr/local/share/chess/crafty/book.lrn]. learning disabled. unable to open position learning file [/usr/local/share/chess/crafty/position.bin]. learning disabled. unable to open position learning file [/usr/local/share/chess/crafty/position.bin]. learning disabled. pondering disabled. hash table memory = 48M bytes. pawn hash table memory = 8M bytes. show book statistics noise level set to 0. 5 piece tablebase files found 4036kb of RAM used for TB indices and decompression tables Crafty v20.1 White(1): Nf3 Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 25900)] 0x00002aaaab23959b in fseek () from /lib/libc.so.6 This is the info of my system christos@glorfindel ~ $ sudo emerge --info Portage 2.0.54 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-gentoo-r7 x86_64) ================================================================= System uname: 2.6.15-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3400+ Gentoo Base System version 1.6.13 ccache version 2.3 [enabled] dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r6 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.15.92.0.2-r10 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -pipe -O2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=k8 -pipe -O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="amd64 X aalib alsa audiofile avi berkdb bitmap-fonts bzip2 cdr crypt cups dri dts eds emboss encode esd exif expat fam ffmpeg foomaticdb fortran gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml hal howl idn imagemagick imlib ipv6 jack java jpeg junit ldap libcaca libwww lua lzw lzw-tiff mad mikmod mng motif mozilla mp3 mpeg mysql ncurses nls nvidia ogg opengl pam pcre pdflib perl png python quicktime readline recode ruby sdl spell sqlite ssl tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev usb vorbis xine xml2 xmms xpm xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
seems to work fine for x86
Your output is supicious as well. How does your crafty know to look in /usr/local/share for book files? Is this a stock install from "emerge crafty"? What other config steps have you done?
It appears to work fine for me too (amd64). darktama@araqiel ~ $ emerge --info Portage 2.1_pre6-r3 (default-linux/amd64/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.16-rc5-ck1 x86_64)================================================================= System uname: 2.6.16-rc5-ck1 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.12.0_pre16 ccache version 2.4 [enabled] dev-lang/python: 2.4.2-r1 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.91.0.6 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 -g -ggdb -ftracer -fprefetch-loop-arrays -ftree-vectorize" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -pipe -g -ggdb -ftracer -fprefetch-loop-arrays -ftree-vectorize" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg ccache distlocks metadata-transfer multilib-strict parallel-fetch sandbox sfperms splitdebug strict" GENTOO_MIRRORS="ftp://ftp.iinet.net.au/pub/Gentoo/ http://mirror.pacific.net.au/linux/Gentoo/" LANG="de_DE.UTF-8" LC_ALL="de_DE.UTF-8" LDFLAGS="-Wl,-O1 -Wl,-Bdirect -Wl,--as-needed" LINGUAS="en de" MAKEOPTS="-j3" PKGDIR="/home/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/overlays/toolchain /usr/local/overlays/xgl-overlay /usr/local/overlays/gnome-experimental /usr/local/overlays/bluetooth-alsa /usr/local/overlays/asneeded" SYNC="rsync://rsync.au.gentoo.org/gentoo-portage" USE="amd64 X a52 aac acl acpi alsa apache2 audiofile avi bash-completion berkdb bitmap-fonts browserplugin bzip2 cairo cdr cli crypt ctype cups dba dbus dri dvd dvdr dvdread eds emboss encode expat fastbuild ffmpeg firefox flac foomaticdb force-cgi-redirect ftp gd gif glitz gnome gpm gstreamer gtk gtk2 hal hardened imagemagick imlib ipv6 jpeg kde kdeenablefinal ldap lm_sensors logitech-mouse lzw lzw-tiff mad memlimit mmap mono mp3 mpeg ncurses nls nptl nptlonly nsplugin offensive ogg opengl pam pcre pdflib perl png posix python qt quicktime readline samba sasl sdl session simplexml soap sockets spell spl ssl svg tcpd theora threads tiff tokenizer truetype truetype-fonts type1-fonts unicode usb vorbis xcomposite xinerama xml xml2 xpm xprint xscreensaver xsl xv xvid zlib elibc_glibc input_devices_evdev input_devices_keyboard kernel_linux linguas_en linguas_de userland_GNU video_cards_nv video_cards_nvidia" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS
(In reply to comment #2) > Your output is supicious as well. How does your crafty know to look in > /usr/local/share for book files? Is this a stock install from "emerge crafty"? > What other config steps have you done? > I am very sorry to bother you with this 'bug'. It seems that the segmentation fault was happening because my user did not have write permissions to the directory where crafty was trying to keep its learning data. Although in the start it says "Unable to open file ... learning disabled", maybe it isnt disabled. And lastly to answer your question: Yes, I simply emerged crafty. As for the config steps, I use the following environment variables: CRAFTY_BOOK_PATH=/usr/local/share/chess/crafty CRAFTY_LOG_PATH=/usr/local/share/chess/crafty/log CRAFTY_TB_PATH=/usr/local/share/chess/tb