<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi All,</p>
<p><br>
</p>
<p>The database issues appear to be resolved in the latest 13 branch which is fantastic! Thank you all for your efforts.</p>
<p><br>
</p>
<p>I'm now facing another issue which could be related to PJSIP or Asterisk. It looks like an issue with Presence. Here is a snippet of the backtrace:</p>
<p><br>
</p>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<p></p>
<div><span style="font-size: 10pt;">Program terminated with signal SIGSEGV, Segmentation fault.</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;">#0 pj_atomic_dec_and_get (atomic_var=0x200000002) at ../src/pj/os_core_unix.c:962</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;">962</span><span class="Apple-tab-span" style="white-space: pre; font-size: 10pt;">
</span><span style="font-size: 10pt;"> pj_mutex_lock( atomic_var->mutex );</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;">[Current thread is 1 (Thread 0x7f3120987700 (LWP 31576))]</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;">#0 0x00007f31b4c26b29 in pj_atomic_dec_and_get (atomic_var=0x200000002) at ../src/pj/os_core_unix.c:962</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> new_value = <optimized out></span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;">#1 0x00007f31b4c2b89d in pj_grp_lock_dec_ref (glock=0x7f3169033008) at ../src/pj/lock.c:554</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> cnt = <optimized out></span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;">#2 0x00007f31b4c2b89d in pj_grp_lock_dec_ref (glock=0x7f3169033008) at ../src/pj/lock.c:631</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;">#3 0x00007f31b69a5629 in evsub_destroy (sub=sub@entry=0x7f31600ffb68) at ../src/pjsip-simple/evsub.c:574</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> dlgsub_head = <optimized out></span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> dlgsub = <optimized out></span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;">#4 0x00007f31b69a57b8 in set_state (sub=sub@entry=0x7f31600ffb68, state=PJSIP_EVSUB_STATE_TERMINATED, state_str=<optimized out>, event=0x7f3120986ab0, event@entry=0x0, reason=reason@entry=0x0) at ../src/pjsip-simple/evsub.c:622</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> prev_state = PJSIP_EVSUB_STATE_ACTIVE</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> dummy_event = {prev = 0x7f311c9567e8, next = 0x0, type = PJSIP_EVENT_USER, body = {timer = {entry = 0x0}, tsx_state = {src = {rdata = 0x0, tdata = 0x0, timer = 0x0, status = 0, data = 0x0}, tsx = 0x0, prev_state =
0, type = PJSIP_EVENT_UNKNOWN}, tx_msg = {tdata = 0x0}, tx_error = {tdata = 0x0, tsx = 0x0}, rx_msg = {rdata = 0x0}, user = {user1 = 0x0, user2 = 0x0, user3 = 0x0, user4 = 0x0}}}</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;">#5 0x00007f31b69a74d7 in pjsip_evsub_send_request (sub=0x7f31600ffb68, tdata=tdata@entry=0x7f311c9567e8) at ../src/pjsip-simple/evsub.c:1378</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> status = 0</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;">#6 0x00007f314e52c086 in internal_pjsip_evsub_send_request (sub_tree=sub_tree@entry=0x7f3160077608, tdata=tdata@entry=0x7f311c9567e8) at res_pjsip_pubsub.c:1581</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> selector = {type = PJSIP_TPSELECTOR_NONE, u = {transport = 0x0, listener = 0x0, ptr = 0x0}}</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;">#7 0x00007f314e532afc in send_notify (tdata=<optimized out>, sub_tree=0x7f3160077608) at res_pjsip_pubsub.c:1727</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> res = <optimized out></span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> evsub = <optimized out></span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> tdata = 0x7f311c9567e8</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;">#8 0x00007f314e532afc in send_notify (sub_tree=sub_tree@entry=0x7f3160077608, force_full_state=force_full_state@entry=1) at res_pjsip_pubsub.c:2179</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> evsub = <optimized out></span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> tdata = 0x7f311c9567e8</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;">#9 0x00007f314e532c02 in serialized_pubsub_on_server_timeout (userdata=0x7f3160077608) at res_pjsip_pubsub.c:3264</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> sub_tree = 0x7f3160077608</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> dlg = 0x7f317811feb8</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;">#10 0x00000000005ea3c3 in ast_taskprocessor_execute (tps=0x7f31601d9ab8) at taskprocessor.c:850</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> local = {local_data = 0x7f3120987700, data = 0x5f11a2 <ast_threadstorage_set_ptr+60>}</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> t = 0x7f3175582430</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> size = 1</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> __PRETTY_FUNCTION__ = "ast_taskprocessor_execute"</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;">#11 0x00000000005f35d4 in execute_tasks (data=0x7f31601d9ab8) at threadpool.c:1322</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> tps = 0x7f31601d9ab8</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;">#12 0x00000000005ea3c3 in ast_taskprocessor_execute (tps=0x1e23998) at taskprocessor.c:850</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> local = {local_data = 0x7f3120986c80, data = 0x1e22330}</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> t = 0x7f31b00067f0</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> size = 31597416</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> __PRETTY_FUNCTION__ = "ast_taskprocessor_execute"</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;">#13 0x00000000005f1889 in threadpool_execute (pool=0x1e22388) at threadpool.c:351</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> __PRETTY_FUNCTION__ = "threadpool_execute"</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;">#14 0x00000000005f2f40 in worker_active (worker=0x7f31c0009cd8) at threadpool.c:1105</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> alive = 1</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;">#15 0x00000000005f2cf8 in worker_start (arg=0x7f31c0009cd8) at threadpool.c:1024</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> worker = 0x7f31c0009cd8</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> saved_state = (ZOMBIE | unknown: 32560)</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> __PRETTY_FUNCTION__ = "worker_start"</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;">#16 0x00000000005ff1d1 in dummy_start (data=0x7f31c00011c0) at utils.c:1235</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {0, 2796589904138404041, 139851786295935, 139848976987904, 507904, 507904, 2796589904146792649, -2833544559795568439}, __mask_was_saved = 0}}, __pad = {0x7f3120986df0,
0x0, 0x7f3120987b68, 0x7f31d2898438 <__pthread_keys+344>}}</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> __cancel_routine = 0x451ba8 <ast_unregister_thread></span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> __cancel_arg = 0x7f3120987700</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> __not_first_call = 0</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> ret = 0x7f31d1c778d8</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;"> a = {start_routine = 0x5f2c71 <worker_start>, data = 0x7f31c0009cd8, name = 0x7f31c0008480 "worker_start started at [ 1079] threadpool.c worker_thread_start()"}</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;">#17 0x00007f31d268661a in start_thread () at /lib64/libpthread.so.0</span></div>
<p></p>
<p></p>
<div><span style="font-size: 10pt;">#18 0x00007f31d19c259d in clone () at /lib64/libc.so.6</span></div>
<p></p>
</blockquote>
<p></p>
<div></div>
<br>
<p></p>
<p>From Gerrit I notice that <span>Richard Mudgett has a change to related to presence, and wondered if this commit would resolve the above issue?</span></p>
<p><span><br>
</span></p>
<p><span>Kind regards,</span></p>
<p><span><br>
Ross</span></p>
<p><br>
</p>
</div>
</body>
</html>