ID: 20539
Comment by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Reproducible crash
Operating System: Linux
PHP Version: 4CVS-2002-11-21 (stable)
New Comment:
Playing around with some versions:
Current CVS CLI with mailparse => Segfault
Current CVS CLI w/o mailparse => Segfault
PHP 4.2.3 w/o mailparse => OK
PHP 4.2.3 with mailparse => Segfault
Previous Comments:
------------------------------------------------------------------------
[2002-11-21 06:00:26] [EMAIL PROTECTED]
As I wrote, i'ts segfaulting with an empty file too. Same backtrace
output. Doesn't matter which content the php script has.
------------------------------------------------------------------------
[2002-11-21 05:47:06] [EMAIL PROTECTED]
Please provide the script so that we can try to reproduce it.
Derick
------------------------------------------------------------------------
[2002-11-21 05:14:00] [EMAIL PROTECTED]
btw it segfaults without mailparse extension too !
------------------------------------------------------------------------
[2002-11-21 05:01:15] [EMAIL PROTECTED]
Same result if the php sample script is empty:
$ls -la php-test.php
-rwxrwxrwx 1 boris users 0 Nov 21 12:41 php-test.php
$php php-test.php
Segmentation fault
------------------------------------------------------------------------
[2002-11-21 04:11:25] [EMAIL PROTECTED]
A Script running on a shell with php cli using ext/mailparse segaults.
Ok, the script doing his job fine but segfault at the end of processing
data.
PHP Configure:
--with-mysql=/usr/local/mysql \
--with-apxs=/usr/local/apache/bin/apxs \
--enable-ftp \
--enable-track-vars \
--enable-trans-sid \
--with-gd \
--with-pdflib \
--with-jpeg-dir=/usr/lib \
--with-tiff-dir=/usr/lib \
--with-png-dir=/usr/lib \
--with-zlib-dir=/usr/lib \
--with-gettext \
--with-imap \
--enable-sockets \
--enable-mailparse
( Mailparse from today's pear/PECL/mailparse CVS )
$gdb php
(gdb) run myscript.php
Program received signal SIGSEGV, Segmentation fault.
0x08169b9e in _efree (ptr=0x82a9764) at
/tmp/php4/Zend/zend_alloc.c:229
229 REMOVE_POINTER_FROM_LIST(p);
(gdb) bt
#0 0x08169b9e in _efree (ptr=0x82a9764) at
/tmp/php4/Zend/zend_alloc.c:229
#1 0x08177af1 in _zval_dtor (zvalue=0x82a9908) at
/tmp/php4/Zend/zend_variables.c:44
#2 0x0816f2e6 in free_zend_constant (c=0x82a9908) at
/tmp/php4/Zend/zend_constants.c:31
#3 0x0817d0ee in zend_hash_destroy (ht=0x8254378) at
/tmp/php4/Zend/zend_hash.c:543
#4 0x0816f6b8 in zend_shutdown_constants () at
/tmp/php4/Zend/zend_constants.c:151
#5 0x08178765 in zend_shutdown () at /tmp/php4/Zend/zend.c:552
#6 0x08150de3 in php_module_shutdown () at /tmp/php4/main/main.c:1315
#7 0x0819267e in main (argc=2, argv=0xbffffdf4) at
/tmp/php4/sapi/cli/php_cli.c:809
(gdb) bt full
#0 0x08169b9e in _efree (ptr=0x82a9764) at
/tmp/php4/Zend/zend_alloc.c:229
p = (zend_mem_header *) 0x82a9758
cache_index = 136985032
#1 0x08177af1 in _zval_dtor (zvalue=0x82a9908) at
/tmp/php4/Zend/zend_variables.c:44
zvalue = (zval *) 0x82a9908
#2 0x0816f2e6 in free_zend_constant (c=0x82a9908) at
/tmp/php4/Zend/zend_constants.c:31
c = (zend_constant *) 0x82a9908
#3 0x0817d0ee in zend_hash_destroy (ht=0x8254378) at
/tmp/php4/Zend/zend_hash.c:543
p = (Bucket *) 0x82aa500
q = (Bucket *) 0x82a98d8
#4 0x0816f6b8 in zend_shutdown_constants () at
/tmp/php4/Zend/zend_constants.c:151
No locals.
#5 0x08178765 in zend_shutdown () at /tmp/php4/Zend/zend.c:552
No locals.
#6 0x08150de3 in php_module_shutdown () at /tmp/php4/main/main.c:1315
No locals.
#7 0x0819267e in main (argc=2, argv=0xbffffdf4) at
/tmp/php4/sapi/cli/php_cli.c:809
exit_status = 0
c = 136985032
file_handle = {type = 2 '\002', filename = 0xbffffee2
"exim-ext", opened_path = 0x0, handle = {fd = 136940424, fp =
0x8298b88}, free_filename = 0 '\0'}
behavior = 1
orig_optind = 1
orig_optarg = 0x0
arg_free = 0xbffffee2 "exim-ext"
script_file = 0xbffffee2 "exim-ext"
global_vars = {head = 0x0, tail = 0x0, size = 4, count = 0,
dtor = 0, persistent = 0 '\0', traverse_ptr = 0x823a52c}
interactive = 0
module_started = 1
exec_direct = 0x0
param_error = 0x0
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20539&edit=1