- **status**: unassigned --> accepted
- **assigned_to**: Hans Feldt
- **Priority**: major --> minor
- **Milestone**: future --> 4.2.5



---

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

**Status:** accepted
**Created:** Wed Oct 23, 2013 11:33 AM UTC by Hans Feldt
**Last Updated:** Wed Oct 23, 2013 11:33 AM UTC
**Owner:** Hans Feldt

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.
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&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