Here’s my setup:

$ uname -srmo
Linux 3.8.13-25-ARCH armv71 GNU/Linux

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/4.8.2/lto-wrapper
Target: armv7l-unknown-linux-gnueabihf
Configured with: /build/gcc/src/gcc-4.8-20131219/configure --prefix=/usr
--libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=
https://github.com/archlinuxarm/PKGBUILDs/issues
--enable-languages=c,c++,fortran,go,lto,objc,obj-c++ --enable-shared
--enable-threads=posix --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch
--disable-libssp --enable-gnu-unique-object --enable-linker-build-id
--enable-cloog-backend=isl --disable-cloog-version-check --enable-lto
--enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu
--disable-multilib --disable-werror --enable-checking=release
--host=armv7l-unknown-linux-gnueabihf
--build=armv7l-unknown-linux-gnueabihf --with-arch=armv7-a
--with-float=hard --with-fpu=vfpv3-d16
Thread model: posix
gcc version 4.8.2 20131219 (prerelease) (GCC)

$ pwd
/home/jessup/mit-scheme-c-9.2/src


Here’s the error:

$ ./etc/make-liarc.sh
...
Unhandled signal received within critical section "garbage collector".
Killed by SIGIOT.
*** Error in `../microcode/scheme' : munmap_chunk(): invalid pointer:
0xb50d8008 ***
etc/functions.sh: line 39: 12623 Segmentation fault (core dumped) "${@}"
Makefile:892: recipe for target 'stamp_build-liarc-boot-compiler' failed
make: *** [stamp_build-liarc-boot-compiler] Error 1


It looks like scheme is breaking during initalization. With debugging
enabled:

$ ./microcode/scheme --library ../lib --fasl "
http://www.gnu.org/software/mit-scheme/lib/runtime/make.so"; --heap 6000
MIT/GNU Scheme running under GNU/Linux
…
initialize: (runtime floating-point-environment)Error code 0xa
(external-return)
Procedure was: [PRIMITIVE SET-TRAPPED-FLOAT-EXCEPTIONS]
# of arguments: 1
Return code: internal-apply

Error code 0x2 (unassigned-variable).
Expression was: [false 0x245f020]
Environment was: [false 0x1]
Return code: join-stacklets

… [repeated many times until segfault] …


The good news is that I managed to build a boot compiler by editing
./etc/build-boot-compiler.sh to run scheme inside valgrind…

Any suggestions about where to look for this bug?

Thanks,

Sam
_______________________________________________
MIT-Scheme-devel mailing list
MIT-Scheme-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/mit-scheme-devel

Reply via email to