From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Panicz Maciej Godek Newsgroups: gmane.lisp.guile.user Subject: Re: libguile thread safety Date: Sat, 4 Jan 2014 01:56:50 +0100 Message-ID: References: <20140103233407.36382e5f@bother.homenet> <20140104002252.465aef65@bother.homenet> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1388797019 12078 80.91.229.3 (4 Jan 2014 00:56:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 Jan 2014 00:56:59 +0000 (UTC) Cc: "guile-user@gnu.org" To: Chris Vine Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Jan 04 01:57:07 2014 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VzFY0-00073p-Sc for guile-user@m.gmane.org; Sat, 04 Jan 2014 01:57:05 +0100 Original-Received: from localhost ([::1]:52731 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VzFY0-0003b0-FW for guile-user@m.gmane.org; Fri, 03 Jan 2014 19:57:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VzFXn-0003YO-W3 for guile-user@gnu.org; Fri, 03 Jan 2014 19:56:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VzFXn-0003H9-9e for guile-user@gnu.org; Fri, 03 Jan 2014 19:56:51 -0500 Original-Received: from mail-wg0-x22b.google.com ([2a00:1450:400c:c00::22b]:53596) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VzFXn-0003H1-2v for guile-user@gnu.org; Fri, 03 Jan 2014 19:56:51 -0500 Original-Received: by mail-wg0-f43.google.com with SMTP id k14so14122044wgh.22 for ; Fri, 03 Jan 2014 16:56:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=oxQwCcw+BWd46LyAffvkA1GU5ntgUn1erbhy7qqKoVM=; b=T+Zd0PZNsz7GJZ39hgcgog2NWy9Ap6eGUn5fEVVa5fuSqQizznJHS2cNOOWVQVwuhD DkcRfL4lsMqAMp2FKf3e/sF3pbTbX5Do3fayc1a8HLWcv2B/m2Kt5epLFP/G11Wg4jY/ J4aAGQ+y943J8W0VzEwTDRckZVhYfgRZTfXoTFJOPTgpN2nnZf+vkT88qciIcZNRWL4e 8WMx7owythlHIeuO/gizdA41XMH1AT+91J96UivkLnlhAapLW9xkoNPQopoUbdBJgaut X36GvPNhuPp5V78uEZxm2y7y9FolCqpegX6wqOImvWm/5SvLph9etkINlXkBIHP6NiAY g0Xw== X-Received: by 10.180.79.106 with SMTP id i10mr3880643wix.23.1388797010168; Fri, 03 Jan 2014 16:56:50 -0800 (PST) Original-Received: by 10.194.178.134 with HTTP; Fri, 3 Jan 2014 16:56:50 -0800 (PST) In-Reply-To: <20140104002252.465aef65@bother.homenet> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::22b X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:10966 Archived-At: The code looks fine to me. It seems that there's a bug in guile -- when I insert one second sleep between the two invocations of pthread_create, everything works fine. However, when I go down with the sleep time below ~50000 microseconds, things are getting weird. The good news is that the problem appears only between the first and the second invocation, but if you wait after creation of the first thread, then everything seems OK.