Article View: lucky.freebsd.perl
Article #1Re: Unthreaded Perl linked to threaded libraries
From: Dustin J. Mitchell
Date: Thu, 11 Mar 2010 23:06
Date: Thu, 11 Mar 2010 23:06
29 lines
4405 bytes
4405 bytes
On Wed, Mar 10, 2010 at 2:54 AM, Anton Berezin <tobez@tobez.org> wrote: > Can you try and rebuild perl so that it is still not threaded but linked > with -pthread and friends? Β This would involve copying REINPLACE_CMD bit > under "if defined(WITH_THREADS)" verbatim to the "else" part, then doing > make clean ; make install FORCE_PKG_REGISTER=yes. Thanks - that worked quite well! Now, the larger question is how to support this in general. I assume that including the above instructions in the Amanda README is a suboptimal solution! John (copied) has suggested using a perl wrapper that adds LD_PRELOAD=/lib/libthr.so, which seems to help. Other options: Build a private copy of Perl in the Amanda port, or make Amanda depend on a special linked-with-threads perl port. Figure out and fix the underlying issue that causes this condition to hang (although it's not clear it's a bug). What do you all think? Are there other freebsd lists I should involve in this question? Dustin -- Open Source Storage Engineer http://www.zmanda.com
Technical Details
Message-ID:
<1268360585.00228768.1268349006@10.7.7.3>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-lucky.freebsd.perl.mbox.zip!g2news1.google.com!news2.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!news2.lucky.net!lucky.net!news1.lucky.net!carrier.kiev.ua!not-for-mailReferences:
<1268194985.00227960.1268183403@10.7.7.3> <1268223782.00228041.1268211602@10.7.7.3>Show Full Headers
Complete Article Headers
Message-ID: <1268360585.00228768.1268349006@10.7.7.3> Subject: Re: Unthreaded Perl linked to threaded libraries Date: Thu, 11 Mar 2010 17:06:24 -0600 From: "Dustin J. Mitchell" <dustin@zmanda.com> References: <1268194985.00227960.1268183403@10.7.7.3> <1268223782.00228041.1268211602@10.7.7.3> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-lucky.freebsd.perl.mbox.zip!g2news1.google.com!news2.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!news2.lucky.net!lucky.net!news1.lucky.net!carrier.kiev.ua!not-for-mail Newsgroups: lucky.freebsd.perl Approved: approver@news1.lucky.net Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by horse.carrier.kiev.ua (8.11.6p2/8.11.6) with ESMTP id o2BN6XX51150 for <news+freebsd-arts@news1.lucky.net>; Fri, 12 Mar 2010 01:06:33 +0200 (EET) (envelope-from owner-freebsd-perl@freebsd.org) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 9E65C14EEF2; Thu, 11 Mar 2010 23:06:32 +0000 (UTC) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 9B8A31065674; Thu, 11 Mar 2010 23:06:32 +0000 (UTC) (envelope-from owner-freebsd-perl@freebsd.org) Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EBF88106564A for <freebsd-perl@freebsd.org>; Thu, 11 Mar 2010 23:06:25 +0000 (UTC) (envelope-from djmitche@gmail.com) Received: from mail-bw0-f216.google.com (mail-bw0-f216.google.com [209.85.218.216]) by mx1.freebsd.org (Postfix) with ESMTP id 799348FC12 for <freebsd-perl@freebsd.org>; Thu, 11 Mar 2010 23:06:25 +0000 (UTC) Received: by bwz8 with SMTP id 8so576422bwz.3 for <freebsd-perl@freebsd.org>; Thu, 11 Mar 2010 15:06:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=a/0gs+hfLWCTSfwrZwYcDRYPZ+f/aWGVUxh5AwtC6BU=; b=NqxmlFpBn8pdimLGyELXfIEuztm5n489oZrsh3FNMZ1gnOtrjaqOA5yItISRUWwLDX FUisVbwg63U6xjj3gXgneUKStQwkclMTjEs+6xuLkjDCF1dRionsjir7cQsYsTtfU30j Ihl3obWIXm7AWC670NWCa9XLgXFdZuXDXvMbo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=VF//rgsHYn8BJhEBYDrTBWMB8wbnrbVFus95Can7EC6bnKJZT49FeFU2qNX0yK57kW upK5JN9hQENJIvb4+X0eezJp+k0SyaYC6eD2rvlMWmwWpxMqr3agv/Zkpv+OKjmV0k5i 1gxcfKz8u35Uyy98v5+hFWfdCcSoAZApFFee8= MIME-Version: 1.0 Received: by 10.204.33.135 with SMTP id h7mr1850744bkd.186.1268348784118; Thu, 11 Mar 2010 15:06:24 -0800 (PST) In-Reply-To: <1268223782.00228041.1268211602@10.7.7.3> X-Orig-Message-ID: <42338fbf1003111506s3cefe525sa5ca3c912cb55239@mail.gmail.com> To: Anton Berezin <tobez@tobez.org> Content-Type: text/plain; charset=UTF-8 Cc: freebsd-perl@freebsd.org, John Hein <jhein@symmetricom.com> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by horse.carrier.kiev.ua id o2BN6XX51150