php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52032 segmentation fault
Submitted: 2010-06-09 15:35 UTC Modified: 2013-02-18 00:34 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: slogster at gmail dot com Assigned: fat (profile)
Status: No Feedback Package: FPM related
PHP Version: 5.3SVN-2010-06-09 (SVN) OS: linux x86_64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: slogster at gmail dot com
New email:
PHP Version: OS:

 

 [2010-06-09 15:35 UTC] 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) {



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-09 15:36 UTC] 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:42 UTC] fat@php.net
-Assigned To: +Assigned To: fat
 [2010-06-09 15:42 UTC] fat@php.net
Please provide :
- your conf file
- compilation options
- the request which makes FPM to crash
 [2010-06-09 15:47 UTC] tony2001@php.net
-Status: Assigned +Status: Feedback
 [2010-06-09 15:48 UTC] 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
 [2011-07-02 14:45 UTC] fat@php.net
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
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC