LoadRunner 客户端执行场景时,出错 pre_cci.c(0): Error: C interpreter run time error: /tmp/brr_cD0yGF/global_dir/168080867/pre_cci.c (0): Error -- Stack overflow : .
场景简介:
loadrunner 控制器和客户端 分别安装在不同设备上,模拟b/s 中向s发送大量数据 。使用该脚本在控制器设备上模拟时,运行良好。在客户端设备上模拟时,出现错误信息
”pre_cci.c(0): Error: C interpreter run time error: /tmp/brr_cD0yGF/global_dir/168080867/pre_cci.c (0): Error -- Stack overflow : “
网上找了一圈,发现解决方案:
----------------------------------
In other words, if your code looks like this;
Action()
{
char message[] = "...lots of xml...";
...
}
then it won't work. Try changing it to this;
char message[] = "...lots of xml...";
Action()
{
...
}
or this;
Action()
{
static char message[] = "...lots of xml...";
...
}
---------------------------------
更改脚本中的变量名前增加static后,再次在客户端模拟,测试运行良好,没有出现错误。
参考:http://tech.dir.groups.yahoo.com/group/LoadRunner/message/30463