ID: 16436
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Open
+Status: Feedback
Bug Type: Regexps related
Operating System: Linux
PHP Version: 4.0CVS-2002-04-0
New Comment:
Please reconfigure/compile PHP with --enable-debug added to the
configure line. And generate a new gdb backtrace.
--Jani
Previous Comments:
------------------------------------------------------------------------
[2002-04-05 17:14:57] [EMAIL PROTECTED]
thanks for your advice, this is the backtrace I've got:
(gdb) backtrace
#0 0x400a8ff1 in kill () from /lib/libc.so.6
#1 0x402637f5 in _emalloc () from
/usr/local/apache/libexec/libphp4.so
#2 0x40263b9f in _ecalloc () from
/usr/local/apache/libexec/libphp4.so
#3 0x403360c4 in php_reg_replace () from
/usr/local/apache/libexec/libphp4.so
#4 0x40336b5c in php_reg_replace () from
/usr/local/apache/libexec/libphp4.so
#5 0x40336cdd in zif_ereg_replace () from
/usr/local/apache/libexec/libphp4.so
#6 0x40271797 in execute () from /usr/local/apache/libexec/libphp4.so
#7 0x402719bf in execute () from /usr/local/apache/libexec/libphp4.so
#8 0x402719bf in execute () from /usr/local/apache/libexec/libphp4.so
#9 0x402836f4 in zend_execute_scripts () from
/usr/local/apache/libexec/libphp4.so
#10 0x40297415 in php_execute_script () from
/usr/local/apache/libexec/libphp4.so
#11 0x40291990 in apache_php_module_main () from
/usr/local/apache/libexec/libphp4.so
#12 0x40292910 in php_restore_umask () from
/usr/local/apache/libexec/libphp4.so
#13 0x40292993 in php_restore_umask () from
/usr/local/apache/libexec/libphp4.so
#14 0x8054e89 in ap_invoke_handler ()
#15 0x806a40f in process_request_internal ()
#16 0x806a482 in ap_process_request ()
#17 0x8061066 in child_main ()
#18 0x8061225 in make_child ()
#19 0x80613a6 in startup_children ()
#20 0x8061a2c in standalone_main ()
#21 0x806225c in main ()
#22 0x40098c5f in __libc_start_main () from /lib/libc.so.6
My installation is a more or less standard Suse Linux 7.2, kernel
2.4.4, etc.
Lutz
------------------------------------------------------------------------
[2002-04-05 16:34:46] [EMAIL PROTECTED]
Your last statement could easily lead to the assumption that your local
regexp implementation/library is broken.
To produce a backtrace on apache, fire up gdb with the apache binary
and start with the parameter '-X'.
------------------------------------------------------------------------
[2002-04-05 16:18:09] [EMAIL PROTECTED]
The crash don't happen when php is runing as a cgi or with the cli api.
And I have no idea how to tell the apache to dump a core when the
php-module crashes. So I'm not able to provide a backtrace.
This is the configure I've used:
'./configure' '--prefix=/usr/local' '--with-config-file-path=/etc'
'--with-apxs=/usr/local/apache/bin/apxs' '--enable-shared'
'--enable-sysvsem' '--enable-sysvshm' '--enable-inline-optimization'
'--with-regex=system' '--with-mysql=/usr/local/mysql'
'--with-interbase=/opt/interbase' '--enable-ftp' '--enable-sockets'
'--with-zlib-dir=/usr/local' '--with-ttf' '--with-png-dir=/usr/local'
'--with-gd=/usr/local' '--with-jpeg-dir=/usr/local' '--with-gettext'
'--with-pdflib'
If I use '--with-regex=php' instead of 'system' everything works fine.
Lutz
------------------------------------------------------------------------
[2002-04-04 20:03:20] [EMAIL PROTECTED]
I can not reproduce this with latest CVS or with 4.2.0RC2.
Please add the configure line used into this bug report.
Also, configure php with --enable-debug and generate
a GDB backtrace of the crash.
------------------------------------------------------------------------
[2002-04-04 15:37:51] [EMAIL PROTECTED]
this line crashes the apache process with php 4.2.0RC2 as a module
<?php
if (ereg('foo', 'string with foo')) echo 'got it';
?>
Lutz
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16436&edit=1