pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/39284: pear script sets non-overridable memory limit



>Number:         39284
>Category:       pkg
>Synopsis:       pear script sets non-overridable memory limit
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 04 14:10:00 +0000 2008
>Originator:     Peter Bex
>Release:        NetBSD 4.0.0_PATCH
>Organization:
        
>Environment:
        
        
System: NetBSD frohike.homeunix.org 4.0.0_PATCH NetBSD 4.0.0_PATCH (GENERIC) 
#0: Fri Dec 21 17:12:08 CET 2007 
sjamaan%frohike.homeunix.org@localhost:/usr/obj/sys/arch/amd64/compile/GENERIC 
amd64
Architecture: x86_64
Machine: amd64
>Description:
        When trying to install phpdocumenter, PHP ran out of memory,
        even though I had memory_limit=64M in my php.ini:

        # pear install phpdocumentor  
        Did not download optional dependencies: pear/XML_Beautifier, use 
--alldeps to download automatically
        pear/PhpDocumentor can optionally use package "pear/XML_Beautifier" 
(version >= 1.1)
        downloading PhpDocumentor-1.4.2.tgz ...
        Starting to download PhpDocumentor-1.4.2.tgz (2,421,028 bytes)
        .....................done: 2,421,028 bytes
        PHP Fatal error:  Allowed memory size of 12582912 bytes exhausted 
(tried to allocate 3121 bytes) in /usr/pkg/lib/php/PEAR/XMLParser.php on line 
258

        Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to 
allocate 3121 bytes) in /usr/pkg/lib/php/PEAR/XMLParser.php on line 258

        It turned out that the 'pear' script installed by pkgsrc
        (lang/pear/files/pear.sh) contains an explicit switch to
        "increase" the memory limit to be 12M, which is higher than the
        default of 8M.  But by doing this using a switch, there's no
        way to override it using php.ini or on the commandline.

>How-To-Repeat:
        Try to build phpdocumentor using PHP 5.2.6, it should cause an
        out of memory error.
>Fix:
        Remove the switch.  If PHP runs out of memory with the default
        config, the message is clear enough for the user to know that he
        will have to up the limit in php.ini

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index