eaccelerator_get bug

24 views
Skip to first unread message

roaxiaolong

unread,
Mar 12, 2009, 1:16:23 AM3/12/09
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。

Reply all
Reply to author
Forward
0 new messages