hi,
Recenly,I 'm developing a HA test program. I used lck as core module,and cooperated with evt and ckpt.
desing theory:When a lock is lock or unlock in a client,it will immediately send a evevnt.
Now program's basic function is normal.But When I do same abnormal test,I find several segmentation fault.
1.I intentionally kill aisexec server in lock owner node,and the client will send a evevt notice.Then Client crashed with a a segmentation fault .
basic function
case MESSAGE_RES_EVT_AVAILABLE:
evti->ei_data_available = 0;
pthread_mutex_lock(&evti->ei_response_mutex);
//begin add solve
if(NULL == evt)
{
error = SA_AIS_ERR_LIBRARY;
goto dispatch_unlock;
}
//end
evt_recv_event(evti->ipc_ctx, &evt); // segmentation fault in here
pthread_mutex_unlock(&evti->ei_response_mutex);
if (evt->led_head.error == SA_AIS_ERR_NOT_EXIST) {
error = SA_AIS_OK;
break;
}
Regards
Jonnary
_______________________________________________ discuss mailing list discuss@xxxxxxxxxxxx http://lists.corosync.org/mailman/listinfo/discuss