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

 ID:                 65584
 User updated by:    michael dot heuberger at binarykitchen dot com
 Reported by:        michael dot heuberger at binarykitchen dot com
 Summary:            recv() failed (104: Connection reset by peer) while
                     reading response ...
-Status:             Feedback
+Status:             Open
 Type:               Bug
 Package:            FPM related
 Operating System:   Ubuntu 13.04
 PHP Version:        5.5.3
 Block user comment: N
 Private report:     N

 New Comment:

Thx!

I have the dump here. An clues?

$ sudo gdb /usr/sbin/php5-fpm /var/cores/core-php5-fpm.31743
GNU gdb (GDB) 7.5.91.20130417-cvs-ubuntu
Copyright (C) 2013 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".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/php5-fpm...(no debugging symbols found)...done.
[New LWP 31743]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `php-fpm: pool www                                        
               '.
Program terminated with signal 11, Segmentation fault.
#0  0x00000000006f8459 in gc_remove_zval_from_buffer ()
(gdb) bt
#0  0x00000000006f8459 in gc_remove_zval_from_buffer ()
#1  0x0000000000763ff8 in ?? ()
#2  0x00000000007480e8 in execute_ex ()
#3  0x00000000006dad99 in zend_execute_scripts ()
#4  0x00000000006799ac in php_execute_script ()
#5  0x0000000000466844 in main ()


Previous Comments:
------------------------------------------------------------------------
[2013-08-29 23:21:22] ras...@php.net

apt-get install gdb

------------------------------------------------------------------------
[2013-08-29 23:19:19] michael dot heuberger at binarykitchen dot com

PS: The gdb command does not exist on my machine.

------------------------------------------------------------------------
[2013-08-29 23:15:34] michael dot heuberger at binarykitchen dot com

Ah, I managed it. I have the core dumps now.

You forgot to mention that I have to adjust /etc/php5/fpm/pool.d/www.conf with 
a higher value than zero, i.E. rlimit_core = 10

I have 10 core dumps, all 119 MB large. How can I attach them here or hand them 
over to you?

------------------------------------------------------------------------
[2013-08-29 23:06:24] michael dot heuberger at binarykitchen dot com

Thank you but I am unable to create a backtrace on my server.

I have set /proc/sys/kernel/core_pattern with
echo "/var/cores/core-%e.%p" > /proc/sys/kernel/core_pattern 

Then I made /var/cores/ writeable for user www-data and chmodded it with 777. 
Then sudo service php5-fpm restart and reloaded the page. It crashed but no 
core was dumped. Why? ulimit is unlimited.

By the way, I am on nginx. Your instructions are for Apache.

------------------------------------------------------------------------
[2013-08-29 15:18:26] larue...@php.net

should be: http://snaps.php.net/php5.5-latest.tar.gz

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


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=65584


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

Reply via email to