- **summary**: EVT : Segfault in saEvtEventDataGet in event delivery callback 
--> EVT : Segfault in saEvtEventDataGet in multithreaded app



---

** [tickets:#1589] EVT : Segfault in saEvtEventDataGet in multithreaded app**

**Status:** unassigned
**Milestone:** 4.6.2
**Created:** Tue Nov 10, 2015 01:22 AM UTC by Srikanth R
**Last Updated:** Tue Nov 10, 2015 01:22 AM UTC
**Owner:** nobody


Changeset : 7071
Application : EDSV multi threaded application with multiple publisher threads 
and single subscriber thread.


Steps :

   -> Each publisher thread creates a channel and waits for the subscriber. 
   ->The subscriber thread comes up and subscribes to all the channels created 
by the publishers.
   -> Now all the publishers publish the event.
   -> In the event deliver callback, application segfaulted for the 
saEvtEventDataGet call.
   -> Below is the back trace
   
 0  0x00007ffff75a6224 in saEvtEventDataGet (eventHandle=4289724417, 
eventData=0x7fffffffde30, eventDataSize=0x7fffffffde28) at eda_saf_api.c:1944
1  0x000000000040113b in evtDeliverCallback (subscriptionId=4, 
eventHandle=4285530146, eventDataSize=20) at multithread/eda_thread1.c:25
2  0x00007ffff75a9ed0 in eda_hdl_cbk_rec_prc (cb=0x6260c0, msg=0x6279f0, 
reg_cbk=0x6268e0) at eda_hdl.c:691
3  0x00007ffff75aa20d in eda_hdl_cbk_dispatch_all (cb=0x6260c0, 
hdl_rec=0x6268d0) at eda_hdl.c:836
4  0x00007ffff75a9d85 in eda_hdl_cbk_dispatch (cb=0x6260c0, hdl_rec=0x6268d0, 
flags=SA_DISPATCH_ALL) at eda_hdl.c:641
5  0x00007ffff75a1e5a in saEvtDispatch (evtHandle=4289724417, 
dispatchFlags=SA_DISPATCH_ALL) at eda_saf_api.c:351
6  0x000000000040194d in subscriber_loop (thread_number=1) at 
multithread/eda_thread1.c:213
7  0x0000000000401b64 in main (argc=1, argv=0x7fffffffe398) at 
multithread/eda_thread1.c:271
(gdb) p *evt_hdl_rec 
$2 = {event_hdl = 1, priority = 1 '\001', retention_time = 66370, publish_time 
= 140737488348072, publisher_name = {length = 4316, 
    value = 
"@\000\000\000\000\000\360\242c\000\000\000\000\000\001\000\240\377", '\000' 
<repeats 12 times>, 
"!\000\000\000\000\000\000\000\002\000\000\000\377\177\000\000خY\367\377\177\000\000\000\000\000\000\000\000\000\000!\001\000\000\000\000\000\000\017",
 '\000' <repeats 15 times>, "\001", '\000' <repeats 15 times>"\230, 
\266\371\366\377\177\000\000\001", '\000' <repeats 144 times>}, pattern_array = 
0x0, event_data_size = 0, evt_data = 0x0, evt_type = 0 '\000', parent_chan = 
0x0, next = 0x0, pub_evt_id = 0, 
  del_evt_id = 0}

   
   
   


---

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

Reply via email to