On 08/31/2012 09:10 PM, .liu jonnary wrote: > > I use openais-0.80.6,you mean I should use openais new vesion such as 1.1.4? > I mean the openais SA Forum implementation of AIS services are deprecated as explained in the www.openais.org website. Regards -steve > > 2012/9/1 Steven Dake <sdake@xxxxxxxxxx <mailto: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 <mailto:discuss@xxxxxxxxxxxx> > > http://lists.corosync.org/mailman/listinfo/discuss > > > > _______________________________________________ discuss mailing list discuss@xxxxxxxxxxxx http://lists.corosync.org/mailman/listinfo/discuss