URL: <http://savannah.gnu.org/bugs/?20814>
Summary: Issues with multithreading (using pthread, libguile 1.8.2) Project: Guile Submitted by: None Submitted on: Saturday 08/18/2007 at 17:36 UTC Category: None Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: Hello, I hope I haven't misinterpreted the Guile Reference Manual, Edition 1.1, but as I understand section 4.3.5 on using Guile with a multi-threaded C application, it would be possible to execute a program's main loop, written entirely in C, in one thread while running a Guile REPL in another thread while interpreting Guile scripts in another. If I do try to do this or execute any scm_* functions in 2 threads at the same time, the result apparently is a segmentation fault, a stack overflow or, in case of attempting to use scm_spawn_thread in one thread to spawn the others, an error message stating "Function not implemented". The latter error message seems to be exclusively related to use of scm_spawn_thread, whereas any of the rest of the list of errors accompanies any usage of scm functions in two threads simultaneously, even if such usage is merely "scm_c_eval_string("(+ 5 6)");". I'd like to ask you if any of this is related to a bug with guile 1.8.2 or if what I'd like to do is as of yet impossible. If necessary, I'll clarify anything that needs clarification and if I'm wasting your time and misunderstood the manual, I apologize in advance. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?20814> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://lists.gnu.org/mailman/listinfo/bug-guile