Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Nov 2010 01:04:51 +0100
From:      Olivier Mueller <om-lists-bsd@omx.ch>
To:        ports@freebsd.org
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: [freebsd] pecl-imagick -> Segmentation fault: 11 (core dumped) on php -i under freebsd 7.3
Message-ID:  <1289520291.22576.5.camel@frosch.omx.ch>
In-Reply-To: <1277196339.16778.20.camel@ompc.insign.local>
References:  <1242763051.5505.18.camel@frosch.omx.ch> <47e01da70905240107u6baf7e44pb9e46f8d6952de70@mail.gmail.com> <1277196339.16778.20.camel@ompc.insign.local>

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

On Tue, 2010-06-22 at 10:45 +0200, Olivier Mueller wrote:
> 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


I finally did that now (vmware-based freebsd basic system + fresh ports
tree + portinstall -rvbp php5 pecl-imagick), and it is exactly the same:
Segfault still displayed.  Maybe it's related to the "WITHOUT_X11=yes"
in my make.conf ?  I'll try again without that parameter later. 

Here are the ports list and gdb output, maybe someone will have an idea
why it is reacting like that?  : 


[root@bsdbox73 ~]# php -v
PHP 5.3.3 with Suhosin-Patch (cli) (built: Nov 11 2010 14:40:34) 
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
Segmentation fault: 11 (core dumped)
[root@bsdbox73 ~]# 


[root@bsdbox73 ~]# gdb php php.core 
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols found)...
Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libcrypt.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypt.so.4
Reading symbols from /lib/libz.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.4
Reading symbols from /usr/local/lib/libpcre.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libpcre.so.0
Reading symbols from /lib/libm.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /usr/local/lib/libxml2.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libxml2.so.5
Reading symbols from /usr/local/lib/libiconv.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x0000000803190820 in ?? ()
(gdb) 
(gdb) bt
#0  0x0000000803190820 in ?? ()
#1  0x0000000800db17d5 in xmlFreeMutex () from /usr/local/lib/libxml2.so.5
#2  0x0000000800db1215 in xmlCleanupGlobals () from /usr/local/lib/libxml2.so.5
#3  0x0000000800d49d3a in xmlCleanupParser () from /usr/local/lib/libxml2.so.5
#4  0x000000000044ff28 in php_libxml_shutdown ()
#5  0x000000000044ff59 in zm_shutdown_libxml ()
#6  0x0000000000558f2f in module_destructor ()
#7  0x000000000056061a in zend_hash_apply_deleter ()
#8  0x0000000000560888 in zend_hash_graceful_reverse_destroy ()
#9  0x0000000000554357 in zend_shutdown ()
#10 0x00000000005005f5 in php_module_shutdown ()
#11 0x00000000005dea4f in main ()
#12 0x00000000004186de in _start ()
#13 0x0000000800781000 in ?? ()
#14 0x0000000000000000 in ?? ()
#15 0x0000000000000000 in ?? () [...]
---Type <return> to continue, or q <return> to quit---q
Quit
(gdb) 


[root@bsdbox73 ~]# cat /etc//make.conf
# om/20080318
WITHOUT_X11=yes


[root@bsdbox73 ~]# cat /usr/local/etc/php/extensions.ini 
extension=imagick.so


[root@bsdbox73 ~]# uname -a
FreeBSD bsdbox73.omx.ch 7.3-RELEASE FreeBSD 7.3-RELEASE #0: Sun Mar 21 05:25:24 UTC 2010     root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64


[root@bsdbox73 ~]# pkg_info 
ImageMagick-nox11-6.6.4.10 Image processing tools
apache-2.0.64       Version 2.0.x of Apache web server with prefork MPM.
apr-0.9.19.0.9.19   Apache Portability Library
autoconf-2.68       Automatically configure source code on many Un*x platforms 
autoconf-wrapper-20071109 Wrapper script for GNU autoconf
automake-1.11.1     GNU Standards-compliant Makefile generator (1.11)
automake-wrapper-20071109 Wrapper script for GNU automake
bash-4.0.35         The GNU Project's Bourne Again SHell
cups-client-1.4.4   Common UNIX Printing System: Library cups
cups-image-1.4.4    Common UNIX Printing System: Library cupsimage
db41-4.1.25_4       The Berkeley DB package, revision 4.1
db42-4.2.52_5       The Berkeley DB package, revision 4.2
expat-2.0.1_1       XML 1.0 parser written in C
fftw3-3.2.2_1       Fast C routines to compute the Discrete Fourier Transform
fontconfig-2.8.0,1  An XML-based font configuration API for X Windows
freetype2-2.4.2     A free and portable TrueType font rendering engine
gamin-0.1.10_4      A file and directory monitoring system
gdbm-1.8.3_3        The GNU database manager
gettext-0.17_1      GNU gettext package
ghostscript8-nox11-8.71_6 Ghostscript 8.x PostScript interpreter
gio-fam-backend-2.24.2 FAM backend for GLib's GIO library
glib-2.24.2         Some useful routines of C programming (current stable versi
gmake-3.81_4        GNU version of 'make' utility
gnutls-2.8.6_2      GNU Transport Layer Security library
gsfonts-8.11_5      Standard Fonts for Ghostscript
help2man-1.38.2_1   Automatically generating simple manual pages from program o
jasper-1.900.1_9    An implementation of the codec specified in the JPEG-2000 s
jbig2dec-0.11       Decoder implementation of the JBIG2 image compression forma
jbigkit-1.6         Lossless compression for bi-level images such as scanned pa
jpeg-8_3            IJG's jpeg compression utilities
lcms-1.19_1,1       Light Color Management System -- a color management library
libfpx-1.2.0.12_1   Library routines for working with Flashpix images
libgcrypt-1.4.6     General purpose crypto library based on code used in GnuPG
libgpg-error-1.8    Common error values for all GnuPG components
libiconv-1.13.1_1   A character set conversion library
liblqr-1-0.4.1_2    An easy to use C/C++ seam carving library
libltdl-2.2.10      System independent dlopen wrapper
libtool-2.2.10      Generic shared library support script
libxml2-2.7.7       XML parser library for GNOME
m4-1.4.15,1         GNU m4
p5-Locale-gettext-1.05_3 Message handling functions
pcre-8.10           Perl Compatible Regular Expressions library
pecl-imagick-3.0.1.r2 Provides a wrapper to the ImageMagick/GraphicsMagick librar
perl-5.8.9_4        Practical Extraction and Report Language
php5-5.3.3_2        PHP Scripting Language
pkg-config-0.25_1   A utility to retrieve information about installed libraries
png-1.4.3           Library for manipulating PNG images
portupgrade-2.4.6_3,2 FreeBSD ports/packages administration and management tool s
python26-2.6.6      An interpreted object-oriented programming language
rsync-3.0.7         A network file distribution/synchronization utility
ruby-1.8.7.248,1    An object-oriented interpreted scripting language
ruby18-bdb-0.6.5_1  Ruby interface to Sleepycat's Berkeley DB revision 2 or lat
tiff-4.0.0          Tools and library routines for working with TIFF images
unzip-6.0           List, test and extract compressed files in a ZIP archive
xz-5.0.0            LZMA compression and decompression tools



Thanks & kind regards,
Olivier





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