From lennox@cs.columbia.edu  Wed Oct  3 15:31:48 2007
Return-Path: <lennox@cs.columbia.edu>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id D04DC16A468
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  3 Oct 2007 15:31:48 +0000 (UTC)
	(envelope-from lennox@cs.columbia.edu)
Received: from cnr.cs.columbia.edu (cnr.cs.columbia.edu [128.59.19.133])
	by mx1.freebsd.org (Postfix) with ESMTP id A501113C502
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  3 Oct 2007 15:31:48 +0000 (UTC)
	(envelope-from lennox@cs.columbia.edu)
Received: from cnr.cs.columbia.edu (localhost [127.0.0.1])
	by cnr.cs.columbia.edu (8.13.6/8.13.6) with ESMTP id l93FCs0k003087
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 3 Oct 2007 11:12:54 -0400 (EDT)
	(envelope-from lennox@cnr.cs.columbia.edu)
Received: (from lennox@localhost)
	by cnr.cs.columbia.edu (8.13.6/8.13.6/Submit) id l93FCruI003084;
	Wed, 3 Oct 2007 11:12:53 -0400 (EDT)
	(envelope-from lennox)
Message-Id: <200710031512.l93FCruI003084@cnr.cs.columbia.edu>
Date: Wed, 3 Oct 2007 11:12:53 -0400 (EDT)
From: Jonathan Lennox <lennox@cs.columbia.edu>
Reply-To: Jonathan Lennox <lennox@cs.columbia.edu>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Build of graphics/ImageMagick hangs while testing PerlMagick
X-Send-Pr-Version: 3.113
X-GNATS-Notify: mi@aldan.algebra.com

>Number:         116874
>Category:       ports
>Synopsis:       Build of graphics/ImageMagick hangs while testing PerlMagick
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    mi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 03 15:40:01 GMT 2007
>Closed-Date:    Wed Nov 07 05:49:56 UTC 2007
>Last-Modified:  Wed Nov  7 05:50:05 UTC 2007
>Originator:     Jonathan Lennox
>Release:        FreeBSD 5.5-RELEASE-p15 i386
>Organization:
Columbia University
>Environment:
System: FreeBSD cnr.cs.columbia.edu 5.5-RELEASE-p15 FreeBSD 5.5-RELEASE-p15 #22: Tue Aug 14 12:19:54 EDT 2007 lennox@cnr.cs.columbia.edu:/usr/obj/usr/src/sys/CNR i386


	
>Description:

When building the port graphics/ImageMagick on my FreeBSD 5.5 machine, the
first PerlMagick test fails to load the Image::Magick module, then goes into
an infinite loop.

The output of the build looks like this:

cd PerlMagick && make CC='cc' test
/bin/sh ../magick.sh PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/bzlib/*.t t/jbig/*.t t/jpeg/*.t t/jp2/*.t t/png/*.t t/tiff/*.t t/zlib/*.t
t/blob............Can't load '/usr/ports/graphics/ImageMagick/work/ImageMagick-6.3.5/PerlMagick/blib/arch/auto/Image/Magick/Magick.so' for module Image::Magick: /usr/local/lib/libIlmThread.so.4: Undefined symbol "pthread_join" at /usr/local/lib/perl5/5.8.8/mach/DynaLoader.pm line 230.
 at t/blob.t line 7
Compilation failed in require at t/blob.t line 7.
BEGIN failed--compilation aborted at t/blob.t line 7.
Deep recursion on subroutine "Image::Magick::AUTOLOAD" at /usr/ports/graphics/ImageMagick/work/ImageMagick-6.3.5/PerlMagick/blib/lib/Image/Magick.pm line 42.

After this point the build hangs, with the perl process spinning and consuming large amounts of CPU.

>How-To-Repeat:

[remove any pre-defined ImageMagick options.]
BATCH=yes portinstall graphics/ImageMagick

>Fix:

Disabling the ImageMagick tests works around the problem.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Wed Oct 3 15:40:10 UTC 2007 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=116874 
Responsible-Changed-From-To: freebsd-ports-bugs->mi 
Responsible-Changed-By: mi 
Responsible-Changed-When: Wed Oct 3 16:01:50 UTC 2007 
Responsible-Changed-Why:  
Mine, all mine... 

http://www.freebsd.org/cgi/query-pr.cgi?pr=116874 

From: Mikhail Teterin <mi+kde@aldan.algebra.com>
To: bug-followup@freebsd.org, lennox@cs.columbia.edu
Cc:  
Subject: Re: ports/116874: Build of graphics/ImageMagick hangs while testing PerlMagick
Date: Wed, 3 Oct 2007 12:01:15 -0400

 A better work-around may be to disable OpenEXR (libIlmThread.so.4). It is 
 compiled with thread-support and causes this problem under some circumstances 
 (when your glib does not use ICU)...
 
 I just committed a small change, that would cause PerlMagick to fail faster in 
 this situation -- and without consuming all memory first.
 
 Please, let me know, if the change helps the failing tests fail faster.
 
 I'm still awaiting response from OpenEXR's maintainer on how best to deal with 
 underlying problem.
 
 Thank you for your feedback. Yours,
 
 	-mi
State-Changed-From-To: feedback->closed 
State-Changed-By: mi 
State-Changed-When: Wed Nov 7 05:46:56 UTC 2007 
State-Changed-Why:  
The underlying problem was resolved, when OpenEXR was updated. 
In any case, the new limits (introduced in the earlier version 
of the port) should prevent failure of a Perl test causing much 
trouble.  

http://www.freebsd.org/cgi/query-pr.cgi?pr=116874 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/116874: commit references a PR
Date: Wed,  7 Nov 2007 05:46:45 +0000 (UTC)

 mi          2007-11-07 05:46:29 UTC
 
   FreeBSD ports repository
 
   Modified files:
     graphics/ImageMagick Makefile distinfo pkg-plist 
   Removed files:
     graphics/ImageMagick/files patch-leak patch-module-path 
                                patch-test-filter 
   Log:
   Update from 6.3.5-10 to 6.3.6-9. Some of our patches were accepted
   upstream. The tests should work with and without X11. Enable FPX by
   default. Resolve all related PRs.
   
   Approved by:    portmgr (linimon)
   PR:     67815
   PR:     117635
   PR:     116874
   PR:     114387
   
   Revision  Changes    Path
   1.249     +21 -14    ports/graphics/ImageMagick/Makefile
   1.111     +3 -3      ports/graphics/ImageMagick/distinfo
   1.2       +0 -12     ports/graphics/ImageMagick/files/patch-leak (dead)
   1.2       +0 -31     ports/graphics/ImageMagick/files/patch-module-path (dead)
   1.2       +0 -21     ports/graphics/ImageMagick/files/patch-test-filter (dead)
   1.108     +1 -0      ports/graphics/ImageMagick/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"
 
>Unformatted:
