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

Attachment: signature.asc
Description: Digital signature

Reply via email to