`
heiheben
  • 浏览: 132570 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

tuxedo全局变量丢失

阅读更多

今天调试一个tuxedo报表服务,发现一个很怪的事情

一个变量在从tuxedo域中取出的时候调用的时候取出来的时候是有值的

到一个函数中的时候值就丢失了

考虑的情况

1.tuxedo域定义有误

2.tuxedo域时候存在重名

3.tuxedo域长度是否超长

 

以上几个情况挨个排查

发现事实为 函数中有一个变量的长度定义太短 导致 赋值时覆盖了其它变量的地址范围

 

cuserlog("report_log3c.report_yydtj1:vv_feetag_in=%s,Gpub_input_para.feetag_in=%s",vv_feetag_in, Gpub_input_para.feetag_in);

   

 


    //cuserlog("report_log3c.report_yydtj2:vv_feetag_in=%s,Gpub_input_para.feetag_in=%s",vv_feetag_in, Gpub_input_para.feetag_in);

    //cuserlog("report_log3c:vv_logdate[%s],vv_cleardaytime[%s],vv_feetag_in[%s],strlen(vv_feetag_in)=%d, Gpub_input_para.feetag=%s",vv_logdate, vv_cleardaytime, vv_feetag_in, strlen(vv_feetag_in), Gpub_input_para.feetag_in);
    //cuserlog("report_log3c.report_yydtj:vv_feetag_in=%s,Gpub_input_para.feetag_in=%s",vv_feetag_in, Gpub_input_para.feetag_in);

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics