- **status**: review --> fixed
- **assigned_to**: Vu Minh Nguyen --> nobody
- **Comment**:
changeset: 7533:fea799faf484
tag: tip
parent: 7530:8a40a9170d7e
user: Vu Minh Nguyen <[email protected]>
date: Fri Apr 22 13:56:50 2016 +0200
summary: log: add mutex protection for common resource in log agent [#1705]
rev: fea799faf48484872694d5221c7d36c78ae5f64a
changeset: 7532:f80647c1a0af
branch: opensaf-5.0.x
parent: 7529:02d711bb350e
user: Vu Minh Nguyen <[email protected]>
date: Fri Apr 22 13:56:50 2016 +0200
summary: log: add mutex protection for common resource in log agent [#1705]
rev: f80647c1a0afa0b8e1defd28396b929bce210adf
---
** [tickets:#1705] log: miss mutex protection for common resource in log agent**
**Status:** fixed
**Milestone:** 5.0.FC
**Created:** Fri Mar 18, 2016 10:11 AM UTC by Vu Minh Nguyen
**Last Updated:** Wed Mar 23, 2016 07:17 AM UTC
**Owner:** nobody
There is an race condition between two threads accessing to common resource
`lga_cb.client_list`:
1) The client thead which is in context calling to saLogFinalize(), trying
to delete `lga_cb.client_list` resource.
The code flow something looks like:
> saLogFinalize()->lga_destroy()->lga_hdl_list_del(): delete lga_cb.client_list
2) The recovery thread (recovery2_thread) which is referring to above
common resource.
The code flow something looks like:
> recovery2_thread()->recover_one_client(): referring to the resource
So, log client will get the coredump if the thread #1 goes first, then thread
#2 refering to the resource.
---
Sent from sourceforge.net because [email protected] 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets