Segfault in pj_atomic_dec_and_get

RB
Ross Beer
Mon, Jul 11, 2016 10:00 AM

Hi,

I am getting a regular segfault which produces the following output, this is when using Asterisk 13 and PJSIP SVN 5359:

#0  0x00007fa3d398e970 pthread_mutex_lock (libpthread.so.0)
#1  0x00007fa344e5b8b1 pj_mutex_lock (libpj.so.2)
#2  0x00007fa344e5bb31 pj_atomic_dec_and_get (libpj.so.2)
#3  0x00007fa3469a6b30 pjsip_tx_data_dec_ref (libpjsip.so.2)
#4  0x00007fa3469b1f07 tsx_shutdown (libpjsip.so.2)
#5  0x00007fa3469b2141 tsx_set_state (libpjsip.so.2)
#6  0x00007fa3469b21ca tsx_on_state_terminated (libpjsip.so.2)
#7  0x00007fa3469b2227 tsx_timer_callback (libpjsip.so.2)
#8  0x00007fa344e6a3b7 pj_timer_heap_poll (libpj.so.2)
#9  0x00007fa3469a1c3b pjsip_endpt_handle_events2 (libpjsip.so.2)
#10 0x00007fa3435b2638 monitor_thread_exec (res_pjsip.so)
#11 0x00007fa344e5ba56 thread_main (libpj.so.2)
#12 0x00007fa3d398c61a start_thread (libpthread.so.0)
#13 0x00007fa3d2cc859d __clone (libc.so.6)

This has also been raised to the asterisk team under ticket:

https://issues.asterisk.org/jira/browse/ASTERISK-26166

This looks to be a PJSIP issue, but please correct me if I am incorrect.

Kind regards,

Ross

Hi, I am getting a regular segfault which produces the following output, this is when using Asterisk 13 and PJSIP SVN 5359: #0 0x00007fa3d398e970 pthread_mutex_lock (libpthread.so.0) #1 0x00007fa344e5b8b1 pj_mutex_lock (libpj.so.2) #2 0x00007fa344e5bb31 pj_atomic_dec_and_get (libpj.so.2) #3 0x00007fa3469a6b30 pjsip_tx_data_dec_ref (libpjsip.so.2) #4 0x00007fa3469b1f07 tsx_shutdown (libpjsip.so.2) #5 0x00007fa3469b2141 tsx_set_state (libpjsip.so.2) #6 0x00007fa3469b21ca tsx_on_state_terminated (libpjsip.so.2) #7 0x00007fa3469b2227 tsx_timer_callback (libpjsip.so.2) #8 0x00007fa344e6a3b7 pj_timer_heap_poll (libpj.so.2) #9 0x00007fa3469a1c3b pjsip_endpt_handle_events2 (libpjsip.so.2) #10 0x00007fa3435b2638 monitor_thread_exec (res_pjsip.so) #11 0x00007fa344e5ba56 thread_main (libpj.so.2) #12 0x00007fa3d398c61a start_thread (libpthread.so.0) #13 0x00007fa3d2cc859d __clone (libc.so.6) This has also been raised to the asterisk team under ticket: https://issues.asterisk.org/jira/browse/ASTERISK-26166 This looks to be a PJSIP issue, but please correct me if I am incorrect. Kind regards, Ross