(gdb) thread 307 [Switching to thread 307 (Thread 0x7f00e40e0700 (LWP 29270))] #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 185 ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: No such file or directory. (gdb) bt full #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 No locals. #1 0x0000556dc625945e in __ast_cond_wait (filename=0x556dc638cb8b "stasis.c", lineno=800, func=0x556dc638d1c0 <__PRETTY_FUNCTION__.16005> "dispatch_message", cond_name=0x556dc638ccb6 "&std.cond", mutex_name=0x556dc638ccac "&std.lock", cond=0x7f00e40dd1e8, t=0x7f00e40dd1b0) at lock.c:600 res = 21869 #2 0x0000556dc62f4cfe in dispatch_message (sub=0x556dc89500d0, message=0x7f01442aa3f0, synchronous=1) at stasis.c:800 std = {lock = {mutex = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 1, __kind = 1, __spins = 0, __elision = 0, __list = {__prev = 0x0, __next = 0x0}}, __size = '\000' , "\001\000\000\000\001", '\000' , __align = 0}, track = 0x556dc616ce77 <__ao2_lock+147>, tracking = 0}, cond = { __data = {__lock = 0, __futex = 1, __total_seq = 1, __wakeup_seq = 0, __woken_seq = 0, __mutex = 0x7f00e40dd1b0, __nwaiters = 2, __broadcast_seq = 0}, __size = "\000\000\000\000\001\000\000\000\001", '\000' , "\260\321\r\344\000\177\000\000\002\000\000\000\000\000\000", __align = 4294967296}, complete = 0, task_data = 0x7f01442aa3f0} __PRETTY_FUNCTION__ = "dispatch_message" #3 0x0000556dc62f4e33 in publish_msg (topic=0x556dc89505e0, message=0x7f01442aa3f0, sync_sub=0x556dc89500d0) at stasis.c:835 sub = 0x556dc89500d0 i = 0 __PRETTY_FUNCTION__ = "publish_msg" #4 0x0000556dc62f4ed4 in stasis_publish_sync (sub=0x556dc89500d0, message=0x7f01442aa3f0) at stasis.c:850 No locals. #5 0x0000556dc6306b98 in stasis_message_router_publish_sync (router=0x556dc894f520, message=0x7f01442aa3f0) at stasis_message_router.c:288 No locals. #6 0x00007f00fc563eec in cdr_write (chan=0x7f01301039b0, cmd=0x7f00e40dd340 "CDR", parse=0x7f00e40dd344 "src_account", value=0x7f00e40dd4d1 "account1234") at func_cdr.c:568 message = 0x7f01442aa3f0 payload = 0x7f014409f6e0 router = 0x556dc894f520 __PRETTY_FUNCTION__ = "cdr_write" #7 0x0000556dc62af17a in ast_func_write (chan=0x7f01301039b0, function=0x7f00e40dd400 "CDR(src_account)", value=0x7f00e40dd4d1 "account1234") at pbx_functions.c:711 res = 32513 u = 0x7f014420e520 copy = 0x7f00e40dd340 "CDR" args = 0x7f00e40dd344 "src_account" acfptr = 0x7f00fc766080 __PRETTY_FUNCTION__ = "ast_func_write" #8 0x0000556dc62b3ea0 in pbx_builtin_setvar_helper (chan=0x7f01301039b0, name=0x7f00e40dd4c0 "CDR(src_account)", value=0x7f00e40dd4d1 "account1234") at pbx_variables.c:1036 function = 0x7f00e40dd400 "CDR(src_account)" newvariable = 0x345c638d1d1 headp = 0x556dc638d1d1 <__PRETTY_FUNCTION__.16016> nametail = 0x7f00e40dd4c0 "CDR(src_account)" old_value_existed = 0 __PRETTY_FUNCTION__ = "pbx_builtin_setvar_helper" #9 0x0000556dc62b434e in pbx_builtin_setvar (chan=0x7f01301039b0, data=0x7f00e40ddb00 "CDR(src_account)=account1234") at pbx_variables.c:1104 name = 0x7f00e40dd4c0 "CDR(src_account)" value = 0x7f00e40dd4d1 "account1234" mydata = 0x7f00e40dd4d1 "account1234" __PRETTY_FUNCTION__ = "pbx_builtin_setvar" #10 0x0000556dc62a98d5 in pbx_exec (c=0x7f01301039b0, app=0x556dc896c510, data=0x7f00e40ddb00 "CDR(src_account)=account1234") at pbx_app.c:484 res = 21869 u = 0x0 saved_c_appl = 0x0 saved_c_data = 0x0 __PRETTY_FUNCTION__ = "pbx_exec" #11 0x0000556dc6295436 in pbx_extension_helper (c=0x7f01301039b0, con=0x0, context=0x7f0130104368 "from-carrier", exten=0x7f01301043b8 "123456789", priority=2, label=0x0, callerid=0x7f01301f9f80 "12345", action=E_SPAWN, found=0x7f00e40dfbdc, combined_find_spawn=1) at pbx.c:2884 e = 0x7f00ec0442d0 app = 0x556dc896c510 substitute = 0x7f00e40dd5e0 "CDR(src_account)=${CHANNEL(endpoint)}" res = 32512 q = {incstack = {0x0 }, stacklen = 0, status = 5, swo = 0x0, data = 0x0, foundcontext = 0x7f0130104368 "from-carrier"} passdata = "CDR(src_account)=account1234\000ier\000"... matching_action = 0 __PRETTY_FUNCTION__ = "pbx_extension_helper" #12 0x0000556dc6298df9 in ast_spawn_extension (c=0x7f01301039b0, context=0x7f0130104368 "from-carrier", exten=0x7f01301043b8 "123456789", priority=2, callerid=0x7f01301f9f80 "12345", found=0x7f00e40dfbdc, combined_find_spawn=1) at pbx.c:4109 No locals. #13 0x0000556dc6299b6e in __ast_pbx_run (c=0x7f01301039b0, args=0x0) at pbx.c:4284 digit = 0 invalid = 0 timeout = 0 dst_exten = '\000' , "\250\375\r\344\000\177\000\000\260\375\r\344\000\177\000\000\000\000\000\000\000\000\000\000\270\375\r\344\000\177\000\000 ", '\000' , "\320\376\r\344\000\177", '\000' , "\230\332\t\364\000\177\000\000\000\000\000\000\000\000\000\000\200\332\t\364\000\177\000\000\300\375\r\344\000\177\000\000\310\375\r\344\000\177\000\000\320\375\r\344\000\177\000\000 \000\000D\001\177\000\000\320\375\r\344\000\177\000\000 \000\000\000\000\000\000\000\360\332\001\000\000\000\000\000\020\065>D\001\177\000\000\300\300\211\060\001\177\000\000֗-\206\001\177\000\000\000\000\000\000\000\000\000\000\320"... pos = 0 found = 1 res = 0 autoloopflag = 0 error = 0 pbx = 0x7f0144308500 callid = 0x0 __PRETTY_FUNCTION__ = "__ast_pbx_run" #14 0x0000556dc629b4a5 in pbx_thread (data=0x7f01301039b0) at pbx.c:4604 c = 0x7f01301039b0 #15 0x0000556dc632a743 in dummy_start (data=0x7f01301912e0) at utils.c:1235 __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {0, -3800737693686747151, 0, 139641668282703, 139641802852096, 139643086028992, -3800737693695135759, -6945864220297056271}, __mask_was_saved = 0}}, __pad = {0x7f00e40dfef0, 0x0, 0x7f01863a81a2 <__libc_thread_freeres+34>, 0x7f00d5cc294f}} __cancel_routine = 0x556dc615ff4d __cancel_arg = 0x7f00e40e0700 __not_first_call = 0 ret = 0x0 a = {start_routine = 0x556dc629b480 , data = 0x7f01301039b0, name = 0x7f01302ec120 "pbx_thread", ' ' , "started at [ 4630] pbx.c ast_pbx_start()"} #16 0x00007f01870ca424 in start_thread (arg=0x7f00e40e0700) at pthread_create.c:333 __res = pd = 0x7f00e40e0700 now = unwind_buf = {cancel_jmp_buf = {{jmp_buf = {139641802852096, 3837305680939528177, 0, 139641668282703, 139641802852096, 139643086028992, -3800737693688844303, -3799957030133354511}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}} not_first_call = pagesize_m1 = sp = freesize = __PRETTY_FUNCTION__ = "start_thread" #17 0x00007f01863469bf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105