Debian Bug report logs - #430400
FastCGI: incomplete headers (0 bytes) received from server "/var/www/fcgi/master/php5-fcgi-starter"

version graph

Package: php5-cgi; Maintainer for php5-cgi is (unknown);

Reported by: MattheusHappe <mhappe@gmail.com>

Date: Mon, 25 Jun 2007 13:54:28 UTC

Severity: normal

Found in version php5/5.2.0-8+etch4

Fixed in version 5.2.6.dfsg.1-1+lenny4

Done: Ondřej Surý <ondrej@sury.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#430400; Package php5-cgi. (full text, mbox, link).


Acknowledgement sent to MattheusHappe <mhappe@gmail.com>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: MattheusHappe <mhappe@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: FastCGI: incomplete headers (0 bytes) received from server "/var/www/fcgi/master/php5-fcgi-starter"
Date: Sun, 24 Jun 2007 11:24:36 +0200
Package: php5-cgi
Version: 5.2.0-8+etch4
Severity: normal

[Thu Jun 21 10:01:02 2007] [error] [client 127.0.0.1] (104)Connection reset
by peer: FastCGI: comm with server /var/www/fcgi/master/php5-fcgi-starter"
aborted: read failed
[Thu Jun 21 10:01:02 2007] [error] [client 127.0.0.1] FastCGI: incomplete
headers (0 bytes) received from server
"/var/www/fcgi/master/php5-fcgi-starter"

And apache shows error 500



-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)

Versions of packages php5-cgi depends on:
ii  libbz2-1 1.0.3-6                         high-quality block-sorting file co
ii  libc6    2.3.6.ds1-13                    GNU C Library: Shared libraries
ii  libcomer 1.39+1.40-WIP-2006.11.14+dfsg-2 common error description library
ii  libdb4.4 4.4.20-8                        Berkeley v4.4 Database Libraries [
ii  libkrb53 1.4.4-7etch1                    MIT Kerberos runtime libraries
ii  libmagic 4.17-5etch1                     File type determination library us
ii  libpcre3 6.7-1                           Perl 5 Compatible Regular Expressi
ii  libssl0. 0.9.8c-4                        SSL shared libraries
ii  libxml2  2.6.27.dfsg-1                   GNOME XML library
ii  mime-sup 3.39-1                          MIME files 'mime.types' & 'mailcap
ii  php5-com 5.2.0-8+etch4                   Common files for packages built fr
ii  ucf      2.0020                          Update Configuration File: preserv
ii  zlib1g   1:1.2.3-13                      compression library - runtime

php5-cgi recommends no packages.

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#430400; Package php5-cgi. (full text, mbox, link).


Acknowledgement sent to Ondřej Surý <ondrej@sury.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (full text, mbox, link).


Message #10 received at 430400@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@sury.org>
To: MattheusHappe <mhappe@gmail.com>, 430400@bugs.debian.org
Cc: control@bugs.debian.org
Subject: Re: [php-maint] Bug#430400: FastCGI: incomplete headers (0 bytes) received from server "/var/www/fcgi/master/php5-fcgi-starter"
Date: Mon, 25 Jun 2007 17:48:45 +0200
tag 430400 +moreinfo
thank you

MattheusHappe píše v Ne 24. 06. 2007 v 11:24 +0200:
> Package: php5-cgi
> Version: 5.2.0-8+etch4
> Severity: normal
> 
> [Thu Jun 21 10:01:02 2007] [error] [client 127.0.0.1] (104)Connection reset
> by peer: FastCGI: comm with server /var/www/fcgi/master/php5-fcgi-starter"
> aborted: read failed
> [Thu Jun 21 10:01:02 2007] [error] [client 127.0.0.1] FastCGI: incomplete
> headers (0 bytes) received from server
> "/var/www/fcgi/master/php5-fcgi-starter"
> 
> And apache shows error 500

That's something you have to deal with, when using FastCGI.  fcgi is
generaly more fragile then plain mod-php.

Could you supply more information about script which you want to run.
And how did you setup your fastcgi?  suexec or not?  More info you
supply -> bigger possibility of finding and fixing that error.

Ondrej.
-- 
Ondřej Surý <ondrej@sury.org>  ***  http://blog.rfc1925.org/
Kulturní občasník              ***  http://www.obcasnik.cz/
Nehoupat, prosím               ***  http://nehoupat.blogspot.com/





Tags added: moreinfo Request was from Ondřej Surý <ondrej@sury.org> to control@bugs.debian.org. (Mon, 25 Jun 2007 15:51:06 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#430400; Package php5-cgi. (full text, mbox, link).


Acknowledgement sent to Raphael <atomo64@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (full text, mbox, link).


Message #17 received at 430400@bugs.debian.org (full text, mbox, reply):

From: Raphael <atomo64@gmail.com>
To: 430400@bugs.debian.org
Cc: control@bugs.debian.org
Date: Thu, 26 Jul 2007 17:25:22 -0500
tag 430400 -moreinfo
thanks

I'm not sure whether this is related to bug #431799 or not.
More information:
Suexec: enabled.

Example of /var/www/fcgi/master/php5-fcgi-starter:
---

#!/bin/sh

PHPRC="/var/www/fcgi/master/php5/"

export PHPRC
PHP_FCGI_CHILDREN=2
export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_MAX_REQUESTS

exec /usr/bin/php5-cgi
---
In /var/www/fcgi/master/php5/ there's a php.ini file.

It might also be related to the fact that PHP_FCGI_MAX_REQUESTS is set
to 5000. But probably fixing #431799 would help too.

-- 
Atomo64 - Raphael

Please avoid sending me Word, PowerPoint or Excel attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

Say NO to Microsoft Office broken standard.
See http://www.noooxml.org/petition



Tags removed: moreinfo Request was from Raphael <atomo64@gmail.com> to control@bugs.debian.org. (Thu, 26 Jul 2007 22:39:11 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#430400; Package php5-cgi. (Wed, 15 Oct 2008 01:27:05 GMT) (full text, mbox, link).


Acknowledgement sent to Matti Mieskonen <jillian@irkki.fi>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Wed, 15 Oct 2008 01:27:05 GMT) (full text, mbox, link).


Message #24 received at 430400@bugs.debian.org (full text, mbox, reply):

From: Matti Mieskonen <jillian@irkki.fi>
To: 430400@bugs.debian.org
Subject: FastCGI: incomplete headers (0 bytes) received from server "/var/www/fcgi/master/php5-fcgi-starter" / segfault - php5-cgi
Date: Wed, 15 Oct 2008 04:22:17 +0300
This solve error about http://bugs.php.net/bug.php?id=430397 too.

Error was:
[59141.046722] php5-cgi[20342]: segfault at 3a4 ip b71183b7 sp bfc0c2cc
error 4 in libmysqlclient.so.15.0.0[b70d6000+1a4000]

After I recompile php5 package, I have successfully fixed segfault.

Error found from libmysqlclient libs. Apache used different lib
/usr/lib/libmysqlclient_r.so.15.0.0 and php used
/usr/lib/libmysqlclient.so.15.0.0.

I don't know how this happend but recompiling php5 solved problem.

/usr/lib/php5/20060613+lfs/mysql.so:
        linux-gate.so.1 =>  (0xb7f1f000)
        libmysqlclient_r.so.15 => /usr/lib/libmysqlclient_r.so.15
(0xb7d1e000)
        libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7bc3000)
        libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb7ba9000)
        libcrypt.so.1 => /lib/i686/cmov/libcrypt.so.1 (0xb7b77000)
        libnsl.so.1 => /lib/i686/cmov/libnsl.so.1 (0xb7b5e000)
        libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7b38000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb7b23000)
        /lib/ld-linux.so.2 (0xb7f20000)

