In the 2-3.test utility of the saClmDispatch routine, it is possible for the saClmDispatch() function to return SA_AIS_ERR_BAD_HANDLE if the primary thread has already finalized the CLM library.
Discussion of this in the openais mailing can be found http://marc.info/?l=openais&m=119335145700775&w=2
A patch is attached for review.
Regards,
Drew Moseley
Patch allowing return code of SA_AIS_ERR_BAD_HANDLE