[php-maint] Bug#513204: Bug#513204: php5-mysql: doesn't crash anymore if I use taskset to launch my php script

sean finney seanius at debian.org
Tue Jan 27 17:39:15 UTC 2009


hi michael,

On Tue, Jan 27, 2009 at 10:36:17AM +0100, Michael Bonfils wrote:
> My minimal example t.sh
> while true; do
> 	echo '<?php echo "toto tata \n";' | php
> 	if [ $? -ne 0 ]; then 
> 		break
> 	fi
> done

very strange indeed... i can reproduce it after a variable number of
executions, seemingly between 500-5000 executions.  my slightly modified
version:

while true; do         
	echo '<?php echo "toto tata \n";' | php;         
	if [ $? -ne 0 ]; then   
		echo died after ${i:-0};        
		break; 
	else 
		i=$(expr ${i:-0} + 1);         
	fi; 
done

output:

...
toto tata 
toto tata 
Segmentation fault (core dumped)
died after 4922
rangda[/home/sean]                                                           :) 

the backtrace is equally odd:

#0  0x00007f4f4d05fed0 in ?? ()
#1  0x00007f4f4da25fc7 in start_thread () from /lib/libpthread.so.0
#2  0x00007f4f4e0a55ad in clone () from /lib/libc.so.6
#3  0x0000000000000000 in ?? ()

the fact that restricting it to a single cpu seems to make it go away is
even fishier...


	sean
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-php-maint/attachments/20090127/9b71265b/attachment.pgp 


More information about the pkg-php-maint mailing list