GNU gdb (Gentoo 7.3.1 p1) 7.3.1 Copyright (C) 2011 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-pc-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /opt/asterisk/sbin/asterisk...done. [?1034h(gdb) break schan_sip.c:12778 No source file named chan_sip.c. Make breakpoint pending on future shared library load? (y or [n]) Breakpoint 1 (chan_sip.c:12778) pending. (gdb) set args -vvvcg (gdb) r Starting program: /opt/asterisk/sbin/asterisk -vvvcg [Thread debugging using libthread_db enabled] Asterisk 10.3.1, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/opt/asterisk/etc/asterisk/asterisk.conf': == Found [New Thread 0x7ffff7faf700 (LWP 21575)] Running as group 'asterisk' Running as user 'asterisk'  == Parsing '/opt/asterisk/etc/asterisk/extconfig.conf':  == Found ERROR: Unable to open log file '/opt/asterisk/var/log/asterisk/messages': Permission denied' ERROR: Unable to create log channel 'messages'  == Parsing '/opt/asterisk/etc/asterisk/logger.conf':  == Found  == Parsing '/opt/asterisk/etc/asterisk/asterisk.conf':  == Found  == Manager registered action DBGet  == Manager registered action DBPut  == Manager registered action DBDel  == Manager registered action DBDelTree  == Registered custom function 'MESSAGE'  == Registered custom function 'MESSAGE_DATA'  == Registered application 'MessageSend'  == Manager registered action DataGet  == Parsing '/opt/asterisk/etc/asterisk/codecs.conf':  == Found  Asterisk Dynamic Loader Starting:  == Parsing '/opt/asterisk/etc/asterisk/modules.conf':  == Found  == Parsing '/opt/asterisk/etc/asterisk/dnsmgr.conf':  == Found  == Parsing '/opt/asterisk/etc/asterisk/http.conf':  == Found [May 2 23:02:49] WARNING[21572]: http.c:1062 __ast_http_load: Got 1 addresses  == Manager registered action Ping  == Manager registered action Events  == Manager registered action Logoff  == Manager registered action Login  == Manager registered action Challenge  == Manager registered action Hangup  == Manager registered action Status  == Manager registered action Setvar  == Manager registered action Getvar  == Manager registered action GetConfig  == Manager registered action GetConfigJSON  == Manager registered action UpdateConfig  == Manager registered action CreateConfig  == Manager registered action ListCategories  == Manager registered action Redirect  == Manager registered action Atxfer  == Manager registered action Originate  == Manager registered action Command  == Manager registered action ExtensionState  == Manager registered action AbsoluteTimeout  == Manager registered action MailboxStatus  == Manager registered action MailboxCount  == Manager registered action ListCommands  == Manager registered action SendText  == Manager registered action UserEvent  == Manager registered action WaitEvent  == Manager registered action CoreSettings  == Manager registered action CoreStatus  == Manager registered action Reload  == Manager registered action CoreShowChannels  == Manager registered action ModuleLoad  == Manager registered action ModuleCheck  == Manager registered action AOCMessage  == Manager registered action Filter  == Parsing '/opt/asterisk/etc/asterisk/manager.conf':  == Found  == Parsing '/opt/asterisk/etc/asterisk/users.conf':  == Found  == Parsing '/opt/asterisk/etc/asterisk/cdr.conf':  == Found [May 2 23:02:49] NOTICE[21572]: cdr.c:1558 do_reload: CDR simple logging enabled.  == Parsing '/opt/asterisk/etc/asterisk/cel.conf':  == Found  -- CEL logging disabled.  == Parsing '/opt/asterisk/etc/asterisk/dsp.conf':  == Found  == Parsing '/opt/asterisk/etc/asterisk/udptl.conf':  == Found  == UDPTL allocating from port range 4000 -> 4999  Asterisk PBX Core Initializing  Registering builtin applications:  == Registered custom function 'EXCEPTION'  == Registered custom function 'TESTTIME'  [Answer]  == Registered application 'Answer'  [BackGround]  == Registered application 'BackGround'  [Busy]  == Registered application 'Busy'  [Congestion]  == Registered application 'Congestion'  [ExecIfTime]  == Registered application 'ExecIfTime'  [Goto]  == Registered application 'Goto'  [GotoIf]  == Registered application 'GotoIf'  [GotoIfTime]  == Registered application 'GotoIfTime'  [ImportVar]  == Registered application 'ImportVar'  [Hangup]  == Registered application 'Hangup'  [Incomplete]  == Registered application 'Incomplete'  [NoOp]  == Registered application 'NoOp'  [Proceeding]  == Registered application 'Proceeding'  [Progress]  == Registered application 'Progress'  [RaiseException]  == Registered application 'RaiseException'  [ResetCDR]  == Registered application 'ResetCDR'  [Ringing]  == Registered application 'Ringing'  [SayAlpha]  == Registered application 'SayAlpha'  [SayDigits]  == Registered application 'SayDigits'  [SayNumber]  == Registered application 'SayNumber'  [SayPhonetic]  == Registered application 'SayPhonetic'  [Set]  == Registered application 'Set'  [MSet]  == Registered application 'MSet'  [SetAMAFlags]  == Registered application 'SetAMAFlags'  [Wait]  == Registered application 'Wait'  [WaitExten]  == Registered application 'WaitExten'  == Manager registered action ShowDialPlan  == Parsing '/opt/asterisk/etc/asterisk/indications.conf':  == Found  -- Registered indication country 'at'  -- Registered indication country 'au'  -- Registered indication country 'bg'  -- Registered indication country 'br'  -- Registered indication country 'be'  -- Registered indication country 'ch'  -- Registered indication country 'cl'  -- Registered indication country 'cn'  -- Registered indication country 'cz'  -- Registered indication country 'de'  -- Registered indication country 'dk'  -- Registered indication country 'ee'  -- Registered indication country 'es'  -- Registered indication country 'fi'  -- Registered indication country 'fr'  -- Registered indication country 'gr'  -- Registered indication country 'hu'  -- Registered indication country 'il'  -- Registered indication country 'in'  -- Registered indication country 'it'  -- Registered indication country 'lt'  -- Registered indication country 'jp'  -- Registered indication country 'mx'  -- Registered indication country 'my'  -- Registered indication country 'nl'  -- Registered indication country 'no'  -- Registered indication country 'nz'  -- Registered indication country 'ph'  -- Registered indication country 'pl'  -- Registered indication country 'pt'  -- Registered indication country 'ru'  -- Registered indication country 'se'  -- Registered indication country 'sg'  -- Registered indication country 'th'  -- Registered indication country 'uk'  -- Registered indication country 'us'  -- Registered indication country 'us-old'  -- Registered indication country 'tw'  -- Registered indication country 've'  -- Registered indication country 'za'  -- Setting default indication country to 'us'  == Parsing '/opt/asterisk/etc/asterisk/features.conf':  == Found  -- Registered extension context 'parkedcalls'; registrar: features  -- Added extension '700' priority 1 to parkedcalls  == Registered application 'Bridge'  == Registered application 'ParkedCall'  == Registered application 'Park'  == Manager registered action ParkedCalls  == Manager registered action Park  == Manager registered action Bridge  == Parsing '/opt/asterisk/etc/asterisk/enum.conf':  == Found  == Registered application 'CallCompletionRequest'  == Registered application 'CallCompletionCancel'  == Parsing '/opt/asterisk/etc/asterisk/ccss.conf':  == Found  == Parsing '/opt/asterisk/etc/asterisk/ccss.conf':  == Found  Asterisk Dynamic Loader Starting:  == Parsing '/opt/asterisk/etc/asterisk/modules.conf':  == Found [May 2 23:02:49] NOTICE[21572]: loader.c:1135 load_modules: 195 modules will be loaded. [New Thread 0x7ffff7f33700 (LWP 21576)] [New Thread 0x7ffff7eb7700 (LWP 21577)] [New Thread 0x7ffff4fcb700 (LWP 21578)] [New Thread 0x7ffff4f4f700 (LWP 21579)] [New Thread 0x7ffff4ed3700 (LWP 21580)] [New Thread 0x7ffff4e57700 (LWP 21581)] [New Thread 0x7ffff4ddb700 (LWP 21582)] [New Thread 0x7ffff4d5f700 (LWP 21583)] [New Thread 0x7ffff4ce3700 (LWP 21584)] [New Thread 0x7ffff4c67700 (LWP 21585)] warning: Temporarily disabling breakpoints for unloaded shared library "/opt/asterisk/lib/asterisk/modules/chan_sip.so"  == Registered application 'Monitor'  == Registered application 'StopMonitor'  == Registered application 'ChangeMonitor'  == Registered application 'PauseMonitor'  == Registered application 'UnpauseMonitor'  == Manager registered action Monitor  == Manager registered action StopMonitor  == Manager registered action ChangeMonitor  == Manager registered action PauseMonitor  == Manager registered action UnpauseMonitor  res_monitor.so => (Call Monitoring Resource)  == Parsing '/opt/asterisk/etc/asterisk/res_stun_monitor.conf':  == Found  res_stun_monitor.so => (STUN Network Monitor)  == Parsing '/opt/asterisk/etc/asterisk/smdi.conf':  == Found [May 2 23:02:55] NOTICE[21572]: res_smdi.c:1418 load_module: No SMDI interfaces are available to listen on, not starting SMDI listener.  res_crypto.so => (Cryptographic Digital Signatures)  == Parsing '/opt/asterisk/etc/asterisk/adsi.conf':  == Found  res_adsi => (ADSI Resource)  == Parsing '/opt/asterisk/etc/asterisk/res_fax.conf':  == Found  == Registered application 'SendFAX'  == Registered application 'ReceiveFAX'  == Registered custom function 'FAXOPT'  res_fax.so => (Generic FAX Applications)  == AGI Command 'answer' registered  == AGI Command 'asyncagi break' registered  == AGI Command 'channel status' registered  == AGI Command 'database del' registered  == AGI Command 'database deltree' registered  == AGI Command 'database get' registered  == AGI Command 'database put' registered  == AGI Command 'exec' registered  == AGI Command 'get data' registered  == AGI Command 'get full variable' registered  == AGI Command 'get option' registered  == AGI Command 'get variable' registered  == AGI Command 'hangup' registered  == AGI Command 'noop' registered  == AGI Command 'receive char' registered  == AGI Command 'receive text' registered  == AGI Command 'record file' registered  == AGI Command 'say alpha' registered  == AGI Command 'say digits' registered  == AGI Command 'say number' registered  == AGI Command 'say phonetic' registered  == AGI Command 'say date' registered  == AGI Command 'say time' registered  == AGI Command 'say datetime' registered  == AGI Command 'send image' registered  == AGI Command 'send text' registered  == AGI Command 'set autohangup' registered  == AGI Command 'set callerid' registered  == AGI Command 'set context' registered  == AGI Command 'set extension' registered  == AGI Command 'set music' registered  == AGI Command 'set priority' registered  == AGI Command 'set variable' registered  == AGI Command 'stream file' registered  == AGI Command 'control stream file' registered  == AGI Command 'tdd mode' registered  == AGI Command 'verbose' registered  == AGI Command 'wait for digit' registered  == AGI Command 'speech create' registered  == AGI Command 'speech set' registered  == AGI Command 'speech destroy' registered  == AGI Command 'speech load grammar' registered  == AGI Command 'speech unload grammar' registered  == AGI Command 'speech activate grammar' registered  == AGI Command 'speech deactivate grammar' registered  == AGI Command 'speech recognize' registered  == Registered application 'DeadAGI'  == Registered application 'EAGI'  == Manager registered action AGI  == Registered application 'AGI'  res_agi.so => (Asterisk Gateway Interface (AGI))  res_speech.so => (Generic Speech Recognition API)  == Parsing '/opt/asterisk/etc/asterisk/calendar.conf':  == Found  == Registered custom function 'CALENDAR_BUSY'  == Registered custom function 'CALENDAR_EVENT'  == Registered custom function 'CALENDAR_QUERY'  == Registered custom function 'CALENDAR_QUERY_RESULT'  == Registered custom function 'CALENDAR_WRITE'  res_calendar.so => (Asterisk Calendar integration)  res_ael_share.so => (share-able code for AEL)  -- Registered extension context 'default'; registrar: pbx_lua  -- Including switch 'Lua/' in context 'default'  -- Registered extension context 'demo'; registrar: pbx_lua  -- Including switch 'Lua/' in context 'demo'  -- Registered extension context 'local'; registrar: pbx_lua  -- Including switch 'Lua/' in context 'local'  -- Added extension '1000' priority -1 to demo  -- Added extension '1001' priority -1 to demo  -- Added extension '1234' priority -1 to default  -- Registered extension context 'parkedcalls'; registrar: features  -- merging incls/swits/igpats from old(parkedcalls) to new(parkedcalls) context, registrar = pbx_lua  -- Added extension '700' priority 1 to parkedcalls  -- Time to scan old dialplan and merge leftovers back into the new: 0.000385 sec  -- Time to restore hints and swap in new dialplan: 0.000013 sec  -- Time to delete the old dialplan: 0.000012 sec  -- Total time merge_contexts_delete: 0.000410 sec  pbx_lua.so => (Lua PBX Switch) [New Thread 0x7ffff4172700 (LWP 21586)] warning: Temporarily disabling breakpoints for unloaded shared library "/opt/asterisk/lib/asterisk/modules/chan_sip.so"  res_curl.so => (cURL Resource Module)  == Registered custom function 'CURL'  == Registered custom function 'CURLOPT'  func_curl.so => (Load external URL)  == Parsing '/opt/asterisk/etc/asterisk/res_ldap.conf':  == Found [May 2 23:03:12] NOTICE[21572]: res_config_ldap.c:1631 parse_config: No directory user found, anonymous binding as default. [May 2 23:03:12] ERROR[21572]: res_config_ldap.c:1657 parse_config: No directory URL or host found. [May 2 23:03:12] ERROR[21572]: res_config_ldap.c:1540 load_module: Cannot load LDAP RealTime driver.  res_config_ldap.so => (LDAP realtime interface)  == Parsing '/opt/asterisk/etc/asterisk/res_curl.conf':  == Found [May 2 23:03:12] NOTICE[21572]: config.c:2201 ast_config_engine_register: Registered Config Engine curl  res_config_curl loaded.  res_config_curl.so => (Realtime Curl configuration)  res_timing_pthread.so => (pthread Timing Interface)  res_timing_timerfd.so => (Timerfd Timing Interface)  == Registered RTP engine 'asterisk'  == Parsing '/opt/asterisk/etc/asterisk/rtp.conf':  == Found  == RTP Allocating from port range 10001 -> 20000  res_rtp_asterisk.so => (Asterisk RTP Stack)  == Parsing '/opt/asterisk/etc/asterisk/musiconhold.conf':  == Found  == Registered application 'MusicOnHold'  == Registered application 'WaitMusicOnHold'  == Registered application 'SetMusicOnHold'  == Registered application 'StartMusicOnHold'  == Registered application 'StopMusicOnHold'  res_musiconhold.so => (Music On Hold Resource)  == Parsing '/opt/asterisk/etc/asterisk/codecs.conf':  == Found  res_format_attr_silk.so => (SILK Format Attribute Module)  == Registered RTP engine 'multicast'  res_rtp_multicast.so => (Multicast RTP Engine)  == Parsing '/opt/asterisk/etc/asterisk/codecs.conf':  == Found  res_format_attr_celt.so => (CELT Format Attribute Module) SIP channel loading...  == Parsing '/opt/asterisk/etc/asterisk/sip.conf':  == Found  == Parsing '/opt/asterisk/etc/asterisk/users.conf':  == Found [New Thread 0x7ffff40f6700 (LWP 21587)] [May 2 23:03:12] WARNING[21572]: chan_sip.c:29593 reload_config: No valid transports available, falling back to 'udp'.  == SIP Listening on 0.0.0.0:5060  == Using SIP CoS mark 4  == Parsing '/opt/asterisk/etc/asterisk/sip_notify.conf':  == Found  -- Message technology handler 'sip' registered.  == Registered channel type 'SIP' (Session Initiation Protocol (SIP))  == Registered RTP glue 'SIP'  == Registered application 'SIPDtmfMode'  == Registered application 'SIPAddHeader'  == Registered application 'SIPRemoveHeader'  == Registered custom function 'SIP_HEADER'  == Registered custom function 'SIPPEER'  == Registered custom function 'SIPCHANINFO'  == Registered custom function 'CHECKSIPDOMAIN'  == Manager registered action SIPpeers  == Manager registered action SIPshowpeer  == Manager registered action SIPqualifypeer  == Manager registered action SIPshowregistry  == Manager registered action SIPnotify  chan_sip.so => (Session Initiation Protocol (SIP)) [New Thread 0x7fffeef95700 (LWP 21588)] [Switching to Thread 0x7fffeef95700 (LWP 21588)] Breakpoint 1, __sip_subscribe_mwi_do (mwi=0x7ffff024cc20) at chan_sip.c:12779 12779 if (!mwi->dnsmgr) { (gdb) print mwi $1 = (struct sip_subscription_mwi *) 0x7ffff024cc20 (gdb) print *mwi $2 = {name = "", refcount = 2, objflags = 0, next = {0x0}, _lock = {mutex = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0, __kind = 1, __spins = 0, __list = {__prev = 0x0, __next = 0x0}}, __size = '\000' , "\001", '\000' , __align = 0}, track = 0x7ffff024d400, tracking = 1}, __field_mgr_pool = 0x7ffff024cd58, username = 0x7ffff024cd7a "1234", authuser = 0x84e8c2 "", hostname = 0x7ffff024cd8e "mysipprovider.com", secret = 0x7ffff024cd82 "password", mailbox = 0x7ffff024cda2 "1234", __field_mgr = {last_alloc = 0x7ffff024cda2 "1234", embedded_pool = 0x7ffff024cd58}, transport = SIP_TRANSPORT_UDP, portno = 0, resub = -1, subscribed = 0, call = 0x0, dnsmgr = 0x0, us = {ss = {ss_family = 0, __ss_align = 0, __ss_padding = '\000' }, len = 0}} (gdb) n  == Registered channel type 'Local' (Local Proxy Channel Driver)  == Manager registered action LocalOptimizeAway  chan_local.so => (Local Proxy Channel (Note: used internally by other modules)) 12781 snprintf(transport, sizeof(transport), "_%s._%s", get_srv_service(mwi->transport), get_srv_protocol(mwi->transport)); (gdb) n 12783 mwi->us.ss.ss_family = get_address_family_filter(&bindaddr); /* Filter address family */ (gdb) n 12784 ASTOBJ_REF(mwi); /* Add a ref for storing the mwi on the dnsmgr for updates */ (gdb) n 12785 ast_dnsmgr_lookup_cb(mwi->hostname, &mwi->us, &mwi->dnsmgr, sip_cfg.srvlookup ? transport : NULL, on_dns_update_mwi, mwi); (gdb) n 12786 if (!mwi->dnsmgr) { (gdb) n 12787 ASTOBJ_UNREF(mwi, sip_subscribe_mwi_destroy); /* dnsmgr disabled, remove reference */ (gdb) n 12792 if (mwi->call) { (gdb) nprint *mwimwi $3 = (struct sip_subscription_mwi *) 0x0 (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. 0x00007fffd892a54d in __sip_subscribe_mwi_do (mwi=0x0) at chan_sip.c:12792 12792 if (mwi->call) { (gdb) bt full #0 0x00007fffd892a54d in __sip_subscribe_mwi_do (mwi=0x0) at chan_sip.c:12792 __PRETTY_FUNCTION__ = "__sip_subscribe_mwi_do" #1 0x00007fffd8929a71 in sip_subscribe_mwi_do (data=0x7ffff024cc20) at chan_sip.c:12703 mwi = 0x7ffff024cc20 __PRETTY_FUNCTION__ = "sip_subscribe_mwi_do" #2 0x000000000057242f in ast_sched_runq (con=0x7ffff0242310) at sched.c:610 current = 0x8c5e90 when = {tv_sec = 1336014192, tv_usec = 941301} numevents = 0 res = 0 __PRETTY_FUNCTION__ = "ast_sched_runq" #3 0x00007fffd8978929 in do_monitor (data=0x0) at chan_sip.c:26680 res = 0 t = 1336014192 reloading = 0 __PRETTY_FUNCTION__ = "do_monitor" #4 0x000000000058eecb in dummy_start (data=0x8e3430) at utils.c:1010 __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {140737202706176, -7798308055381862341, 140737488343488, 140737202706880, 140737354125312, 3, -7798308055413319621, 7798270170973837371}, __mask_was_saved = 0}}, __pad = {0x7fffeef94f80, 0x0, 0x0, 0x0}} __cancel_routine = 0x4411e5 __cancel_arg = 0x7fffeef95700 __not_first_call = 0 ret = 0x0 a = {start_routine = 0x7fffd8978609 , data = 0x0, name = 0xeed8c0 "do_monitor", ' ' , "started at [26707] chan_sip.c restart_monitor()"} lock_info = 0xf019c0 mutex_attr = {__size = "\001\000\000", __align = 1} #5 0x00007ffff6398ccc in start_thread () from /lib64/libpthread.so.0 No symbol table info available. #6 0x00007ffff752010d in clone () from /lib64/libc.so.6 No symbol table info available. (gdb) bt fullathread apply all bt Thread 15 (Thread 0x7fffeef95700 (LWP 21588)): #0 0x00007fffd892a54d in __sip_subscribe_mwi_do (mwi=0x0) at chan_sip.c:12792 #1 0x00007fffd8929a71 in sip_subscribe_mwi_do (data=0x7ffff024cc20) at chan_sip.c:12703 #2 0x000000000057242f in ast_sched_runq (con=0x7ffff0242310) at sched.c:610 #3 0x00007fffd8978929 in do_monitor (data=0x0) at chan_sip.c:26680 #4 0x000000000058eecb in dummy_start (data=0x8e3430) at utils.c:1010 #5 0x00007ffff6398ccc in start_thread () from /lib64/libpthread.so.0 #6 0x00007ffff752010d in clone () from /lib64/libc.so.6 Thread 14 (Thread 0x7ffff40f6700 (LWP 21587)): #0 0x00007ffff639d43c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00000000004fe671 in __ast_cond_wait (filename=0x7fffd28b27d4 "res_timing_pthread.c", lineno=469, func=0x7fffd28b2c63 "do_timing", cond_name=0x7fffd28b2814 "&timing_thread.cond", mutex_name=0x7fffd28b2800 "&timing_thread.lock", cond=0x7fffd2ab4300, t=0x7fffd2ab42c8) at lock.c:543 #2 0x00007fffd28b24b3 in do_timing (arg=0x0) at res_timing_pthread.c:469 #3 0x000000000058eecb in dummy_start (data=0x7ffff01f6a60) at utils.c:1010 #4 0x00007ffff6398ccc in start_thread () from /lib64/libpthread.so.0 #5 0x00007ffff752010d in clone () from /lib64/libc.so.6 Thread 13 (Thread 0x7ffff4172700 (LWP 21586)): #0 0x00007ffff639d7bb in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00000000004fed50 in __ast_cond_timedwait (filename=0x7ffff439edc4 "res_calendar.c", lineno=1756, func=0x7ffff43a0104 "do_refresh", cond_name=0x7ffff439f4f2 "&refresh_condition", mutex_name=0x7ffff439f3bd "&refreshlock", cond=0x7ffff45a2b20, t=0x7ffff45a2ae0, abstime=0x7ffff4171dc0) at lock.c:650 #2 0x00007ffff439e855 in do_refresh (data=0x0) at res_calendar.c:1756 #3 0x000000000058eecb in dummy_start (data=0xedf670) at utils.c:1010 #4 0x00007ffff6398ccc in start_thread () from /lib64/libpthread.so.0 #5 0x00007ffff752010d in clone () from /lib64/libc.so.6 Thread 12 (Thread 0x7ffff4c67700 (LWP 21585)): #0 0x00007ffff639d43c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00000000004fe671 in __ast_cond_wait (filename=0x5e77f4 "sched.c", lineno=116, func=0x5e7d55 "sched_run", cond_name=0x5e7807 "&con->sched_thread->cond", mutex_name=0x5e77fc "&con->lock", cond=0xec2e98, t=0xec8160) at lock.c:543 #2 0x0000000000570b0f in sched_run (data=0xec8160) at sched.c:116 #3 0x000000000058eecb in dummy_start (data=0xec1af0) at utils.c:1010 #4 0x00007ffff6398ccc in start_thread () from /lib64/libpthread.so.0 #5 0x00007ffff752010d in clone () from /lib64/libc.so.6 Thread 11 (Thread 0x7ffff4ce3700 (LWP 21584)): #0 0x00007ffff639d43c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00000000004fe671 in __ast_cond_wait (filename=0x5ea6c4 "taskprocessor.c", lineno=295, func=0x5eae20 "tps_processing_function", cond_name=0x5eaa31 "&i->poll_cond", mutex_name=0x5eaa1a "&i->taskprocessor_lock", cond=0xec1d20, t=0xec1d58) at lock.c:543 #2 0x000000000057ccd2 in tps_processing_function (data=0xec1d18) at taskprocessor.c:295 #3 0x000000000058eecb in dummy_start (data=0xec1980) at utils.c:1010 #4 0x00007ffff6398ccc in start_thread () from /lib64/libpthread.so.0 #5 0x00007ffff752010d in clone () from /lib64/libc.so.6 Thread 10 (Thread 0x7ffff4d5f700 (LWP 21583)): #0 0x00007ffff75174b3 in poll () from /lib64/libc.so.6 #1 0x00000000004d3820 in do_parking_thread (ignore=0x0) at features.c:4861 #2 0x000000000058eecb in dummy_start (data=0xebf900) at utils.c:1010 #3 0x00007ffff6398ccc in start_thread () from /lib64/libpthread.so.0 #4 0x00007ffff752010d in clone () from /lib64/libc.so.6 Thread 9 (Thread 0x7ffff4ddb700 (LWP 21582)): #0 0x00007ffff639d43c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00000000004fe671 in __ast_cond_wait (filename=0x5ea6c4 "taskprocessor.c", lineno=295, func=0x5eae20 "tps_processing_function", cond_name=0x5eaa31 "&i->poll_cond", mutex_name=0x5eaa1a "&i->taskprocessor_lock", cond=0x7ffff0018a60, t=0x7ffff0018a98) at lock.c:543 #2 0x000000000057ccd2 in tps_processing_function (data=0x7ffff0018a58) at taskprocessor.c:295 #3 0x000000000058eecb in dummy_start (data=0x7ffff0007770) at utils.c:1010 #4 0x00007ffff6398ccc in start_thread () from /lib64/libpthread.so.0 #5 0x00007ffff752010d in clone () from /lib64/libc.so.6 Thread 8 (Thread 0x7ffff4e57700 (LWP 21581)): #0 0x00007ffff639d43c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00000000004fe671 in __ast_cond_wait (filename=0x5c5094 "devicestate.c", lineno=539, func=0x5c5850 "do_devstate_changes", cond_name=0x5c5347 "&change_pending", mutex_name=0x5c5357 "&state_changes.lock", cond=0x83f140, t=0x824e90) at lock.c:543 #2 0x00000000004b0079 in do_devstate_changes (data=0x0) at devicestate.c:539 #3 0x000000000058eecb in dummy_start (data=0xdba3d0) at utils.c:1010 #4 0x00007ffff6398ccc in start_thread () from /lib64/libpthread.so.0 #5 0x00007ffff752010d in clone () from /lib64/libc.so.6 Thread 7 (Thread 0x7ffff4ed3700 (LWP 21580)): #0 0x00007ffff639d43c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00000000004fe671 in __ast_cond_wait (filename=0x5ea6c4 "taskprocessor.c", lineno=295, func=0x5eae20 "tps_processing_function", cond_name=0x5eaa31 "&i->poll_cond", mutex_name=0x5eaa1a "&i->taskprocessor_lock", cond=0x7ffff0000da0, t=0x7ffff0000dd8) at lock.c:543 #2 0x000000000057ccd2 in tps_processing_function (data=0x7ffff0000d98) at taskprocessor.c:295 #3 0x000000000058eecb in dummy_start (data=0x7ffff0000e50) at utils.c:1010 #4 0x00007ffff6398ccc in start_thread () from /lib64/libpthread.so.0 #5 0x00007ffff752010d in clone () from /lib64/libc.so.6 Thread 6 (Thread 0x7ffff4f4f700 (LWP 21579)): #0 0x00007ffff639d43c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00000000004fe671 in __ast_cond_wait (filename=0x5c3f94 "db.c", lineno=882, func=0x5c4f19 "db_sync_thread", cond_name=0x5c4ec3 "&dbcond", mutex_name=0x5c41f9 "&dblock", cond=0x83f0a0, t=0x824860) at lock.c:543 #2 0x00000000004af02a in db_sync_thread (data=0x0) at db.c:882 #3 0x000000000058eecb in dummy_start (data=0xdbc080) at utils.c:1010 #4 0x00007ffff6398ccc in start_thread () from /lib64/libpthread.so.0 #5 0x00007ffff752010d in clone () from /lib64/libc.so.6 Thread 5 (Thread 0x7ffff4fcb700 (LWP 21578)): #0 0x00007ffff639d43c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00000000004fe671 in __ast_cond_wait (filename=0x5d3ef4 "logger.c", lineno=1058, func=0x5d4dc2 "logger_thread", cond_name=0x5d49ee "&logcond", mutex_name=0x5d49e0 "&logmsgs.lock", cond=0x83fe00, t=0x828050) at lock.c:543 #2 0x0000000000503ca6 in logger_thread (data=0x0) at logger.c:1058 #3 0x000000000058eecb in dummy_start (data=0x880160) at utils.c:1010 #4 0x00007ffff6398ccc in start_thread () from /lib64/libpthread.so.0 #5 0x00007ffff752010d in clone () from /lib64/libc.so.6 Thread 4 (Thread 0x7ffff7eb7700 (LWP 21577)): #0 0x00007ffff75174b3 in poll () from /lib64/libc.so.6 #1 0x0000000000443a2b in listener (unused=0x0) at asterisk.c:1331 #2 0x000000000058eecb in dummy_start (data=0x8999b0) at utils.c:1010 #3 0x00007ffff6398ccc in start_thread () from /lib64/libpthread.so.0 #4 0x00007ffff752010d in clone () from /lib64/libc.so.6 Thread 3 (Thread 0x7ffff7f33700 (LWP 21576)): #0 0x00007ffff639d43c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00000000004fe671 in __ast_cond_wait (filename=0x5ea6c4 "taskprocessor.c", lineno=295, func=0x5eae20 "tps_processing_function", cond_name=0x5eaa31 "&i->poll_cond", mutex_name=0x5eaa1a "&i->taskprocessor_lock", cond=0x880090, t=0x8800c8) at lock.c:543 #2 0x000000000057ccd2 in tps_processing_function (data=0x880088) at taskprocessor.c:295 #3 0x000000000058eecb in dummy_start (data=0x880160) at utils.c:1010 #4 0x00007ffff6398ccc in start_thread () from /lib64/libpthread.so.0 #5 0x00007ffff752010d in clone () from /lib64/libc.so.6 Thread 2 (Thread 0x7ffff7faf700 (LWP 21575)): #0 0x00007ffff75129dd in read () from /lib64/libc.so.6 #1 0x00000000005752b2 in inotify_daemon (data=0x0) at stdtime/localtime.c:290 #2 0x000000000058eecb in dummy_start (data=0x86d590) at utils.c:1010 #3 0x00007ffff6398ccc in start_thread () from /lib64/libpthread.so.0 #4 0x00007ffff752010d in clone () from /lib64/libc.so.6 Thread 1 (Thread 0x7ffff7fb1700 (LWP 21572)): #0 0x00007ffff74bdc51 in ?? () from /lib64/libc.so.6 #1 0x00007ffff74c0b12 in calloc () from /lib64/libc.so.6 #2 0x00000000004fcedc in ast_reentrancy_init (plt=0x27f9568) at /var/tmp/portage/net-misc/asterisk-10.3.1/work/asterisk-10.3.1/include/asterisk/lock.h:446 #3 0x00000000004fd095 in __ast_pthread_mutex_init (tracking=1, filename=0x5b1964 "astobj2.c", lineno=306, func=0x5b1bd0 "internal_ao2_alloc", mutex_name=0x5b1a38 "&obj->priv_data.lock", t=0x27f9540) at lock.c:66 #4 0x000000000044cc0f in internal_ao2_alloc (data_size=8, destructor_fn=0, file=0x5b1964 "astobj2.c", line=344, funcname=0x5b1bc2 "__ao2_alloc") at astobj2.c:306 #5 0x000000000044cd50 in __ao2_alloc (data_size=4, destructor_fn=0) at astobj2.c:344 #6 0x00007fffedb212de in create_callno_pools () at chan_iax2.c:2781 #7 0x00007fffedb688d9 in load_objects () at chan_iax2.c:14589 #8 0x00007fffedb696cb in load_module () at chan_iax2.c:14819 #9 0x00000000004fb690 in start_resource (mod=0x7ffff00f64a0) at loader.c:796 #10 0x00000000004fc1bd in load_resource_list (load_order=0x7fffffffd5c0, global_symbols=0, mod_count=0x7fffffffd5ac) at loader.c:990 #11 0x00000000004fc84d in load_modules (preload_only=0) at loader.c:1143 #12 0x000000000044c10e in main (argc=2, argv=0x7fffffffec58) at asterisk.c:3939 (gdb) qk Kill the program being debugged? (y or n) (gdb) q