I use openais-0.80.6,you mean I should use openais new vesion such as 1.1.4?
2012/9/1 Steven Dake <sdake@xxxxxxxxxx>
The lck and evt apis are deprecated. See:
http://www.openais.org/doku.php
> _______________________________________________
On 08/31/2012 08:30 AM, .liu jonnary wrote:
> 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
>
_______________________________________________ discuss mailing list discuss@xxxxxxxxxxxx http://lists.corosync.org/mailman/listinfo/discuss