/usr/lib/php5/20060613+lfs/pdo_mysql.so:
        linux-gate.so.1 =>  (0xb7fe1000)
        libmysqlclient_r.so.15 => /usr/lib/libmysqlclient_r.so.15
(0xb7de4000)
        libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7c89000)
        libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb7c6f000)
        libcrypt.so.1 => /lib/i686/cmov/libcrypt.so.1 (0xb7c3d000)
        libnsl.so.1 => /lib/i686/cmov/libnsl.so.1 (0xb7c24000)
        libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7bfe000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb7be9000)
        /lib/ld-linux.so.2 (0xb7fe2000)








Reply sent to Ondřej Surý <ondrej@sury.org>:
You have taken responsibility. (Fri, 08 Jan 2010 16:06:08 GMT) (full text, mbox, link).


Notification sent to MattheusHappe <mhappe@gmail.com>:
Bug acknowledged by developer. (Fri, 08 Jan 2010 16:06:09 GMT) (full text, mbox, link).


Message #29 received at 430400-done@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@sury.org>
To: 430400-done@bugs.debian.org
Subject: #430400: FastCGI: incomplete headers (0 bytes) received from server "/var/www/fcgi/master/php5-fcgi-starter"
Date: Fri, 8 Jan 2010 17:04:25 +0100
Version: 5.2.6.dfsg.1-1+lenny4

There was some libmysqlclient(_r) breakage in oldstable (etch).
Version from current stable (lenny) looks ok.

-- 
Ondřej Surý <ondrej@sury.org>
http://blog.rfc1925.org/




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 06 Feb 2010 07:26:57 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 03:05:31 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.