#26264 [Opn-Fbk]: php segfaults with iconv or mbstring enabled
ID: 26264 Updated by: [EMAIL PROTECTED] Reported By: Joerg dot Dieter dot Friedrich at uni-konstanz dot de -Status: Open +Status: Feedback Bug Type: *General Issues Operating System: Solaris 9 PHP Version: 4.3.4 New Comment: Try this: # rm config.cache # ./configure --with-apxs=/opt/apache/bin/apxs --disable-all # make clean make And as that most likely works fine, add the other options one by one to see which one actually causes the problem. Previous Comments: [2003-11-27 01:25:12] Joerg dot Dieter dot Friedrich at uni-konstanz dot de ok, done. removing gettext support didn't help: /opt/horde3/horde$ gdb /opt/apache/bin/httpd GNU gdb 6.0 Copyright 2003 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 sparc-sun-solaris2.9... (gdb) run -X Starting program: /opt/apache/bin/httpd -X Program received signal SIGSEGV, Segmentation fault. 0xfddb2e4c in shutdown_memory_manager (silent=0, clean_cache=18432) at /usr/local/src/php-4.3.4/Zend/zend_alloc.c:531 531 REMOVE_POINTER_FROM_LIST(t); [2003-11-25 14:16:24] [EMAIL PROTECTED] Remove the '--with-gettext' and try again. [2003-11-25 10:12:50] Joerg dot Dieter dot Friedrich at uni-konstanz dot de [EMAIL PROTECTED]:/usr/local/src/php-4.3.4$ php -i | head -20 phpinfo() PHP Version = 4.3.4 System = SunOS thurn 5.9 Generic_112233-08 sun4u Build Date = Nov 24 2003 13:49:46 Configure Command = './configure' '--prefix=/opt/php4' '--with-apxs=/opt/apache/bin/apxs' '--sysconfdir=/opt/etc/php4' '--with-config-file-path=/opt/etc/php4' '--disable-debug' '--with-gd' '--with-jpeg-dir=/usr/sfw' '--with-png-dir=/usr/sfw' '--with-zlib' '--with-imap=/usr/local/src/imap-2002e' '--with-mysql=/opt/mysql' '--with-mysql-sock=/var/run/mysql/sock' '--enable-dba' '--with-db4=/usr/local' '--with-ndbm' '--with-ldap=/usr/local' '--with-gettext' '--with-pear' '--enable-safe-mode' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--with-mcrypt=/usr/local' '--with-xml' '--with-dom' '--with-dom-xslt' '--with-dom-exsl' '--enable-mime-magic=/opt/etc/apache/magic' '--with-iconv' '--enable-mbstring=all' '--with-expat-dir=/usr/local' '--with-openssl=/usr/local/ssl' Server API = Command Line Interface Virtual Directory Support = disabled Configuration File (php.ini) Path = /opt/etc/php4/php.ini PHP API = 20020918 PHP Extension = 20020429 Zend Extension = 20021010 Debug Build = no Thread Safety = disabled Registered PHP Streams = php, http, ftp, https, ftps, compress.zlib This program makes use of the Zend Scripting Language Engine: Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies [EMAIL PROTECTED]:/usr/local/src/php-4.3.4$ grep '\-O' Makefile CFLAGS_CLEAN = -g -O2 [2003-11-25 02:58:23] [EMAIL PROTECTED] What was the optimizing option (-Ox where x is some number) for gcc for this last build? And are you absolutely sure none of those shared extensions are not loaded in any php.ini files anymore? [2003-11-24 08:06:42] Joerg dot Dieter dot Friedrich at uni-konstanz dot de It's me again. I just compiled everything static. running the script form commandline doesn't segfault anymore, but the apache1 module still segfaults! gdb showed: (gdb) run -X Starting program: /opt/apache/bin/httpd -X warning: Lowest section in /usr/lib/libintl.so.1 is .hash at 0074 warning: Lowest section in /usr/lib/libintl.so.1 is .hash at 0074 Program received signal SIGSEGV, Segmentation fault. 0xfddb4624 in shutdown_memory_manager (silent=1, clean_cache=18432) at /usr/local/src/php-4.3.4/Zend/zend_alloc.c:531 531 REMOVE_POINTER_FROM_LIST(t); (gdb) bt #0 0xfddb4624 in shutdown_memory_manager (silent=1, clean_cache=18432) at /usr/local/src/php-4.3.4/Zend/zend_alloc.c:531 #1 0xfdd94980 in php_request_shutdown (dummy=0x0) at /usr/local/src/php-4.3.4/main/main.c:1005 #2 0xfddd577c in apache_php_module_main (r=0x0, display_source_mode=-35825944) at /usr/local/src/php-4.3.4/sapi/apache/sapi_apache.c:60 The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/26264 -- Edit this bug report at
#26264 [Opn-Fbk]: php segfaults with iconv or mbstring enabled
ID: 26264 Updated by: [EMAIL PROTECTED] Reported By: Joerg dot Dieter dot Friedrich at uni-konstanz dot de -Status: Open +Status: Feedback Bug Type: *General Issues Operating System: Solaris 9 PHP Version: 4.3.4 New Comment: What was the optimizing option (-Ox where x is some number) for gcc for this last build? And are you absolutely sure none of those shared extensions are not loaded in any php.ini files anymore? Previous Comments: [2003-11-24 08:06:42] Joerg dot Dieter dot Friedrich at uni-konstanz dot de It's me again. I just compiled everything static. running the script form commandline doesn't segfault anymore, but the apache1 module still segfaults! gdb showed: (gdb) run -X Starting program: /opt/apache/bin/httpd -X warning: Lowest section in /usr/lib/libintl.so.1 is .hash at 0074 warning: Lowest section in /usr/lib/libintl.so.1 is .hash at 0074 Program received signal SIGSEGV, Segmentation fault. 0xfddb4624 in shutdown_memory_manager (silent=1, clean_cache=18432) at /usr/local/src/php-4.3.4/Zend/zend_alloc.c:531 531 REMOVE_POINTER_FROM_LIST(t); (gdb) bt #0 0xfddb4624 in shutdown_memory_manager (silent=1, clean_cache=18432) at /usr/local/src/php-4.3.4/Zend/zend_alloc.c:531 #1 0xfdd94980 in php_request_shutdown (dummy=0x0) at /usr/local/src/php-4.3.4/main/main.c:1005 #2 0xfddd577c in apache_php_module_main (r=0x0, display_source_mode=-35825944) at /usr/local/src/php-4.3.4/sapi/apache/sapi_apache.c:60 [2003-11-24 01:04:07] Joerg dot Dieter dot Friedrich at uni-konstanz dot de No, I only compiled iconv and mbstring static, but I'll test today. And yes I always remove the old buildtree and unpack a new one. [2003-11-23 21:09:28] [EMAIL PROTECTED] Every extension compiled as 'static' ?? And you're using clean sources? [2003-11-23 13:31:02] Joerg dot Dieter dot Friedrich at uni-konstanz dot de even when compiled static, the result is the same. [2003-11-21 21:18:01] [EMAIL PROTECTED] Try compiling iconv support as 'static', ie. use --with-iconv without the '=shared' part.. (see also bug #26005) The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/26264 -- Edit this bug report at http://bugs.php.net/?id=26264edit=1
#26264 [Opn-Fbk]: php segfaults with iconv or mbstring enabled
ID: 26264 Updated by: [EMAIL PROTECTED] Reported By: Joerg dot Dieter dot Friedrich at uni-konstanz dot de -Status: Open +Status: Feedback Bug Type: *General Issues Operating System: Solaris 9 PHP Version: 4.3.4 New Comment: Remove the '--with-gettext' and try again. Previous Comments: [2003-11-25 10:12:50] Joerg dot Dieter dot Friedrich at uni-konstanz dot de [EMAIL PROTECTED]:/usr/local/src/php-4.3.4$ php -i | head -20 phpinfo() PHP Version = 4.3.4 System = SunOS thurn 5.9 Generic_112233-08 sun4u Build Date = Nov 24 2003 13:49:46 Configure Command = './configure' '--prefix=/opt/php4' '--with-apxs=/opt/apache/bin/apxs' '--sysconfdir=/opt/etc/php4' '--with-config-file-path=/opt/etc/php4' '--disable-debug' '--with-gd' '--with-jpeg-dir=/usr/sfw' '--with-png-dir=/usr/sfw' '--with-zlib' '--with-imap=/usr/local/src/imap-2002e' '--with-mysql=/opt/mysql' '--with-mysql-sock=/var/run/mysql/sock' '--enable-dba' '--with-db4=/usr/local' '--with-ndbm' '--with-ldap=/usr/local' '--with-gettext' '--with-pear' '--enable-safe-mode' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--with-mcrypt=/usr/local' '--with-xml' '--with-dom' '--with-dom-xslt' '--with-dom-exsl' '--enable-mime-magic=/opt/etc/apache/magic' '--with-iconv' '--enable-mbstring=all' '--with-expat-dir=/usr/local' '--with-openssl=/usr/local/ssl' Server API = Command Line Interface Virtual Directory Support = disabled Configuration File (php.ini) Path = /opt/etc/php4/php.ini PHP API = 20020918 PHP Extension = 20020429 Zend Extension = 20021010 Debug Build = no Thread Safety = disabled Registered PHP Streams = php, http, ftp, https, ftps, compress.zlib This program makes use of the Zend Scripting Language Engine: Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies [EMAIL PROTECTED]:/usr/local/src/php-4.3.4$ grep '\-O' Makefile CFLAGS_CLEAN = -g -O2 [2003-11-25 02:58:23] [EMAIL PROTECTED] What was the optimizing option (-Ox where x is some number) for gcc for this last build? And are you absolutely sure none of those shared extensions are not loaded in any php.ini files anymore? [2003-11-24 08:06:42] Joerg dot Dieter dot Friedrich at uni-konstanz dot de It's me again. I just compiled everything static. running the script form commandline doesn't segfault anymore, but the apache1 module still segfaults! gdb showed: (gdb) run -X Starting program: /opt/apache/bin/httpd -X warning: Lowest section in /usr/lib/libintl.so.1 is .hash at 0074 warning: Lowest section in /usr/lib/libintl.so.1 is .hash at 0074 Program received signal SIGSEGV, Segmentation fault. 0xfddb4624 in shutdown_memory_manager (silent=1, clean_cache=18432) at /usr/local/src/php-4.3.4/Zend/zend_alloc.c:531 531 REMOVE_POINTER_FROM_LIST(t); (gdb) bt #0 0xfddb4624 in shutdown_memory_manager (silent=1, clean_cache=18432) at /usr/local/src/php-4.3.4/Zend/zend_alloc.c:531 #1 0xfdd94980 in php_request_shutdown (dummy=0x0) at /usr/local/src/php-4.3.4/main/main.c:1005 #2 0xfddd577c in apache_php_module_main (r=0x0, display_source_mode=-35825944) at /usr/local/src/php-4.3.4/sapi/apache/sapi_apache.c:60 [2003-11-24 01:04:07] Joerg dot Dieter dot Friedrich at uni-konstanz dot de No, I only compiled iconv and mbstring static, but I'll test today. And yes I always remove the old buildtree and unpack a new one. [2003-11-23 21:09:28] [EMAIL PROTECTED] Every extension compiled as 'static' ?? And you're using clean sources? The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/26264 -- Edit this bug report at http://bugs.php.net/?id=26264edit=1
#26264 [Opn-Fbk]: php segfaults with iconv or mbstring enabled
ID: 26264 Updated by: [EMAIL PROTECTED] Reported By: Joerg dot Dieter dot Friedrich at uni-konstanz dot de -Status: Open +Status: Feedback Bug Type: *General Issues Operating System: Solaris 9 PHP Version: 4.3.4 New Comment: Every extension compiled as 'static' ?? And you're using clean sources? Previous Comments: [2003-11-23 13:31:02] Joerg dot Dieter dot Friedrich at uni-konstanz dot de even when compiled static, the result is the same. [2003-11-21 21:18:01] [EMAIL PROTECTED] Try compiling iconv support as 'static', ie. use --with-iconv without the '=shared' part.. (see also bug #26005) [2003-11-20 06:33:58] Joerg dot Dieter dot Friedrich at uni-konstanz dot de Another series of tests later: there seems to be more than one problem: cli always segfaults with: 0x000bda60 in _efree (ptr=0x358ab0) at /usr/local/src/php-4.3.4/Zend/zend_alloc.c:259 259 REMOVE_POINTER_FROM_LIST(p); apache1 sapi only when iconv.so or mbstring.so is loaded [2003-11-20 05:24:11] Joerg dot Dieter dot Friedrich at uni-konstanz dot de After further testing this issue seems not to be ICONV related [2003-11-18 10:13:00] Joerg dot Dieter dot Friedrich at uni-konstanz dot de Additional info: I was not able to generate a core with --enable-debug, but here's the backtrace with --disable-debug, maybe you can see someting. Core was generated by `php login.php'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/lib/libcrypt_i.so.1...done. Loaded symbols for /usr/lib/libcrypt_i.so.1 Reading symbols from /usr/lib/libpam.so.1...done. Loaded symbols for /usr/lib/libpam.so.1 Reading symbols from /usr/lib/libintl.so.1... warning: Lowest section in /usr/lib/libintl.so.1 is .hash at 0074 done. Loaded symbols for /usr/lib/libintl.so.1 Reading symbols from /usr/local/ssl/lib/libssl.so.0.9.7...done. Loaded symbols for /usr/local/ssl/lib/libssl.so.0.9.7 Reading symbols from /usr/local/ssl/lib/libcrypto.so.0.9.7...done. Loaded symbols for /usr/local/ssl/lib/libcrypto.so.0.9.7 Reading symbols from /usr/lib/libresolv.so.2...done. Loaded symbols for /usr/lib/libresolv.so.2 Reading symbols from /usr/lib/libm.so.1...done. Loaded symbols for /usr/lib/libm.so.1 Reading symbols from /usr/lib/libdl.so.1...done. Loaded symbols for /usr/lib/libdl.so.1 Reading symbols from /usr/lib/libnsl.so.1...done. Loaded symbols for /usr/lib/libnsl.so.1 Reading symbols from /usr/lib/libsocket.so.1...done. Loaded symbols for /usr/lib/libsocket.so.1 Reading symbols from /usr/lib/libc.so.1...done. Loaded symbols for /usr/lib/libc.so.1 Reading symbols from /usr/lib/libgen.so.1...done. Loaded symbols for /usr/lib/libgen.so.1 Reading symbols from /usr/lib/libcmd.so.1...done. Loaded symbols for /usr/lib/libcmd.so.1 Reading symbols from /usr/local/lib/libgcc_s.so.1...done. Loaded symbols for /usr/local/lib/libgcc_s.so.1 Reading symbols from /usr/lib/libmp.so.2...done. Loaded symbols for /usr/lib/libmp.so.2 Reading symbols from /usr/platform/SUNW,Sun-Fire-V240/lib/libc_psr.so.1...done. Loaded symbols for /usr/platform/SUNW,Sun-Fire-V240/lib/libc_psr.so.1 Reading symbols from /opt/php4/lib/php/extensions/no-debug-non-zts-20020429/iconv.so...done. Loaded symbols for /opt/php4/lib/php/extensions/no-debug-non-zts-20020429/iconv.so Reading symbols from /opt/php4/lib/php/extensions/no-debug-non-zts-20020429/mbstring.so...done. Loaded symbols for /opt/php4/lib/php/extensions/no-debug-non-zts-20020429/mbstring.so Reading symbols from /opt/php4/lib/php/extensions/no-debug-non-zts-20020429/imap.so...done. Loaded symbols for /opt/php4/lib/php/extensions/no-debug-non-zts-20020429/imap.so Reading symbols from /opt/php4/lib/php/extensions/no-debug-non-zts-20020429/mysql.so...done. Loaded symbols for /opt/php4/lib/php/extensions/no-debug-non-zts-20020429/mysql.so Reading symbols from /opt/mysql/lib/mysql/libmysqlclient.so.12...done. Loaded symbols for /opt/mysql/lib/mysql/libmysqlclient.so.12 Reading symbols from /usr/lib/libz.so.1...done. Loaded symbols for /usr/lib/libz.so.1 Reading symbols from /usr/lib/librt.so.1...done. Loaded symbols for /usr/lib/librt.so.1 Reading symbols from /usr/lib/libaio.so.1...done. Loaded symbols for /usr/lib/libaio.so.1 Reading symbols from /usr/lib/libmd5.so.1...done. Loaded symbols for /usr/lib/libmd5.so.1 Reading symbols from /opt/php4/lib/php/extensions/no-debug-non-zts-20020429/gd.so...done. Loaded symbols for /opt/php4/lib/php/extensions/no-debug-non-zts-20020429/gd.so Reading symbols from /usr/sfw/lib/libpng.so.2...done. Loaded symbols for /usr/sfw/lib/libpng.so.2