[Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Core was generated by `/usr/sbin/asterisk -f -vvvg -c'. Program terminated with signal SIGSEGV, Segmentation fault. #0 mysql_get_character_set_info (mysql=mysql@entry=0x7f2e2c040d98, csinfo=csinfo@entry=0x7f2db5002a70) at /export/home/pb2/build/sb_0-17781605-1454370718.35/mysql-5.7.11/libmysql/libmysql.c:1056 1056 /export/home/pb2/build/sb_0-17781605-1454370718.35/mysql-5.7.11/libmysql/libmysql.c: No such file or directory. (gdb) bt full #0 mysql_get_character_set_info (mysql=mysql@entry=0x7f2e2c040d98, csinfo=csinfo@entry=0x7f2db5002a70) at /export/home/pb2/build/sb_0-17781605-1454370718.35/mysql-5.7.11/libmysql/libmysql.c:1056 No locals. #1 0x00007f2e58c1146f in myodbc_do_connect (dbc=dbc@entry=0x7f2e2c040d90, ds=ds@entry=0x7f2e2c0416f0) at /export/home/pb2/build/sb_0-18248528-1457730093.52/mysql-connector-odbc-5.3.6-src/driver/connect.c:285 my_charset = {number = 496, state = 0, csname = 0x7f2e2c0416f0 "@\367\001,.\177", name = 0xc , comment = 0x7f2e2c01f9a0 "D", dir = 0xfffffffd , mbminlen = 738465520, mbmaxlen = 32558} rc = 0 mysql = 0x7f2e2c040d98 flags = 131072 opt_ssl_verify_server_cert = 4294967295 on = 1 '\001' max_long = 18446744073709551615 #2 0x00007f2e58c119de in MySQLConnect (hdbc=hdbc@entry=0x7f2e2c040d90, szDSN=szDSN@entry=0x7f2e2c01f9a0, cbDSN=cbDSN@entry=-3, szUID=szUID@entry=0x0, cbUID=cbUID@entry=-3, szAuth=szAuth@entry=0x0, cbAuth=-3) at /export/home/pb2/build/sb_0-18248528-1457730093.52/mysql-connector-odbc-5.3.6-src/driver/connect.c:535 rc = dbc = 0x7f2e2c040d90 ds = 0x7f2e2c0416f0 #3 0x00007f2e58c2b684 in SQLConnect (hdbc=0x7f2e2c040d90, dsn=, dsn_len_in=-3, user=, user_len_in=-3, auth=0x0, auth_len_in=-3) at /export/home/pb2/build/sb_0-18248528-1457730093.52/mysql-connector-odbc-5.3.6-src/driver/ansi.c:284 errors = 701401828 rc = dsn_len = 5 user_len = 0 auth_len = 0 dsnw = 0x7f2e2c01f9a0 userw = 0x0 authw = 0x7f2db5002bac #4 0x00007f2e59667890 in SQLConnect () from /usr/lib/x86_64-linux-gnu/libodbc.so.2 No symbol table info available. #5 0x00007f2e598c35e8 in odbc_obj_connect (obj=0x7f2e2c0283c8) at res_odbc.c:813 err = 0 mlen = 0 msg = "\250\317\002,.\177\000\000hC\000,.\177\000\000\030\320\002,.\177\000\000\310\r\222\002\000\000\000\000\250\317\002,.\177\000\000\030\320\002,.\177\000\000\250\317\002,.\177\000\000\340\264\002,.\177\000\000\000\000\000\000.\177\000\000\310\r\222\002\000\000\000\000p\032\002,.\177\000\000\265\247Z\000\000\000\000\000\070\314\002,.\177\000\000hC\000,.\177\000\000@(\002,.\177\000\000\000\000\000\000\000\000\000\000@?\000\265-\177\000\000\000\000\000\000\000\000\000\000y2*\325-\177\000\000\360>\001,.\177\000\000@(\002,.\177\000\000\063\335V\000\000\000\000\000@?\000\265-\177\000\000y2*\325-\177\000\000\060K\000,.\177\000" state = "\300\317\002,.\177\000\000|\210" res = con = 0x7f2e2c02d050 negative_cache_expiration = 0 #6 _ast_odbc_request_obj2 (name=, flags=..., file=, function=, lineno=) at res_odbc.c:722 obj = 0x7f2e2c0283c8 class = #7 0x00007f2e598c390b in _ast_odbc_request_obj (name=name@entry=0x35cd27e "db145", check=check@entry=0, file=file@entry=0x7f2dd52a31a0 "func_odbc.c", function=function@entry=0x7f2dd52a353a <__PRETTY_FUNCTION__.17175> "acf_odbc_write", lineno=lineno@entry=337) at res_odbc.c:738 No locals. #8 0x00007f2dd529ebfc in acf_odbc_write (chan=0x7f2e2c004368, cmd=, s=, value=) at func_odbc.c:337 obj = 0x0 query = 0x35cd1e0 t = varname = "ARG4\000\000\000\000\232Y0[.\177" i = dsn = transactional = values = {argc = 0, argv = 0x7f2db5003fc8, field = {0x0 }} args = {argc = 4, argv = 0x7f2db50042f8, field = {0x7f2db5004685 "116-1459942629.8", 0x7f2db5004696 "116-1459942629.8", 0x7f2db50046a7 "pbx_1459942642_116-1459942630.9", 0x7f2db50046c7 "8930", 0x0 }} stmt = 0x0 rows = 0 buf = 0x7f2e2c005830 insertbuf = 0x7f2e2c0029a0 status = 0x7f2dd52a32b9 "FAILURE" __PRETTY_FUNCTION__ = "acf_odbc_write" #9 0x000000000056996a in ast_func_write (chan=chan@entry=0x7f2e2c004368, function=, value=value@entry=0x7f2db500487d "") at pbx_functions.c:696 res = u = 0x7f2e2c00fb90 copy = 0x7f2db5004670 "DB_W_insertCdrGrabac" ---Type to continue, or q to quit--- acfptr = 0x35cd410 __PRETTY_FUNCTION__ = "ast_func_write" #10 0x000000000056deb4 in pbx_builtin_setvar_helper (chan=chan@entry=0x7f2e2c004368, name=name@entry=0x7f2db5004820 "DB_W_insertCdrGrabac(116-1459942629.8,116-1459942629.8,pbx_1459942642_116-1459942630.9,8930)", value=value@entry=0x7f2db500487d "") at pbx_variables.c:1036 function = newvariable = headp = nametail = 0x7f2db5004820 "DB_W_insertCdrGrabac(116-1459942629.8,116-1459942629.8,pbx_1459942642_116-1459942630.9,8930)" old_value_existed = 0 __PRETTY_FUNCTION__ = "pbx_builtin_setvar_helper" #11 0x000000000056df9f in pbx_builtin_setvar (chan=0x7f2e2c004368, data=) at pbx_variables.c:1104 name = 0x7f2db5004820 "DB_W_insertCdrGrabac(116-1459942629.8,116-1459942629.8,pbx_1459942642_116-1459942630.9,8930)" value = 0x7f2db500487d "" mydata = 0x7f2db500487d "" __PRETTY_FUNCTION__ = "pbx_builtin_setvar" #12 0x00000000005658d8 in pbx_exec (c=c@entry=0x7f2e2c004368, app=app@entry=0x297ec80, data=data@entry=0x7f2db5004e40 "DB_W_insertCdrGrabac(116-1459942629.8,116-1459942629.8,pbx_1459942642_116-1459942630.9,8930)=") at pbx_app.c:485 res = u = 0x0 saved_c_appl = 0x3512330 "Macro" saved_c_data = 0x7f2db5007aac "PBX_Guardar_fecha_descuelgue_llamada" __PRETTY_FUNCTION__ = "pbx_exec" #13 0x000000000055ac35 in pbx_extension_helper (c=c@entry=0x7f2e2c004368, context=0x7f2e2c004d20 "macro-PBX_Guardar_fecha_descuelgue_llamada", exten=exten@entry=0x7f2e2c004d70 "s", priority=priority@entry=8, label=label@entry=0x0, callerid=callerid@entry=0x7f2e2c022c60 "666666666", action=action@entry=E_SPAWN, found=found@entry=0x7f2db5006fc4, combined_find_spawn=combined_find_spawn@entry=1, con=0x0) at pbx.c:2834 e = app = 0x297ec80 substitute = res = q = {incstack = {0x0 }, stacklen = 0, status = 5, swo = 0x0, data = 0x0, foundcontext = 0x7f2e2c004d20 "macro-PBX_Guardar_fecha_descuelgue_llamada"} passdata = "DB_W_insertCdrGrabac(116-1459942629.8,116-1459942629.8,pbx_1459942642_116-1459942630.9,8930)=\000\071\071\064\062\066\063\060.9,SIP/proxyt.mytesttrunk1.com-00000005,116-1459942629.8)=()\000\000\000\001\000\000\000@b\000\265-\177\000\000@b\000\265-\177\000\000\270\032\000,.\177\000\000@b\000\265-\177\000\000\000"... matching_action = #14 0x000000000055c7c7 in ast_spawn_extension (c=c@entry=0x7f2e2c004368, context=, exten=exten@entry=0x7f2e2c004d70 "s", priority=priority@entry=8, callerid=callerid@entry=0x7f2e2c022c60 "666666666", found=found@entry=0x7f2db5006fc4, combined_find_spawn=combined_find_spawn@entry=1) at pbx.c:4056 No locals. #15 0x00007f2de5dceaa0 in _macro_exec (chan=, data=, exclusive=) at app_macro.c:417 c = e = foundx = 1 s = tmp = 0x7f2db5006ed0 "PBX_Guardar_fecha_descuelgue_llamada" cur = rest = macro = fullmacro = "macro-PBX_Guardar_fecha_descuelgue_llamada\000\000\000\000\000\000\000q\000\265-\177", '\000' varname = '\000' , " ", '\000' , ".\177\000" runningapp = "Set\000onitor\000\000-\177\000\000\000\000\000\000-\177\000\000\377\377\377\377-\177", '\000' , "\377\377\377\377\377\377\377\377c\000\000\000\000\000\000" runningdata = "DB_W_insertCdrGrabac(${IDUNIQUE},${CHANNEL(linkedid)},${CUT(PBX_FICHERO,/,7)},${IDCLIENTE})=\000UEID},${CHANNEL},${CHANNEL(linkedid)})=()\000\000@u|\002\000\000\000\000\200\372\000,.\177\000\000]ZZ", '\000' , "\252\331[\000\000\000\000\000\240\364\000,.\177\000\000\a\002\000\000\000\000\000\000 v\000\265-\177\000\000"... oldargs = {0x0 } argc = x = res = 0 oldexten = "666666666", '\000' oldpriority = gosub_level = pc = "1\000\000\000\000\000\000\000\232Y0[.\177\000\000\000\000\000\000\000\000\000\000)=^\000\000\000\000\000\340q\000\000\000\000\000\000\001\000\000\000\000\000\000\000+=^", '\000' depthc = "1\000\000\000\000\000\000\000\000\000\000" oldcontext = "dialTrunk", '\000' inhangupc = offset = 1 depth = 0 maxdepth = 7 setmacrocontext = ---Type to continue, or q to quit--- autoloopflag = inhangup = 0 tmp_subst = 0x7f2e2c0200c0 save_in_subroutine = macro_store = __PRETTY_FUNCTION__ = "_macro_exec" #16 0x00000000005658d8 in pbx_exec (c=c@entry=0x7f2e2c004368, app=app@entry=0x35122d0, data=data@entry=0x7f2db5007aac "PBX_Guardar_fecha_descuelgue_llamada") at pbx_app.c:485 res = u = 0x7f2e2c008540 saved_c_appl = 0x7f2dd3c32ad2 "AppDial" saved_c_data = 0x7f2dd3c32ada "(Outgoing Line)" __PRETTY_FUNCTION__ = "pbx_exec" #17 0x000000000044389f in ast_app_exec_macro (autoservice_chan=autoservice_chan@entry=0x7f2dbc04cdb8, macro_chan=macro_chan@entry=0x7f2e2c004368, macro_args=0x7f2db5007aac "PBX_Guardar_fecha_descuelgue_llamada") at app.c:340 macro_app = 0x35122d0 res = __PRETTY_FUNCTION__ = "ast_app_exec_macro" #18 0x00007f2dd3c31419 in dial_exec_full (chan=0x7f2dbc04cdb8, data=, peerflags=peerflags@entry=0x7f2db50086f0, continue_exec=continue_exec@entry=0x0) at app_dial.c:2858 macro_result_peer = macro_res = number = dial_end_raised = 0 res = rest = 0x0 cur = out_chans = {first = 0x0, last = 0x0} outgoing = tmp = peer = 0x7f2e2c004368 to = 137831 num = {chan = 0x7f2dbc04cdb8, busy = 0, congestion = 0, nochan = 0} cause = 0 config = {features_caller = {flags = 0}, features_callee = {flags = 0}, start_time = {tv_sec = 0, tv_usec = 0}, nexteventts = {tv_sec = 0, tv_usec = 0}, feature_start_time = {tv_sec = 0, tv_usec = 0}, feature_timer = 0, timelimit = 0, play_warning = 0, warning_freq = 0, warning_sound = 0x0, end_sound = 0x0, start_sound = 0x0, flags = 0, end_bridge_callback = 0x0, end_bridge_callback_data = 0x0, end_bridge_callback_data_fixup = 0x0} calldurationlimit = {tv_sec = 0, tv_usec = 0} dtmfcalled = dtmfcalling = dtmf_progress = pa = {sentringing = 0, privdb_val = 0, privcid = '\000' , privintro = '\000' , status = "ANSWER\000R\000GS", '\000' } sentringing = moh = outbound_group = result = 0 parse = opermode = delprivintro = args = {argc = 3, argv = 0x7f2db5007bf8, peers = 0x7f2db5007a80 "SIP", timeout = 0x7f2db5007aa6 "150", options = 0x7f2db5007aaa "M(PBX_Guardar_fecha_descuelgue_llamada", url = 0x0} opts = {flags = 7342080} opt_args = {0x7f2db5008580 "", 0xb50084c0 , 0x7f2d00000000 , 0xffffffff00000000 , 0x0, 0x7f2db5007aac "PBX_Guardar_fecha_descuelgue_llamada", 0x0, 0x7f2db50084f0 "", 0x7f2e00000000 " ", 0x7f2d00000000 , 0x7f2d00000000 , 0xffffffff , 0x7f2e5b30599a <_IO_vfprintf_internal+22490> "\200\275(\373\377\377", 0x0, 0x0, 0xc00000000 , 0xffffffffffffffff , 0x7f2e0000000c "", 0xffffffffffffffff } num_dialed = ignore_cc = 1 device_name = "SIP/proxyt.mytesttrunk1.com/666666666\000\000\000i?0[.\177\000\000\000\000\000\000\000\000\000\000i?0[.\177\000\000P~\000\265-\177\000\000\232Y0[.\177\000" forced_clid_name = "`~\000\265-\177\000\000\020\203\000\265-\177\000\000)=^\000\000\000\000\000+=^\000\000\000\000\000 ~\000\265-\177\000\000i?0[\000\000\000\000\060~\000\265-\177", '\000' , "-\177\000\000\000\000\000\000\000\000\000" stored_clid_name = "\000\000\000\000-\177", '\000' , "-\177", '\000' , " ", '\000' , ".\177\000\000\000\000\000\000-\177\000\000\000\000\000\000-\177\000" force_forwards_only = forced_clid = {name = {str = 0x0, char_set = 1, presentation = 0, valid = 0 '\000'}, number = {str = 0x0, plan = 0, presentation = 1, valid = 0 '\000'}, subaddress = {str = 0x0, type = 0, odd_even_indicator = 0 '\000', valid = 0 '\000'}, tag = 0x0} stored_clid = {name = {str = 0x0, char_set = 1, presentation = 0, valid = 0 '\000'}, number = {str = 0x7f2db5007a60 "666666666", plan = 0, presentation = 0, valid = 1 '\001'}, subaddress = {str = 0x0, type = 0, odd_even_indicator = 0 '\000', valid = 0 '\000'}, tag = 0x0} caller = {id = {name = {str = 0x0, char_set = 1, presentation = 0, valid = 0 '\000'}, number = {str = 0x7f2db5007a60 "666666666", plan = 0, presentation = 0, valid = 1 '\001'}, subaddress = {str = 0x0, type = 0, odd_even_indicator = 0 '\000', valid = 0 '\000'}, tag = 0x0}, ani = {name = {str = 0x0, char_set = 1, presentation = 0, valid = 0 '\000'}, number = {str = 0x0, plan = 0, presentation = 0, valid = 0 '\000'}, subaddress = {str = 0x0, type = 0, odd_even_indicator = 0 '\000', valid = 0 '\000'}, tag = 0x0}, priv = {name = {str = 0x0, char_set = 1, presentation = 0, valid = 0 '\000'}, number = {str = 0x0, plan = 0, presentation = 0, valid = 0 '\000'}, subaddress = {str = 0x0, type = 0, odd_even_indicator = 0 '\000', valid = 0 '\000'}, tag = 0x0}, ani2 = 0} ---Type to continue, or q to quit--- max_forwards = __PRETTY_FUNCTION__ = "dial_exec_full" #19 0x00007f2dd3c3293e in dial_exec (chan=, data=) at app_dial.c:3138 peerflags = {flags = 7342080} #20 0x00000000005658d8 in pbx_exec (c=c@entry=0x7f2dbc04cdb8, app=app@entry=0x34d04a0, data=data@entry=0x7f2db5008c60 "SIP/proxyt.mytesttrunk1.com/666666666,150,M(PBX_Guardar_fecha_descuelgue_llamada)TwW") at pbx_app.c:485 res = u = 0x7f2e2c01b150 saved_c_appl = 0x0 saved_c_data = 0x0 __PRETTY_FUNCTION__ = "pbx_exec" #21 0x000000000055ac35 in pbx_extension_helper (c=c@entry=0x7f2dbc04cdb8, context=0x7f2dbc04d770 "dialTrunk", exten=exten@entry=0x7f2dbc04d7c0 "666666666", priority=priority@entry=13, label=label@entry=0x0, callerid=callerid@entry=0x7f2e2c004fc0 "ODBC.INI", action=action@entry=E_SPAWN, found=found@entry=0x7f2db500acec, combined_find_spawn=combined_find_spawn@entry=1, con=0x0) at pbx.c:2834 e = app = 0x34d04a0 substitute = res = q = {incstack = {0x0 }, stacklen = 0, status = 5, swo = 0x0, data = 0x0, foundcontext = 0x7f2dbc04d770 "dialTrunk"} passdata = "SIP/proxyt.mytesttrunk1.com/666666666,150,M(PBX_Guardar_fecha_descuelgue_llamada)TwW\000ntact.com\000,666666666,1)=2016-04-06 13:37:09,6858,0,2810", '\000' ... matching_action = #22 0x000000000055cc6d in ast_spawn_extension (combined_find_spawn=1, found=0x7f2db500acec, callerid=0x7f2e2c004fc0 "ODBC.INI", priority=13, exten=0x7f2dbc04d7c0 "666666666", context=, c=0x7f2dbc04cdb8) at pbx.c:4056 No locals. #23 __ast_pbx_run (c=c@entry=0x7f2dbc04cdb8, args=args@entry=0x0) at pbx.c:4231 digit = 0 invalid = 0 timeout = 0 dst_exten = "\000\256\000\265-\177\000\000\070M\003^.\177\000\000h\256\000\265-\177\000\000\340I\003^.\177\000\000\001\000\000\000\000\000\000\000=\307\342].\177\000\000\000\000\000\000\000\000\000\000\070\341\002^.\177\000\000\005", '\000' , "\001\000\000\000\000\000\000\000\340I\003^.\177\000\000\200\255\000\265-\177\000\000p\255\000\265-\177\000\000\357Ҋ|\000\000\000\000\361\360,[.\177\000\000\000\000\000\000\000\000\000\000\070M\003^.\177\000\000\260\255\000\265-\177\000\000\240\255\000\265-\177\000\000\254\321܈\000\000\000\000T\340.\\.\177\000\000\377\377\377\377\000\000\000\000 \000\000,.\177\000\000\060R\002\000\000\000\000\000 \000\000\000\000\000\000\000"... pos = 0 found = 1 res = autoloopflag = error = 0 pbx = 0x7f2db500acec callid = __PRETTY_FUNCTION__ = "__ast_pbx_run" #24 0x000000000055e226 in pbx_thread (data=data@entry=0x7f2dbc04cdb8) at pbx.c:4551 c = 0x7f2dbc04cdb8 #25 0x00000000005c7589 in dummy_start (data=) at utils.c:1237 __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {139834404699872, 660102554938020607, 0, 139836417643008, 19, 139834286978816, -616344678095613185, 660102243927102207}, __mask_was_saved = 0}}, __pad = {0x7f2db500aef0, 0x0, 0x5d8700, 0x7f2e3c0031e0}} __cancel_arg = 0x7f2db500b700 __not_first_call = ret = a = {start_routine = 0x55e21b , data = 0x7f2dbc04cdb8, name = 0x7f2dbc04fee0 "pbx_thread", ' ' , "started at [ 4577] pbx.c ast_pbx_start()"} #26 0x00007f2e5c2f30a4 in start_thread (arg=0x7f2db500b700) at pthread_create.c:309 __res = pd = 0x7f2db500b700 now = unwind_buf = {cancel_jmp_buf = {{jmp_buf = {139834286978816, 660102554938020607, 0, 139836417643008, 19, 139834286978816, -616344678083030273, -615410295146114305}, 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" #27 0x00007f2e5b3a287d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 No locals.