Re: Re: svn: /php/php-src/ branches/PHP_5_4/Zend/zend_execute_API.c trunk/Zend/zend_execute_API.c

From: Date: Wed, 07 Sep 2011 21:01:53 +0000
Subject: Re: Re: svn: /php/php-src/ branches/PHP_5_4/Zend/zend_execute_API.c trunk/Zend/zend_execute_API.c
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-55290@lists.php.net to get a copy of this message
On 09/07/2011 01:32 PM, Stas Malyshev wrote: > Hi > > On 9/7/11 1:17 PM, Rasmus Lerdorf wrote: >> >> Interesting that this is different on Darwin. That doesn't seem like >> something that should be OS-specific unless Darwin's itimer >> implementation is messed up. > > Looks like it might be the case: > > http://openradar.appspot.com/9336975 > > REAL timer works, others are broken. And this seems to be not a new issue: > > http://lists.apple.com/archives/Unix-porting/2007/Aug/msg00000.html I am curious, what do you see when you strace it? On Linux you get: write(1, "Start\n", 6Start) = 6 setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={1, 0}}, NULL) = 0 --- SIGPROF (Profiling timer expired) @ 0 (0) --- setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={1, 0}}, NULL) = 0 rt_sigaction(SIGPROF, {0x7d3df0, ~[ILL TRAP ABRT BUS FPE KILL SEGV CONT STOP TSTP TTIN TTOU SYS RTMIN RT_1], SA_RESTORER|SA_SIGINFO, 0x7febc4d9ac60}, NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [PROF], NULL, 8) = 0 write(1, "Shutdown\n", 9Shutdown) = 9 setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0 close(2) = 0 close(1) = 0 I assume you don't get the "timer expired" at all there?

« previous php.internals (#55290) next »