- **status**: accepted --> invalid


---

** [tickets:#1661] log: deadlock when two threads call saLogStreamClose**

**Status:** invalid
**Milestone:** 4.6.2
**Created:** Fri Jan 08, 2016 01:28 PM UTC by Mathi Naickan
**Last Updated:** Fri Jan 08, 2016 01:28 PM UTC
**Owner:** Mathi Naickan


A deadlock can occur when two threads call saLogStreamClose simultaneously.

Thread1#0  0x00007fa5c2c807bc in __lll_lock_wait () from /lib64/libpthread.so.0 
#1  0x00007fa5c2c7c489 in _L_lock_918 () from /lib64/libpthread.so.0 #2  
0x00007fa5c2c7c2b0 in pthread_mutex_lock () from /lib64/libpthread.so.0 #3  
0x00007fa5c30b034f in saLogStreamClose (logStreamHandle=4246732801) at 
lga_api.c:1344

Thread2 #0  0x00007fa5c2c80010 in sem_wait () from /lib64/libpthread.so.0
(gdb) bt #0  0x00007fa5c2c80010 in sem_wait () from /lib64/libpthread.so.0 #1  
0x00007fa5c1c2c762 in hm_block_me (cell=cell@entry=0xc8d980, 
pool_id=pool_id@entry=0 '\000') at hj_hdl.c:696 #2  0x00007fa5c1c2c8dd in 
ncshm_destroy_hdl (id=id@entry=NCS_SERVICE_ID_LGA, uhdl=4246732801) at 
hj_hdl.c:366 #3  0x00007fa5c30b0b89 in lga_log_stream_hdl_rec_del 
(list_head=list_head@entry=0xca4870,
                        rm_node=rm_node@entry=0xcd7ba0) at lga_util.c:486 #4  
0x00007fa5c30b035b in saLogStreamClose (logStreamHandle=4246732801) at 
lga_api.c:1349



---

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.
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to