- **status**: review --> fixed
- **Comment**:

commit d3b3bd1fb4bb3afe5d8252641bc68029f91b69b3 (HEAD -> develop, 
origin/develop, ticket-3137)
Author: Vu Minh Nguyen <[email protected]>
Date:   Mon Jan 6 10:12:56 2020 +0700

    log: fix segmentation fault in log agent [#3137]
    
    log agent did not protect the resource `unacked_invocations_ list` from
    accessing by multiple threads, so caused segmentation fault.
    
    This patch introduces a mutex in order to synchronize the access to that
    common resource.




---

** [tickets:#3137] log: accessing unacked invocation list is not thread-safe**

**Status:** fixed
**Milestone:** 5.20.01
**Created:** Fri Jan 03, 2020 09:49 AM UTC by Vu Minh Nguyen
**Last Updated:** Mon Jan 06, 2020 03:16 AM UTC
**Owner:** Vu Minh Nguyen


Coredump is generated; here is part of the backtrace.

~~~
Program terminated with signal SIGSEGV, Segmentation fault.
#0 std::list<unsigned long long, std::allocator<unsigned long long> >::remove 
(__value=@0x7fff770051f8: 1024193, this=0x15f2930) at 
/usr/include/c++/4.8/bits/list.tcc:248
[Current thread is 1 (Thread 0x7f94914d4780 (LWP 7167))]
### BT ###
#0 std::list<unsigned long long, std::allocator<unsigned long long> >::remove 
(__value=@0x7fff770051f8: 1024193, this=0x15f2930) at 
/usr/include/c++/4.8/bits/list.tcc:248
#1 LogClient::RemoveTrack (inv=1024193, this=0x15f2890) at 
./src/log/agent/lga_client.h:181
#2 LogClient::InvokeCallback (this=this@entry=0x15f2890, 
msg=msg@entry=0x7f9480001cf0) at src/log/agent/lga_client.cc:135
~~~


---

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.
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to