marcomaggi / vicare

A native compiler for Scheme compliant with R6RS
http://marcomaggi.github.com/vicare.html
Other
200 stars 34 forks source link

assertion violation in ik_mmap when running ikarus-io test file #32

Closed marcomaggi closed 12 years ago

marcomaggi commented 12 years ago

With commit 6fc6e6a70e794bd1458f970000a13b353376c208:

 $ make long-test file=ikarus-io
cd tests ; make long-test
make[1]: Entering directory `/home/marco/src/devel/scheme/vicare/=build.devel/tests'

*** testing Ikarus input/output functions
running "reading 256 bytes in ascending order" ... ok
running "reading 256 bytes in ascending order 2 at a time" ... ok
running "peeking 256 bytes in ascending order" ... ok
running "custom-binary-port port-eof?" ... ok
running "reading 256 bytes from bytevector-input-port" ... ok
running "peeking 256 bytes from bytevector-input-port" ... ok
running "bytevector-binary-port port-eof?" ... ok
running "reading 256 latin1 chars from bytevector-input-port" ... ok
running "peeking 256 bytes from latin1 transcoded port" ... ok
running "latin1 transcoded port port-eof?" ... ok
running "reading 128 utf8 chars from bytevector-input-port" ... ok
running "peeking 128 chars from utf8 port" ... ok
running "utf8 transcoded port port-eof?" ... ok
vicare: ../../src/ikarus-runtime.c:175: ik_mmap: Assertion `size == mapsize' failed.
/bin/sh: line 1: 26671 Aborted                 VICARE_LIBRARY_PATH=../../tests:../../tests/../lib:./../lib:../../tests/../scheme CHECK_TEST_NAME= VICARE_SRC_DIR=../../tests VICARE_BUILDDIR=. LD_LIBRARY_PATH=./../src/.libs ./../src/vicare -b ./../scheme/vicare.boot --debug --r6rs-script $f
make[1]: *** [long-test] Error 134
make[1]: Leaving directory `/home/marco/src/devel/scheme/vicare/=build.devel/tests'
make: *** [long-test] Error 2
marcomaggi commented 12 years ago

Should be fixed in the HEAD of the assembler branch. It was caused by a dumb error of mine while rewriting code for readability in "ik_collect()" to compute "new_heap_size": lines were swapped.