- Core was generated by `.libs/switch_core_codec'.
- Program terminated with signal SIGSEGV, Segmentation fault.
- #0 0x00007fb249b3d666 in switch_sql_queue_manager_push (qm=0x0,
- sql=0x7fb230000b20 "insert into tasks (task_id, task_desc, task_group, task_runtime, task_sql_manager, hostname) values(1,'heartbeat','core',1575459889,0,'28d89f0ea15f')", pos=0, dup=SWITCH_FALSE) at src/switch_core_sqldb.c:1919
- 1919 if (sql_manager.paused || qm->thread_running != 1) {
- [Current thread is 1 (Thread 0x7fb247595700 (LWP 9362))]
- (gdb) bt full
- #0 0x00007fb249b3d666 in switch_sql_queue_manager_push (qm=0x0,
- sql=0x7fb230000b20 "insert into tasks (task_id, task_desc, task_group, task_runtime, task_sql_manager, hostname) values(1,'heartbeat','core',1575459889,0,'28d89f0ea15f')", pos=0, dup=SWITCH_FALSE) at src/switch_core_sqldb.c:1919
- status = <optimized out>
- __func__ = "switch_sql_queue_manager_push"
- #1 0x00007fb249b3da11 in core_event_handler (event=0x5587af20c820) at src/switch_core_sqldb.c:2842
- i = <optimized out>
- sql = {0x7fb230000b20 "insert into tasks (task_id, task_desc, task_group, task_runtime, task_sql_manager, hostname) values(1,'heartbeat','core',1575459889,0,'28d89f0ea15f')", 0x0, 0x0, 0x0, 0x0}
- sql_idx = <optimized out>
- extra_cols = <optimized out>
- exists = <optimized out>
- uuid = <optimized out>
- __PRETTY_FUNCTION__ = "core_event_handler"
- __func__ = "core_event_handler"
- #2 0x00007fb249baad8a in switch_event_deliver (event=event@entry=0x7fb247594c08) at src/switch_event.c:407
- e = <optimized out>
- node = 0x5587af2646f0
- #3 0x00007fb249baaf40 in switch_event_dispatch_thread (thread=<optimized out>, obj=0x7fb2476827f8) at src/switch_event.c:336
- pop = 0x5587af20c820
- event = 0x5587af20c820
- queue = 0x7fb2476827f8
- my_id = 0
- __func__ = "switch_event_dispatch_thread"
- #4 0x00007fb249e5492c in dummy_worker (opaque=0x7fb2475bd1c0) at threadproc/unix/thread.c:151
- thread = 0x7fb2475bd1c0
- #5 0x00007fb249726fa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
- ret = <optimized out>
- pd = <optimized out>
- now = <optimized out>
- unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140403677943552, 1364130547662067113, 140737216942462, 140737216942463, 140403677943552, 140403721511456, -1330018520017660503, -1330022704312871511}, mask_was_saved = 0}}, priv = {
- pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
- not_first_call = <optimized out>
- #6 0x00007fb2496554cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
- No locals.
- (gdb) bt
- #0 0x00007fb249b3d666 in switch_sql_queue_manager_push (qm=0x0,
- sql=0x7fb230000b20 "insert into tasks (task_id, task_desc, task_group, task_runtime, task_sql_manager, hostname) values(1,'heartbeat','core',1575459889,0,'28d89f0ea15f')", pos=0, dup=SWITCH_FALSE) at src/switch_core_sqldb.c:1919
- #1 0x00007fb249b3da11 in core_event_handler (event=0x5587af20c820) at src/switch_core_sqldb.c:2842
- #2 0x00007fb249baad8a in switch_event_deliver (event=event@entry=0x7fb247594c08) at src/switch_event.c:407
- #3 0x00007fb249baaf40 in switch_event_dispatch_thread (thread=<optimized out>, obj=0x7fb2476827f8) at src/switch_event.c:336
- #4 0x00007fb249e5492c in dummy_worker (opaque=0x7fb2475bd1c0) at threadproc/unix/thread.c:151
- #5 0x00007fb249726fa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
- #6 0x00007fb2496554cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
- (gdb) info threads
- Id Target Id Frame
- * 1 Thread 0x7fb247595700 (LWP 9362) 0x00007fb249b3d666 in switch_sql_queue_manager_push (qm=0x0,
- sql=0x7fb230000b20 "insert into tasks (task_id, task_desc, task_group, task_runtime, task_sql_manager, hostname) values(1,'heartbeat','core',1575459889,0,'28d89f0ea15f')", pos=0, dup=SWITCH_FALSE) at src/switch_core_sqldb.c:1919
- 2 Thread 0x7fb2476c0700 (LWP 9361) 0x00007fb24964d037 in __GI___select (nfds=nfds@entry=0, readfds=readfds@entry=0x0, writefds=writefds@entry=0x0, exceptfds=exceptfds@entry=0x0, timeout=timeout@entry=0x7fb2476bfbe0)
- at ../sysdeps/unix/sysv/linux/select.c:41
- 3 Thread 0x7fb247558700 (LWP 9364) futex_abstimed_wait_cancelable (private=0, abstime=0x7fb247557b80, expected=0, futex_word=0x7fb247722f78) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
- 4 Thread 0x7fb247456700 (LWP 9365) futex_wait_cancelable (private=0, expected=0, futex_word=0x7fb2475bd508) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
- 5 Thread 0x7fb24722f700 (LWP 9366) futex_abstimed_wait_cancelable (private=0, abstime=0x7fb24722ebc0, expected=0, futex_word=0x5587af20802c) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
- 6 Thread 0x7fb245f19700 (LWP 9368) 0x00007fb2494ef3ad in ?? () from /usr/lib/x86_64-linux-gnu/libsqlite3.so.0
- 7 Thread 0x7fb245edc700 (LWP 9369) 0x00007fb24964d037 in __GI___select (nfds=nfds@entry=0, readfds=readfds@entry=0x0, writefds=writefds@entry=0x0, exceptfds=exceptfds@entry=0x0, timeout=timeout@entry=0x7fb245edbbf0)
- at ../sysdeps/unix/sysv/linux/select.c:41
- 8 Thread 0x7fb2477879c0 (LWP 9360) 0x00007fb24a1117a7 in mprotect () at ../sysdeps/unix/syscall-template.S:78
- (gdb) thread apply all bt
- Thread 8 (Thread 0x7fb2477879c0 (LWP 9360)):
- #0 0x00007fb24a1117a7 in mprotect () at ../sysdeps/unix/syscall-template.S:78
- #1 0x00007fb24a102754 in _dl_protect_relro (l=0x5587af24bf10) at dl-reloc.c:320
- #2 0x00007fb24a103578 in _dl_relocate_object (scope=<optimized out>, reloc_mode=reloc_mode@entry=0, consider_profiling=<optimized out>, consider_profiling@entry=0) at dl-reloc.c:306
- #3 0x00007fb24a10a19e in dl_open_worker (a=a@entry=0x7fffefd28fe0) at dl-open.c:377
- #4 0x00007fb249690b2f in __GI__dl_catch_exception (exception=exception@entry=0x7fffefd28fc0, operate=operate@entry=0x7fb24a109f60 <dl_open_worker>, args=args@entry=0x7fffefd28fe0) at dl-error-skeleton.c:196
- #5 0x00007fb24a109bba in _dl_open (file=0x5587af212408 "/usr/local/freeswitch/mod/mod_console.so", mode=-2147483646, caller_dlopen=0x7fb249b982ba <switch_dso_open+58>, nsid=<optimized out>, argc=1, argv=0x7fffefd29898,
- env=0x7fffefd298a8) at dl-open.c:599
- #6 0x00007fb248e11256 in dlopen_doit (a=a@entry=0x7fffefd29200) at dlopen.c:66
- #7 0x00007fb249690b2f in __GI__dl_catch_exception (exception=exception@entry=0x7fffefd291a0, operate=operate@entry=0x7fb248e11200 <dlopen_doit>, args=args@entry=0x7fffefd29200) at dl-error-skeleton.c:196
- #8 0x00007fb249690bbf in __GI__dl_catch_error (objname=objname@entry=0x5587af218840, errstring=errstring@entry=0x5587af218848, mallocedp=mallocedp@entry=0x5587af218838, operate=operate@entry=0x7fb248e11200 <dlopen_doit>,
- args=args@entry=0x7fffefd29200) at dl-error-skeleton.c:215
- #9 0x00007fb248e11975 in _dlerror_run (operate=operate@entry=0x7fb248e11200 <dlopen_doit>, args=args@entry=0x7fffefd29200) at dlerror.c:163
- #10 0x00007fb248e112e6 in __dlopen (file=<optimized out>, mode=mode@entry=2) at dlopen.c:87
- #11 0x00007fb249b982ba in switch_dso_open (path=path@entry=0x5587af212408 "/usr/local/freeswitch/mod/mod_console.so", global=global@entry=0, err=err@entry=0x7fffefd29290) at src/switch_dso.c:102
- #12 0x00007fb249b9aef2 in switch_loadable_module_load_file (new_module=<synthetic pointer>, global=SWITCH_FALSE, filename=0x5587af2123f8 "mod_console", path=0x5587af212408 "/usr/local/freeswitch/mod/mod_console.so")
- at src/switch_loadable_module.c:1709
- #13 switch_loadable_module_load_module_ex (dir=<optimized out>, fname=<optimized out>, runtime=SWITCH_FALSE, global=SWITCH_FALSE, err=0x7fffefd29338, type=SWITCH_LOADABLE_MODULE_TYPE_COMMON, event_hash=0x0)
- at src/switch_loadable_module.c:1859
- #14 0x00007fb249b9e145 in switch_loadable_module_init (autoload=autoload@entry=SWITCH_TRUE) at src/switch_loadable_module.c:2289
- #15 0x00007fb249b5a559 in switch_core_init_and_modload (flags=<optimized out>, console=<optimized out>, err=0x7fffefd29528) at src/switch_core.c:2475
- #16 0x00005587ad32660e in fst_init_core_and_modload (confdir=0x5587ad32a2ee "./conf", basedir=0x5587ad32a2ee "./conf", minimal=0) at ../../src/include/test/switch_test.h:116
- #17 main (argc=1, argv=0x7fffefd29898) at switch_core_codec.c:37
- Thread 7 (Thread 0x7fb245edc700 (LWP 9369)):
- #0 0x00007fb24964d037 in __GI___select (nfds=nfds@entry=0, readfds=readfds@entry=0x0, writefds=writefds@entry=0x0, exceptfds=exceptfds@entry=0x0, timeout=timeout@entry=0x7fb245edbbf0) at ../sysdeps/unix/sysv/linux/select.c:41
- #1 0x00007fb249e55ee5 in apr_sleep (t=<optimized out>) at time/unix/time.c:246
- #2 0x00007fb249c1521c in do_sleep (t=<optimized out>) at src/switch_time.c:164
- #3 0x00007fb249b40e1d in switch_core_sql_db_thread (thread=<optimized out>, obj=<optimized out>) at src/switch_core_sqldb.c:1572
- #4 0x00007fb249e5492c in dummy_worker (opaque=0x7fb24751a780) at threadproc/unix/thread.c:151
- #5 0x00007fb249726fa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
- #6 0x00007fb2496554cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
- Thread 6 (Thread 0x7fb245f19700 (LWP 9368)):
- #0 0x00007fb2494ef3ad in ?? () from /usr/lib/x86_64-linux-gnu/libsqlite3.so.0
- #1 0x00007fb2494f1a90 in ?? () from /usr/lib/x86_64-linux-gnu/libsqlite3.so.0
- #2 0x00007fb2494f1fd6 in ?? () from /usr/lib/x86_64-linux-gnu/libsqlite3.so.0
- #3 0x00007fb2494f2346 in sqlite3_prepare_v2 () from /usr/lib/x86_64-linux-gnu/libsqlite3.so.0
- #4 0x00007fb2494dc980 in sqlite3_exec () from /usr/lib/x86_64-linux-gnu/libsqlite3.so.0
- #5 0x00007fb249b97af5 in switch_core_db_exec (db=0x5587af22bcf8, sql=sql@entry=0x7fb249e6b6b0 "PRAGMA synchronous=OFF;", callback=callback@entry=0x0, data=data@entry=0x0, errmsg=errmsg@entry=0x7fb245f18ad8) at src/switch_core_db.c:93
- #6 0x00007fb249b38fab in switch_cache_db_execute_sql_real (dbh=dbh@entry=0x5587af259b00, sql=sql@entry=0x7fb249e6b6b0 "PRAGMA synchronous=OFF;", err=err@entry=0x0) at src/switch_core_sqldb.c:684
- #7 0x00007fb249b3ab5e in switch_cache_db_execute_sql_chunked (chunk_size=32768, err=0x0, sql=0x7fb249e6b6b0 "PRAGMA synchronous=OFF;", dbh=0x5587af259b00) at src/switch_core_sqldb.c:735
- #8 switch_cache_db_execute_sql (dbh=0x5587af259b00, sql=sql@entry=0x7fb249e6b6b0 "PRAGMA synchronous=OFF;", err=err@entry=0x0) at src/switch_core_sqldb.c:791
- #9 0x00007fb249b3b59d in switch_user_sql_thread (thread=<optimized out>, obj=0x5587af2727c0) at src/switch_core_sqldb.c:2263
- #10 0x00007fb249e5492c in dummy_worker (opaque=0x7fb245fdd6c0) at threadproc/unix/thread.c:151
- #11 0x00007fb249726fa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
- #12 0x00007fb2496554cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
- Thread 5 (Thread 0x7fb24722f700 (LWP 9366)):
- #0 futex_abstimed_wait_cancelable (private=0, abstime=0x7fb24722ebc0, expected=0, futex_word=0x5587af20802c) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
- #1 __pthread_cond_wait_common (abstime=0x7fb24722ebc0, mutex=0x5587af207fb0, cond=0x5587af208000) at pthread_cond_wait.c:539
- #2 __pthread_cond_timedwait (cond=cond@entry=0x5587af208000, mutex=mutex@entry=0x5587af207fb0, abstime=abstime@entry=0x7fb24722ebc0) at pthread_cond_wait.c:667
- #3 0x00007fb249e4eae2 in apr_thread_cond_timedwait (cond=0x5587af207ff8, mutex=0x5587af207fa8, timeout=timeout@entry=500000) at locks/unix/thread_cond.c:89
- #4 0x00007fb249e463e8 in apr_queue_pop_timeout (queue=0x5587af207f68, data=data@entry=0x7fb24722ec20, timeout=timeout@entry=500000) at misc/apr_queue.c:339
- #5 0x00007fb249b15b55 in switch_queue_pop_timeout (queue=<optimized out>, data=data@entry=0x7fb24722ec20, timeout=timeout@entry=500000) at src/switch_apr.c:1164
- #6 0x00007fb249b971ff in switch_scheduler_task_thread (thread=<optimized out>, obj=<optimized out>) at src/switch_scheduler.c:191
- #7 0x00007fb249e5492c in dummy_worker (opaque=0x7fb2474185d8) at threadproc/unix/thread.c:151
- #8 0x00007fb249726fa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
- #9 0x00007fb2496554cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
- Thread 4 (Thread 0x7fb247456700 (LWP 9365)):
- --Type <RET> for more, q to quit, c to continue without paging--
- #0 futex_wait_cancelable (private=0, expected=0, futex_word=0x7fb2475bd508) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
- #1 __pthread_cond_wait_common (abstime=0x0, mutex=0x7fb2475bd490, cond=0x7fb2475bd4e0) at pthread_cond_wait.c:502
- #2 __pthread_cond_wait (cond=0x7fb2475bd4e0, mutex=0x7fb2475bd490) at pthread_cond_wait.c:655
- #3 0x00007fb249e4ea7d in apr_thread_cond_wait (cond=<optimized out>, mutex=<optimized out>) at locks/unix/thread_cond.c:68
- #4 0x00007fb249e462ed in apr_queue_pop (queue=0x7fb2475bd448, data=data@entry=0x7fb247455c20) at misc/apr_queue.c:276
- #5 0x00007fb249b15b45 in switch_queue_pop (queue=<optimized out>, data=data@entry=0x7fb247455c20) at src/switch_apr.c:1159
- #6 0x00007fb249c0a6f0 in log_thread (t=<optimized out>, obj=<optimized out>) at src/switch_log.c:444
- #7 0x00007fb249e5492c in dummy_worker (opaque=0x7fb24751a5a8) at threadproc/unix/thread.c:151
- #8 0x00007fb249726fa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
- #9 0x00007fb2496554cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
- Thread 3 (Thread 0x7fb247558700 (LWP 9364)):
- #0 futex_abstimed_wait_cancelable (private=0, abstime=0x7fb247557b80, expected=0, futex_word=0x7fb247722f78) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
- #1 __pthread_cond_wait_common (abstime=0x7fb247557b80, mutex=0x7fb247722f00, cond=0x7fb247722f50) at pthread_cond_wait.c:539
- #2 __pthread_cond_timedwait (cond=cond@entry=0x7fb247722f50, mutex=mutex@entry=0x7fb247722f00, abstime=abstime@entry=0x7fb247557b80) at pthread_cond_wait.c:667
- #3 0x00007fb249e4eae2 in apr_thread_cond_timedwait (cond=0x7fb247722f48, mutex=0x7fb247722ef8, timeout=timeout@entry=5000000) at locks/unix/thread_cond.c:89
- #4 0x00007fb249e463e8 in apr_queue_pop_timeout (queue=0x7fb247722eb8, data=data@entry=0x7fb247557c00, timeout=timeout@entry=5000000) at misc/apr_queue.c:339
- #5 0x00007fb249b15b55 in switch_queue_pop_timeout (queue=<optimized out>, data=data@entry=0x7fb247557c00, timeout=timeout@entry=5000000) at src/switch_apr.c:1164
- #6 0x00007fb249b42354 in switch_core_session_thread_pool_worker (thread=0x5587af1fdf00, obj=<optimized out>) at src/switch_core_session.c:1765
- #7 0x00007fb249e5492c in dummy_worker (opaque=0x5587af1fdf00) at threadproc/unix/thread.c:151
- #8 0x00007fb249726fa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
- #9 0x00007fb2496554cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
- Thread 2 (Thread 0x7fb2476c0700 (LWP 9361)):
- #0 0x00007fb24964d037 in __GI___select (nfds=nfds@entry=0, readfds=readfds@entry=0x0, writefds=writefds@entry=0x0, exceptfds=exceptfds@entry=0x0, timeout=timeout@entry=0x7fb2476bfbe0) at ../sysdeps/unix/sysv/linux/select.c:41
- #1 0x00007fb249e55ee5 in apr_sleep (t=<optimized out>) at time/unix/time.c:246
- #2 0x00007fb249c1521c in do_sleep (t=<optimized out>) at src/switch_time.c:164
- #3 0x00007fb249b31fb7 in pool_thread (thread=<optimized out>, obj=<optimized out>) at src/switch_core_memory.c:571
- #4 0x00007fb249e5492c in dummy_worker (opaque=0x7fb247722c40) at threadproc/unix/thread.c:151
- #5 0x00007fb249726fa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
- #6 0x00007fb2496554cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
- Thread 1 (Thread 0x7fb247595700 (LWP 9362)):
- #0 0x00007fb249b3d666 in switch_sql_queue_manager_push (qm=0x0,
- sql=0x7fb230000b20 "insert into tasks (task_id, task_desc, task_group, task_runtime, task_sql_manager, hostname) values(1,'heartbeat','core',1575459889,0,'28d89f0ea15f')", pos=0, dup=SWITCH_FALSE) at src/switch_core_sqldb.c:1919
- #1 0x00007fb249b3da11 in core_event_handler (event=0x5587af20c820) at src/switch_core_sqldb.c:2842
- #2 0x00007fb249baad8a in switch_event_deliver (event=event@entry=0x7fb247594c08) at src/switch_event.c:407
- #3 0x00007fb249baaf40 in switch_event_dispatch_thread (thread=<optimized out>, obj=0x7fb2476827f8) at src/switch_event.c:336
- #4 0x00007fb249e5492c in dummy_worker (opaque=0x7fb2475bd1c0) at threadproc/unix/thread.c:151
- #5 0x00007fb249726fa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
- #6 0x00007fb2496554cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
- (gdb) print *sql_manager
- Structure has no component named operator*.
- (gdb) print *sql_manager
- $1 = {memory_pool = 0x5587af1d0658, db_thread = 0x7fb24751a780, db_thread_running = 1, manage = SWITCH_TRUE, io_mutex = 0x7fb24751a678, dbh_mutex = 0x7fb24751a628, ctl_mutex = 0x7fb24751a6c8, handle_pool = 0x5587af259b00,
- total_handles = 1, total_used_handles = 1, dbh = 0x0, qm = 0x5587af2727c0, paused = 0}
- (gdb) thread 0
- Invalid thread ID: 0
- (gdb) print sql_manager
- $2 = {memory_pool = 0x5587af1d0658, db_thread = 0x7fb24751a780, db_thread_running = 1, manage = SWITCH_TRUE, io_mutex = 0x7fb24751a678, dbh_mutex = 0x7fb24751a628, ctl_mutex = 0x7fb24751a6c8, handle_pool = 0x5587af259b00,
- total_handles = 1, total_used_handles = 1, dbh = 0x0, qm = 0x5587af2727c0, paused = 0}
- (gdb) print sql_manager.qm
- $3 = (switch_sql_queue_manager_t *) 0x5587af2727c0
- (gdb) print *sql_manager.qm
- $4 = {name = 0x5587af272868 "CORE", event_db = 0x5587af259b00, sql_queue = 0x5587af2729b8, pre_written = 0x5587af2729e8, written = 0x5587af2729d8, numq = 4, dsn = 0x5587af272860 "core", thread = 0x7fb245fdd6c0, thread_running = 1,
- cond = 0x5587af272960, cond_mutex = 0x5587af272870, cond2_mutex = 0x5587af2728c0, mutex = 0x5587af272910, pre_trans_execute = 0x0, post_trans_execute = 0x0, inner_pre_trans_execute = 0x0, inner_post_trans_execute = 0x0,
- pool = 0x5587af2726d8, max_trans = 2000, confirm = 0, paused = 0 '\000'}
- (gdb)