From owner-freebsd-ruby@FreeBSD.ORG Tue Jun 5 18:03:18 2012 Return-Path: Delivered-To: ruby@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 43BC71065673; Tue, 5 Jun 2012 18:03:18 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from mx0.deglitch.com (cl-414.sto-01.se.sixxs.net [IPv6:2001:16d8:ff00:19d::2]) by mx1.freebsd.org (Postfix) with ESMTP id E03CF8FC14; Tue, 5 Jun 2012 18:03:17 +0000 (UTC) Received: from orion.swifttest.com (unknown [74.3.97.52]) by mx0.deglitch.com (Postfix) with ESMTPA id C7AEE8FC27; Tue, 5 Jun 2012 22:03:15 +0400 (MSK) Received: from orion.swifttest.com (localhost [127.0.0.1]) by orion.swifttest.com (Postfix) with SMTP id 625DE5C50; Tue, 5 Jun 2012 11:00:02 -0700 (PDT) Date: Tue, 5 Jun 2012 11:00:02 -0700 From: Stanislav Sedov To: "Steve Wills" Message-Id: <20120605110002.589f1071.stas@FreeBSD.org> In-Reply-To: References: <4FC96D45.8080904@FreeBSD.org> <20120601193059.af9201da.stas@FreeBSD.org> <4FCD51E4.4030309@FreeBSD.org> <20120605085202.GI85127@deviant.kiev.zoral.com.ua> <07758721-BD54-4732-9B17-83D4CCCF55E0@freebsd.org> Organization: The FreeBSD Project X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Konstantin Belousov , ports@freebsd.org, ruby@freebsd.org, Steve Wills Subject: Re: Ruby 1.9 as default X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2012 18:03:18 -0000 On Tue, 5 Jun 2012 09:43:55 -0400 "Steve Wills" mentioned: > > > > Is this perhaps the -pthread issue I hit with perl? The issue is that if > you call (dlopen, exec, whatever) a threaded app from a non-threaded on, > it hangs due to the fact that libc takes shortcuts and doesn't initialize > thread related things in non-threaded apps. The solution is to build with > -pthread. (I may be describing the problem wrong, but the solution of > building with -pthread works.) You usually cannot dlopen the object linked agains pthread from a non-pthreaded object. Or it is used to be that way. Exec should work fine, I don't see how this can be an issue. > > Perhaps we need to build ruby with -pthread? > Of course, we already do. Both of them. -- Stanislav Sedov ST4096-RIPE () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments