Fabbione,
can you please try attached patch? I think (hope) it solves problem.

Regards,
  Honza
Index: lib/cpg.c
===================================================================
--- lib/cpg.c	(revision 2158)
+++ lib/cpg.c	(working copy)
@@ -355,7 +355,21 @@
 			goto error_put;
 			break;
 		}
+		
+		pthread_mutex_lock (&cpg_inst->response_mutex);
+
+		/*
+		 * Another thread has already started finalizing
+		 */
+		if (cpg_inst->finalize) {
+			pthread_mutex_unlock (&cpg_inst->response_mutex);
+			return (CPG_ERR_BAD_HANDLE);
+		}
+
+
+
 		coroipcc_dispatch_put (cpg_inst->ipc_ctx);
+		pthread_mutex_unlock (&cpg_inst->response_mutex);
 
 		/*
 		 * Determine if more messages should be processed
_______________________________________________
Openais mailing list
Openais@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to