- **Milestone**: 5.19.01 --> 5.19.03


---

** [tickets:#2906] imm: application is crashed when IMMA unlocks the mutex**

**Status:** assigned
**Milestone:** 5.19.03
**Created:** Tue Jul 31, 2018 08:02 AM UTC by Vu Minh Nguyen
**Last Updated:** Wed Jan 09, 2019 09:23 PM UTC
**Owner:** Vu Minh Nguyen


In most OpenSAF agent code, the mutex would be destroyed while it is being 
locked by other threads. 

~~~
  /* destroy the lock */
  m_NCS_LOCK_DESTROY(&cb->cb_lock);
~~~

When the other threads come to unlock the mutex, EPERM or EINVAL will be 
returned.
1) EPERM: when being-locked mutex is destroyed and replaced by the new one, 
unlocking on that mutex is actually same as unlocking on not-being-locked mutex.

2) EINVAL: the being-locked mutex has been desotroyed and not yet intialized. 

In both cases, application will be crashed. One of them was already reported in 
the ticket  [#2885].


---

Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to