Re: Bug #12450: Segfaults if recode is loaded after mysql or imap

From: Date: Mon, 30 Jul 2001 07:59:57 +0000
Subject: Re: Bug #12450: Segfaults if recode is loaded after mysql or imap
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-61431@lists.php.net to get a copy of this message
UNSUBSCRIBE ME PLEASE!!!!!!!!!!!!!! troels@arvin.dk schrieb: > From: troels@arvin.dk > Operating system: Red Hat Linux 6.2 > PHP version: 4.0.6 > PHP Bug Type: Recode related > Bug description: Segfaults if recode is loaded after mysql or imap > > PHP segfaults if recode.so (php's recode extension as a shared library) is > loaded _after_ the imap or mysql extensions. Re-ordering the php.ini file > so that the "extension=recode.so" line is the first "extension=..."-line > stops the segfaults. > > Recode versions tested: 3.5d, 3.6. > > PHP versions tested: 4.0.6. > > config.nice: > ============ > > #! /bin/sh > # > # Created by configure > > "./configure" \ > "--prefix=/usr" \ > "--libdir=/usr/lib/php4" \ > "--includedir=/usr/include" \ > "--datadir=/usr/share/php" \ > "--with-config-file-path=/etc" \ > "--enable-discard-path" \ > "--enable-inline-optimization" \ > "--enable-magic-quotes" \ > "--enable-track-vars" \ > "--enable-memory-limit" \ > "--enable-wddx" \ > "--enable-bcmath" \ > "--enable-sigchild" \ > "--with-xml" \ > "--with-mm" \ > "--with-openssl" \ > "--enable-ftp=shared" \ > "--enable-exif=shared" \ > "--with-gd=shared,/usr" \ > "--with-ttf" \ > "--enable-gd-imgstrttf" \ > "--with-png-dir=/usr" \ > "--with-jpeg-dir=/usr" \ > "--enable-sysvsem=shared" \ > "--enable-sysvshm=shared" \ > "--enable-shmop=shared" \ > "--with-unixODBC=shared" \ > "--with-mysql=shared,/usr" \ > "--with-ldap=shared" \ > "--with-pgsql=shared" \ > "--with-gettext=shared" \ > "--with-pspell=shared" \ > "--with-snmp=shared" \ > "--enable-ucd-snmp-hack" \ > "--with-sybase-ct=shared,/usr" \ > "--with-pdflib=shared" \ > "--with-oci8=shared" \ > "--with-swf=shared,/home/troels/rpm/BUILD/php-4.0.6/swflib" \ > "--enable-sockets=shared" \ > "--with-gmp=shared" \ > "--with-dom=shared" \ > "--with-qtdom=shared,/usr/lib/qt-2.3.0" \ > "--with-iconv=shared" \ > "--with-curl=shared" \ > "--enable-apc=shared" \ > "--with-ming=shared" \ > "--with-imlib=shared" \ > "--with-recode=shared" \ > "--with-zlib=/usr" \ > "$@" > > php.ini: > ======== > > extension_dir = /usr/lib/php4 > > ;; Global PHP defaults > > warn_plus_overloading = On ; warn if the + operator is used > with strings > track_errors = On ; Store the last error/warning > message in $php_errormsg (boolean) > track_vars = On ; enable the $HTTP_*_VARS[] arrays, > where * is one of > > magic_quotes_gpc = On ; magic quotes for incoming > GET/POST/Cookie data > ; many people think that the system > is a pain in the > ; a**, but it probably does > represent a security > ; feature for in-experienced PHP > developers. Turn it > ; off if you don't want PHP to mess > with your incoming > ; variables. > include_path = ".:/usr/share/php/PEAR:/usr/share/php/imlib" > session.save_path = "/var/state/php" > extension=php_apc.so > extension=domxml.so > extension=exif.so > extension=ftp.so > extension=gd-with_gif.so > extension=gettext.so > extension=gmp.so > extension=iconv.so > extension=imlib.so > extension=ldap.so > extension=pdf.so > extension=pgsql.so > extension=pspell.so > extension=sablot.so > extension=snmp.so > extension=sockets.so > extension=swf.so > extension=sybase_ct.so > extension=sysvshm.so > extension=sysvsem.so > extension=shmop.so > extension=odbc.so > extension=curl.so > extension=mysql.so > extension=recode.so > > Back-trace: > =========== > > GNU gdb 19991004 > Copyright 1998 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 "i386-redhat-linux"... > Core was generated by `php'. > Program terminated with signal 11, Segmentation fault. > Reading symbols from /lib/libpam.so.0...done. > Reading symbols from /lib/libdl.so.2...done. > Reading symbols from /usr/lib/libssl.so.0...done. > Reading symbols from /usr/lib/libcrypto.so.0...done. > Reading symbols from /usr/lib/libz.so.1...done. > Reading symbols from /lib/libcrypt.so.1...done. > Reading symbols from /lib/libresolv.so.2...done. > Reading symbols from /lib/libm.so.6...done. > Reading symbols from /lib/libnsl.so.1...done. > Reading symbols from /lib/libc.so.6...done. > Reading symbols from /lib/ld-linux.so.2...done. > Reading symbols from /usr/lib/php4/php_apc.so...done. > Reading symbols from /usr/lib/php4/domxml.so...done. > Reading symbols from /usr/lib/libxml2.so.2...done. > Reading symbols from /usr/lib/php4/exif.so...done. > Reading symbols from /usr/lib/php4/ftp.so...done. > Reading symbols from /usr/lib/php4/gd-with_gif.so...done. > Reading symbols from /usr/lib/libttf.so.2...done. > Reading symbols from /usr/lib/libpng.so.2...done. > Reading symbols from /usr/lib/libjpeg.so.62...done. > Reading symbols from /usr/gd-with_gif/lib/libgd.so.1.8...done. > Reading symbols from /usr/lib/php4/gettext.so...done. > Reading symbols from /usr/lib/php4/gmp.so...done. > Reading symbols from /usr/lib/libgmp.so.3...done. > Reading symbols from /usr/lib/php4/iconv.so...done. > Reading symbols from /usr/lib/php4/imlib.so...done. > Reading symbols from /usr/lib/libImlib2.so.1...done. > Reading symbols from /usr/lib/php4/ldap.so...done. > Reading symbols from /usr/lib/libldap.so.1...done. > Reading symbols from /usr/lib/liblber.so.1...done. > Reading symbols from /usr/lib/php4/pdf.so...done. > Reading symbols from /usr/lib/libgd.so.1...done. > Reading symbols from /usr/lib/libtiff.so.3...done. > Reading symbols from /usr/lib/libpdf.so.1...done. > Reading symbols from /usr/lib/php4/pgsql.so...done. > Reading symbols from /usr/lib/libpq.so.2...done. > Reading symbols from /usr/lib/php4/pspell.so...done. > Reading symbols from /usr/lib/libpspell.so.4...done. > Reading symbols from /usr/lib/libltdl.so.0...done. > Reading symbols from /usr/lib/libpspell-modules.so.1...done. > Reading symbols from /usr/lib/libstdc++-libc6.1-1.so.2...done. > Reading symbols from /usr/lib/php4/sablot.so...done. > Reading symbols from /usr/lib/libexpat.so.0...done. > Reading symbols from /usr/lib/libsablot.so.0...done. > Reading symbols from /usr/lib/php4/snmp.so...done. > Reading symbols from /usr/lib/libsnmp.so.0...done. > Reading symbols from /usr/lib/gconv/ISO8859-1.so...done. > Reading symbols from /usr/lib/php4/sockets.so...done. > Reading symbols from /lib/libnss_files.so.2...done. > Reading symbols from /usr/lib/php4/swf.so...done. > Reading symbols from /usr/lib/php4/sybase_ct.so...done. > Reading symbols from /usr/lib/php4/sysvshm.so...done. > Reading symbols from /usr/lib/php4/sysvsem.so...done. > Reading symbols from /usr/lib/php4/shmop.so...done. > Reading symbols from /usr/lib/php4/odbc.so...done. > Reading symbols from /usr/lib/libodbc.so.1...done. > Reading symbols from /usr/lib/php4/curl.so...done. > Reading symbols from /usr/lib/libcurl.so.2...done. > Reading symbols from /usr/lib/php4/mysql.so...done. > Reading symbols from /usr/lib/libmysqlclient.so.10...done. > Reading symbols from /usr/lib/php4/recode.so...done. > Reading symbols from /usr/lib/librecode.so.0...done. > #0 0x1f91 in ?? () > (gdb) > > System information: > =================== > Red Hat 6.2 with all official RH 6.2 patches on a dual-PIII with 2 gig > RAM. > > -- > Edit bug report at: http://bugs.php.net/?id=12450&edit=1 > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.dev (#61431) next »