---
** [tickets:#1705] log: miss mutex protection for common resource in log agent**
**Status:** accepted
**Milestone:** 5.0.FC
**Created:** Fri Mar 18, 2016 10:11 AM UTC by Vu Minh Nguyen
**Last Updated:** Fri Mar 18, 2016 10:11 AM UTC
**Owner:** Vu Minh Nguyen
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.
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets