roaxiaolong
unread,Mar 12, 2009, 1:16:23 AM3/12/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to eaccelerator-developers, hongd...@baidu.com
Hi
recently I have encountered a problem when use eaccelerator_get, this
function will lead core dump when concurrent get/post. after read the
source file, I think it's occur because function release the rw_lock
earlier。
In eaccelerator_get,after get key data from shared memory, the
programme call restore_zval copy shared memory ata to return_value.
but if another process call eaccelerator_put this time and free the
pre value,restore_zval will be access a free memory and lead core
dump。
my php code like this
<?php
eaccelerator_get("key");
eaccelerator_put("key",$str);
?>
when run the code 400 request per second, sometimes php will be core
dump。