Bug#666200: php5-cgi: tt-rss backend.php crashes after update to php 5.4

March 29th, 2012 - 01:20 pm ET by Thomas Renard | Report spam
Package: php5-cgi
Version: 5.4.0-3
Severity: normal

Dear Maintainer,

this problem occurs with the non debian package tt-rss trunk:
https://github.com/gothfox/Tiny-Tiny-RSS.git
commit c20b5168b5a9103e1a2633973492c89fa03a5a57
against postgresql via php5-pgsql

After upgrading to php5 5.4.0 this application crashes php-cgi with
sporadic segfaults when calling the json backend.php of this system.
I tried to remove any tunings in php.ini.

I removed php5-xcache due to known issues (#665006) but the segfaults
still occur. Stuff done with standard distribution

* apt-get install lighttpd php5-cgi postgres php5-pgsql
* lighty-enable-mod fastcgi
* lighty-enable-mod fastcgi-php
* lighty-enable-mod pgsql

Then

* Git clone above git to /var/lib/tt-rss
* lighty config: alias.url += ( "/tt" => "/var/lib/tt-rss" )
* create a postgres database and fill it with tt-rss' sql scheme
* configure tt-rss (set database parameter in config.php)
* restart lighttpd
* open browser and use this application

Expected outcome:

* Working with the application without problems

Actual outcome:

* syslog reports: php-cgi segfault
* lighttpd reports: connection failure to php-cgi
* application reports: wrong header file

This application loads static files (js, css) and does continuous
calls to the application's backend.php. I append a coredump of
the segfault (maybe with the next post)

Other php applications (also selfmade, like owncloud, horde4) work
as expected - after uninstalling php5-xcache of course.

Debian Release: wheezy/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.38-2-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages php5-cgi depends on:
ii libbz2-1.0 1.0.6-1
ii libc6 2.13-27
ii libcomerr2 1.42.1-2
ii libdb5.1 5.1.29-1
ii libgssapi-krb5-2 1.10+dfsg~beta1-2
ii libk5crypto3 1.10+dfsg~beta1-2
ii libkrb5-3 1.10+dfsg~beta1-2
ii libmagic1 5.11-1
ii libonig2 5.9.1-1
ii libpcre3 8.12-4
ii libqdbm14 1.8.78-2
ii libssl1.0.0 1.0.0h-1
ii libxml2 2.7.8.dfsg-7
ii mime-support 3.52-1
ii php5-common 5.4.0-3
ii tzdata 2012b-1
ii ucf 3.0025+nmu2
ii zlib1g 1:1.2.6.dfsg-2

php5-cgi recommends no packages.

Versions of packages php5-cgi suggests:
ii php-pear 5.4.0-3
ii php5-pgsql 5.4.0-3




To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 3 repliesReplies Make a reply

Similar topics

Replies

#1 Ondřej Surý
March 29th, 2012 - 02:20 pm ET | Report spam
Please install php5-dbg, dump a core and attach usable backtrace.

Rough howto can be found here:
https://bugs.php.net/bugs-generating-backtrace.php

On Thu, Mar 29, 2012 at 18:55, Thomas Renard wrote:
Package: php5-cgi
Version: 5.4.0-3
Severity: normal

Dear Maintainer,

this problem occurs with the non debian package tt-rss trunk:
https://github.com/gothfox/Tiny-Tiny-RSS.git
commit c20b5168b5a9103e1a2633973492c89fa03a5a57
against postgresql via php5-pgsql

After upgrading to php5 5.4.0 this application crashes php-cgi with
sporadic segfaults when calling the json backend.php of this system.
I tried to remove any tunings in php.ini.

I removed php5-xcache due to known issues (#665006) but the segfaults
still occur. Stuff done with standard distribution

 * apt-get install lighttpd php5-cgi postgres php5-pgsql
 * lighty-enable-mod fastcgi
 * lighty-enable-mod fastcgi-php
 * lighty-enable-mod pgsql

Then

 * Git clone above git to /var/lib/tt-rss
 * lighty config: alias.url += ( "/tt"  => "/var/lib/tt-rss" )
 * create a postgres database and fill it with tt-rss' sql scheme
 * configure tt-rss (set database parameter in config.php)
 * restart lighttpd
 * open browser and use this application

Expected outcome:

 * Working with the application without problems

Actual outcome:

 * syslog reports: php-cgi segfault
 * lighttpd reports: connection failure to php-cgi
 * application reports: wrong header file

This application loads static files (js, css) and does continuous
calls to the application's backend.php. I append a coredump of
the segfault (maybe with the next post)

Other php applications (also selfmade, like owncloud, horde4) work
as expected - after uninstalling php5-xcache of course.

Debian Release: wheezy/sid
 APT prefers testing
 APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.38-2-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages php5-cgi depends on:
ii  libbz2-1.0        1.0.6-1
ii  libc6             2.13-27
ii  libcomerr2        1.42.1-2
ii  libdb5.1          5.1.29-1
ii  libgssapi-krb5-2  1.10+dfsg~beta1-2
ii  libk5crypto3      1.10+dfsg~beta1-2
ii  libkrb5-3         1.10+dfsg~beta1-2
ii  libmagic1         5.11-1
ii  libonig2          5.9.1-1
ii  libpcre3          8.12-4
ii  libqdbm14         1.8.78-2
ii  libssl1.0.0       1.0.0h-1
ii  libxml2           2.7.8.dfsg-7
ii  mime-support      3.52-1
ii  php5-common       5.4.0-3
ii  tzdata            2012b-1
ii  ucf               3.0025+nmu2
ii  zlib1g            1:1.2.6.dfsg-2

php5-cgi recommends no packages.

Versions of packages php5-cgi suggests:
ii  php-pear  5.4.0-3
ii  php5-pgsql 5.4.0-3




_______________________________________________
pkg-php-maint mailing list

http://lists.alioth.debian.org/cgi-...-php-maint





Ondřej Surý



To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Replies Reply to this message
#2 Ondřej Surý
March 29th, 2012 - 04:10 pm ET | Report spam
One more thing. Could you please switch your locale to en_US or just C
before you run gdb?

LC_ALL=C gdb --core=corefile --eval-command='bt full'

Should do it...

O.

On Thu, Mar 29, 2012 at 21:59, Thomas Renard wrote:
On 29.03.2012 20:09, Ondřej Surý wrote:
Please install php5-dbg, dump a core and attach usable backtrace.

Rough howto can be found here:
https://bugs.php.net/bugs-generating-backtrace.php




Oups, used the wrong howto. Sorry, but this is my first backtrace...

attached... I hope this is more helpful

Thomas





Ondřej Surý



To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Replies Reply to this message
#3 Ondřej Surý
March 29th, 2012 - 04:40 pm ET | Report spam
forwarded 666200 https://bugs.php.net/bug.php?ida557
thank you

Hi Thomas,

I have forwarded your bug to the upstream bug database. We don't patch
(at least I don't remember it) XML functions so it looks like an upstream
bug.

Thanks for the information.

Regards,
Ondrej

On Thu, Mar 29, 2012 at 22:19, Thomas Renard wrote:
On 29.03.2012 22:04, Ondřej Surý wrote:
One more thing. Could you please switch your locale to en_US or just C
before you run gdb?

LC_ALL=C gdb --core=corefile --eval-command='bt full'

Should do it...

O.




Hm, locales, there are locales... Sorry

attached...





Ondřej Surý



To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
email Follow the discussion Replies Reply to this message
Help Create a new topicReplies Make a reply
Search Make your own search