GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/sbin/asterisk...done. [New LWP 3170] [New LWP 3173] [New LWP 3189] [New LWP 3188] [New LWP 3187] [New LWP 3186] [New LWP 3185] [New LWP 3184] [New LWP 3183] [New LWP 3182] [New LWP 3181] [New LWP 3180] [New LWP 3179] [New LWP 3178] [New LWP 3176] [New LWP 3175] [New LWP 3174] [New LWP 3172] [New LWP 3171] [New LWP 3177] [New LWP 3190] [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 SIGFPE, Arithmetic exception. #0 0x00007ff6f35e770a in sqlchar_as_sqlwchar () from /usr/lib/x86_64-linux-gnu/odbc/libmyodbc.so (gdb) bt #0 0x00007ff6f35e770a in sqlchar_as_sqlwchar () from /usr/lib/x86_64-linux-gnu/odbc/libmyodbc.so #1 0x00007ff6f35cb049 in SQLConnect () from /usr/lib/x86_64-linux-gnu/odbc/libmyodbc.so #2 0x00007ff735dcb5b4 in SQLConnect () from /usr/lib/x86_64-linux-gnu/libodbc.so.1 #3 0x00007ff73602b84e in odbc_obj_connect (obj=0x229ce08) at res_odbc.c:1548 #4 0x00007ff73602abb8 in _ast_odbc_request_obj2 (name=0x229cae0 "asterisk", flags=..., file=0x7ff73602cbf4 "res_odbc.c", function=0x7ff73602dec0 <__PRETTY_FUNCTION__.16159> "odbc_register_class", lineno=1038) at res_odbc.c:1370 #5 0x00007ff73602b115 in _ast_odbc_request_obj (name=0x229cae0 "asterisk", check=0, file=0x7ff73602cbf4 "res_odbc.c", function=0x7ff73602dec0 <__PRETTY_FUNCTION__.16159> "odbc_register_class", lineno=1038) at res_odbc.c:1443 #6 0x00007ff736029320 in odbc_register_class (class=0x229cad8, preconnect=-1) at res_odbc.c:1038 #7 0x00007ff736028b4c in load_odbc_config () at res_odbc.c:922 #8 0x00007ff73602cabc in load_module () at res_odbc.c:1896 #9 0x0000000000532f08 in start_resource (mod=0x1f93600) at loader.c:1016 #10 0x00000000005338b7 in load_resource_list (load_order=0x7fffc3a287b0, global_symbols=1, mod_count=0x7fffc3a28740) at loader.c:1214 #11 0x0000000000533ed6 in load_modules (preload_only=0) at loader.c:1362 #12 0x000000000045b873 in main (argc=4, argv=0x7fffc3a2aaa8) at asterisk.c:4655 (gdb) bt full #0 0x00007ff6f35e770a in sqlchar_as_sqlwchar () from /usr/lib/x86_64-linux-gnu/odbc/libmyodbc.so No symbol table info available. #1 0x00007ff6f35cb049 in SQLConnect () from /usr/lib/x86_64-linux-gnu/odbc/libmyodbc.so No symbol table info available. #2 0x00007ff735dcb5b4 in SQLConnect () from /usr/lib/x86_64-linux-gnu/libodbc.so.1 No symbol table info available. #3 0x00007ff73602b84e in odbc_obj_connect (obj=0x229ce08) at res_odbc.c:1548 res = 0 err = -1012760096 mlen = 0 msg = "6]a\000\000\000\000\000\220^a\000\000\000\000\000T\\a\000\000\000\000\000$\002\000\000\001\000\000\000\000\000\000\000\036\002\000\000T\\a\000\000\000\000\000\001\000\000\000\000\000\000\000\000\343r\271\003n\247\023\003\000\000\000\000\000\000\000\000\000b\f\000\000\000\000@\202\242\303\377\177\000\000t\310E", '\000' , "\243^a\000\000\000\000\000T\\a\000\000\000\000\000s\002\000\000\000\000\000\000\327i\002\066\367\177\000\000\070\000\000\000\000\000\000\000p\202\242\303\377\177\000\000\350\315)\002\000\000\000\000\260\315)\002", '\000' , "p\202\242\303\377\177\000\000\305\312E\000\000\000\000\000\002\000\000\000\000\000\000" state = "\240\252\242\303\377\177\000\000\260", con = 0x229e940 __PRETTY_FUNCTION__ = "odbc_obj_connect" #4 0x00007ff73602abb8 in _ast_odbc_request_obj2 (name=0x229cae0 "asterisk", flags=..., file=0x7ff73602cbf4 "res_odbc.c", function=0x7ff73602dec0 <__PRETTY_FUNCTION__.16159> "odbc_register_class", lineno=1038) at res_odbc.c:1370 obj = 0x229ce08 class = 0x0 nativeerror = 0 numfields = 0 diagbytes = 0 i = 0 state = "\377\377\377\377\000\000\000\000\330", diagnostic = "\370;\002\066\367\177\000\000\260\016\371\001\000\000\000\000\060\203\242\303\377\177\000\000 \203\242\303\377\177\000\000%\234\231\022\000\000\000\000\220?\002\066\367\177\000\000\377\377\377\377\000\000\000\000\316FS\000\000\000\000\000@<\002\066\367\177\000\000\260\016\371\001\000\000\000\000\070_a\000\000\000\000\000\340_a\000\000\000\000\000\200\203\242Þ\000\000\000(\360\"6\367\177\000\000\000\000\000\000\000\000\000\000\240\252\242\303\377\177", '\000' , "P\204\242\303\377\177\000\000W\245{9\367\177\000\000\005\000\000\000\236", '\000' , "\370;\002\066\367\177\000\000\000\000b\f\000\000\000\000P"... __PRETTY_FUNCTION__ = "_ast_odbc_request_obj2" #5 0x00007ff73602b115 in _ast_odbc_request_obj (name=0x229cae0 "asterisk", check=0, file=0x7ff73602cbf4 "res_odbc.c", function=0x7ff73602dec0 <__PRETTY_FUNCTION__.16159> "odbc_register_class", lineno=1038) at res_odbc.c:1443 flags = {flags = 0} #6 0x00007ff736029320 in odbc_register_class (class=0x229cad8, preconnect=-1) at res_odbc.c:1038 obj = 0x229cd20 __PRETTY_FUNCTION__ = "odbc_register_class" #7 0x00007ff736028b4c in load_odbc_config () at res_odbc.c:922 cfg = 0x7ff73602de66 "res_odbc.conf" config = 0x229bd80 v = 0x0 cat = 0x2298570 "asterisk" dsn = 0x229b484 "asterisk" username = 0x229b519 "astdbuser" password = 0x229aef9 "UxW55mLYQxAau6j6NTyGj6kbO" sanitysql = 0x0 enabled = -1 pooling = 0 limit = 1 bse = 1 conntimeout = 10 forcecommit = 0 isolation = 2 ncache = {tv_sec = 0, tv_usec = 0} idlecheck = 0 preconnect = -1 res = 0 config_flags = {flags = 0} new = 0x229cad8 __PRETTY_FUNCTION__ = "load_odbc_config" #8 0x00007ff73602cabc in load_module () at res_odbc.c:1896 __PRETTY_FUNCTION__ = "load_module" #9 0x0000000000532f08 in start_resource (mod=0x1f93600) at loader.c:1016 tmp = "\033[0;33mStatsd client support\033[0m", '\000' , " \341(\002\000\000\000\000\000\000\000\000\022\000\000\000\060\377\370\001\000\000\000\000\000\000\000\000\022\000\000\000\060\377\370\001\000\000\000\000\020\206\242\303\377\177\000\000\226#R\000\000\000\000\000\022\000\000\000\t\000\000\000\060\377\370\001\000\000\000\000P\223(\002\000\000\000\000 \341(\002\022\000\000\000P\206\242\303\377\177\000\000\301#R\000\000\000\000\000\000\000\000\000\022\000\000\000\060\377\370\001\000\000\000\000\000\000\000\000\022\000\000\000$\000\000\000%\000\000\000\000\000b\f\000\000\000\000"... res = AST_MODULE_LOAD_SUCCESS __PRETTY_FUNCTION__ = "start_resource" #10 0x00000000005338b7 in load_resource_list (load_order=0x7fffc3a287b0, global_symbols=1, mod_count=0x7fffc3a28740) at loader.c:1214 resource_heap = 0x1f8ff30 order = 0x0 mod = 0x1f93600 count = 1 res = 0 __PRETTY_FUNCTION__ = "load_resource_list" #11 0x0000000000533ed6 in load_modules (preload_only=0) at loader.c:1362 cfg = 0x1f8bbc0 mod = 0x0 order = 0x0 v = 0x0 load_count = 284 load_order = {first = 0x1f50dc0, last = 0x1f8fb10} res = 0 config_flags = {flags = 0} modulecount = 0 dirent = 0x0 dir = 0x2283a80 __PRETTY_FUNCTION__ = "load_modules" #12 0x000000000045b873 in main (argc=4, argv=0x7fffc3a2aaa8) at asterisk.c:4655 c = -1 filename = "/root/.asterisk_history", '\000' hostname = "sandbox", '\000' xarg = 0x0 x = 4 f = 0x13ac8a0 sigs = {__val = {134238211, 0 }} num = 0 isroot = 1 rundir_exists = 1 buf = 0x0 runuser = 0x0 rungroup = 0x0 remotesock = 0x0 moduleresult = 0 l = {rlim_cur = 100738, rlim_max = 100738} __FUNCTION__ = "main" __PRETTY_FUNCTION__ = "main" (gdb) thread apply all bt Thread 21 (Thread 0x7ff7364b6700 (LWP 3190)): #0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85 #1 0x00000000005dad16 in ast_sem_wait (sem=0x207dc10) at /usr/local/src/asterisk-trunk/include/asterisk/sem.h:59 #2 0x00000000005dadd7 in default_tps_processing_function (data=0x207dc98) at taskprocessor.c:177 #3 0x00000000005f032b in dummy_start (data=0x1f5fc20) at utils.c:1232 #4 0x00007ff737eed182 in start_thread (arg=0x7ff7364b6700) at pthread_create.c:312 #5 0x00007ff7371ad00d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 20 (Thread 0x7ff736b02700 (LWP 3177)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 #1 0x00000000005347b7 in __ast_cond_wait (filename=0x63d0f4 "logger.c", lineno=1331, func=0x63e304 <__PRETTY_FUNCTION__.15068> "logger_thread", cond_name=0x63deb5 "&logcond", mutex_name=0x63dea7 "&logmsgs.lock", cond=0x8d0d20 , t=0x8b57d0 ) at lock.c:598 #2 0x0000000000538440 in logger_thread (data=0x0) at logger.c:1331 #3 0x00000000005f032b in dummy_start (data=0x1e703a0) at utils.c:1232 #4 0x00007ff737eed182 in start_thread (arg=0x7ff736b02700) at pthread_create.c:312 #5 0x00007ff7371ad00d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 19 (Thread 0x7ff7399b7700 (LWP 3171)): #0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85 #1 0x00000000005dad16 in ast_sem_wait (sem=0x13c9560) at /usr/local/src/asterisk-trunk/include/asterisk/sem.h:59 #2 0x00000000005dadd7 in default_tps_processing_function (data=0x13c95e8) at taskprocessor.c:177 #3 0x00000000005f032b in dummy_start (data=0x13c9760) at utils.c:1232 #4 0x00007ff737eed182 in start_thread (arg=0x7ff7399b7700) at pthread_create.c:312 #5 0x00007ff7371ad00d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 18 (Thread 0x7ff73993b700 (LWP 3172)): #0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85 #1 0x00000000005dad16 in ast_sem_wait (sem=0x1e57f90) at /usr/local/src/asterisk-trunk/include/asterisk/sem.h:59 #2 0x00000000005dadd7 in default_tps_processing_function (data=0x1e6b988) at taskprocessor.c:177 #3 0x00000000005f032b in dummy_start (data=0x1e57100) at utils.c:1232 #4 0x00007ff737eed182 in start_thread (arg=0x7ff73993b700) at pthread_create.c:312 #5 0x00007ff7371ad00d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 17 (Thread 0x7ff736c76700 (LWP 3174)): #0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238 #1 0x00000000005347f5 in __ast_cond_timedwait (filename=0x65af23 "threadpool.c", lineno=1101, func=0x65b424 <__PRETTY_FUNCTION__.8291> "worker_idle", cond_name=0x65b167 "&worker->cond", mutex_name=0x65b159 "&worker->lock", cond=0x7ff728000c80, t=0x7ff728000cb0, abstime=0x7ff736c75dc0) at lock.c:666 #2 0x00000000005e4876 in worker_idle (worker=0x7ff728000c78) at threadpool.c:1101 #3 0x00000000005e45b6 in worker_start (arg=0x7ff728000c78) at threadpool.c:993 #4 0x00000000005f032b in dummy_start (data=0x7ff728000d90) at utils.c:1232 #5 0x00007ff737eed182 in start_thread (arg=0x7ff736c76700) at pthread_create.c:312 #6 0x00007ff7371ad00d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 16 (Thread 0x7ff736bfa700 (LWP 3175)): #0 0x00007ff73719fcbd in poll () at ../sysdeps/unix/syscall-template.S:81 #1 0x0000000000452b33 in listener (unused=0x0) at asterisk.c:1600 #2 0x00000000005f032b in dummy_start (data=0x1e703a0) at utils.c:1232 #3 0x00007ff737eed182 in start_thread (arg=0x7ff736bfa700) at pthread_create.c:312 #4 0x00007ff7371ad00d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 15 (Thread 0x7ff736b7e700 (LWP 3176)): #0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238 #1 0x00000000005347f5 in __ast_cond_timedwait (filename=0x65af23 "threadpool.c", lineno=1101, func=0x65b424 <__PRETTY_FUNCTION__.8291> "worker_idle", cond_name=0x65b167 "&worker->cond", mutex_name=0x65b159 "&worker->lock", cond=0x7ff728000fb0, t=0x7ff728000fe0, abstime=0x7ff736b7ddc0) at lock.c:666 #2 0x00000000005e4876 in worker_idle (worker=0x7ff728000fa8) at threadpool.c:1101 #3 0x00000000005e45b6 in worker_start (arg=0x7ff728000fa8) at threadpool.c:993 #4 0x00000000005f032b in dummy_start (data=0x7ff728000a60) at utils.c:1232 #5 0x00007ff737eed182 in start_thread (arg=0x7ff736b7e700) at pthread_create.c:312 #6 0x00007ff7371ad00d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 14 (Thread 0x7ff736a86700 (LWP 3178)): #0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238 #1 0x00000000005347f5 in __ast_cond_timedwait (filename=0x65af23 "threadpool.c", lineno=1101, func=0x65b424 <__PRETTY_FUNCTION__.8291> "worker_idle", cond_name=0x65b167 "&worker->cond", mutex_name=0x65b159 "&worker->lock", cond=0x7ff7280012c0, t=0x7ff7280012f0, abstime=0x7ff736a85dc0) at lock.c:666 #2 0x00000000005e4876 in worker_idle (worker=0x7ff7280012b8) at threadpool.c:1101 #3 0x00000000005e45b6 in worker_start (arg=0x7ff7280012b8) at threadpool.c:993 #4 0x00000000005f032b in dummy_start (data=0x7ff728000d90) at utils.c:1232 #5 0x00007ff737eed182 in start_thread (arg=0x7ff736a86700) at pthread_create.c:312 #6 0x00007ff7371ad00d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 13 (Thread 0x7ff736a0a700 (LWP 3179)): #0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238 #1 0x00000000005347f5 in __ast_cond_timedwait (filename=0x65af23 "threadpool.c", lineno=1101, func=0x65b424 <__PRETTY_FUNCTION__.8291> "worker_idle", cond_name=0x65b167 "&worker->cond", mutex_name=0x65b159 "&worker->lock", cond=0x7ff7280015d0, t=0x7ff728001600, abstime=0x7ff736a09dc0) at lock.c:666 #2 0x00000000005e4876 in worker_idle (worker=0x7ff7280015c8) at threadpool.c:1101 #3 0x00000000005e45b6 in worker_start (arg=0x7ff7280015c8) at threadpool.c:993 #4 0x00000000005f032b in dummy_start (data=0x7ff728000d90) at utils.c:1232 #5 0x00007ff737eed182 in start_thread (arg=0x7ff736a0a700) at pthread_create.c:312 #6 0x00007ff7371ad00d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 12 (Thread 0x7ff73698e700 (LWP 3180)): #0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85 #1 0x00000000005dad16 in ast_sem_wait (sem=0x1e82260) at /usr/local/src/asterisk-trunk/include/asterisk/sem.h:59 #2 0x00000000005dadd7 in default_tps_processing_function (data=0x1e82658) at taskprocessor.c:177 #3 0x00000000005f032b in dummy_start (data=0x1e82790) at utils.c:1232 #4 0x00007ff737eed182 in start_thread (arg=0x7ff73698e700) at pthread_create.c:312 #5 0x00007ff7371ad00d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 11 (Thread 0x7ff736912700 (LWP 3181)): #0 0x00007ff737173acd in nanosleep () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007ff737173964 in __sleep (seconds=0) at ../sysdeps/unix/sysv/linux/sleep.c:137 #2 0x00000000004f5356 in db_sync_thread (data=0x0) at db.c:980 #3 0x00000000005f032b in dummy_start (data=0x1e976c0) at utils.c:1232 #4 0x00007ff737eed182 in start_thread (arg=0x7ff736912700) at pthread_create.c:312 #5 0x00007ff7371ad00d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 10 (Thread 0x7ff736896700 (LWP 3182)): #0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85 #1 0x00000000005dad16 in ast_sem_wait (sem=0x1e96900) at /usr/local/src/asterisk-trunk/include/asterisk/sem.h:59 #2 0x00000000005dadd7 in default_tps_processing_function (data=0x1e99e78) at taskprocessor.c:177 #3 0x00000000005f032b in dummy_start (data=0x1e968d0) at utils.c:1232 #4 0x00007ff737eed182 in start_thread (arg=0x7ff736896700) at pthread_create.c:312 #5 0x00007ff7371ad00d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 9 (Thread 0x7ff73681a700 (LWP 3183)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 #1 0x00000000005347b7 in __ast_cond_wait (filename=0x616b34 "bridge.c", lineno=4645, func=0x6190d0 <__PRETTY_FUNCTION__.18033> "bridge_manager_thread", cond_name=0x617fc9 "&manager->cond", mutex_name=0x617fa8 "ao2_object_get_lockaddr(manager)", cond=0x1eafd88, t=0x1eafd30) at lock.c:598 #2 0x0000000000473913 in bridge_manager_thread (data=0x1eafd88) at bridge.c:4645 #3 0x00000000005f032b in dummy_start (data=0x1eafde0) at utils.c:1232 #4 0x00007ff737eed182 in start_thread (arg=0x7ff73681a700) at pthread_create.c:312 #5 0x00007ff7371ad00d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 8 (Thread 0x7ff73679e700 (LWP 3184)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 #1 0x00000000005347b7 in __ast_cond_wait (filename=0x632c54 "devicestate.c", lineno=546, func=0x6330c0 <__PRETTY_FUNCTION__.14534> "do_devstate_changes", cond_name=0x632f07 "&change_pending", mutex_name=0x632f17 "&state_changes.lock", cond=0x8d0880 , t=0x8b3590 ) at lock.c:598 #2 0x00000000004f631f in do_devstate_changes (data=0x0) at devicestate.c:546 #3 0x00000000005f032b in dummy_start (data=0x1eb29f0) at utils.c:1232 #4 0x00007ff737eed182 in start_thread (arg=0x7ff73679e700) at pthread_create.c:312 #5 0x00007ff7371ad00d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 7 (Thread 0x7ff736722700 (LWP 3185)): #0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85 #1 0x00000000005dad16 in ast_sem_wait (sem=0x1ef5270) at /usr/local/src/asterisk-trunk/include/asterisk/sem.h:59 #2 0x00000000005dadd7 in default_tps_processing_function (data=0x1ef3078) at taskprocessor.c:177 #3 0x00000000005f032b in dummy_start (data=0x1eeb060) at utils.c:1232 #4 0x00007ff737eed182 in start_thread (arg=0x7ff736722700) at pthread_create.c:312 #5 0x00007ff7371ad00d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 6 (Thread 0x7ff7366a6700 (LWP 3186)): #0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85 #1 0x00000000005dad16 in ast_sem_wait (sem=0x1f12770) at /usr/local/src/asterisk-trunk/include/asterisk/sem.h:59 #2 0x00000000005dadd7 in default_tps_processing_function (data=0x1f1a3f8) at taskprocessor.c:177 #3 0x00000000005f032b in dummy_start (data=0x1ef1d40) at utils.c:1232 #4 0x00007ff737eed182 in start_thread (arg=0x7ff7366a6700) at pthread_create.c:312 #5 0x00007ff7371ad00d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 5 (Thread 0x7ff73662a700 (LWP 3187)): #0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85 #1 0x00000000005dad16 in ast_sem_wait (sem=0x1f0f6d0) at /usr/local/src/asterisk-trunk/include/asterisk/sem.h:59 #2 0x00000000005dadd7 in default_tps_processing_function (data=0x1f1c348) at taskprocessor.c:177 #3 0x00000000005f032b in dummy_start (data=0x1f10b50) at utils.c:1232 #4 0x00007ff737eed182 in start_thread (arg=0x7ff73662a700) at pthread_create.c:312 #5 0x00007ff7371ad00d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 4 (Thread 0x7ff7365ae700 (LWP 3188)): #0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85 #1 0x00000000005dad16 in ast_sem_wait (sem=0x1f75ae0) at /usr/local/src/asterisk-trunk/include/asterisk/sem.h:59 #2 0x00000000005dadd7 in default_tps_processing_function (data=0x1f7f8b8) at taskprocessor.c:177 #3 0x00000000005f032b in dummy_start (data=0x1f50dc0) at utils.c:1232 #4 0x00007ff737eed182 in start_thread (arg=0x7ff7365ae700) at pthread_create.c:312 #5 0x00007ff7371ad00d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 3 (Thread 0x7ff736532700 (LWP 3189)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 #1 0x00000000005347b7 in __ast_cond_wait (filename=0x653af4 "sched.c", lineno=124, func=0x653dd0 <__PRETTY_FUNCTION__.12622> "sched_run", cond_name=0x653b07 "&con->sched_thread->cond", mutex_name=0x653afc "&con->lock", cond=0x1f79f28, t=0x1f88710) at lock.c:598 #2 0x00000000005b4e47 in sched_run (data=0x1f88710) at sched.c:124 #3 0x00000000005f032b in dummy_start (data=0x1f37040) at utils.c:1232 #4 0x00007ff737eed182 in start_thread (arg=0x7ff736532700) at pthread_create.c:312 #5 0x00007ff7371ad00d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 2 (Thread 0x7ff7398bf700 (LWP 3173)): #0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238 #1 0x00000000005347f5 in __ast_cond_timedwait (filename=0x65af23 "threadpool.c", lineno=1101, func=0x65b424 <__PRETTY_FUNCTION__.8291> "worker_idle", cond_name=0x65b167 "&worker->cond", mutex_name=0x65b159 "&worker->lock", cond=0x7ff728000950, t=0x7ff728000980, abstime=0x7ff7398bedc0) at lock.c:666 #2 0x00000000005e4876 in worker_idle (worker=0x7ff728000948) at threadpool.c:1101 #3 0x00000000005e45b6 in worker_start (arg=0x7ff728000948) at threadpool.c:993 #4 0x00000000005f032b in dummy_start (data=0x7ff728000a60) at utils.c:1232 #5 0x00007ff737eed182 in start_thread (arg=0x7ff7398bf700) at pthread_create.c:312 #6 0x00007ff7371ad00d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 1 (Thread 0x7ff7399b8780 (LWP 3170)): #0 0x00007ff6f35e770a in sqlchar_as_sqlwchar () from /usr/lib/x86_64-linux-gnu/odbc/libmyodbc.so #1 0x00007ff6f35cb049 in SQLConnect () from /usr/lib/x86_64-linux-gnu/odbc/libmyodbc.so #2 0x00007ff735dcb5b4 in SQLConnect () from /usr/lib/x86_64-linux-gnu/libodbc.so.1 #3 0x00007ff73602b84e in odbc_obj_connect (obj=0x229ce08) at res_odbc.c:1548 #4 0x00007ff73602abb8 in _ast_odbc_request_obj2 (name=0x229cae0 "asterisk", flags=..., file=0x7ff73602cbf4 "res_odbc.c", function=0x7ff73602dec0 <__PRETTY_FUNCTION__.16159> "odbc_register_class", lineno=1038) at res_odbc.c:1370 #5 0x00007ff73602b115 in _ast_odbc_request_obj (name=0x229cae0 "asterisk", check=0, file=0x7ff73602cbf4 "res_odbc.c", function=0x7ff73602dec0 <__PRETTY_FUNCTION__.16159> "odbc_register_class", lineno=1038) at res_odbc.c:1443 #6 0x00007ff736029320 in odbc_register_class (class=0x229cad8, preconnect=-1) at res_odbc.c:1038 #7 0x00007ff736028b4c in load_odbc_config () at res_odbc.c:922 #8 0x00007ff73602cabc in load_module () at res_odbc.c:1896 #9 0x0000000000532f08 in start_resource (mod=0x1f93600) at loader.c:1016 #10 0x00000000005338b7 in load_resource_list (load_order=0x7fffc3a287b0, global_symbols=1, mod_count=0x7fffc3a28740) at loader.c:1214 #11 0x0000000000533ed6 in load_modules (preload_only=0) at loader.c:1362 #12 0x000000000045b873 in main (argc=4, argv=0x7fffc3a2aaa8) at asterisk.c:4655 (gdb)