[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #33996] 2.0.2: Crash related to ports and threads

From: Ludovic Courtès
Subject: Re: [bug #33996] 2.0.2: Crash related to ports and threads
Date: Sun, 21 Aug 2011 15:22:52 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)


Andy Wingo <address@hidden> skribis:

> Oh dear, this is a nasty one.  The issue is that Guile's ports are not
> threadsafe.  I hadn't thought about this one...
> I am adding guile-devel to the Cc for input.  Any fix to this will be
> pretty big, I think.  I think that the right fix here is probably what
> Glibc does; see `info libc "Streams and Threads"` for the full details.

Indeed, it would probably need per-port mutexes, making I/O primitives
thread-safe by default, and perhaps providing unlocked variants like
libc does.

Putting our fat mutexes on a diet seems like a prerequisite...


reply via email to

[Prev in Thread] Current Thread [Next in Thread]