From: <dsmich@roadrunner.com>
To: guile-devel@gnu.org, "Ludovic Courtès" <ludo@gnu.org>,
dsmich@roadrunner.com
Subject: Re: possible hash deadlock with recent changes
Date: Wed, 25 May 2011 12:52:31 -0400 [thread overview]
Message-ID: <20110525165231.XCARV.54200.root@cdptpa-web16-z01> (raw)
In-Reply-To: <20110508184321.N3CZS.39487.root@cdptpa-web21-z02>
---- dsmich@roadrunner.com wrote:
>
> ---- "Ludovic Courtès" <ludo@gnu.org> wrote:
> > Hi,
> >
> > <dsmich@roadrunner.com> writes:
> >
> > > Recent changes to stable-2.0 seem to cause a deadlock in scwm. Here is the last 10 frames of a backtrace.
> >
> > I’m not sure if this is related but there’s this new error that has
> > started happening from time to time:
> >
> [ removed ]
>
> Hmm. Might be. Andy noted this on #guile:
>
> <wingo> one can reproduce easily
> <wingo> scheme@(guile-user)> (make-weak-value-hash-table )
> <wingo> $1 = #<weak-value-hash-table 0/31>
> <wingo> scheme@(guile-user)> (hash-set! $1 "foo" "bar")
> <wingo> $2 = "bar"
> <wingo> scheme@(guile-user)> (hash-set! $1 "foo" "baz")
> <wingo> [hang.]
A git bisect points to ecc9d1b54:
ecc9d1b547b21830f5ce4f1eaceb6b9dde44e5dc is the first bad commit
commit ecc9d1b547b21830f5ce4f1eaceb6b9dde44e5dc
Author: Andy Wingo <wingo@pobox.com>
Date: Sun May 1 18:01:42 2011 +0200
fix hash-set! in weak-value table from non-immediate to immediate
* libguile/hashtab.c (set_weak_cdr, scm_hash_fn_set_x): If we have a
weak-value hash table with a previous non-immediate value for a given
key, and we are setting an immediate as the new value, we were not
unregistering the disappearing link. Fixed.
:040000 040000 2cc3212851bcb8b37a8c5f2aafa0f0d058298a36 a0d3568613ce6d5d43755c113a1e00d3e7a9cf7f M libguile
bisect run success
-Dale
next prev parent reply other threads:[~2011-05-25 16:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-07 14:58 possible hash deadlock with recent changes dsmich
2011-05-08 14:34 ` Ludovic Courtès
2011-05-08 18:43 ` dsmich
2011-05-25 16:52 ` dsmich [this message]
2011-07-01 10:31 ` Andy Wingo
2011-06-16 12:30 ` Andy Wingo
2011-06-16 14:02 ` dsmich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110525165231.XCARV.54200.root@cdptpa-web16-z01 \
--to=dsmich@roadrunner.com \
--cc=guile-devel@gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).