ID:               31119
 User updated by:  shoorik at ilyichevsk dot net
 Reported By:      shoorik at ilyichevsk dot net
-Status:           Feedback
+Status:           Open
 Bug Type:         Apache2 related
 Operating System: FreeBSD 5.2.1-RELEASE #5 i386
 PHP Version:      4.3.10
 New Comment:

Prefork mpm works nice, but I must solve few issues with CGI zombies
using threads that way. Thats why I tried to use worker mpm. Anyway -
there is few sites which still work on threaded php - I got this crash
only with phpMyAdmin (still trying to find out WHERE?).

So I must not use thread features anyway... Sadly... Will PHP team fix
this is fuftre anyway? Perl story reproduces?


Previous Comments:
------------------------------------------------------------------------

[2004-12-16 13:04:03] [EMAIL PROTECTED]

Does it crash if you compile Apache with prefork mpm ?? ie. don't even
try to use threading with php, it doesn't work.


------------------------------------------------------------------------

[2004-12-16 12:29:55] shoorik at ilyichevsk dot net

Description:
------------
Apache httpd-2.0.52 config:
configure --prefix=/usr/local/apache --enable-suexec
--enable-ext-filter --enable-rewrite --enable-ssl --with-mpm=worker
--enable-threads

NOTE: apache built with worker MPM!

PHP config:
configure  --with-mysql=/usr/local/mysql
--with-apxs2=/usr/local/apache/bin/apxs --with-gd=/usr/local
--with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-zlib=/usr
--with-iconv=/usr/local --with-freetype=/usr/local
--with-curl=/usr/local --enable-threads --enable-roxen-zts

Bug reproducible on phpMyAdmin-2.6.0-pl3. Requests to phpMyAdmin using
web causes apache chield to die with signal 11.

....
[Thu Dec 16 10:51:52 2004] [notice] child pid 69976 exit signal Illegal
instruction (4)
....

Crash also could be reproduced in cmd line using "php -a index.php"
command. But in non-interactive mode (without -a option) it works.

Backtrace see below

This crash also reproducible with PHP-4.3.6 using same configureaion.
4.3.6 crashes with the same backtrace.


Actual result:
--------------
su-2.05b# pwd
/home/web/xx.xx.xx.xx/www/phpMyAdmin-2.6.0-pl3
su-2.05b# php -v
PHP 4.3.10 (cli) (built: Dec 16 2004 10:50:26)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
su-2.05b# gdb `which php`
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 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-unknown-freebsd"...
(gdb) r -a index.php
Starting program: /usr/local/bin/php -a index.php
Interactive mode enabled


Program received signal SIGSEGV, Segmentation fault.
0x0813a7d3 in execute (op_array=0x83b760c, tsrm_ls=0x8189050) at
/usr/local/src/php-4.3.10/Zend/zend_execute.c:1093
1093                    switch(EX(opline)->opcode) {


(gdb) bt
#0  0x0813a7d3 in execute (op_array=0x83b760c, tsrm_ls=0x8189050) at
/usr/local/src/php-4.3.10/Zend/zend_execute.c:1093
#1  0x0813e50e in execute (op_array=0x83b718c, tsrm_ls=0x8189050) at
/usr/local/src/php-4.3.10/Zend/zend_execute.c:2212
#2  0x08126e81 in execute_new_code (tsrm_ls=0x8189050) at
/usr/local/src/php-4.3.10/Zend/zend_execute_API.c:712
#3  0x08113ed1 in zendparse (tsrm_ls=0x8189050) at
Zend/zend_language_parser.c:2191
#4  0x08117a52 in compile_file (file_handle=0xbfbfc500, type=8,
tsrm_ls=0x8189050) at Zend/zend_language_scanner.c:3111
#5  0x0813e7f4 in execute (op_array=0x823aa8c, tsrm_ls=0x8189050) at
/usr/local/src/php-4.3.10/Zend/zend_execute.c:2163
#6  0x08126e81 in execute_new_code (tsrm_ls=0x8189050) at
/usr/local/src/php-4.3.10/Zend/zend_execute_API.c:712
#7  0x08113ed1 in zendparse (tsrm_ls=0x8189050) at
Zend/zend_language_parser.c:2191
#8  0x08117a52 in compile_file (file_handle=0xbfbfec14, type=2,
tsrm_ls=0x8189050) at Zend/zend_language_scanner.c:3111
#9  0x0812e041 in zend_execute_scripts (type=8, tsrm_ls=0x8189050,
retval=0x0, file_count=3)
    at /usr/local/src/php-4.3.10/Zend/zend.c:896
#10 0x0810151e in php_execute_script (primary_file=0xbfbfec14,
tsrm_ls=0x8189050)
    at /usr/local/src/php-4.3.10/main/main.c:1736
#11 0x081424f9 in main (argc=3, argv=0xbfbfec74) at
/usr/local/src/php-4.3.10/sapi/cli/php_cli.c:822
#12 0x080618d2 in _start ()
(gdb)



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=31119&edit=1

Reply via email to