Edit report at https://bugs.php.net/bug.php?id=52032&edit=1

 ID:                 52032
 Updated by:         f...@php.net
 Reported by:        slogster at gmail dot com
 Summary:            segmentation fault
 Status:             Feedback
 Type:               Bug
 Package:            FPM related
 Operating System:   linux  x86_64
 PHP Version:        5.3SVN-2010-06-09 (SVN)
 Assigned To:        fat
 Block user comment: N
 Private report:     N

 New Comment:

Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

There were a lots of change since your request. Can you try the last snapshot 
please and tell us if the bug still occurs


Previous Comments:
------------------------------------------------------------------------
[2010-06-09 15:48:05] slogster at gmail dot com

I have compiled php with --enable-debug and can extract everything you want 
from the core file, but I don't have a way to reproduce it. I am testing now 
5.3 in production and this server is running with debug to catch problems.

I have built php the following way:

export CFLAGS="-O2 -msse -mmmx -msse2 -msse3 -mfpmath=sse"
export CXXFLAGS="${CFLAGS}"

./buildconf
./configure --prefix=$PHPPREFIX \
                --enable-fpm \
                --with-libevent-dir=$LIBEVENTPREFIX \
                --with-mysql \
                --disable-ipv6 \
                --disable-filter \
                --disable-hash \
                --disable-posix \
                --disable-tokenizer \
                --without-pear \
                --without-sqlite \
                --with-pdo-mysql \
                --with-gd

fpm ini:

[global]
pid                         = /usr/local/php-5.3-r299968/var/run/php-fpm.pid
error_log                   = /usr/local/php-5.3-r299968/var/log/php-fpm.log
log_level                   = notice
emergency_restart_threshold = 10
emergency_restart_interval  = 1m
process_control_timeout     = 5s
daemonize                   = yes

[www0]
listen                      = xxx:9910
listen.backlog              = -1
listen.allowed_clients      = 127.0.0.1,xxx
user                        = web
group                       = web
pm                          = dynamic
pm.max_children             = 50
pm.start_servers            = 10
pm.min_spare_servers        = 5
pm.max_spare_servers        = 20
pm.max_requests             = 500
pm.status_path              = /status
ping.path                   = /ping
ping.response               = pong
request_terminate_timeout   = 30s
request_slowlog_timeout     = 15s
slowlog                     = 
/usr/local/php-5.3-r299968/var/log/php-fpm-0.log.slow
rlimit_files                = 20000
rlimit_core                 = 0
catch_workers_output        = yes
 
env[HOSTNAME]               = $HOSTNAME
env[PATH]                   = /usr/local/bin:/usr/bin:/bin
env[TMP]                    = /tmp
env[TMPDIR]                 = /tmp
env[TEMP]                   = /tmp

------------------------------------------------------------------------
[2010-06-09 15:42:41] f...@php.net

Please provide :
- your conf file
- compilation options
- the request which makes FPM to crash

------------------------------------------------------------------------
[2010-06-09 15:36:19] slogster at gmail dot com

I am running php-fpm:

URL: http://svn.php.net/repository/php/php-src/branches/PHP_5_3
Revision: 299968

------------------------------------------------------------------------
[2010-06-09 15:35:00] slogster at gmail dot com

Description:
------------
Core was generated by `/usr/local/php-5.3-r299968/sbin/php-fpm'.
Program terminated with signal 11, Segmentation fault.
[New process 11882]
#0  0x0000555555955aab in _zend_is_inconsistent (ht=0x550000000000, 
    file=0x555555ccf738 "/home/l3et3r/php-5.3-r299968/Zend/zend_hash.c", 
line=517)
    at /home/l3et3r/php-5.3-r299968/Zend/zend_hash.c:53
53              if (ht->inconsistent==HT_OK) {
(gdb) bt
#0  0x0000555555955aab in _zend_is_inconsistent (ht=0x550000000000, 
    file=0x555555ccf738 "/home/l3et3r/php-5.3-r299968/Zend/zend_hash.c", 
line=517)
    at /home/l3et3r/php-5.3-r299968/Zend/zend_hash.c:53
#1  0x0000555555957821 in zend_hash_destroy (ht=0x550000000000) at 
/home/l3et3r/php-5.3-r299968/Zend/zend_hash.c:517
#2  0x0000555555a334d7 in fcgi_close (req=0x7fff64fee540, force=0, destroy=1)
    at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fastcgi.c:675
#3  0x0000555555a33de4 in fcgi_finish_request (req=0x7fff64fee540, 
force_close=0)
    at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fastcgi.c:1000
#4  0x0000555555a395b5 in sapi_cgi_deactivate () at 
/home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fpm_main.c:881
#5  0x00005555558d62f6 in sapi_deactivate () at 
/home/l3et3r/php-5.3-r299968/main/SAPI.c:444
#6  0x00005555558ca34d in php_request_shutdown (dummy=0x0) at 
/home/l3et3r/php-5.3-r299968/main/main.c:1642
#7  0x0000555555a3b5d3 in main (argc=1, argv=0x7fff64ff0788)
    at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fpm_main.c:1881

(gdb) frame 7
#7  0x0000555555a3b5d3 in main (argc=1, argv=0x7fff64ff0788)
    at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fpm_main.c:1881
1881                            php_request_shutdown((void *) 0);
(gdb) frame 6
#6  0x00005555558ca34d in php_request_shutdown (dummy=0x0) at 
/home/l3et3r/php-5.3-r299968/main/main.c:1642
1642                    sapi_deactivate(TSRMLS_C);
(gdb) frame 5
#5  0x00005555558d62f6 in sapi_deactivate () at 
/home/l3et3r/php-5.3-r299968/main/SAPI.c:444
444                     sapi_module.deactivate(TSRMLS_C);
(gdb) frame 4
#4  0x0000555555a395b5 in sapi_cgi_deactivate () at 
/home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fpm_main.c:881
881                             if (
(gdb) frame 3
#3  0x0000555555a33de4 in fcgi_finish_request (req=0x7fff64fee540, 
force_close=0)
    at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fastcgi.c:1000
1000                    fcgi_close(req, force_close, 1);
(gdb) frame 2
#2  0x0000555555a334d7 in fcgi_close (req=0x7fff64fee540, force=0, destroy=1)
    at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fastcgi.c:675
675                     zend_hash_destroy(req->env);
(gdb) frame 1
#1  0x0000555555957821 in zend_hash_destroy (ht=0x550000000000) at 
/home/l3et3r/php-5.3-r299968/Zend/zend_hash.c:517
517             IS_CONSISTENT(ht);
(gdb) frame 0
#0  0x0000555555955aab in _zend_is_inconsistent (ht=0x550000000000, 
    file=0x555555ccf738 "/home/l3et3r/php-5.3-r299968/Zend/zend_hash.c", 
line=517)
    at /home/l3et3r/php-5.3-r299968/Zend/zend_hash.c:53
53              if (ht->inconsistent==HT_OK) {




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



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

Reply via email to