LoadRunner "Error -- Stack overflow"

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


 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值