<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;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p></p>
<div><span style="font-size: 10pt;"><span style="font-size: 12pt;">Hi,</span><br>
</span></div>
<div><span style="font-size: 10pt;"><span style="font-size: 12pt;"><br>
</span></span></div>
<div><span style="font-size: 10pt;"><span style="font-size: 12pt;">Is the below segfault caused by Asterisk or
<span>Jansson</span>? Currently using version 2.9 as packaged with Fedora 23.</span></span></div>
<div><span style="font-size: 10pt;"><br>
</span></div>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<div><span style="font-size: 10pt;">#0 0x0000000000538392 in ast_json_free (p=0x7f3300000002) at json.c:190</span></div>
<div><span style="font-size: 10pt;"> mem = 0x7f32ffffffba</span></div>
<div><span style="font-size: 10pt;"> free_list = 0x7f3360000970</span></div>
<div><span style="font-size: 10pt;"> __PRETTY_FUNCTION__ = "ast_json_free"</span></div>
<div><span style="font-size: 10pt;">#1 0x00007f34fc3d5701 in json_delete () at /lib64/libjansson.so.4</span></div>
<div><span style="font-size: 10pt;">#2 0x00007f34fc3d0631 in hashtable_do_clear () at /lib64/libjansson.so.4</span></div>
<div><span style="font-size: 10pt;">#3 0x00007f34fc3d06d9 in hashtable_close () at /lib64/libjansson.so.4</span></div>
<div><span style="font-size: 10pt;">#4 0x00007f34fc3d5721 in json_delete () at /lib64/libjansson.so.4</span></div>
<div><span style="font-size: 10pt;">#5 0x0000000000538153 in json_decref (json=0x7f33d8497fa8) at /usr/include/jansson.h:112</span></div>
<div><span style="font-size: 10pt;">#6 0x00000000005384bc in ast_json_unref (json=0x7f33d8497fa8) at json.c:224</span></div>
<div><span style="font-size: 10pt;"> __mem___LINE__ = 0x7f33d8497f60</span></div>
<div><span style="font-size: 10pt;"> free_list = 0x7f3382395ba0</span></div>
<div><span style="font-size: 10pt;"> mem = 0x1100000074</span></div>
<div><span style="font-size: 10pt;">#7 0x0000000000539b0f in json_payload_destructor (obj=0x7f33d82f9f80) at json.c:922</span></div>
<div><span style="font-size: 10pt;"> payload = 0x7f33d82f9f80</span></div>
<div><span style="font-size: 10pt;">#8 0x000000000045e560 in internal_ao2_ref (user_data=0x7f33d82f9f80, delta=-1, file=0x6b8c5b "astobj2.c", line=505, func=0x6b8ee8 <__FUNCTION__.8971> "__ao2_ref") at astobj2.c:438</span></div>
<div><span style="font-size: 10pt;"> obj = 0x7f33d82f9f68</span></div>
<div><span style="font-size: 10pt;"> obj_mutex = 0x7f3382395bb8</span></div>
<div><span style="font-size: 10pt;"> obj_rwlock = 0x7f33d8497fa8</span></div>
<div><span style="font-size: 10pt;"> current_value = 0</span></div>
<div><span style="font-size: 10pt;"> ret = 1</span></div>
<div><span style="font-size: 10pt;"> __PRETTY_FUNCTION__ = "internal_ao2_ref"</span></div>
<div><span style="font-size: 10pt;">#9 0x000000000045e811 in __ao2_ref (user_data=0x7f33d82f9f80, delta=-1) at astobj2.c:505</span></div>
<div><span style="font-size: 10pt;"> __FUNCTION__ = "__ao2_ref"</span></div>
<div><span style="font-size: 10pt;">#10 0x000000000045e882 in __ao2_cleanup (obj=0x7f33d82f9f80) at astobj2.c:518</span></div>
<div><span style="font-size: 10pt;">#11 0x00000000005e0b26 in stasis_message_dtor (obj=0x7f33d82cb090) at stasis_message.c:107</span></div>
<div><span style="font-size: 10pt;"> message = 0x7f33d82cb090</span></div>
<div><span style="font-size: 10pt;">#12 0x000000000045e560 in internal_ao2_ref (user_data=0x7f33d82cb090, delta=-1, file=0x6b8c5b "astobj2.c", line=505, func=0x6b8ee8 <__FUNCTION__.8971> "__ao2_ref") at astobj2.c:438</span></div>
<div><span style="font-size: 10pt;"> obj = 0x7f33d82cb078</span></div>
<div><span style="font-size: 10pt;"> obj_mutex = 0x3758d50</span></div>
<div><span style="font-size: 10pt;"> obj_rwlock = 0x7f33d82cb090</span></div>
<div><span style="font-size: 10pt;"> current_value = 0</span></div>
<div><span style="font-size: 10pt;"> ret = 1</span></div>
<div><span style="font-size: 10pt;"> __PRETTY_FUNCTION__ = "internal_ao2_ref"</span></div>
<div><span style="font-size: 10pt;">#13 0x000000000045e811 in __ao2_ref (user_data=0x7f33d82cb090, delta=-1) at astobj2.c:505</span></div>
<div><span style="font-size: 10pt;"> __FUNCTION__ = "__ao2_ref"</span></div>
<div><span style="font-size: 10pt;">#14 0x000000000045e882 in __ao2_cleanup (obj=0x7f33d82cb090) at astobj2.c:518</span></div>
<div><span style="font-size: 10pt;">#15 0x00000000005cf81f in dispatch_exec_async (local=0x7f3382395ca0) at stasis.c:716</span></div>
<div><span style="font-size: 10pt;"> sub = 0x3758d50</span></div>
<div><span style="font-size: 10pt;"> message = 0x7f33d82cb090</span></div>
<div><span style="font-size: 10pt;">#16 0x00000000005ee36a in ast_taskprocessor_execute (tps=0x2c23f20) at taskprocessor.c:965</span></div>
<div><span style="font-size: 10pt;"> local = {local_data = 0x3758d50, data = 0x7f33d82cb090}</span></div>
<div><span style="font-size: 10pt;"> t = 0x7f33d82d0cd0</span></div>
<div><span style="font-size: 10pt;"> size = 0</span></div>
<div><span style="font-size: 10pt;"> __PRETTY_FUNCTION__ = "ast_taskprocessor_execute"</span></div>
<div><span style="font-size: 10pt;">#17 0x00000000005ec695 in default_tps_processing_function (data=0x3982ab0) at taskprocessor.c:185</span></div>
<div><span style="font-size: 10pt;"> listener = 0x3982ab0</span></div>
<div><span style="font-size: 10pt;"> tps = 0x2c23f20</span></div>
<div><span style="font-size: 10pt;"> pvt = 0x3758de0</span></div>
<div><span style="font-size: 10pt;"> sem_value = 0</span></div>
<div><span style="font-size: 10pt;"> res = 0</span></div>
<div><span style="font-size: 10pt;"> __PRETTY_FUNCTION__ = "default_tps_processing_function"</span></div>
<div><span style="font-size: 10pt;">#18 0x0000000000603b1c in dummy_start (data=0x3813c80) at utils.c:1235</span></div>
<div><span style="font-size: 10pt;"> __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {0, -7924327506780593733, 140728438389919, 139859204859648, 507904, 0, -7924327506755427909, 7809284277735154107}, __mask_was_saved = 0}}, __pad = {0x7f3382395df0,
0x0, 0x0, 0x0}}</span></div>
<div><span style="font-size: 10pt;"> __cancel_routine = 0x45257a <ast_unregister_thread></span></div>
<div><span style="font-size: 10pt;"> __cancel_arg = 0x7f3382396700</span></div>
<div><span style="font-size: 10pt;"> __not_first_call = 0</span></div>
<div><span style="font-size: 10pt;"> ret = 0x0</span></div>
<div><span style="font-size: 10pt;"> a = {start_routine = 0x5ec5ff <default_tps_processing_function>, data = 0x3982ab0, name = 0x2c36090 "default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()"}</span></div>
<div><span style="font-size: 10pt;">#19 0x00007f34fbb7361a in start_thread () at /lib64/libpthread.so.0</span></div>
<div><span style="font-size: 10pt;">#20 0x00007f34faeaf5fd in clone () at /lib64/libc.so.6</span></div>
</blockquote>
<br>
<p></p>
<div>If this looks like an Asterisk issue I will raise a ticket.</div>
<div><br>
</div>
<div>Kind regards,</div>
<div><br>
</div>
<div>Ross</div>
</div>
</body>
</html>