The problem exists with the latest clang on Ubuntu 15.10. Here's a debugging session, not much info.
I tried to get the clang sanitizer to work, with
./configure --enable-single-host CC='clang -g -save-temps -fsanitize=undefined,dataflow,safe-stack' ; make -j8
but had no luck.
Brad
./configure --enable-single-host CC='clang -g -save-temps' ; make -j8
heine:~/programs/gambit/gambit> cd tests heine:~/programs/gambit/gambit/tests> gdb ../gsi/gsi GNU gdb (Ubuntu 7.10-1ubuntu2) 7.10 Copyright (C) 2015 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-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ../gsi/gsi...done. (gdb) run -:~~bin=../bin,~~lib=../lib,~~include=../include -f debug.scm
! test1.out
Starting program: /home/lucier/programs/gambit/gambit/gsi/gsi -:~~bin=../bin,~~lib=../lib,~~include=../include -f debug.scm >! test1.out
Program received signal SIGSEGV, Segmentation fault. 0x0000000000000000 in ?? () (gdb) stack Undefined command: "stack". Try "help". (gdb) where #0 0x0000000000000000 in ?? () #1 0x000000000049b0ca in trampoline (___ps=<optimized out>) at setup.c:2605 #2 0x000000000049b08f in ___call (nargs=<optimized out>, proc=8, stack_marker=10744641) at setup.c:2720 #3 0x000000000049b155 in ___run (thunk=<optimized out>) at setup.c:2754 #4 0x000000000049b503 in ___setup (setup_params=<optimized out>) at setup.c:4225 #5 0x00000000004b232b in ___main (linker=<optimized out>) at main.c:723 #6 0x00000000004a621f in ___main_char (argc=<optimized out>, argv=<optimized out>, linker=0x49a550 <____20___gsi__>, script_line=0x0) at os_base.c:413 #7 0x00007ffff7320a40 in __libc_start_main (main=0x49a560 <main>, argc=4, argv=0x7fffffffe2d8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe2c8) at libc-start.c:289 #8 0x00000000004984d9 in _start () (gdb) quit A debugging session is active.
Inferior 1 [process 18832] will be killed.
Quit anyway? (y or n) y heine:~/programs/gambit/gambit/tests> clang -v clang version 3.8.0 (tags/RELEASE_380/final) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /home/lucier/clang+llvm-3.8.0-x86_64-linux-gnu-ubuntu-15.10/bin Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5.2.1 Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9 Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.3 Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.2.1 Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.2.1 Candidate multilib: .;@m64 Candidate multilib: 32;@m32 Candidate multilib: x32;@mx32 Selected multilib: .;@m64