php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46300 php crash in high load
Submitted: 2008-10-15 12:10 UTC Modified: 2010-12-20 12:39 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: pioklo at serveradmin dot pl Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5.2.7RC1 OS: debian 4.0 64bit
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: pioklo at serveradmin dot pl
New email:
PHP Version: OS:

 

 [2008-10-15 12:10 UTC] pioklo at serveradmin dot pl
Description:
------------
Hello There!

I have lighttpd and php 
I am using Zend framework,all request are passed into index.php

www1:~# gdb /usr/local/bin/php-cgi  /tmp/phpcore/core
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /usr/lib/libtidy-0.99.so.0...done.
Loaded symbols for /usr/lib/libtidy-0.99.so.0
Reading symbols from /usr/local/lib/libmhash.so.2...done.
Loaded symbols for /usr/local/lib/libmhash.so.2
Reading symbols from /usr/local/lib/libmcrypt.so.4...done.
Loaded symbols for /usr/local/lib/libmcrypt.so.4
Reading symbols from /usr/lib/libiconv.so.2...done.
Loaded symbols for /usr/lib/libiconv.so.2
Reading symbols from /usr/local/lib/libfreetype.so.6...done.
Loaded symbols for /usr/local/lib/libfreetype.so.6
Reading symbols from /usr/local/lib/libpng.so.3...done.
Loaded symbols for /usr/local/lib/libpng.so.3
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /usr/local/lib/libcurl.so.4...done.
Loaded symbols for /usr/local/lib/libcurl.so.4
Reading symbols from /usr/local/mysql/lib/mysql/libmysqlclient.so.16...done.
Loaded symbols for /usr/local/mysql/lib/mysql/libmysqlclient.so.16
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/librt.so.1...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /usr/lib/libxml2.so.2...done.
Loaded symbols for /usr/lib/libxml2.so.2
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /usr/local/Zend/lib/ZendExtensionManager.so...done.
Loaded symbols for /usr/local/Zend/lib/ZendExtensionManager.so
Reading symbols from /usr/local/lib/php/extensions/no-debug-non-zts-20060613/fileinfo.so...done.
Loaded symbols for /usr/local/lib/php/extensions/no-debug-non-zts-20060613/fileinfo.so
Reading symbols from /usr/lib/libmagic.so.1...done.
Loaded symbols for /usr/lib/libmagic.so.1
Reading symbols from /usr/local/lib/php/extensions/no-debug-non-zts-20060613/memcache.so...done.
Loaded symbols for /usr/local/lib/php/extensions/no-debug-non-zts-20060613/memcache.so
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /usr/local/Zend/lib/Optimizer-3.3.3/php-5.2.x/ZendOptimizer.so...done.
Loaded symbols for /usr/local/Zend/lib/Optimizer-3.3.3/php-5.2.x/ZendOptimizer.so
Core was generated by `/usr/local/bin/php-cgi'.
Program terminated with signal 11, Segmentation fault.
[New process 13920]
#0  zend_mm_remove_from_free_list (heap=0xcf1210, mm_block=0x127fbe8) at /root/php-5.2.7RC1/Zend/zend_alloc.c:832
832                     if (UNEXPECTED(prev->next_free_block != mm_block) || UNEXPECTED(next->prev_free_block != mm_block)) {
(gdb) bt fully
No symbol "fully" in current context.
(gdb) bt
#0  zend_mm_remove_from_free_list (heap=0xcf1210, mm_block=0x127fbe8) at /root/php-5.2.7RC1/Zend/zend_alloc.c:832
#1  0x00000000007093f8 in _zend_mm_free_int (heap=0xcf1210, p=0x127fbf8) at /root/php-5.2.7RC1/Zend/zend_alloc.c:1969
#2  0x00000000007193d4 in shutdown_executor () at /root/php-5.2.7RC1/Zend/zend_execute_API.c:313
#3  0x0000000000723ea3 in zend_deactivate () at /root/php-5.2.7RC1/Zend/zend.c:860
#4  0x00000000006e206c in php_request_shutdown (dummy=<value optimized out>) at /root/php-5.2.7RC1/main/main.c:1492
#5  0x00000000007972b2 in main (argc=1, argv=0x7fffbfb738f8) at /root/php-5.2.7RC1/sapi/cgi/cgi_main.c:2033
(gdb)


Regards,
Piotr Kloc



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-15 12:14 UTC] derick@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.
 [2008-10-15 12:33 UTC] pioklo at serveradmin dot pl
I do not know where the script crashes
I have Zend framework and all requests are passed into index.php and then Zend run the appropriate class.
In lighttpd logs I have only

mod_proxy_backend_fastcgi.c.484: (trace) 0 / 0 -> 1
mod_proxy_backend_fastcgi.c.487: (error) looks like the fastcgi-backend (/index.php) terminated before it sent a FIN packet

and dump core file.

Regards,
Piotr Kloc
 [2008-10-19 14:13 UTC] jani@php.net
First you need to disable all 3rd party extensions, like the Zend 
extensions you seem to have enabled.
 [2008-10-27 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2010-12-20 12:39 UTC] jani@php.net
-Package: Tidy +Package: Scripting Engine problem
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun Oct 02 10:05:51 2022 UTC