- **status**: review --> fixed
- **assigned_to**: Hans Feldt -->  nobody 



---

** [tickets:#605] immomtest: os_defs.c:447: ncs_os_lock: Assertion `0' failed.**

**Status:** fixed
**Created:** Wed Oct 23, 2013 11:33 AM UTC by Hans Feldt
**Last Updated:** Wed Oct 23, 2013 01:16 PM UTC
**Owner:** nobody

This happens from time to time when executing immomtest

Code in question:

        case NCS_OS_LOCK_UNLOCK:
                if ((rc = pthread_mutex_unlock(&lock->lock)) != 0) { /* unlock 
for all tasks */
                        assert(0);
                        return (NCSCC_RC_FAILURE);
                }
                break;

As a first step we could change this piece of code to use 
osaf_mutex_unlock_ordie instead which will log the return code before abort. 
That could take us closer to the real problem.

In imma (and others libraries) there is a mix of direct pthread calls and NCS 
macros. Should probably align the code base to use the new utility functions 
instead.



---

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.
------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to