From owner-freebsd-apache@FreeBSD.ORG Mon Oct 23 21:20:20 2006 Return-Path: X-Original-To: freebsd-apache@freebsd.org Delivered-To: freebsd-apache@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 89BDC16A4C8 for ; Mon, 23 Oct 2006 21:20:20 +0000 (UTC) (envelope-from abi@grinser.de) Received: from schiach.de (enz.schiach.de [194.246.123.86]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B01743DB4 for ; Mon, 23 Oct 2006 21:19:24 +0000 (GMT) (envelope-from abi@grinser.de) Received: from radiohead (p3E9E6506.dip.t-dialin.net [62.158.101.6]) (Authenticated sender: abi) by schiach.de (Postfix) with ESMTP id 56F5DCF9C5 for ; Mon, 23 Oct 2006 23:19:19 +0200 (CEST) Received: by radiohead (Postfix, from userid 1000) id 7B4EF40627; Mon, 23 Oct 2006 23:19:52 +0200 (CEST) Date: Mon, 23 Oct 2006 23:19:52 +0200 From: Michael Ablassmeier To: freebsd-apache@freebsd.org Message-ID: <20061023211952.GA4405@mail.schiach.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Accept-Language: de en User-Agent: Mutt/1.5.13 (2006-08-11) Subject: apache2.2: convert: Memory allocation failed X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Michael Ablassmeier List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Oct 2006 21:20:20 -0000 hi, im running apache-2.2.0_7 on 6.1-RELEASE within a jailed environment. PHP4 has been compiled without Suhosin patch and its pretty much all in default configuration, so no restrictions. Now, the Problem: running gallery, which calls various ImageMagick binaries in order to resize Images, fails with the following Error message in httpd-error.log: [..] convert in free(): warning: junk pointer, too high to make sense convert in free(): warning: junk pointer, too high to make sense convert in free(): warning: junk pointer, too high to make sense convert: Memory allocation failed `Permission denied'. [..] a hackish PHP script in order to reproduce this failure (note, the image size has to be bigger than 150x150): now, this script does *not* fail if im calling it from php's cli interface (with the same php.ini used). I can also easily convert the image calling convert from some random shell. The interesting part is, i dont have to convert something in order to reproduce this error, i can simply replace the above convert call with in order to make it bail out. Any Ideas? I've been using apache2.0.x before and never had any problems running Gallery at all (before upgrading to 6.1-RELEASE and apache2.2). [0] abi@foo:~/public_html/conv> convert -list resource File Area Memory Map Disk ------------------------------------------------ 3.96875kb 488mb 366mb 1.90625gb 4eb bye, - michael