From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stanislav Ievlev Newsgroups: gmane.lisp.guile.devel Subject: segfault in 1.7.91 Date: Fri, 17 Feb 2006 14:18:24 +0300 Message-ID: <20060217111824.GA13802@basalt.office.altlinux.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1140245891 20102 80.91.229.2 (18 Feb 2006 06:58:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 18 Feb 2006 06:58:11 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Feb 18 07:58:11 2006 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FAM2j-0008Mn-8Z for guile-devel@m.gmane.org; Sat, 18 Feb 2006 07:58:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FAM2h-0005AH-St for guile-devel@m.gmane.org; Sat, 18 Feb 2006 01:58:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FA6OV-0003Wq-D9 for guile-devel@gnu.org; Fri, 17 Feb 2006 09:15:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FA5Ta-00065u-0z for guile-devel@gnu.org; Fri, 17 Feb 2006 08:20:26 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FA3d4-0002zV-R6 for guile-devel@gnu.org; Fri, 17 Feb 2006 06:18:28 -0500 Original-Received: from [217.16.24.5] (helo=mh.altlinux.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FA3iP-0007CI-MI for guile-devel@gnu.org; Fri, 17 Feb 2006 06:23:57 -0500 Original-Received: from basalt.office.altlinux.org (localhost.localdomain [127.0.0.1]) by mh.altlinux.org (Postfix) with ESMTP id 217B25F41A for ; Fri, 17 Feb 2006 14:18:25 +0300 (MSK) Original-Received: by basalt.office.altlinux.org (Postfix, from userid 502) id 01E07B0D91; Fri, 17 Feb 2006 14:18:24 +0300 (MSK) Original-To: guile-devel@gnu.org Content-Disposition: inline X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:5724 Archived-At: Greetings! It is unable to call callback from thread in guile extension. module: -- #include #include pthread_t dbus_tid; void *start_test(void* user_data) { scm_call_0((void*)(user_data)); } SCM scm_test_thread(SCM arg) { pthread_create(&dbus_tid,NULL,start_test,arg); } void scm_init_test(void) { scm_c_define_gsubr("test-thread", 1, 0, 0,(SCM(*)())scm_test_thread); } -- testcase: -- (dynamic-call "scm_init_test" (dynamic-link "libguile-thread.so")) (define cb (lambda() (write "zzz!\n"))) (test-thread cb) (pause) -- how to reproduce: $gcc -fpic -lpthread dbus.c -shared -o lguile-thread.so --- guile guile> (dynamic-call "scm_init_test" (dynamic-link "libguile-thread.so")) guile> (define cb (lambda() (write "zzz!\n"))) guile> (test-thread cb) Segmentation fault -- With best regards Stanislav Ievlev. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel