[PHP-BUG] Bug #65584 [NEW]: recv() failed (104: Connection reset by peer) while reading response ...

2013-08-29 Thread michael dot heuberger at binarykitchen dot com
From: michael dot heuberger at binarykitchen dot com
Operating system: Ubuntu 13.04
PHP version:  5.5.3
Package:  FPM related
Bug Type: Bug
Bug description:recv() failed (104: Connection reset by peer) while reading 
response ...

Description:

Hi there

I recently apt-get upgraded my PHP disto on my server, adjusted, tested few
lines of the current website but there is one last problem: PHP-FPM crashes
always. With these log lines in NGINX:

2013/08/30 01:34:06 [error] 12282#0: *51 recv() failed (104: Connection
reset by peer) while reading response header from upstream, client:
78.10.247.202, server: binarykitchen.com, request: GET
/user/register/action/why/language/de/ HTTP/1.0, upstream:
fastcgi://unix:/var/run/php5-fpm.sock:, host: www.binarykitchen.com,
referrer:
http://www.binarykitchen.com/user/register/action/why/language/de/;

There are many of those. Sometimes the page loads, sometimes not.

I tried hard to adjust nginx and php-fpm but no success. I am using
sockets.

Tell me, how can I see what is exactly resetting the connection? Why it is
crashing? What commands should I try?

And here more details:

$ php -v
PHP 5.5.3-1+debphp.org~raring+2 (cli) (built: Aug 27 2013 09:16:12) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
with Zend OPcache v7.0.3-dev, Copyright (c) 1999-2013, by Zend
Technologies

Thanks for your help,
Michael


-- 
Edit bug report at https://bugs.php.net/bug.php?id=65584edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=65584r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=65584r=trysnapshot53
Try a snapshot (trunk): 
https://bugs.php.net/fix.php?id=65584r=trysnapshottrunk
Fixed in SVN:   https://bugs.php.net/fix.php?id=65584r=fixed
Fixed in release:   https://bugs.php.net/fix.php?id=65584r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=65584r=needtrace
Need Reproduce Script:  https://bugs.php.net/fix.php?id=65584r=needscript
Try newer version:  https://bugs.php.net/fix.php?id=65584r=oldversion
Not developer issue:https://bugs.php.net/fix.php?id=65584r=support
Expected behavior:  https://bugs.php.net/fix.php?id=65584r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=65584r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=65584r=submittedtwice
register_globals:   https://bugs.php.net/fix.php?id=65584r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65584r=php4
Daylight Savings:   https://bugs.php.net/fix.php?id=65584r=dst
IIS Stability:  https://bugs.php.net/fix.php?id=65584r=isapi
Install GNU Sed:https://bugs.php.net/fix.php?id=65584r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65584r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=65584r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=65584r=mysqlcfg



Bug #65584 [Fbk-Opn]: recv() failed (104: Connection reset by peer) while reading response ...

2013-08-29 Thread michael dot heuberger at binarykitchen dot com
Edit report at https://bugs.php.net/bug.php?id=65584edit=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:

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.


Previous Comments:

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

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


[2013-08-29 15:17:45] larue...@php.net

seems your php-fpm is crashing, you need try to get a backtrace.. 

http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32


and you could also try to test with the latest snapshot of php-5.5 branch: 
http://snaps.php.net/php5.4-latest.tar.gz


[2013-08-29 13:43:31] michael dot heuberger at binarykitchen dot com

Description:

Hi there

I recently apt-get upgraded my PHP disto on my server, adjusted, tested few 
lines of the current website but there is one last problem: PHP-FPM crashes 
always. With these log lines in NGINX:

2013/08/30 01:34:06 [error] 12282#0: *51 recv() failed (104: Connection reset 
by peer) while reading response header from upstream, client: 78.10.247.202, 
server: binarykitchen.com, request: GET /user/register/action/why/language/de/ 
HTTP/1.0, upstream: fastcgi://unix:/var/run/php5-fpm.sock:, host: 
www.binarykitchen.com, referrer: 
http://www.binarykitchen.com/user/register/action/why/language/de/;

There are many of those. Sometimes the page loads, sometimes not.

I tried hard to adjust nginx and php-fpm but no success. I am using sockets.

Tell me, how can I see what is exactly resetting the connection? Why it is 
crashing? What commands should I try?

And here more details:

$ php -v
PHP 5.5.3-1+debphp.org~raring+2 (cli) (built: Aug 27 2013 09:16:12) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
with Zend OPcache v7.0.3-dev, Copyright (c) 1999-2013, by Zend Technologies

Thanks for your help,
Michael







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


Bug #65584 [Opn]: recv() failed (104: Connection reset by peer) while reading response ...

2013-08-29 Thread michael dot heuberger at binarykitchen dot com
Edit report at https://bugs.php.net/bug.php?id=65584edit=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: 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:

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?


Previous Comments:

[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


[2013-08-29 15:17:45] larue...@php.net

seems your php-fpm is crashing, you need try to get a backtrace.. 

http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32


and you could also try to test with the latest snapshot of php-5.5 branch: 
http://snaps.php.net/php5.4-latest.tar.gz


[2013-08-29 13:43:31] michael dot heuberger at binarykitchen dot com

Description:

Hi there

I recently apt-get upgraded my PHP disto on my server, adjusted, tested few 
lines of the current website but there is one last problem: PHP-FPM crashes 
always. With these log lines in NGINX:

2013/08/30 01:34:06 [error] 12282#0: *51 recv() failed (104: Connection reset 
by peer) while reading response header from upstream, client: 78.10.247.202, 
server: binarykitchen.com, request: GET /user/register/action/why/language/de/ 
HTTP/1.0, upstream: fastcgi://unix:/var/run/php5-fpm.sock:, host: 
www.binarykitchen.com, referrer: 
http://www.binarykitchen.com/user/register/action/why/language/de/;

There are many of those. Sometimes the page loads, sometimes not.

I tried hard to adjust nginx and php-fpm but no success. I am using sockets.

Tell me, how can I see what is exactly resetting the connection? Why it is 
crashing? What commands should I try?

And here more details:

$ php -v
PHP 5.5.3-1+debphp.org~raring+2 (cli) (built: Aug 27 2013 09:16:12) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
with Zend OPcache v7.0.3-dev, Copyright (c) 1999-2013, by Zend Technologies

Thanks for your help,
Michael







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


Bug #65584 [Opn]: recv() failed (104: Connection reset by peer) while reading response ...

2013-08-29 Thread michael dot heuberger at binarykitchen dot com
Edit report at https://bugs.php.net/bug.php?id=65584edit=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: 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:

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


Previous Comments:

[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


[2013-08-29 15:17:45] larue...@php.net

seems your php-fpm is crashing, you need try to get a backtrace.. 

http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32


and you could also try to test with the latest snapshot of php-5.5 branch: 
http://snaps.php.net/php5.4-latest.tar.gz


[2013-08-29 13:43:31] michael dot heuberger at binarykitchen dot com

Description:

Hi there

I recently apt-get upgraded my PHP disto on my server, adjusted, tested few 
lines of the current website but there is one last problem: PHP-FPM crashes 
always. With these log lines in NGINX:

2013/08/30 01:34:06 [error] 12282#0: *51 recv() failed (104: Connection reset 
by peer) while reading response header from upstream, client: 78.10.247.202, 
server: binarykitchen.com, request: GET /user/register/action/why/language/de/ 
HTTP/1.0, upstream: fastcgi://unix:/var/run/php5-fpm.sock:, host: 
www.binarykitchen.com, referrer: 
http://www.binarykitchen.com/user/register/action/why/language/de/;

There are many of those. Sometimes the page loads, sometimes not.

I tried hard to adjust nginx and php-fpm but no success. I am using sockets.

Tell me, how can I see what is exactly resetting the connection? Why it is 
crashing? What commands should I try?

And here more details:

$ php -v
PHP 5.5.3-1+debphp.org~raring+2 (cli) (built: Aug 27 2013 09:16:12) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
with Zend OPcache v7.0.3-dev, Copyright (c) 1999-2013, by Zend Technologies

Thanks for your help,
Michael







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


Bug #65584 [Fbk-Opn]: recv() failed (104: Connection reset by peer) while reading response ...

2013-08-29 Thread michael dot heuberger at binarykitchen dot com
Edit report at https://bugs.php.net/bug.php?id=65584edit=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  0x006f8459 in gc_remove_zval_from_buffer ()
(gdb) bt
#0  0x006f8459 in gc_remove_zval_from_buffer ()
#1  0x00763ff8 in ?? ()
#2  0x007480e8 in execute_ex ()
#3  0x006dad99 in zend_execute_scripts ()
#4  0x006799ac in php_execute_script ()
#5  0x00466844 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=65584edit=1


Bug #65584 [Opn]: recv() failed (104: Connection reset by peer) while reading response ...

2013-08-29 Thread michael dot heuberger at binarykitchen dot com
Edit report at https://bugs.php.net/bug.php?id=65584edit=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: 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:

I also see a file in /var/crash/
_usr_sbin_php5-fpm.33.crash

It is full with binary data. I tried to run it with gdb but no success.


Previous Comments:

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

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  0x006f8459 in gc_remove_zval_from_buffer ()
(gdb) bt
#0  0x006f8459 in gc_remove_zval_from_buffer ()
#1  0x00763ff8 in ?? ()
#2  0x007480e8 in execute_ex ()
#3  0x006dad99 in zend_execute_scripts ()
#4  0x006799ac in php_execute_script ()
#5  0x00466844 in main ()


[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.




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=65584edit=1


Bug #65584 [Opn]: recv() failed (104: Connection reset by peer) while reading response ...

2013-08-29 Thread michael dot heuberger at binarykitchen dot com
Edit report at https://bugs.php.net/bug.php?id=65584edit=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: 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:

I tried to parse it with apport-retrace but it is not helpful:

$ apport-retrace -R -g /var/crash/_usr_sbin_php5-fpm.33.crash
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 2530]
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  0x006f8459 in gc_remove_zval_from_buffer ()
(gdb)


Previous Comments:

[2013-08-30 00:27:22] michael dot heuberger at binarykitchen dot com

I also see a file in /var/crash/
_usr_sbin_php5-fpm.33.crash

It is full with binary data. I tried to run it with gdb but no success.


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

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  0x006f8459 in gc_remove_zval_from_buffer ()
(gdb) bt
#0  0x006f8459 in gc_remove_zval_from_buffer ()
#1  0x00763ff8 in ?? ()
#2  0x007480e8 in execute_ex ()
#3  0x006dad99 in zend_execute_scripts ()
#4  0x006799ac in php_execute_script ()
#5  0x00466844 in main ()


[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?




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=65584edit=1


Bug #65584 [Fbk-Opn]: recv() failed (104: Connection reset by peer) while reading response ...

2013-08-29 Thread michael dot heuberger at binarykitchen dot com
Edit report at https://bugs.php.net/bug.php?id=65584edit=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:

Happy to give your snapshots a try but do not how to install these. I installed 
PHP-FPM via apt-get.


Previous Comments:

[2013-08-30 03:28:06] larue...@php.net

Please try using this snapshot:

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

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


we fixed some segfaults issues recently, maybe you could have a try..thanks


[2013-08-30 03:08:02] larue...@php.net

hmm, the backtrace is too generic, I can not get any useful info from there.

are you able to get a reproduce test script?


[2013-08-30 00:31:15] michael dot heuberger at binarykitchen dot com

I tried to parse it with apport-retrace but it is not helpful:

$ apport-retrace -R -g /var/crash/_usr_sbin_php5-fpm.33.crash
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 2530]
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  0x006f8459 in gc_remove_zval_from_buffer ()
(gdb)


[2013-08-30 00:27:22] michael dot heuberger at binarykitchen dot com

I also see a file in /var/crash/
_usr_sbin_php5-fpm.33.crash

It is full with binary data. I tried to run it with gdb but no success.


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

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  0x006f8459 in gc_remove_zval_from_buffer ()
(gdb) bt
#0  0x006f8459 in gc_remove_zval_from_buffer ()
#1  0x00763ff8 in ?? ()
#2  0x007480e8 in execute_ex ()
#3  0x006dad99 in zend_execute_scripts ()
#4  0x006799ac in php_execute_script ()
#5  0x00466844 in main ()




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=65584edit=1


Bug #65584 [Opn]: recv() failed (104: Connection reset by peer) while reading response ...

2013-08-29 Thread michael dot heuberger at binarykitchen dot com
Edit report at https://bugs.php.net/bug.php?id=65584edit=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: 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:

I managed to get more logging information.

In the log I see this fatal error:

[30-Aug-2013 17:05:50 Pacific/Auckland] PHP Fatal error:  Cannot redeclare 
class SGL_Request in /opt/bk/lib/SGL/Request.php on line 53

But in my spl_autoload_register function I already test with this to make sure 
classes won't be redeclared:

public static function isLoaded($name)
{
return class_exists($name, false) || interface_exists($name, false);
}

But when, why doesn't it work?


Previous Comments:

[2013-08-30 04:31:59] michael dot heuberger at binarykitchen dot com

Happy to give your snapshots a try but do not how to install these. I installed 
PHP-FPM via apt-get.


[2013-08-30 03:28:06] larue...@php.net

Please try using this snapshot:

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

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


we fixed some segfaults issues recently, maybe you could have a try..thanks


[2013-08-30 03:08:02] larue...@php.net

hmm, the backtrace is too generic, I can not get any useful info from there.

are you able to get a reproduce test script?


[2013-08-30 00:31:15] michael dot heuberger at binarykitchen dot com

I tried to parse it with apport-retrace but it is not helpful:

$ apport-retrace -R -g /var/crash/_usr_sbin_php5-fpm.33.crash
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 2530]
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  0x006f8459 in gc_remove_zval_from_buffer ()
(gdb)


[2013-08-30 00:27:22] michael dot heuberger at binarykitchen dot com

I also see a file in /var/crash/
_usr_sbin_php5-fpm.33.crash

It is full with binary data. I tried to run it with gdb but no success.




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=65584edit=1


Bug #65584 [Opn]: recv() failed (104: Connection reset by peer) while reading response ...

2013-08-29 Thread michael dot heuberger at binarykitchen dot com
Edit report at https://bugs.php.net/bug.php?id=65584edit=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: 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:

I also found out, that when I comment out logic around $_COOKIE (auto-login 
feature), then my site is back up working.

Does PHP 5.5.3 have issues with $_COOKIE?


Previous Comments:

[2013-08-30 05:12:09] michael dot heuberger at binarykitchen dot com

I managed to get more logging information.

In the log I see this fatal error:

[30-Aug-2013 17:05:50 Pacific/Auckland] PHP Fatal error:  Cannot redeclare 
class SGL_Request in /opt/bk/lib/SGL/Request.php on line 53

But in my spl_autoload_register function I already test with this to make sure 
classes won't be redeclared:

public static function isLoaded($name)
{
return class_exists($name, false) || interface_exists($name, false);
}

But when, why doesn't it work?


[2013-08-30 04:31:59] michael dot heuberger at binarykitchen dot com

Happy to give your snapshots a try but do not how to install these. I installed 
PHP-FPM via apt-get.


[2013-08-30 03:28:06] larue...@php.net

Please try using this snapshot:

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

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


we fixed some segfaults issues recently, maybe you could have a try..thanks


[2013-08-30 03:08:02] larue...@php.net

hmm, the backtrace is too generic, I can not get any useful info from there.

are you able to get a reproduce test script?


[2013-08-30 00:31:15] michael dot heuberger at binarykitchen dot com

I tried to parse it with apport-retrace but it is not helpful:

$ apport-retrace -R -g /var/crash/_usr_sbin_php5-fpm.33.crash
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 2530]
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  0x006f8459 in gc_remove_zval_from_buffer ()
(gdb)




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=65584edit=1