Bug#402764: [php-maint] Bug#402764: libapache2-mod-php5: php processes loop and eat all cpu and resources

2006-12-23 Thread Alessandro Polverini
Upgrading to apache 2.2.3-3.2 and php 5.2.0-8 seems to have solved my
problem!

I think the bug can be closed.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#402764: [php-maint] Bug#402764: libapache2-mod-php5: php processes loop and eat all cpu and resources

2006-12-21 Thread Alessandro Polverini
On Tue, 2006-12-19 at 09:15 +0100, sean finney wrote:
 hi alex,
 
 i'm sorry, but i never got around to rebuilding the php5 package with
 debug symbols enabled, and now i'm sitting in the lobby of an airport
 waiting for a delayed trans-atlantic flight :(
 
 however, there's a new upload of php5 in unstable which fixes a
 documented memory leak, and i'm wondering if that's maybe the
 same problem you're having?  could you give it a try?

Hello Sean, and thanks for the info.

I upgraded to apache2-mpm-prefork 2.2.3-3.2 and PHP 5.2.0-8 since 4 ours
and the bad behaviour has not yet happened...
That's great, I hope the problem is solved with the latest release.

Alex



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#402764: [php-maint] Bug#402764: libapache2-mod-php5: php processes loop and eat all cpu and resources

2006-12-19 Thread sean finney
hi alex,

i'm sorry, but i never got around to rebuilding the php5 package with
debug symbols enabled, and now i'm sitting in the lobby of an airport
waiting for a delayed trans-atlantic flight :(

however, there's a new upload of php5 in unstable which fixes a
documented memory leak, and i'm wondering if that's maybe the
same problem you're having?  could you give it a try?


thanks,
sean


signature.asc
Description: This is a digitally signed message part


Bug#402764: [php-maint] Bug#402764: libapache2-mod-php5: php processes loop and eat all cpu and resources

2006-12-14 Thread sean finney
hi alex,

i've made debug packages available at

deb http://people.debian.org/~seanius/php5/etch ./



sean





signature.asc
Description: This is a digitally signed message part


Bug#402764: [php-maint] Bug#402764: libapache2-mod-php5: php processes loop and eat all cpu and resources

2006-12-13 Thread Alessandro Polverini
Hello Sean,
and thanks for your quick reply.

On Wed, 2006-12-13 at 08:31 +0100, sean finney wrote:
 hi alessandro,
  [...]
  over and over and over.
 
 hm... are any of the directories between /var and var/./site
 symlinks?

No more, I suspected that could be a problem and I eliminated all
symlinks to be sure.

 otherwise, we'll need some more info, namely dpkg -l '*php5*' and any
 changes you've made to /etc/php5/apache2/php.ini, and any php related
 configuration in your apache2 configuration.

Here the relevant modules:
ii  libapache2-mod-php55.1.6-5
ii  php5   5.1.6-5
ii  php5-cli   5.1.6-5
ii  php5-common5.1.6-5
ii  php5-gd5.1.6-5
ii  php5-mysql 5.1.6-5

Apache is version 2.2.3-3.1, mysql is 5.0.30-1, kernel is
2.6.18-3-amd64.

The only change made to php.ini is increased the memory limit to 256M
and max execution time to 60 seconds.
There are non php related configuration in my apache2 config.

 also, are you using any .htaccess directives? anything mbstring related?
 is this a 3rd party web app or your own in-house application/site?

It's a 3rd party webapp build only on standard xoops modules, nothing
strange or developed in-house.
There are a couple .htaccess directive with this content:
Options All -Indexes
and:
order deny,allow
deny from all

Thanks,
Alex



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#402764: [php-maint] Bug#402764: libapache2-mod-php5: php processes loop and eat all cpu and resources

2006-12-13 Thread sean finney
hey alex,

On Wed, 2006-12-13 at 11:15 +0100, Alessandro Polverini wrote:
 It's a 3rd party webapp build only on standard xoops modules, nothing
 strange or developed in-house.

hmm...

can you find a unique page/chunk-o-code that triggers this?  or is it
a gradual buildup?


sean


signature.asc
Description: This is a digitally signed message part


Bug#402764: [php-maint] Bug#402764: libapache2-mod-php5: php processes loop and eat all cpu and resources

2006-12-13 Thread Alessandro Polverini
On Wed, 2006-12-13 at 19:55 +0100, sean finney wrote:
 can you find a unique page/chunk-o-code that triggers this?  or is it
 a gradual buildup?

I'm sorry I'm unable to find a combination of code/request that triggers
the problem, I tried as single user and the site seems fine, but as soon
as I open to everyone it's a matter of seconds to have threads that
begins to loop and after a few minutes the machine begin to suffer very
much.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#402764: [php-maint] Bug#402764: libapache2-mod-php5: php processes loop and eat all cpu and resources

2006-12-13 Thread sean finney
On Wed, 2006-12-13 at 21:15 +0100, Alessandro Polverini wrote:
 I'm sorry I'm unable to find a combination of code/request that triggers
 the problem, I tried as single user and the site seems fine, but as soon
 as I open to everyone it's a matter of seconds to have threads that
 begins to loop and after a few minutes the machine begin to suffer very
 much.


hrrm.  maybe get one of those looping processes, and kill it with
SIGSEGV, and then get a backtrace from the corefile?

in the meantime, i'm going to work on throwing together a debug symbols
package :)


sean


signature.asc
Description: This is a digitally signed message part


Bug#402764: [php-maint] Bug#402764: libapache2-mod-php5: php processes loop and eat all cpu and resources

2006-12-12 Thread sean finney
hi alessandro,

On Tue, 2006-12-12 at 15:30 +0100, Alessandro Polverini wrote:
 I tried to attach to a process with strace and this is what I get:
 [...]
 lstat(/var, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
 lstat(/var/home, {st_mode=S_IFDIR|0755, st_size=85, ...}) = 0
 lstat(/var/home/web2, {st_mode=S_IFDIR|S_ISUID|S_ISGID|0775, st_size=52, 
 ...}) = 0
 lstat(/var/home/web2/lc, {st_mode=S_IFDIR|S_ISGID|0775, st_size=95, ...}) =  0
 lstat(/var/home/web2/lc/www, {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
 lstat(/var/home/web2/lc/www/site, {st_mode=S_IFDIR|0755, st_size=4096, 
 ...}) = 0
 lstat(/var, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
 lstat(/var/home, {st_mode=S_IFDIR|0755, st_size=85, ...}) = 0
 lstat(/var/home/web2, {st_mode=S_IFDIR|S_ISUID|S_ISGID|0775, st_size=52, 
 ...}) = 0
 lstat(/var/home/web2/lc, {st_mode=S_IFDIR|S_ISGID|0775, st_size=95, ...}) =  0
 lstat(/var/home/web2/lc/www, {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
 lstat(/var/home/web2/lc/www/site, {st_mode=S_IFDIR|0755, st_size=4096, 
 ...}) = 0
 [...]
 over and over and over.

hm... are any of the directories between /var and var/./site
symlinks?

otherwise, we'll need some more info, namely dpkg -l '*php5*' and any
changes you've made to /etc/php5/apache2/php.ini, and any php related
configuration in your apache2 configuration.

also, are you using any .htaccess directives? anything mbstring related?
is this a 3rd party web app or your own in-house application/site?


sean



signature.asc
Description: This is a digitally signed message part