|
From: SourceForge.net <no...@so...> - 2005-04-10 22:36:43
|
Bugs item #1180386, was opened at 2005-04-10 15:36 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101355&aid=1180386&group_id=1355 Category: clisp Group: segfault Status: Open Resolution: None Priority: 5 Submitted By: David Reiss (dreiss) Assigned to: Sam Steingold (sds) Summary: Stack Overflow Twice Causes Segfault Initial Comment: Causing a stack overflow twice in a row leads to a segfault in clisp 2.33.2 on x86 Linux from Gentoo ebuild. gcc is version 3.3.5, and glibc is version 2.3.4. My "CFLAGS" is '-mcpu=i686 -O2 -pipe'. Gzipped core file is attached. Note that this error does *not* happen with a clean, debug-enabled build. Should I send this bug report to the Gentoo ebuild maintainer instead? This is how I produced the problem: $ clisp -q -q [1]> (defun f (n) (if (zerop n) 0 (f (1- n)))) F [2]> (f 10000) *** - Program stack overflow. RESET [3]> (f 10000) Segmentation fault (core dumped) This is my system configuration: $ uname -a Linux ballpoint 2.6.10-gentoo-r6_dr #1 Sun Mar 6 13:56:17 PST 2005 i686 AMD Athlon(tm) 64 Processor 3200+ AuthenticAMD GNU/Linux $ $ gcc -v Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/specs Configured with: /var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3.5 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/info --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include/g++-v3 --host=i686-pc-linux-gnu --disable-altivec --disable-nls --enable-__cxa_atexit --enable-clocale=gnu --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-shared --enable-threads=posix --disable-multilib --disable-libgcj --enable-languages=c,c++ Thread model: posix gcc version 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1) $ $ clisp --version GNU CLISP 2.33.2 (2004-06-02) (built 3322071952) (memory 3322072066) Software: GNU C 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1) ANSI C program Features: (PCRE CLX-ANSI-COMMON-LISP CLX SYSCALLS REGEXP CLOS LOOP COMPILER CLISP ANSI-CL COMMON-LISP LISP=CL INTERPRETER SOCKETS GENERIC-STREAMS LOGICAL-PATHNAMES SCREEN FFI GETTEXT UNICODE BASE-CHAR=CHARACTER PC386 UNIX) Installation directory: /usr/lib/clisp/ User language: ENGLISH Machine: I686 (I686) ballpoint.Stanford.EDU [128.12.51.95] ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101355&aid=1180386&group_id=1355 |