Hi,
Sometimes I get a crash in "pj_timer_heap_poll"
I notice that there was some corrections about that in milestone 2.9
But these corrections does not solve my issue.
After some time debugging the issue, it looks like that it happens when the code:
-------------------------------
if (node->cb)
(*node->cb)(ht, node);
(*node->cb)(ht, node);
-------------------------------
in function 'pj_timer_heap_poll' is invoked with the function 'on_cache_timeout' at the same time that 'pj_stun_session' is being destroyed (this destroy is made by application's code because the call terminates).
I cannot understand exactly how this happens,
but I think that there is a time gap in function 'pj_timer_heap_poll' after the 'unlock_timer_heap(ht)' that 'pj_stun_session' can be destroyed and crash inside 'on_cache_timeout'
Is this a known issue in the specified functions?
Best regards,
Hugo Sobral
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org