guile-user
[Top][All Lists]
Advanced

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

Re: libguile thread safety


From: Chris Vine
Subject: Re: libguile thread safety
Date: Sat, 4 Jan 2014 09:50:24 +0000

On Fri, 03 Jan 2014 20:59:16 -0500
Mark H Weaver <address@hidden> wrote:
> Chris Vine <address@hidden> writes:
> > I am having problems using libguile in a multi-threaded environment,
> > which boils down to the following small test case, which fails with
> > a segmentation fault with guile-2.0.9:
> 
> I've recently noticed that the module loading process in Guile is not
> thread safe.  I hope to fix this in the next month or two, but for now
> I'd recommend that one thread should initialize Guile and load the
> modules that will be needed, before allowing multiple threads to enter
> Guile mode.

Mark,

OK.  From my exchanges with Panicz Maciej Godek it appears that none of
scm_with_guile(), scm_init_guile() and scm_c_eval_string() initialize
in a thread safe way on the first call.  That may be connected with the
module system, or something else (the test case does not explicitly
load any modules).

If you land anything which you would like me to test, let me know.

Chris



reply via email to

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