GNU bug report logs - #30261
segfault on simultaneous initialization

Previous Next

Package: guile;

Reported by: Sheheryar Parvaz <skipper308 <at> hotmail.ca>

Date: Fri, 26 Jan 2018 17:38:01 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Mark H Weaver <mhw <at> netris.org>
To: Sheheryar Parvaz <skipper308 <at> hotmail.ca>
Cc: 30261 <at> debbugs.gnu.org
Subject: bug#30261: segfault on simultaneous initialization
Date: Fri, 26 Jan 2018 18:41:09 -0500
Hi,

Sheheryar Parvaz <skipper308 <at> hotmail.ca> writes:
> If the initial call to scm_with_guile is on a thread and in the main
> thread at the same time, a segmentation fault occurs.

Yes, this is a known issue.  At present, Guile must be fully initialized
in one thread before it can be safely used from any other thread.
Furthermore, when loading modules, you must ensure that no other thread
attempts to load or use the same module while it's being loaded.  If
possible, please arrange to load all modules that your program will need
before accessing Guile from other threads.

We'd like to fix this at some point, but for various reasons it's a
non-trivial project.

     Thanks,
       Mark




This bug report was last modified 7 years and 139 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.