[Phpwm] Scripts not exiting

Darren Beale public.darren.beale at siftware.co.uk
Sun Dec 30 17:05:39 GMT 2007


Hi

> does the following code exit?
> 
> <?php
> 
> exit(0);
> 
> ?>

That was the first thing I tried. Turns out that even /usr/bin/php -v would hang.

I think it's a kernel issue, something to do with the stock kernel that comes with Etch, I've had the same results with php 5.2.5 and 5.3-dev. Here's the last bit of `strace php -v` which stops in the
middle of futex(...

------8<------

/snip

mmap2(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb78be000
time(NULL)                              = 1196936752
write(1, "PHP 5.3.0-dev (cli) (built: Dec "..., 151PHP 5.3.0-dev (cli)
(built: Dec  6 2007 10:16:01)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2007 Zend Technologies
) = 151
munmap(0xb78be000, 266240)              = 0
mmap2(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb78be000
setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
munmap(0xb74ca000, 99712)               = 0
munmap(0xb7786000, 62068)               = 0
munmap(0xb7751000, 216316)              = 0
munmap(0xb7735000, 114552)              = 0
munmap(0xb76b9000, 507140)              = 0
munmap(0xb7694000, 150752)              = 0
munmap(0xb7691000, 8876)                = 0
munmap(0xb768c000, 17416)               = 0
munmap(0xb765c000, 194988)              = 0
munmap(0xb761d000, 255732)              = 0
munmap(0xb74e3000, 1282904)             = 0
gettimeofday({1196936752, 897720}, NULL) = 0
gettimeofday({1196936752, 898244}, NULL) = 0
futex(0xb7dfd400, FUTEX_WAIT, 2, NULL

....wait, wait, wait...

------>8------

Anyway, I decided to start using the php5 debian package rather than self-compiled so it's not currently an issue for me.

db

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.17.12/1202 - Release Date: 29/12/2007 13:27
 




More information about the Phpwm mailing list