Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jun 2010 10:45:39 +0200
From:      Olivier Mueller <om-lists-bsd@omx.ch>
To:        ports@freebsd.org
Cc:        Andrey Slusar <anray@FreeBSD.org>
Subject:   Re: [freebsd] pecl-imagick -> Segmentation fault: 11 (core dumped) on php -i under freebsd 7.3
Message-ID:  <1277196339.16778.20.camel@ompc.insign.local>
In-Reply-To: <47e01da70905240107u6baf7e44pb9e46f8d6952de70@mail.gmail.com>
References:  <1242763051.5505.18.camel@frosch.omx.ch> <47e01da70905240107u6baf7e44pb9e46f8d6952de70@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello,

On Sun, 2009-05-24 at 11:07 +0300, Andrey Slusar wrote:
> > Current version (under 7.2) seems to crash with a "Segmentation fault:
> > 11 (core dumped)" with php 5.2.9, and in some bug reports I saw that the
> > problem doesn't occur anymore with pecl-imagick 2.2.2 (stable)  or 2.3.x
> > (beta)   ( http://pecl.php.net/package/imagick ).
> 
> Updated to 2.2.2

Thanks for your updates :)   But at the moment, it seems to be "broken"
again, and I can't find why. 

Problem:

[om@pandora ~]$ php -v -c /usr/local/etc/php.ini-production 
PHP 5.3.2 with Suhosin-Patch (cli) (built: Jun 14 2010 18:11:48) 
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
Segmentation fault: 11 (core dumped)


If I comment the line "extension=imagick.so"
in /usr/local/etc/php/extensions.ini , it works fine (but without
imagick then...). I tried recompiling about nearly all related packages
(png, imagemagick, php, etc.), but it didn't helped. Same if I comment
some other extensions (like pdf.so, etc.). All packages are 100%
uptodate, as well as the OS (7.3-RELEASE-p1 amd64), but it was
previously a 7.2 system, so this may have an influence. 

Is anybody using pecl-imagick without this segfault at the moment?   Or
do you have any suggestion about what I could try?   I will setup a
"blank" 7.3 system as a VM later this week to test by myself

Thanks & regards,
Olivier


PS:  some files & infos:

1) /usr/local/etc/php/extensions.ini

extension=imap.so
extension=openssl.so
extension=zip.so
extension=ftp.so
extension=sqlite.so
extension=ctype.so
extension=json.so
extension=zlib.so
extension=gettext.so
extension=filter.so
extension=tidy.so
extension=mysql.so
extension=mcrypt.so
extension=hash.so
extension=mbstring.so
extension=tokenizer.so
extension=dom.so
extension=xmlreader.so
extension=bz2.so
extension=iconv.so
extension=simplexml.so
extension=pdo.so
extension=xml.so
extension=xsl.so
extension=pdo_sqlite.so
extension=pdo_mysql.so
extension=curl.so
extension=mssql.so
extension=mysqli.so
extension=session.so
extension=soap.so
extension=wddx.so
extension=memcache.so
extension=gd.so
extension=pdf.so
extension=imagick.so


2) pkg_info |grep -i -e pecl -e php

pear-1.9.0          PEAR framework for PHP
pecl-imagick-3.0.0.r1 Provides a wrapper to the ImageMagick/GraphicsMagick librar
pecl-memcache-3.0.4 Memcached extension
pecl-pdflib-2.1.8   A PECL extension to create PDF on the fly
php5-5.3.2_1        PHP Scripting Language
php5-bz2-5.3.2_1    The bz2 shared extension for php
php5-ctype-5.3.2_1  The ctype shared extension for php
php5-curl-5.3.2_1   The curl shared extension for php
php5-dom-5.3.2_1    The dom shared extension for php
php5-filter-5.3.2_1 The filter shared extension for php
php5-ftp-5.3.2_1    The ftp shared extension for php
php5-gd-5.3.2_1     The gd shared extension for php
php5-gettext-5.3.2_1 The gettext shared extension for php
php5-hash-5.3.2_1   The hash shared extension for php
php5-iconv-5.3.2_1  The iconv shared extension for php
php5-imap-5.3.2_1   The imap shared extension for php
php5-json-5.3.2_1   The json shared extension for php
php5-mbstring-5.3.2_1 The mbstring shared extension for php
php5-mcrypt-5.3.2_1 The mcrypt shared extension for php
php5-mssql-5.3.2_1  The mssql shared extension for php
php5-mysql-5.3.2_1  The mysql shared extension for php
php5-mysqli-5.3.2_1 The mysqli shared extension for php
php5-openssl-5.3.2_1 The openssl shared extension for php
php5-pdo-5.3.2_1    The pdo shared extension for php
php5-pdo_mysql-5.3.2_1 The pdo_mysql shared extension for php
php5-pdo_sqlite-5.3.2_1 The pdo_sqlite shared extension for php
php5-session-5.3.2_1 The session shared extension for php
php5-simplexml-5.3.2_1 The simplexml shared extension for php
php5-soap-5.3.2_1   The soap shared extension for php
php5-sqlite-5.3.2_1 The sqlite shared extension for php
php5-tidy-5.3.2_1   The tidy shared extension for php
php5-tokenizer-5.3.2_1 The tokenizer shared extension for php
php5-wddx-5.3.2_1   The wddx shared extension for php
php5-xml-5.3.2_1    The xml shared extension for php
php5-xmlreader-5.3.2_1 The xmlreader shared extension for php
php5-xsl-5.3.2_1    The xsl shared extension for php
php5-zip-5.3.2_1    The zip shared extension for php
php5-zlib-5.3.2_1   The zlib shared extension for php
phpMyAdmin-3.3.3    A set of PHP-scripts to manage MySQL over the web
phpSysInfo-3.0.r9_1 A PHP script for displaying system information

3) uname -a

FreeBSD pandora 7.3-RELEASE-p1 FreeBSD 7.3-RELEASE-p1 #0: Tue May 25
19:23:41 UTC 2010
root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64


4) php -i shows:

[...]
imagick

imagick module => enabled
imagick module version => 3.0.0RC1
imagick classes => Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator
ImageMagick version => ImageMagick 6.6.1-10 2010-06-22 Q16 http://www.imagemagick.org
ImageMagick copyright => Copyright (C) 1999-2010 ImageMagick Studio LLC
ImageMagick release date => 2010-06-22
[...]

(but shows "Segmentation fault: 11 (core dumped)" at the end).




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1277196339.16778.20.camel>