php_asterisk problem

i compile php_asterisk into php and it succeed to create res_php.so
but when i use them to have a test .
sometime they can succeed and sometime they will fail and say:
gblibc detected double free or corruption (!prev):0x0890dc38
and then the asterisk will stop

what’s this mean? how to solve such a problem?