Segfault In grp_lock_dec_ref

RB
Ross Beer
Thu, Aug 1, 2019 7:38 AM

Hi,

I am seeing the following crash when using PJSIP 2.9 with Asterisk:

Thread 1 (Thread 0x7f328322a700 (LWP 57417)):
#0  0x00007f35a02a61e1 in grp_lock_dec_ref (glock=0x111) at ../src/pj/lock.c:554
cnt = 0
#1  0x00007f35a02a6242 in pj_grp_lock_dec_ref (glock=0x111) at ../src/pj/lock.c:646
#2  0x00007f35a02b6da8 in pj_timer_heap_poll (ht=0xfbd740, next_delay=0x7f3283229cd0) at ../src/pj/timer.c:662
node = 0x7f34547e95a8
grp_lock = 0x111
now = {sec = 17991022, msec = 266}
count = 2
#3  0x00007f35a0200981 in pjsip_endpt_handle_events2 (endpt=0xfbd458, max_timeout=0x7f3283229d40, p_count=0x0) at ../src/pjsip/sip_endpoint.c:716
timeout = {sec = 0, msec = 0}
count = 0
net_event_count = 0
c = 0
#4  0x00007f35a0200ac6 in pjsip_endpt_handle_events (endpt=0xfbd458, max_timeout=0x7f3283229d40) at ../src/pjsip/sip_endpoint.c:777
#5  0x00007f339ed80c4d in monitor_thread_exec (endpt=0x0) at res_pjsip.c:4519
delay = {sec = 0, msec = 10}
#6  0x00007f35a029d76f in thread_main (param=0x2abc948) at ../src/pj/os_core_unix.c:541
rec = 0x2abc948
result = 0x0
rc = 0
#7  0x00007f359e075dd5 in start_thread () at /usr/lib64/libpthread.so.0
#8  0x00007f359d41802d in clone () at /usr/lib64/libc.so.6

This again looks to be related to the timer implementation. Is there anything that can be done to fix this and the other timer-based issues I've raised before?

Kind regards,

Ross

Hi, I am seeing the following crash when using PJSIP 2.9 with Asterisk: Thread 1 (Thread 0x7f328322a700 (LWP 57417)): #0 0x00007f35a02a61e1 in grp_lock_dec_ref (glock=0x111) at ../src/pj/lock.c:554 cnt = 0 #1 0x00007f35a02a6242 in pj_grp_lock_dec_ref (glock=0x111) at ../src/pj/lock.c:646 #2 0x00007f35a02b6da8 in pj_timer_heap_poll (ht=0xfbd740, next_delay=0x7f3283229cd0) at ../src/pj/timer.c:662 node = 0x7f34547e95a8 grp_lock = 0x111 now = {sec = 17991022, msec = 266} count = 2 #3 0x00007f35a0200981 in pjsip_endpt_handle_events2 (endpt=0xfbd458, max_timeout=0x7f3283229d40, p_count=0x0) at ../src/pjsip/sip_endpoint.c:716 timeout = {sec = 0, msec = 0} count = 0 net_event_count = 0 c = 0 #4 0x00007f35a0200ac6 in pjsip_endpt_handle_events (endpt=0xfbd458, max_timeout=0x7f3283229d40) at ../src/pjsip/sip_endpoint.c:777 #5 0x00007f339ed80c4d in monitor_thread_exec (endpt=0x0) at res_pjsip.c:4519 delay = {sec = 0, msec = 10} #6 0x00007f35a029d76f in thread_main (param=0x2abc948) at ../src/pj/os_core_unix.c:541 rec = 0x2abc948 result = 0x0 rc = 0 #7 0x00007f359e075dd5 in start_thread () at /usr/lib64/libpthread.so.0 #8 0x00007f359d41802d in clone () at /usr/lib64/libc.so.6 This again looks to be related to the timer implementation. Is there anything that can be done to fix this and the other timer-based issues I've raised before? Kind regards, Ross