修改换库后出现的崩溃问题,编译脚本修改,进程控制脚本添加调试
This commit is contained in:
@@ -1228,8 +1228,30 @@ ST_VOID u_iec_rpt_ind_data(MVL_VAR_ASSOC** info_va,
|
||||
log_var_data(info_va[va_num], &mms_dec_data);
|
||||
//assert(add_mms_dec_data== (uint32_t)&mms_dec_data);
|
||||
rptinfo = find_rptinfo_from_net_rcb_info(net_info, rcb_info);
|
||||
|
||||
if (rptinfo == NULL) {
|
||||
chnl_usr_t* chnl_usr_tmp = net_info ? (chnl_usr_t*)net_info->user_info : NULL;
|
||||
|
||||
printf("[RPT][ERROR] cannot find rptinfo, net_info=%p user_info=%p rcb_info=%p RptID=%s\n",
|
||||
(void*)net_info,
|
||||
net_info ? (void*)net_info->user_info : NULL,
|
||||
(void*)rcb_info,
|
||||
(rcb_info && rcb_info->RptID) ? rcb_info->RptID : "NULL");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
//rptinfo->m_LastDataTime = sGetMsTime();//WW 2023-08-29 去除
|
||||
LD_info = rptinfo->LD_info;
|
||||
|
||||
if (LD_info == NULL) {
|
||||
printf("[RPT][ERROR] rptinfo->LD_info NULL, rptinfo=%p RptID=%s\n",
|
||||
(void*)rptinfo,
|
||||
(rcb_info && rcb_info->RptID) ? rcb_info->RptID : "NULL");
|
||||
return;
|
||||
}
|
||||
|
||||
chnl_usr = net_info->user_info;
|
||||
ied = chnl_usr->chnl->ied;
|
||||
|
||||
@@ -2009,7 +2031,13 @@ ST_RET u_iec_rpt_ind(MVL_COMM_EVENT* event)
|
||||
}
|
||||
|
||||
/* Get "all_rcb_info" from "user_info". User must set "user_info" when conn established.*/
|
||||
all_rcb_info = (ALL_RCB_INFO*)event->net_info->user_info;
|
||||
//lnk20260617防止复用崩溃
|
||||
//all_rcb_info = (ALL_RCB_INFO*)event->net_info->user_info;
|
||||
chnl_usr_t *chnl_usr = (chnl_usr_t*)event->net_info->user_info;
|
||||
if (chnl_usr == NULL || chnl_usr->all_rcb_info == NULL) {
|
||||
return;
|
||||
}
|
||||
all_rcb_info = chnl_usr->all_rcb_info;
|
||||
|
||||
/* Check "all_rcb_info" to see if any RCB has been enabled. */
|
||||
if (all_rcb_info == NULL || all_rcb_info->rcb_info_list == NULL)
|
||||
|
||||
Reference in New Issue
Block a user