From owner-freebsd-perl@FreeBSD.ORG Mon Mar 8 11:08:20 2010 Return-Path: Delivered-To: perl@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F0A1106564A for ; Mon, 8 Mar 2010 11:08:20 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F18608FC0A for ; Mon, 8 Mar 2010 11:08:19 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o28B8JxA074836 for ; Mon, 8 Mar 2010 11:08:19 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o28B8JlN074834 for perl@FreeBSD.org; Mon, 8 Mar 2010 11:08:19 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 8 Mar 2010 11:08:19 GMT Message-Id: <201003081108.o28B8JlN074834@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: perl@FreeBSD.org Cc: Subject: Current problem reports assigned to perl@FreeBSD.org X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Mar 2010 11:08:20 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/144463 perl [PATCH] textproc/p5-HTML-Tidy: support nondefault LOCA o ports/142109 perl [PATCH] www/p5-MojoMojo: update to 0.999042 o ports/129626 perl lang/p5-Tcl segfaults on i386 and amd64 on FreeBSD 7 o ports/121472 perl Loading perl scripts causes irc/xchat segmentation fau 4 problems total. From owner-freebsd-perl@FreeBSD.ORG Wed Mar 10 01:00:01 2010 Return-Path: Delivered-To: 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 06EF7106566B for ; Wed, 10 Mar 2010 01:00:00 +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 88E618FC19 for ; Wed, 10 Mar 2010 01:00:00 +0000 (UTC) Received: by bwz8 with SMTP id 8so3829725bwz.3 for ; Tue, 09 Mar 2010 16:59:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=ZkLL8qw6Uiq9vEB77zCMvu3ut6VwP01BxLJ1I1NYjRE=; b=Nrt86QClvPD5T/QDESBJLPAHXawPjCNJ9JQ20tMldDXOBhdZ/9SZa0Tu05RP0EbXmv Qq1/2YtY957JN2tPRxaR6M5hDb3Yv32Nd5NmPpgxJHIyKeyIENCiY8+8+frHpKLAFESc dy0ZtPCGrYNeePUNNZKkwZ3VFg4SyNB4kG8lQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=d6tDEUC80dWV81FkYHxxrfZ5k9frBUWvQCxivKryo7SqHCh3WbFH9BIZkGpy8d+WJY Xpv3Ign4etNzWMiJ49hF2bRjNDtePetv2mbdcHhpiT+srs/Gh63EHCq+WMxhP6zIiGen KOiaJiTV4o6NQ2X8hlDiimkkOph6XTz1hUvmk= MIME-Version: 1.0 Sender: djmitche@gmail.com Received: by 10.204.130.90 with SMTP id r26mr792302bks.9.1268181158290; Tue, 09 Mar 2010 16:32:38 -0800 (PST) Date: Tue, 9 Mar 2010 18:32:38 -0600 X-Google-Sender-Auth: 007a8764353fa4c4 Message-ID: <42338fbf1003091632j1fb96efdrfa0f00d2edf0a9d1@mail.gmail.com> From: "Dustin J. Mitchell" To: freebsd-perl@freebsd.org Content-Type: text/plain; charset=UTF-8 Subject: Unthreaded Perl linked to threaded libraries X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2010 01:00:01 -0000 I'm running into a problem with Amanda (http://amanda.org) on FreeBSD, and looking for some guidance. Before anyone sends me to amanda-users: I'm one of the Amanda developers, so the guidance I need is related to FreeBSD and its threading. Amanda is currently being rewritten from C into Perl, with the interface handled by SWIG. The Perl code is all single-threaded, but the underlying C code uses threads internally, via glib's libgthread. Basically, Perl runs in the main thread and calls the shots, while the C code gets the job done in threads. The idea is that, because no part of Perl's state is ever accessed in a thread but the main thread, this won't pose a problem. What I'm seeing on FreeBSD 7.0 is that programs with threads but no perl work fine, and perl programs that call into C libraries work fine, but perl programs that call C libraries that start a thread hang in the g_thread_create call. A truss looks like this: 4886 perl5.8.9 CALL _umtx_op(0xffffd6dc,0x3,0x1,0,0) 4886 perl5.8.9 RET _umtx_op 0 4886 perl5.8.9 CALL sigprocmask(SIG_BLOCK,0xffffd670,0x2832a0d8) 4886 perl5.8.9 RET sigprocmask 0 4886 perl5.8.9 CALL sigprocmask(SIG_SETMASK,0x2832a0d8,0) 4886 perl5.8.9 RET sigprocmask 0 4886 perl5.8.9 CALL sigprocmask(SIG_BLOCK,0xffffd5c0,0x2832a0d8) 4886 perl5.8.9 RET sigprocmask 0 4886 perl5.8.9 CALL sigprocmask(SIG_SETMASK,0x2832a0d8,0) 4886 perl5.8.9 RET sigprocmask 0 4886 perl5.8.9 CALL _umtx_op(0x2877bce0,0x11,0,0,0) that CALL never returns. I'm not really sure where to start figuring this out. The best I can think of is to read the source for the _umtx_op syscall. Does anyone have any better pointers? Dustin -- Open Source Storage Engineer http://www.zmanda.com From owner-freebsd-perl@FreeBSD.ORG Wed Mar 10 08:54:36 2010 Return-Path: Delivered-To: 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 0F3F7106566B for ; Wed, 10 Mar 2010 08:54:36 +0000 (UTC) (envelope-from tobez@tobez.org) Received: from heechee.tobez.org (heechee.tobez.org [194.255.56.42]) by mx1.freebsd.org (Postfix) with ESMTP id CADDB8FC16 for ; Wed, 10 Mar 2010 08:54:35 +0000 (UTC) Received: by heechee.tobez.org (Postfix, from userid 1001) id E37C76D400; Wed, 10 Mar 2010 09:54:34 +0100 (CET) Date: Wed, 10 Mar 2010 09:54:34 +0100 From: Anton Berezin To: "Dustin J. Mitchell" Message-ID: <20100310085434.GA42555@heechee.tobez.org> References: <42338fbf1003091632j1fb96efdrfa0f00d2edf0a9d1@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42338fbf1003091632j1fb96efdrfa0f00d2edf0a9d1@mail.gmail.com> X-Powered-By: FreeBSD http://www.freebsd.org/ User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-perl@freebsd.org Subject: Re: Unthreaded Perl linked to threaded libraries X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2010 08:54:36 -0000 On Tue, Mar 09, 2010 at 06:32:38PM -0600, Dustin J. Mitchell wrote: > I'm running into a problem with Amanda (http://amanda.org) on FreeBSD, > and looking for some guidance. Before anyone sends me to > amanda-users: I'm one of the Amanda developers, so the guidance I need > is related to FreeBSD and its threading. > > Amanda is currently being rewritten from C into Perl, with the > interface handled by SWIG. The Perl code is all single-threaded, but > the underlying C code uses threads internally, via glib's libgthread. > Basically, Perl runs in the main thread and calls the shots, while the > C code gets the job done in threads. > > The idea is that, because no part of Perl's state is ever accessed in > a thread but the main thread, this won't pose a problem. > > What I'm seeing on FreeBSD 7.0 is that programs with threads but no > perl work fine, and perl programs that call into C libraries work > fine, but perl programs that call C libraries that start a thread hang > in the g_thread_create call. A truss looks like this: > > 4886 perl5.8.9 CALL _umtx_op(0xffffd6dc,0x3,0x1,0,0) > 4886 perl5.8.9 RET _umtx_op 0 > 4886 perl5.8.9 CALL sigprocmask(SIG_BLOCK,0xffffd670,0x2832a0d8) > 4886 perl5.8.9 RET sigprocmask 0 > 4886 perl5.8.9 CALL sigprocmask(SIG_SETMASK,0x2832a0d8,0) > 4886 perl5.8.9 RET sigprocmask 0 > 4886 perl5.8.9 CALL sigprocmask(SIG_BLOCK,0xffffd5c0,0x2832a0d8) > 4886 perl5.8.9 RET sigprocmask 0 > 4886 perl5.8.9 CALL sigprocmask(SIG_SETMASK,0x2832a0d8,0) > 4886 perl5.8.9 RET sigprocmask 0 > 4886 perl5.8.9 CALL _umtx_op(0x2877bce0,0x11,0,0,0) > > that CALL never returns. > > I'm not really sure where to start figuring this out. The best I can > think of is to read the source for the _umtx_op syscall. Does anyone > have any better pointers? 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. Note, however, that it is possible that you will have to rebuild all p5 ports that have XS portions in them. There should be no consequences of doing this for most cases (excepting situations in which a humongous stack size is needed, like amavisd), and it is likely to fix your problem. \Anton. -- Matters of elegance ought to be left to the tailor and to the cobbler. -- L. Boltzmann From owner-freebsd-perl@FreeBSD.ORG Thu Mar 11 23:06:25 2010 Return-Path: Delivered-To: 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 ; 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 ; Thu, 11 Mar 2010 23:06:25 +0000 (UTC) Received: by bwz8 with SMTP id 8so576422bwz.3 for ; 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 Sender: djmitche@gmail.com Received: by 10.204.33.135 with SMTP id h7mr1850744bkd.186.1268348784118; Thu, 11 Mar 2010 15:06:24 -0800 (PST) In-Reply-To: <20100310085434.GA42555@heechee.tobez.org> References: <42338fbf1003091632j1fb96efdrfa0f00d2edf0a9d1@mail.gmail.com> <20100310085434.GA42555@heechee.tobez.org> Date: Thu, 11 Mar 2010 17:06:24 -0600 X-Google-Sender-Auth: 256f22b6230e2f60 Message-ID: <42338fbf1003111506s3cefe525sa5ca3c912cb55239@mail.gmail.com> From: "Dustin J. Mitchell" To: Anton Berezin Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-perl@freebsd.org, John Hein Subject: Re: Unthreaded Perl linked to threaded libraries X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2010 23:06:26 -0000 On Wed, Mar 10, 2010 at 2:54 AM, Anton Berezin wrote: > Can you try and rebuild perl so that it is still not threaded but linked > with -pthread and friends? =C2=A0This 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=3Dyes. 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=3D/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 --=20 Open Source Storage Engineer http://www.zmanda.com From owner-freebsd-perl@FreeBSD.ORG Sat Mar 13 17:53:41 2010 Return-Path: Delivered-To: perl@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4C17D106566C; Sat, 13 Mar 2010 17:53:41 +0000 (UTC) (envelope-from skv@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 21EB58FC0A; Sat, 13 Mar 2010 17:53:41 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o2DHrfmt033202; Sat, 13 Mar 2010 17:53:41 GMT (envelope-from skv@freefall.freebsd.org) Received: (from skv@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o2DHrehL033198; Sat, 13 Mar 2010 17:53:40 GMT (envelope-from skv) Date: Sat, 13 Mar 2010 17:53:40 GMT Message-Id: <201003131753.o2DHrehL033198@freefall.freebsd.org> To: alex.deiter@gmail.com, skv@FreeBSD.org, perl@FreeBSD.org From: skv@FreeBSD.org Cc: Subject: Re: ports/142109: [PATCH] www/p5-MojoMojo: update to 0.999042 X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Mar 2010 17:53:41 -0000 Synopsis: [PATCH] www/p5-MojoMojo: update to 0.999042 State-Changed-From-To: open->closed State-Changed-By: skv State-Changed-When: Sat Mar 13 17:53:03 UTC 2010 State-Changed-Why: Committed, thank you! But with some changes: 1. Other options names (less .pm-like): FAST_CGI -> FASTCGI HTML_TOC -> TOCGEN EMOTICONS_MSN -> EMOTICONS 2. BUILD_DEPENDS and RUN_DEPENDS did not swap. 3. Do not add to pkg-plist line: %%SITE_PERL%%/MojoMojo/Makefile.old 4. Keep lines BUILD_DEPENDS in synced with Makefile.PL 5. Do not change MAINTAINER http://www.freebsd.org/cgi/query-pr.cgi?pr=142109 From owner-freebsd-perl@FreeBSD.ORG Sat Mar 13 18:00:19 2010 Return-Path: Delivered-To: perl@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25486106567E for ; Sat, 13 Mar 2010 18:00:19 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C7BAD8FC24 for ; Sat, 13 Mar 2010 18:00:17 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o2DI0HQE033310 for ; Sat, 13 Mar 2010 18:00:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o2DI0H00033309; Sat, 13 Mar 2010 18:00:17 GMT (envelope-from gnats) Date: Sat, 13 Mar 2010 18:00:17 GMT Message-Id: <201003131800.o2DI0H00033309@freefall.freebsd.org> To: perl@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: ports/142109: commit references a PR X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Mar 2010 18:00:19 -0000 The following reply was made to PR ports/142109; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/142109: commit references a PR Date: Sat, 13 Mar 2010 17:53:16 +0000 (UTC) skv 2010-03-13 17:53:02 UTC FreeBSD ports repository Modified files: www/p5-MojoMojo Makefile distinfo pkg-plist Log: Update to 0.999042 Changes: http://cpansearch.perl.org/src/MRAMBERG/MojoMojo-0.999042/Changes PR: ports/142109 Submitted by: Alex Deiter Revision Changes Path 1.6 +109 -47 ports/www/p5-MojoMojo/Makefile 1.2 +3 -3 ports/www/p5-MojoMojo/distinfo 1.2 +202 -66 ports/www/p5-MojoMojo/pkg-plist _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"