changeset:   4574:b424e8c4e643
branch:      opensaf-4.2.x
parent:      4569:dc118b8f1a07
user:        Hans Feldt <hans.fe...@ericsson.com>
date:        Tue Oct 29 21:24:35 2013 +0100
summary:     leap: change ncs_os_lock to syslog before abort [#605]

changeset:   4575:03c46e565f76
branch:      opensaf-4.3.x
parent:      4570:b350c2a0377e
user:        Hans Feldt <hans.fe...@ericsson.com>
date:        Tue Oct 29 21:30:55 2013 +0100
summary:     leap: change ncs_os_lock to syslog before abort [#605]

changeset:   4576:5a7622688312
tag:         tip
parent:      4573:90aa577fb3ef
user:        Hans Feldt <hans.fe...@ericsson.com>
date:        Tue Oct 29 21:30:55 2013 +0100
summary:     leap: change ncs_os_lock to syslog before abort [#605]



---

** [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