From: SourceForge.net <no...@so...> - 2011-12-30 02:21:25
|
Bugs item #3467215, was opened at 2011-12-29 18:10 Message generated for change (Comment added) made by rbruccoleri You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101355&aid=3467215&group_id=1355 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: clisp Group: segfault Status: Open Resolution: None Priority: 5 Private: No Submitted By: Robert Bruccoleri (rbruccoleri) Assigned to: Bruno Haible (haible) Summary: clisp-2.49 fails tests. Initial Comment: I am attempting to build clisp 2.49 on a Redhat Linux 64 bit system, and I'm getting repeated errors of the form: *** - handle_fault error2 ! address = 0x33975d938 not in [0x335380000,0x3356eb170) ! SIGSEGV cannot be cured. Fault address = 0x33975d938. when running tests. Clisp was built using libsigsegv 2.10 and the ffcall functions that came with the Clisp 2.49 distribution. I've tried Clisp 2.40 and libsigsegv 2.4 with the same result, althoughin different tests. Here's the answers to the questions you request for filing a bug report: 1. What is your platform (uname -a on a UNIX system)? Compiler version? GNU libc version (on GNU/Linux)? Linux liberty.congen.com 2.6.18-274.12.1.el5 #1 SMP Tue Nov 8 21:37:35 EST 2011 x86_64 x86_64 x86_64 GNU/Linux gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-51) glibc-2.5-65.el5_7.1 2. Where did you get the sources or binaries? When? (Absolute dates, e.g., “2006-01-17”, are preferred over the relative ones, e.g., “2 days ago”). I downloaded the distribution from ftp.gnu.org on Dec. 3, 2011. 3. How did you build CLISP? (What command, options &c.) Here's my script: #!/bin/sh -x ulimit -s 65536 make distclean (cd build; make distclean) export prefix=${BUILD_PREFIX:-/usr/local} export LDFLAGS="-Wl,-rpath,$prefix/lib" ./configure --prefix=$prefix \ --with-debug \ --with-libsigsegv-prefix=${prefix} \ --with-module=readline \ --with-module=i18n \ --with-module=syscalls \ --with-module=regexp \ build cd build ./makemake > Makefile make config.lisp make make check 4. What is the output of clisp --version? [root@liberty clisp-2.49]# build/lisp.run --version WARNING: No installation directory specified. Please try: build/lisp.run -B /usr/local/lib/clisp GNU CLISP 2.49 (2010-07-07) (built 2011-12-29 15:01:16) Software: GNU C 4.1.2 20080704 (Red Hat 4.1.2-51) gcc -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O -falign-functions=4 -DENABLE_UNICODE -DDYNAMIC_MODULES -I. -Wl,-rpath,/usr/local/lib -lreadline -lncurses -ldl -L/usr/local/lib -lsigsegv -lc -R/usr/local/lib libgnu_cl.a SAFETY=0 TYPECODES WIDE_HARD GENERATIONAL_GC SPVW_BLOCKS SPVW_MIXED TRIVIALMAP_MEMORY libsigsegv 2.10 libreadline 5.1 Features: (CLISP ANSI-CL COMMON-LISP LISP=CL INTERPRETER SOCKETS GENERIC-STREAMS LOGICAL-PATHNAMES SCREEN GETTEXT UNICODE BASE-CHAR=CHARACTER WORD-SIZE=64 PC386 UNIX) C Modules: (clisp) Installation directory: *** - SYSTEM::LIB-DIRECTORY: installation directory is not known, use the -B command line option to specify it or set *LIB-DIRECTORY* 5. Please supply the full output (copy and paste) of all the error messages, as well as detailed instructions on how to reproduce them. Please contact me for a log file of the build process. I was able run gdb on the core dump and generate this stack trace: [root@liberty tests]# gdb ../lisp.run core.12462 GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-37.el5_7.1) Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /vm/local/src/clisp-2.49/build/lisp.run...done. [New Thread 12462] Reading symbols from /usr/lib64/libreadline.so.5...(no debugging symbols found)...done. Loaded symbols for /usr/lib64/libreadline.so.5 Reading symbols from /usr/lib64/libncurses.so.5...(no debugging symbols found)...done. Loaded symbols for /usr/lib64/libncurses.so.5 Reading symbols from /lib64/libdl.so.2...(no debugging symbols found)...done. Loaded symbols for /lib64/libdl.so.2 Reading symbols from /usr/local/lib/libsigsegv.so.2...done. Loaded symbols for /usr/local/lib/libsigsegv.so.2 Reading symbols from /lib64/libc.so.6...(no debugging symbols found)...done. Loaded symbols for /lib64/libc.so.6 Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done. Loaded symbols for /lib64/ld-linux-x86-64.so.2 Reading symbols from /usr/lib64/gconv/ISO8859-1.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib64/gconv/ISO8859-1.so Reading symbols from /lib64/libnss_files.so.2...(no debugging symbols found)...done. Loaded symbols for /lib64/libnss_files.so.2 Reading symbols from /usr/lib64/gconv/ISO-2022-KR.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib64/gconv/ISO-2022-KR.so Reading symbols from /usr/lib64/gconv/libKSC.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib64/gconv/libKSC.so Reading symbols from /lib64/libnss_dns.so.2...(no debugging symbols found)...done. Loaded symbols for /lib64/libnss_dns.so.2 Reading symbols from /lib64/libresolv.so.2...(no debugging symbols found)...done. Loaded symbols for /lib64/libresolv.so.2 warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fff26179000 Core was generated by `../lisp.run -E UTF-8 -norc -B ../ -N ../locale -M ../lispinit.mem -m 30MW -L en'. Program terminated with signal 11, Segmentation fault. #0 0x000000000046c275 in write_char (stream_=0x2b7b3faf8bb8, ch=0x200000000000a) at ../src/stream.d:895 895 wr_ch(stream)(stream_,ch); (gdb) where #0 0x000000000046c275 in write_char (stream_=0x2b7b3faf8bb8, ch=0x200000000000a) at ../src/stream.d:895 #1 0x0000000000477411 in fresh_line_low (stream_=0x2b7b3faf8bb8) at ../src/stream.d:16901 #2 0x000000000047ca59 in fresh_line (stream_=0x2b7b3faf8bb8) at ../src/stream.d:16950 #3 0x000000000041b405 in quit_on_signal (sig=6) at ../src/spvw_sigterm.d:59 #4 <signal handler called> #5 0x0000003d21e30265 in raise () from /lib64/libc.so.6 #6 0x0000003d21e31d10 in abort () from /lib64/libc.so.6 #7 0x000000000042b4d6 in gc_morris2 () at ../src/spvw_garcol.d:428 #8 gar_col_normal () at ../src/spvw_garcol.d:2327 #9 0x000000000042bb39 in do_gar_col_simple () at ../src/spvw_garcol.d:3028 #10 0x00000000004e6f2c in with_gc_statistics (fun=0x42baec <do_gar_col_simple>) at ../src/predtype.d:3162 #11 0x000000000041d0fd in gar_col_simple () at ../src/spvw_garcol.d:3036 #12 0x000000000041d2d2 in make_space_gc_true (need=128248, heapptr=0x81c448) at ../src/spvw_allocate.d:282 #13 0x000000000041df27 in allocate_vector (len=16029) at ../src/spvw_typealloc.d:107 #14 0x00000000004201a4 in get_circularities (obj=0xd0003412642b8, pr_array=true, pr_closure=false) at ../src/spvw_circ.d:994 #15 0x000000000048e6a0 in pr_enter_2 (stream_=0x2b7b3fad9608, obj=0x30ae, pr_xxx=0x486030 <prin_object>) at ../src/io.d:6605 #16 0x000000000048ebbb in pr_enter (stream_=0x101010101010101, obj=0x246, pr_xxx=0x8) at ../src/io.d:6660 #17 0x000000000048ed9a in prin1 (stream_=0x30ae, obj=0x30ae) at ../src/io.d:9979 #18 0x000000000048f14f in princ_up () at ../src/io.d:10371 #19 0x000000000048f1ad in C_princ_to_string () at ../src/io.d:10421 #20 0x0000000000437da3 in interpret_bytecode_ (closure=0x9000341264430, codeptr=0x340f728d8, byteptr=<value optimized out>) at ../src/eval.d:6808 #21 0x000000000043e346 in funcall_closure (closure=0x30ae, args_on_stack=1) at ../src/eval.d:5630 #22 0x000000000043e42a in funcall (fun=0x9000341264430, args_on_stack=1) at ../src/eval.d:4862 #23 0x00000000004384b9 in interpret_bytecode_ (closure=0x9000340f73108, codeptr=0x340f72720, byteptr=<value optimized out>) at ../src/eval.d:6854 #24 0x0000000000440c84 in invoke_handlers (cond=<value optimized out>) at ../src/eval.d:772 #25 0x00000000004dc713 in C_clcs_signal (argcount=<value optimized out>, rest_args_pointer=<value optimized out>) at ../src/error.d:821 #26 0x000000000042d906 in funcall_subr (fun=0x10000007f7658, args_on_stack=0) at ../src/eval.d:5222 #27 0x000000000043e414 in funcall (fun=0x10000007f7658, args_on_stack=1) at ../src/eval.d:4860 #28 0x00000000004dcd11 in signal_and_debug (condition=<value optimized out>) at ../src/error.d:206 #29 0x00000000004ddf28 in end_error (stackptr=0x2b7b3fad9568, start_driver_p=true) at ../src/error.d:346 #30 0x00000000004df789 in OS_error () at ../src/errunix.d:688 #31 0x000000000047e2d3 in C_socket_server () at ../src/stream.d:14056 #32 0x00000000004336ab in eval_subr (fun=0x10000007ff880) at ../src/eval.d:3592 #33 0x0000000000430865 in eval1 (form=<value optimized out>) at ../src/eval.d:3084 #34 0x00000000004325c0 in eval (form=0x40000cd00f8c30) at ../src/eval.d:2966 #35 0x0000000000433873 in eval_5env (form=0x30ae, var_env=0x30ae, fun_env=0x6, block_env=0xffffffffffffffff, go_env=0x80, decl_env=0x101010101010101) at ../src/eval.d:1087 #36 0x00000000004338a3 in eval_noenv (form=0x30ae) at ../src/eval.d:1099 #37 0x0000000000442da2 in C_eval () at ../src/control.d:2187 #38 0x0000000000437cf6 in interpret_bytecode_ (closure=0x9000340f71208, codeptr=0x340f70fb0, byteptr=<value optimized out>) at ../src/eval.d:6805 #39 0x000000000043e346 in funcall_closure (closure=0x30ae, args_on_stack=1) at ../src/eval.d:5630 #40 0x000000000043e46a in funcall (fun=<value optimized out>, args_on_stack=1) at ../src/eval.d:4869 #41 0x0000000000437aa3 in interpret_bytecode_ (closure=0x9000341263de8, codeptr=0x340f729e8, byteptr=<value optimized out>) at ../src/eval.d:6793 #42 0x000000000043e346 in funcall_closure (closure=0x30ae, args_on_stack=0) at ../src/eval.d:5630 ---Type <return> to continue, or q <return> to quit--- #43 0x000000000043e42a in funcall (fun=0x9000341263de8, args_on_stack=0) at ../src/eval.d:4862 #44 0x00000000004384b9 in interpret_bytecode_ (closure=0x9000340f73108, codeptr=0x340f72720, byteptr=<value optimized out>) at ../src/eval.d:6854 #45 0x000000000043e346 in funcall_closure (closure=0x30ae, args_on_stack=2) at ../src/eval.d:5630 #46 0x000000000043e42a in funcall (fun=0x9000340f73108, args_on_stack=2) at ../src/eval.d:4862 #47 0x00000000004384b9 in interpret_bytecode_ (closure=0x9000340f75c98, codeptr=0x340f75498, byteptr=<value optimized out>) at ../src/eval.d:6854 #48 0x0000000000435799 in apply_closure (closure=0x9000340f75c98, args_on_stack=0, args=0x4000000801c80) at ../src/eval.d:4795 #49 0x0000000000435a1a in apply (fun=0x9000340f75c98, args_on_stack=0, other_args=0x40000cd0286fe0) at ../src/eval.d:4016 #50 0x000000000043867c in interpret_bytecode_ (closure=0x9000340f770c0, codeptr=0x340f76f58, byteptr=<value optimized out>) at ../src/eval.d:6875 #51 0x00000000004319be in eval_closure (form=<value optimized out>) at ../src/eval.d:3862 #52 eval1 (form=<value optimized out>) at ../src/eval.d:3091 #53 0x00000000004325c0 in eval (form=0x40000cd027b3f0) at ../src/eval.d:2966 #54 0x0000000000444272 in C_unwind_protect () at ../src/control.d:1943 #55 0x00000000004321ec in eval_fsubr (form=0x40000cd027b2f0) at ../src/eval.d:3263 #56 eval1 (form=0x40000cd027b2f0) at ../src/eval.d:3101 #57 0x00000000004325c0 in eval (form=0x40000cd027b2f0) at ../src/eval.d:2966 #58 0x00000000004456cc in C_multiple_value_bind () at ../src/control.d:1854 #59 0x00000000004321ec in eval_fsubr (form=0x40000cd027b2b0) at ../src/eval.d:3263 #60 eval1 (form=0x40000cd027b2b0) at ../src/eval.d:3101 #61 0x00000000004325c0 in eval (form=0x40000cd027b2b0) at ../src/eval.d:2966 #62 0x00000000004307c0 in eval1 (form=<value optimized out>) at ../src/eval.d:3059 #63 0x00000000004325c0 in eval (form=0x40000cd027b400) at ../src/eval.d:2966 #64 0x00000000004dc147 in C_read_eval_print () at ../src/debug.d:409 #65 0x000000000042d948 in funcall_subr (fun=0x10000007f6d60, args_on_stack=2) at ../src/eval.d:5227 #66 0x000000000043e454 in funcall (fun=<value optimized out>, args_on_stack=2) at ../src/eval.d:4867 #67 0x0000000000437bc3 in interpret_bytecode_ (closure=0x9000340f99950, codeptr=0x340f42458, byteptr=<value optimized out>) at ../src/eval.d:6799 #68 0x000000000043e346 in funcall_closure (closure=0x30ae, args_on_stack=0) at ../src/eval.d:5630 #69 0x000000000043e42a in funcall (fun=0x9000340f99950, args_on_stack=0) at ../src/eval.d:4862 #70 0x00000000004441ba in C_driver () at ../src/control.d:1999 #71 0x0000000000437cf6 in interpret_bytecode_ (closure=0x9000340f42988, codeptr=0x340f423d8, byteptr=<value optimized out>) at ../src/eval.d:6805 #72 0x000000000043e346 in funcall_closure (closure=0x30ae, args_on_stack=1) at ../src/eval.d:5630 #73 0x000000000043e42a in funcall (fun=0x9000340f42988, args_on_stack=1) at ../src/eval.d:4862 #74 0x0000000000424a21 in main_actions (p=0x81c740) at ../src/spvw.d:3615 #75 0x0000000000428ab4 in main (argc=18, argv=0x7fff26049c78) at ../src/spvw.d:3885 (gdb) I can provide any additional files on request. [ ---------------------------------------------------------------------- >Comment By: Robert Bruccoleri (rbruccoleri) Date: 2011-12-29 18:21 Message: Additional information: when I compile this version on my system in 32 bit mode, the compilation and testing are all successful. I put a debugging statement in the garbage collecting code in spvw_garcol.d around line 430: if (p2!=p1limit) { fprintf(stderr, "Warning 1: p1 = %u start_p1 = %u p2 = %u start_p2 = %u p1limit = %u\n", p1, start_p1, p2, start_p2, p1limit); /* abort(); */ } Here's an output (start_p1 and start_p2 are initialized at the top of the function with the initial values for p1 and p2.) Warning 1: p1 = 3507453952 start_p1 = 3506858816 p2 = 3507453968 start_p2 = 3507046928 p1limit = 3507453952 I modified all the assertion tests like this in this source file, and attempted recompilation. I'm getting errors in other places. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101355&aid=3467215&group_id=1355 |