From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: anonymous Newsgroups: gmane.lisp.guile.bugs Subject: [bug #15770] segfault in guile 1.7.91 Date: Thu, 16 Feb 2006 15:54:39 +0000 Message-ID: <20060216-155439.sv0.20292@savannah.gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=UTF-8 X-Trace: sea.gmane.org 1140123732 32639 80.91.229.2 (16 Feb 2006 21:02:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Feb 2006 21:02:12 +0000 (UTC) Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Feb 16 22:02:11 2006 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F9qGJ-0004Q4-NU for guile-bugs@m.gmane.org; Thu, 16 Feb 2006 22:02:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F9qGB-0003IV-74 for guile-bugs@m.gmane.org; Thu, 16 Feb 2006 16:01:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F9leb-0003mY-Bc for bug-guile@gnu.org; Thu, 16 Feb 2006 11:06:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F9lVH-0005fs-JE for bug-guile@gnu.org; Thu, 16 Feb 2006 10:57:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F9lSq-0003ue-2P for bug-guile@gnu.org; Thu, 16 Feb 2006 10:54:41 -0500 Original-Received: from [199.232.41.3] (helo=savannah.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F9lXz-0008W5-Qg for bug-guile@gnu.org; Thu, 16 Feb 2006 10:59:59 -0500 Original-Received: from savannah.gnu.org ([127.0.0.1]) by savannah.gnu.org with smtp (Exim 3.36 #1 (Debian)) id 1F9lSp-0004Ue-00 for ; Thu, 16 Feb 2006 10:54:39 -0500 Original-Received: by savannah.gnu.org (sSMTP sendmail emulation); Thu, 16 Feb 2006 15:54:39 +0000 Original-To: bug-guile@gnu.org X-Savane-Server: savannah.gnu.org:80 [199.232.41.3] X-Savane-Project: guile X-Savane-Tracker: bugs X-Savane-Item-ID: 15770 User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru-RU; rv:1.8) Gecko/20051231 Firefox/1.5 X-Apparently-From: 213.232.194.242 Original-References: In-Reply-To: X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:3107 Archived-At: URL: Summary: segfault in guile 1.7.91 Project: Guile Submitted by: None Submitted on: Чтв 16.02.2006 at 15:54 Category: None Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open _______________________________________________________ Details: 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 _______________________________________________________ Reply to this item at: _______________________________________________ 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