unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* the new gc asserts in master
@ 2008-08-26 20:12 Andy Wingo
  2008-08-27  2:12 ` Han-Wen Nienhuys
  0 siblings, 1 reply; 20+ messages in thread
From: Andy Wingo @ 2008-08-26 20:12 UTC (permalink / raw)
  To: guile-devel

Hi,

I just merged master to guile-vm, but I'm not sure if I really wanted to
do that now. Normal test suites are failing:

    lt-guile: gc.c:604: scm_i_gc: Assertion `scm_cells_allocated == scm_i_marked_count ()' failed.
    /home/wingo/src/guile/vm/test-suite/standalone/test-use-srfi: line 27: 29507 Aborted                 guile -q --use-srfi=1,10 > /dev/null  <<EOF
    (if (and (defined? 'partition)
             (defined? 'define-reader-ctor))
        (exit 0)   ;; good
        (exit 1))  ;; bad
    EOF

    guile --use-srfi=1,10 fails to run
    FAIL: test-use-srfi

This is on a core 2 duo, in 32-bit mode, configured as:

    CFLAGS="-g -O2" ./configure --with-threads --enable-maintainer-mode --prefix=/opt/guile-vm

So it seems that the new gc "cleanups" don't want you to touch mark bits
outside the mark phase. This is incompatible with other uses inside
guile itself, e.g. the SCM_DEBUG_CELL_ACCESSES == 1 case in inline.h, or
even the lazy smob case I wrote about here:

    http://thread.gmane.org/gmane.lisp.guile.user/6372

There are more cases, rgrep for SCM_SET_GC_MARK in libguile/*.[ch].

I'm going to commit an #if 0 around those asserts in the vm branch,
because I don't have the brain power to deal with it. (It is irritating
that I have to even write this mail.) Certainly if the near-term choice
is between inaccurate statistics and calls to abort(), I know which
choice I prefer...

Andy
-- 
http://wingolog.org/




^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2008-09-04  2:17 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-26 20:12 the new gc asserts in master Andy Wingo
2008-08-27  2:12 ` Han-Wen Nienhuys
2008-08-27  2:41   ` Han-Wen Nienhuys
2008-08-27  7:43   ` Ludovic Courtès
2008-08-27 14:00     ` Han-Wen Nienhuys
2008-08-27 15:38       ` Ludovic Courtès
2008-08-28  4:08         ` Han-Wen Nienhuys
2008-08-28  4:14         ` Han-Wen Nienhuys
2008-08-28  7:15           ` Ludovic Courtès
2008-09-03  4:39             ` Han-Wen Nienhuys
2008-09-03  8:12               ` Ludovic Courtès
2008-09-03 13:39                 ` Han-Wen Nienhuys
2008-09-03 14:49                   ` Ludovic Courtès
2008-09-04  2:17                     ` Han-Wen Nienhuys
2008-08-27 19:00       ` Andy Wingo
2008-08-27 20:22         ` Andy Wingo
2008-08-28  4:33           ` Han-Wen Nienhuys
2008-08-28 14:17           ` Ludovic Courtès
2008-08-28  4:04         ` Han-Wen Nienhuys
2008-08-28 13:20           ` Han-Wen Nienhuys

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).