Ring (daemon) technically deadlock under network pressure
Issue generated from Tuleap's migration script. Originally submitted by: Emmanuel Lepage Vallee (elv13)
Well, I was downloading "a Linux ISO" over bittorent and dring froze. I could not start it or use it. At some point it also crashed, but I didn't get the backtrace. Pausing the download unfroze dring.
The problem is that the time to resolve some network details is greater than the time Ring refresh them, so it end up in an "blocking infinite loop" of lookups. It is never technically deadlocked, but the lookup threads are blocked until they timeout and block again, forever.
Here is a GDB trace with some control+c and continue to see where it blocks
┗━: gdb ./bin/dring ⮂Tue 01:44 ⮀━┛
GNU gdb (Gentoo 7.11 vanilla) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./bin/dring...done.
(gdb) run -c -d
Starting program: /home/lepagee/dev/sflphone\_review/bin/dring -c -d
[Thread debugging using libthread\_db enabled]
Using host libthread\_db library "/lib64/libthread\_db.so.1".
Ring Daemon 2.3.0-ca611bcc46-dirty, by Savoir-faire Linux 2004-2016
http://www.ring.cx/
[Video support enabled]
[1458020689.071|20427|ringbufferpool.cpp:114 ] Ringbuffer created with id 'audiolayer\_id'
[1458020689.071|20427|account\_factory.cpp:47 ] registered SIP account
[1458020689.071|20427|account\_factory.cpp:51 ] registered IAX account
[1458020689.071|20427|account\_factory.cpp:56 ] registered RING account
[1458020689.145|20427|/home/lepagee/dev/sflphone\_review/src/media/video/video\_device.h:128] Default video settings: 960x540, 30 FPS
[1458020689.145|20427|video\_device\_monitor.cpp:171] Manager not initialized yet
[New Thread 0x7fffeb23b700 (LWP 20438)]
[1458020689.146|20427|manager.cpp:193 ] Not initialized
[1458020689.146|20427|manager.cpp:193 ] Not initialized
01:44:49.146 os\_core\_unix.c !pjlib 2.4.5 for POSIX initialized
[1458020689.146|20427|manager.cpp:281 ] pjsip version 2.4.5 for linux initialized
[1458020689.146|20427|manager.cpp:285 ] GNU TLS version 3.3.22 initialized
[1458020689.146|20427|manager.cpp:291 ] Configuration file path: /home/lepagee/.config/ring/dring.yml
[1458020689.160|20427|system\_codec\_container.cpp:151] Encoders found: H264 MP4V-ES H263-1998 opus G722 PCMA PCMU
[1458020689.160|20427|system\_codec\_container.cpp:152] Decoders found: H264 VP8 MP4V-ES H263-1998 opus G722 PCMA PCMU
[1458020689.160|20427|upnp\_context.cpp:130 ] UPnP: using IPv4
[New Thread 0x7fffeaa3a700 (LWP 20439)]
[New Thread 0x7fffea239700 (LWP 20440)]
[New Thread 0x7fffe9a38700 (LWP 20441)]
[New Thread 0x7fffe9237700 (LWP 20442)]
[New Thread 0x7fffe8a36700 (LWP 20443)]
[New Thread 0x7fffe8235700 (LWP 20444)]
[New Thread 0x7fffe7a34700 (LWP 20445)]
[New Thread 0x7fffe7233700 (LWP 20446)]
[1458020689.162|20427|upnp\_context.cpp:141 ] UPnP: initialiazed on 192.168.1.4:49152
[1458020689.162|20427|upnp\_context.cpp:153 ] UPnP: ctrlptrHandle=1
[New Thread 0x7fffe6a32700 (LWP 20447)]
[New Thread 0x7fffe6231700 (LWP 20448)]
[1458020689.170|20442|upnp\_context.cpp:541 ] UPnP: checking new device of type IGD: 'R6220 (Gateway)'
[1458020689.180|20442|upnp\_context.cpp:627 ] UPnP: got external IP: 24.157.205.126
[1458020689.963|20427|sipvoiplink.cpp:512 ] Using SIP nameserver: 192.168.1.1
[1458020689.963|20427|siptransport.cpp:188 ] SipTransportBroker@0xa054f0
[1458020691.940|20442|upnp\_context.cpp:648 ] UPnP: found a valid IGD: http://192.168.1.1:56688/rootDesc.xml
[1458020691.940|20442|upnp\_context.cpp:937 ] UPnP: removing all port mappings with description: "RING" and local ip: 192.168.1.4
[1458020691.941|20427|sipvoiplink.cpp:593 ] SIPVoIPLink@0xb797d0
[1458020691.942|20427|sipaccountbase.cpp:352 ] [Account 6b40ea07eca2f76f] Using public address 77.58.93.232
[1458020691.943|20427|sipaccount.cpp:1737 ] Presence enabled for 36be33ea8404a772 : false.
[1458020691.943|20427|sipaccount.cpp:1737 ] Presence enabled for Account:1273501236 : false.
[1458020691.943|20427|sipaccount.cpp:1737 ] Presence enabled for Account:1510325548 : false.
[1458020691.943|20427|sipaccount.cpp:1737 ] Presence enabled for Account:1729392257 : false.
[1458020691.943|20427|sipaccountbase.cpp:352 ] [Account Account:1852183666] Using public address 192.255.255.255
[1458020691.943|20427|sipaccount.cpp:1737 ] Presence enabled for Account:1852183666 : false.
[1458020691.943|20427|sipaccount.cpp:1737 ] Presence enabled for Account:210878369 : true.
[1458020691.944|20427|sipaccount.cpp:1737 ] Presence enabled for Account:478575007 : false.
[1458020691.944|20427|sipaccount.cpp:1737 ] Presence enabled for Account:575160521 : false.
[1458020691.944|20427|sipaccount.cpp:1737 ] Presence enabled for Account:587275218 : false.
[1458020691.944|20427|sipaccount.cpp:1737 ] Presence enabled for Account:600211970 : false.
[1458020691.944|20427|sipaccount.cpp:1737 ] Presence enabled for Account:743329902 : false.
[1458020691.945|20427|sipaccount.cpp:1737 ] Presence enabled for Account:835172818 : false.
[1458020691.945|20427|sipaccount.cpp:1737 ] Presence enabled for Account:855874142 : false.
[1458020691.945|20427|sipaccount.cpp:1737 ] Presence enabled for Account:871392244 : false.
[1458020691.945|20427|sipaccount.cpp:1737 ] Presence enabled for Account:872826787 : false.
[1458020691.945|20427|sipaccount.cpp:1737 ] Presence enabled for Account:882373151 : false.
[1458020691.945|20427|sipaccount.cpp:1737 ] Presence enabled for Account:888110727 : false.
[1458020691.945|20427|sipaccountbase.cpp:352 ] [Account Account:933277037] Using public address 1.1.1.1
[1458020691.945|20427|sipaccount.cpp:1737 ] Presence enabled for Account:933277037 : false.
[1458020691.945|20427|sipaccount.cpp:1737 ] Presence enabled for IP2IP : false.
[1458020691.949|20427|preferences.cpp:332 ] Card with index 0 doesn't exist or is unusable.
[1458020691.949|20427|preferences.cpp:332 ] Card with index 0 doesn't exist or is unusable.
[1458020691.950|20427|preferences.cpp:332 ] Card with index 0 doesn't exist or is unusable.
[1458020691.975|20442|upnp\_context.cpp:957 ] UPnP: Failed to get GetGenericPortMappingEntry from: urn:schemas-upnp-org:service:WANIPConnection:1, 713: Unknown error code
[1458020691.977|20427|sipaccount.cpp:728 ] doRegister 192.95.9.63
[1458020691.977|20427|sipvoiplink.cpp:1241 ] try to resolve '192.95.9.63' (port: 0)
[1458020691.977|20427|sipaccount.cpp:847 ] Creating transport
[1458020693.628|20427|siptransport.cpp:349 ] Created UDP transport on default : 0.0.0.0:5060
[1458020693.628|20427|siptransport.cpp:82 ] SipTransport@0xb53f40 {tr=0xae17b8 {rc=2}}
[1458020693.628|20427|pres\_sub\_client.cpp:525 ] PresSubClient <sip:5000@192.95.9.63>: subscribing
[1458020693.628|20427|pres\_sub\_client.cpp:76 ] Subscription for pres\_client '<sip:5000@192.95.9.63>' is 'SENT'
[1458020693.628|20427|sippresence.cpp:396 ] Send PUBLISH (Account:210878369).
[New Thread 0x7fffe5408700 (LWP 20471)]
[1458020693.629|20427|ringaccount.cpp:760 ] UPnP: waiting for IGD to register RING account
[1458020693.629|20471|tls\_session.cpp:665 ] Generating DH params with 2048 bits
[New Thread 0x7fffe4c07700 (LWP 20472)]
[1458020693.629|20427|sipaccount.cpp:1229 ] Using 0 ciphers
[1458020693.629|20427|sipaccount.cpp:1229 ] Using 0 ciphers
[1458020693.629|20427|sipaccount.cpp:1229 ] Using 0 ciphers
[1458020693.629|20472|upnp\_context.cpp:291 ] UPnP: adding port mapping : 4282:4282, UDP
[1458020693.629|20427|sipaccount.cpp:1210 ] Valid cipher: TLS\_RSA\_NULL\_MD5
[1458020693.629|20427|sipaccount.cpp:1210 ] Valid cipher: TLS\_RSA\_ARCFOUR\_128\_SHA1
[1458020693.629|20427|sipaccount.cpp:1210 ] Valid cipher: TLS\_RSA\_3DES\_EDE\_CBC\_SHA1
[1458020693.629|20427|sipaccount.cpp:1210 ] Valid cipher: TLS\_RSA\_AES\_256\_CBC\_SHA1
[1458020693.629|20427|sipaccount.cpp:1210 ] Valid cipher: TLS\_RSA\_CAMELLIA\_128\_CBC\_SHA1
[1458020693.629|20427|sipaccount.cpp:1210 ] Valid cipher: TLS\_RSA\_AES\_256\_CBC\_SHA256
[1458020693.629|20427|sipaccount.cpp:1210 ] Valid cipher: TLS\_RSA\_CAMELLIA\_128\_GCM\_SHA256
[1458020693.629|20427|sipaccount.cpp:1229 ] Using 7 ciphers
[1458020693.629|20427|sipaccount.cpp:1229 ] Using 0 ciphers
[1458020693.629|20427|sipaccount.cpp:1229 ] Using 0 ciphers
[1458020693.629|20427|sipaccount.cpp:1229 ] Using 0 ciphers
[1458020693.629|20427|sipaccount.cpp:1210 ] Valid cipher: TLS\_RSA\_NULL\_MD5
[1458020693.629|20427|sipaccount.cpp:1210 ] Valid cipher: TLS\_RSA\_NULL\_SHA1
[1458020693.629|20427|sipaccount.cpp:1210 ] Valid cipher: TLS\_RSA\_NULL\_SHA256
[1458020693.629|20427|sipaccount.cpp:1229 ] Using 3 ciphers
[1458020693.629|20427|sipaccount.cpp:1210 ] Valid cipher: TLS\_RSA\_NULL\_MD5
[1458020693.629|20427|sipaccount.cpp:1210 ] Valid cipher: TLS\_RSA\_NULL\_SHA1
[1458020693.629|20427|sipaccount.cpp:1210 ] Valid cipher: TLS\_RSA\_NULL\_SHA256
[1458020693.629|20427|sipaccount.cpp:1210 ] Valid cipher: TLS\_RSA\_ARCFOUR\_128\_SHA1
[1458020693.630|20427|sipaccount.cpp:1210 ] Valid cipher: TLS\_RSA\_ARCFOUR\_128\_MD5
[1458020693.630|20427|sipaccount.cpp:1210 ] Valid cipher: TLS\_RSA\_3DES\_EDE\_CBC\_SHA1
[1458020693.630|20427|sipaccount.cpp:1210 ] Valid cipher: TLS\_RSA\_AES\_128\_CBC\_SHA1
[1458020693.630|20427|sipaccount.cpp:1210 ] Valid cipher: TLS\_RSA\_CAMELLIA\_128\_GCM\_SHA256
[1458020693.630|20427|sipaccount.cpp:1210 ] Valid cipher: TLS\_DHE\_DSS\_AES\_128\_CBC\_SHA256
[1458020693.630|20427|sipaccount.cpp:1229 ] Using 9 ciphers
[New Thread 0x7fffc7fff700 (LWP 20473)]
[1458020693.630|20427|ringaccount.cpp:760 ] UPnP: waiting for IGD to register RING account
[1458020693.630|20473|tls\_session.cpp:665 ] Generating DH params with 2048 bits
[New Thread 0x7fffc77fe700 (LWP 20474)]
[1458020693.630|20427|sipaccount.cpp:728 ] doRegister montreal3.voip.ms
[1458020693.630|20427|sipvoiplink.cpp:1241 ] try to resolve 'montreal3.voip.ms' (port: 0)
[1458020693.630|20427|sipaccount.cpp:728 ] doRegister
[1458020693.630|20427|sipaccount.cpp:786 ] doRegister isIP2IP.
[1458020693.630|20427|siptransport.cpp:301 ] Reusing transport {UDP transport on default:5060}
[1458020693.653|20474|upnp\_context.cpp:291 ] UPnP: adding port mapping : 6500:6500, UDP
[1458020693.653|20472|ringaccount.cpp:1098 ] Could not load /home/lepagee/.cache/ring/6b40ea07eca2f76f/treatedMessages
[New Thread 0x7fffc6ffd700 (LWP 20475)]
[1458020693.654|20472|ringaccount.cpp:1219 ] Loaded 2 values
[1458020693.661|20427|ringaccount.cpp:793 ] Dht status : IPv4 connecting; IPv6 disconnected
[1458020693.681|20474|ringaccount.cpp:1098 ] Could not load /home/lepagee/.cache/ring/1074b81e29ec10f0/treatedMessages
[New Thread 0x7fffc67fc700 (LWP 20476)]
[1458020693.682|20474|ringaccount.cpp:1219 ] Loaded 2 values
[1458020693.691|20427|ringaccount.cpp:793 ] Dht status : IPv4 connecting; IPv6 disconnected
[1458020693.702|20471|tls\_session.cpp:682 ] Generated DH params with 2048 bits in 0.073586s
[Thread 0x7fffe5408700 (LWP 20471) exited]
[1458020693.721|20427|sippresence.cpp:364 ] Client (PUBLISH) failed (489 / Bad Event)
[1458020693.732|20427|ringaccount.cpp:793 ] Dht status : IPv4 connected; IPv6 disconnected
[1458020693.750|20474|ringaccount.cpp:860 ] Bootstrap node: 192.95.9.63:4222
[1458020693.751|20474|ringaccount.cpp:860 ] Bootstrap node: [2607:5300:60:24bf::3]:4222
[1458020693.751|20474|ringaccount.cpp:867 ] Listening on callto:d23a027c6243881dc288d618564399a5200e4db5 : b22de8d1e41e7779e0b1ebb8b62cbfbe54ea9c6c
[Thread 0x7fffc77fe700 (LWP 20474) exited]
[1458020693.762|20427|ringaccount.cpp:793 ] Dht status : IPv4 connected; IPv6 disconnected
[1458020693.783|20427|sipvoiplink.cpp:633 ] username = 5000, server = 192.95.9.63, from = 192.95.9.63
[1458020693.802|20472|ringaccount.cpp:860 ] Bootstrap node: 192.95.9.63:4222
[1458020693.802|20472|ringaccount.cpp:860 ] Bootstrap node: [2607:5300:60:24bf::3]:4222
[1458020693.802|20472|ringaccount.cpp:867 ] Listening on callto:c07557deb17b7da326f05f126f405a17a37bf67a : c79edfe10ed5f67a80567bfe4ac4ba9de8f37d5f
[Thread 0x7fffe4c07700 (LWP 20472) exited]
[Thread 0x7fffe8235700 (LWP 20444) exited]
[Thread 0x7fffea239700 (LWP 20440) exited]
[1458020694.424|20473|tls\_session.cpp:682 ] Generated DH params with 2048 bits in 0.793903s
[Thread 0x7fffc7fff700 (LWP 20473) exited]
[Thread 0x7fffe6231700 (LWP 20448) exited]
[Thread 0x7fffe9a38700 (LWP 20441) exited]
[New Thread 0x7fffe9a38700 (LWP 20485)]
[Thread 0x7fffe6a32700 (LWP 20447) exited]
[1458020704.266|20427|sipaccount.cpp:1777 ] Matching account id in request is a fullmatch 5000@192.95.9.63
[1458020704.266|20427|sipaccount.cpp:1934 ] IP address change detected for account Account:210878369 (192.168.1.4:5060 --> 24.157.205.126:5060). Updating registration (using method 2)
[1458020704.266|20427|sipaccount.cpp:1090 ] Contact overwritten
[1458020704.266|20427|pres\_sub\_client.cpp:76 ] Subscription for pres\_client '<sip:5000@192.95.9.63>' is 'ACCEPTED'
[1458020704.266|20427|pres\_sub\_client.cpp:401 ] pres\_client <sip:5000@192.95.9.63> is monitored.
[1458020704.266|20427|sippresence.cpp:233 ] New Presence\_subscription\_client added (list[1]).
[1458020704.266|20427|sippresence.cpp:179 ] Received status of PresSubClient <sip:5000@192.95.9.63>(acc:Account:210878369): status=open note=Ready
[1458020704.266|20427|pres\_sub\_client.cpp:76 ] Subscription for pres\_client '<sip:5000@192.95.9.63>' is 'ACTIVE'
[1458020704.267|20427|sipvoiplink.cpp:633 ] username = 5000, server = 192.95.9.63, from = 192.95.9.63
[1458020705.262|20427|sipaccount.cpp:1777 ] Matching account id in request is a fullmatch 5000@192.95.9.63
[1458020705.262|20427|sipvoiplink.cpp:633 ] username = 5000, server = 192.95.9.63, from = 192.95.9.63
[1458020706.468|20427|sipaccount.cpp:1777 ] Matching account id in request is a fullmatch 5000@192.95.9.63
[1458020706.468|20427|sipvoiplink.cpp:633 ] username = 5000, server = 192.95.9.63, from = 192.95.9.63
[1458020707.647|20427|sipaccount.cpp:1777 ] Matching account id in request is a fullmatch 5000@192.95.9.63
[1458020707.648|20427|sipvoiplink.cpp:633 ] username = 5000, server = 192.95.9.63, from = 192.95.9.63
\^C
Thread 1 "dring" received signal SIGINT, Interrupt.
0x00007ffff34542fd in poll () from /lib64/libc.so.6
(gdb) bt
\#0 0x00007ffff34542fd in poll () from /lib64/libc.so.6
\#1 0x00007fffe5412c0d in \_\_libc\_res\_nsend () from /lib64/libresolv.so.2
\#2 0x00007fffe5410c72 in \_\_libc\_res\_nquery () from /lib64/libresolv.so.2
\#3 0x00007fffe54112b5 in \_\_libc\_res\_nquerydomain () from /lib64/libresolv.so.2
\#4 0x00007fffe5411771 in \_\_libc\_res\_nsearch () from /lib64/libresolv.so.2
\#5 0x00007fffe5622b09 in \_nss\_dns\_gethostbyname4\_r () from /lib64/libnss\_dns.so.2
\#6 0x00007ffff3448746 in gaih\_inet () from /lib64/libc.so.6
\#7 0x00007ffff344a13e in getaddrinfo () from /lib64/libc.so.6
\#8 0x00000000005f2683 in pj\_getaddrinfo ()
\#9 0x00000000004d7fdb in ring::ip\_utils::getAddrList (name="montreal3.voip.ms",
family=family@entry=0) at ip\_utils.cpp:55
\#10 0x00000000004f1795 in ring::SIPAccount::proxyMatch (this=this@entry=0xbb4720,
hostname="192.95.9.63") at sipaccount.cpp:1306
\#11 0x00000000004f1cdf in ring::SIPAccount::matches (this=0xbb4720, userName="5000",
server="192.95.9.63", endpt=0xb8c6f8, pool=0xb8b640) at sipaccount.cpp:1785
\#12 0x0000000000518b0d in ring::SIPVoIPLink::guessAccount (this=0xb797d0,
userName="5000", server="192.95.9.63", fromUri="192.95.9.63") at sipvoiplink.cpp:660
\#13 0x00000000005194cf in ring::transaction\_request\_cb (rdata=0xb52008)
at sipvoiplink.cpp:218
\#14 0x0000000000595fe2 in pjsip\_endpt\_process\_rx\_data ()
---Type <return> to continue, or q <return> to quit---thread apply all bt
\#15 0x000000000059633e in endpt\_on\_rx\_msg ()
\#16 0x000000000059f962 in pjsip\_tpmgr\_receive\_packet ()
\#17 0x00000000005a0893 in udp\_on\_read\_complete ()
\#18 0x00000000005ed627 in ioqueue\_dispatch\_read\_event ()
\#19 0x00000000005ef925 in pj\_ioqueue\_poll ()
\#20 0x0000000000595c90 in pjsip\_endpt\_handle\_events2 ()
\#21 0x0000000000595d51 in pjsip\_endpt\_handle\_events ()
\#22 0x0000000000515102 in ring::SIPVoIPLink::handleEvents (this=0xb797d0)
at sipvoiplink.cpp:692
\#23 0x00000000004ba751 in std::function<void ()>::operator()() const (this=0xb88528)
at /usr/lib/gcc/x86\_64-pc-linux-gnu/5.3.0/include/g++-v5/functional:2271
\#24 ring::Manager::pollEvents (this=0x9a8260 <ring::Manager::instance()::instance\_>)
at manager.cpp:1420
\#25 0x00007ffff7bc0e86 in DBus::DefaultMainLoop::dispatch() ()
from /usr/lib64/libdbus-c++-1.so.0
\#26 0x00007ffff7bc1b3c in DBus::BusDispatcher::enter() ()
from /usr/lib64/libdbus-c++-1.so.0
\#27 0x0000000000419edf in DBusClient::event\_loop (this=<optimized out>)
at dbusclient.cpp:236
\#28 0x0000000000414f83 in run () at main.cpp:145
---Type <return> to continue, or q <return> to quit---
\#29 (closed) main (argc=3, argv=<optimized out>) at main.cpp:206
(gdb)
(gdb)
(gdb) thread apply all bt
Thread 19 (Thread 0x7fffe9a38700 (LWP 20485)):
\#0 0x00007ffff62ce478 in pthread\_cond\_timedwait () from /lib64/libpthread.so.0
\#1 0x000000000067279e in WorkerThread ()
\#2 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#3 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 18 (Thread 0x7fffc67fc700 (LWP 20476)):
\#0 0x00007ffff3455f93 in select () from /lib64/libc.so.6
\#1 0x00000000006b83ab in dht::DhtRunner::doRun(sockaddr\_in const\*, sockaddr\_in6 const\*, dht::SecureDht::Config)::{lambda()\#1}::operator()() const [clone .constprop.424] ()
\#2 0x00007ffff3cdcfe0 in std::(anonymous namespace)::execute\_native\_thread\_routine (
\_\_p=<optimized out>)
at /var/tmp/portage/sys-devel/gcc-5.3.0/work/gcc-5.3.0/libstdc++-v3/src/c++11/thread.cc:84
\#3 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#4 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 17 (Thread 0x7fffc6ffd700 (LWP 20475)):
\#0 0x00007ffff3455f93 in select () from /lib64/libc.so.6
---Type <return> to continue, or q <return> to quit---
\#1 0x00000000006b83ab in dht::DhtRunner::doRun(sockaddr\_in const\*, sockaddr\_in6 const\*, dht::SecureDht::Config)::{lambda()\#1}::operator()() const [clone .constprop.424] ()
\#2 0x00007ffff3cdcfe0 in std::(anonymous namespace)::execute\_native\_thread\_routine (
\_\_p=<optimized out>)
at /var/tmp/portage/sys-devel/gcc-5.3.0/work/gcc-5.3.0/libstdc++-v3/src/c++11/thread.cc:84
\#3 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#4 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 10 (Thread 0x7fffe7233700 (LWP 20446)):
\#0 0x00007ffff62ce478 in pthread\_cond\_timedwait () from /lib64/libpthread.so.0
\#1 0x000000000067279e in WorkerThread ()
\#2 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#3 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 9 (Thread 0x7fffe7a34700 (LWP 20445)):
\#0 0x00007ffff62ce478 in pthread\_cond\_timedwait () from /lib64/libpthread.so.0
\#1 0x000000000067279e in WorkerThread ()
\#2 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#3 0x00007ffff345d28d in clone () from /lib64/libc.so.6
---Type <return> to continue, or q <return> to quit---
Thread 7 (Thread 0x7fffe8a36700 (LWP 20443)):
\#0 0x00007ffff3455f93 in select () from /lib64/libc.so.6
\#1 0x00000000006643a1 in RunMiniServer ()
\#2 0x0000000000672af2 in WorkerThread ()
\#3 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#4 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 6 (Thread 0x7fffe9237700 (LWP 20442)):
\#0 0x00007ffff62ce478 in pthread\_cond\_timedwait () from /lib64/libpthread.so.0
\#1 0x000000000067279e in WorkerThread ()
\#2 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#3 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 3 (Thread 0x7fffeaa3a700 (LWP 20439)):
\#0 0x00007ffff62ce478 in pthread\_cond\_timedwait () from /lib64/libpthread.so.0
\#1 0x000000000067397a in TimerThreadWorker ()
\#2 0x0000000000672af2 in WorkerThread ()
\#3 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#4 0x00007ffff345d28d in clone () from /lib64/libc.so.6
---Type <return> to continue, or q <return> to quit---
Thread 2 (Thread 0x7fffeb23b700 (LWP 20438)):
\#0 0x00007ffff3455f93 in select () from /lib64/libc.so.6
\#1 0x0000000000553ffc in ring::video::VideoDeviceMonitorImpl::run (this=0x9fea60)
at video\_device\_monitor\_impl.cpp:197
\#2 0x00007ffff3cdcfe0 in std::(anonymous namespace)::execute\_native\_thread\_routine (
\_\_p=<optimized out>)
at /var/tmp/portage/sys-devel/gcc-5.3.0/work/gcc-5.3.0/libstdc++-v3/src/c++11/thread.cc:84
\#3 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#4 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 1 (Thread 0x7ffff7f9fdc0 (LWP 20427)):
\#0 0x00007ffff34542fd in poll () from /lib64/libc.so.6
\#1 0x00007fffe5412c0d in \_\_libc\_res\_nsend () from /lib64/libresolv.so.2
\#2 0x00007fffe5410c72 in \_\_libc\_res\_nquery () from /lib64/libresolv.so.2
\#3 0x00007fffe54112b5 in \_\_libc\_res\_nquerydomain () from /lib64/libresolv.so.2
\#4 0x00007fffe5411771 in \_\_libc\_res\_nsearch () from /lib64/libresolv.so.2
\#5 0x00007fffe5622b09 in \_nss\_dns\_gethostbyname4\_r () from /lib64/libnss\_dns.so.2
\#6 0x00007ffff3448746 in gaih\_inet () from /lib64/libc.so.6
---Type <return> to continue, or q <return> to quit---
\#7 0x00007ffff344a13e in getaddrinfo () from /lib64/libc.so.6
\#8 0x00000000005f2683 in pj\_getaddrinfo ()
\#9 0x00000000004d7fdb in ring::ip\_utils::getAddrList (name="montreal3.voip.ms",
family=family@entry=0) at ip\_utils.cpp:55
\#10 0x00000000004f1795 in ring::SIPAccount::proxyMatch (this=this@entry=0xbb4720,
hostname="192.95.9.63") at sipaccount.cpp:1306
\#11 0x00000000004f1cdf in ring::SIPAccount::matches (this=0xbb4720, userName="5000",
server="192.95.9.63", endpt=0xb8c6f8, pool=0xb8b640) at sipaccount.cpp:1785
\#12 0x0000000000518b0d in ring::SIPVoIPLink::guessAccount (this=0xb797d0,
userName="5000", server="192.95.9.63", fromUri="192.95.9.63") at sipvoiplink.cpp:660
\#13 0x00000000005194cf in ring::transaction\_request\_cb (rdata=0xb52008)
at sipvoiplink.cpp:218
\#14 0x0000000000595fe2 in pjsip\_endpt\_process\_rx\_data ()
\#15 0x000000000059633e in endpt\_on\_rx\_msg ()
\#16 0x000000000059f962 in pjsip\_tpmgr\_receive\_packet ()
\#17 0x00000000005a0893 in udp\_on\_read\_complete ()
\#18 0x00000000005ed627 in ioqueue\_dispatch\_read\_event ()
\#19 0x00000000005ef925 in pj\_ioqueue\_poll ()
\#20 0x0000000000595c90 in pjsip\_endpt\_handle\_events2 ()
\#21 0x0000000000595d51 in pjsip\_endpt\_handle\_events ()
---Type <return> to continue, or q <return> to quit---
\#22 0x0000000000515102 in ring::SIPVoIPLink::handleEvents (this=0xb797d0)
at sipvoiplink.cpp:692
\#23 0x00000000004ba751 in std::function<void ()>::operator()() const (this=0xb88528)
at /usr/lib/gcc/x86\_64-pc-linux-gnu/5.3.0/include/g++-v5/functional:2271
\#24 ring::Manager::pollEvents (this=0x9a8260 <ring::Manager::instance()::instance\_>)
at manager.cpp:1420
\#25 0x00007ffff7bc0e86 in DBus::DefaultMainLoop::dispatch() ()
from /usr/lib64/libdbus-c++-1.so.0
\#26 0x00007ffff7bc1b3c in DBus::BusDispatcher::enter() ()
from /usr/lib64/libdbus-c++-1.so.0
\#27 0x0000000000419edf in DBusClient::event\_loop (this=<optimized out>)
at dbusclient.cpp:236
\#28 0x0000000000414f83 in run () at main.cpp:145
\#29 (closed) main (argc=3, argv=<optimized out>) at main.cpp:206
(gdb)
(gdb) run -c -dQuit
(gdb) continue
Continuing.
[1458020743.846|20427|sipaccount.cpp:1777 ] Matching account id in request is a fullmatch 5000@192.95.9.63
[1458020743.847|20427|sippresence.cpp:179 ] Received status of PresSubClient <sip:5000@192.95.9.63>(acc:Account:210878369): status=closed note=Not online
[1458020743.847|20427|pres\_sub\_client.cpp:76 ] Subscription for pres\_client '<sip:5000@192.95.9.63>' is 'ACTIVE'
[1458020743.847|20427|sipvoiplink.cpp:633 ] username = 5000, server = 192.95.9.63, from = 192.95.9.63
\^C
Thread 1 "dring" received signal SIGINT, Interrupt.
0x00007ffff34542fd in poll () from /lib64/libc.so.6
(gdb) thread apply all bt
Thread 19 (Thread 0x7fffe9a38700 (LWP 20485)):
\#0 0x00007ffff62ce478 in pthread\_cond\_timedwait () from /lib64/libpthread.so.0
\#1 0x000000000067279e in WorkerThread ()
\#2 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#3 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 18 (Thread 0x7fffc67fc700 (LWP 20476)):
\#0 0x00007ffff3455f93 in select () from /lib64/libc.so.6
\#1 0x00000000006b83ab in dht::DhtRunner::doRun(sockaddr\_in const\*, sockaddr\_in6 const\*, dht::SecureDht::Config)::{lambda()\#1}::operator()() const [clone .constprop.424] ()
\#2 0x00007ffff3cdcfe0 in std::(anonymous namespace)::execute\_native\_thread\_routine (
\_\_p=<optimized out>)
at /var/tmp/portage/sys-devel/gcc-5.3.0/work/gcc-5.3.0/libstdc++-v3/src/c++11/thread.cc:84
\#3 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#4 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 17 (Thread 0x7fffc6ffd700 (LWP 20475)):
\#0 0x00007ffff3455f93 in select () from /lib64/libc.so.6
---Type <return> to continue, or q <return> to quit---
\#1 0x00000000006b83ab in dht::DhtRunner::doRun(sockaddr\_in const\*, sockaddr\_in6 const\*, dht::SecureDht::Config)::{lambda()\#1}::operator()() const [clone .constprop.424] ()
\#2 0x00007ffff3cdcfe0 in std::(anonymous namespace)::execute\_native\_thread\_routine (
\_\_p=<optimized out>)
at /var/tmp/portage/sys-devel/gcc-5.3.0/work/gcc-5.3.0/libstdc++-v3/src/c++11/thread.cc:84
\#3 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#4 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 10 (Thread 0x7fffe7233700 (LWP 20446)):
\#0 0x00007ffff62ce478 in pthread\_cond\_timedwait () from /lib64/libpthread.so.0
\#1 0x000000000067279e in WorkerThread ()
\#2 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#3 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 9 (Thread 0x7fffe7a34700 (LWP 20445)):
\#0 0x00007ffff62ce478 in pthread\_cond\_timedwait () from /lib64/libpthread.so.0
\#1 0x000000000067279e in WorkerThread ()
\#2 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#3 0x00007ffff345d28d in clone () from /lib64/libc.so.6
---Type <return> to continue, or q <return> to quit---
Thread 7 (Thread 0x7fffe8a36700 (LWP 20443)):
\#0 0x00007ffff3455f93 in select () from /lib64/libc.so.6
\#1 0x00000000006643a1 in RunMiniServer ()
\#2 0x0000000000672af2 in WorkerThread ()
\#3 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#4 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 6 (Thread 0x7fffe9237700 (LWP 20442)):
\#0 0x00007ffff62ce478 in pthread\_cond\_timedwait () from /lib64/libpthread.so.0
\#1 0x000000000067279e in WorkerThread ()
\#2 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#3 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 3 (Thread 0x7fffeaa3a700 (LWP 20439)):
\#0 0x00007ffff62ce0cf in pthread\_cond\_wait () from /lib64/libpthread.so.0
\#1 0x000000000067398b in TimerThreadWorker ()
\#2 0x0000000000672af2 in WorkerThread ()
\#3 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#4 0x00007ffff345d28d in clone () from /lib64/libc.so.6
---Type <return> to continue, or q <return> to quit---
Thread 2 (Thread 0x7fffeb23b700 (LWP 20438)):
\#0 0x00007ffff3455f93 in select () from /lib64/libc.so.6
\#1 0x0000000000553ffc in ring::video::VideoDeviceMonitorImpl::run (this=0x9fea60)
at video\_device\_monitor\_impl.cpp:197
\#2 0x00007ffff3cdcfe0 in std::(anonymous namespace)::execute\_native\_thread\_routine (
\_\_p=<optimized out>)
at /var/tmp/portage/sys-devel/gcc-5.3.0/work/gcc-5.3.0/libstdc++-v3/src/c++11/thread.cc:84
\#3 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#4 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 1 (Thread 0x7ffff7f9fdc0 (LWP 20427)):
\#0 0x00007ffff34542fd in poll () from /lib64/libc.so.6
\#1 0x00007fffe5412c0d in \_\_libc\_res\_nsend () from /lib64/libresolv.so.2
\#2 0x00007fffe5410c72 in \_\_libc\_res\_nquery () from /lib64/libresolv.so.2
\#3 0x00007fffe54112b5 in \_\_libc\_res\_nquerydomain () from /lib64/libresolv.so.2
\#4 0x00007fffe5411771 in \_\_libc\_res\_nsearch () from /lib64/libresolv.so.2
\#5 0x00007fffe5622b09 in \_nss\_dns\_gethostbyname4\_r () from /lib64/libnss\_dns.so.2
\#6 0x00007ffff3448746 in gaih\_inet () from /lib64/libc.so.6
---Type <return> to continue, or q <return> to quit---
\#7 0x00007ffff344a13e in getaddrinfo () from /lib64/libc.so.6
\#8 0x00000000005f2683 in pj\_getaddrinfo ()
\#9 0x00000000004d7fdb in ring::ip\_utils::getAddrList (name="montreal3.voip.ms",
family=family@entry=0) at ip\_utils.cpp:55
\#10 0x00000000004f1795 in ring::SIPAccount::proxyMatch (this=this@entry=0xbb4720,
hostname="192.95.9.63") at sipaccount.cpp:1306
\#11 0x00000000004f1cdf in ring::SIPAccount::matches (this=0xbb4720, userName="5000",
server="192.95.9.63", endpt=0xb8c6f8, pool=0xb8b640) at sipaccount.cpp:1785
\#12 0x0000000000518b0d in ring::SIPVoIPLink::guessAccount (this=0xb797d0,
userName="5000", server="192.95.9.63", fromUri="192.95.9.63") at sipvoiplink.cpp:660
\#13 0x00000000005194cf in ring::transaction\_request\_cb (rdata=0xb52008)
at sipvoiplink.cpp:218
\#14 0x0000000000595fe2 in pjsip\_endpt\_process\_rx\_data ()
\#15 0x000000000059633e in endpt\_on\_rx\_msg ()
\#16 0x000000000059f962 in pjsip\_tpmgr\_receive\_packet ()
\#17 0x00000000005a0893 in udp\_on\_read\_complete ()
\#18 0x00000000005ed627 in ioqueue\_dispatch\_read\_event ()
\#19 0x00000000005ef925 in pj\_ioqueue\_poll ()
\#20 0x0000000000595c90 in pjsip\_endpt\_handle\_events2 ()
\#21 0x0000000000595d51 in pjsip\_endpt\_handle\_events ()
---Type <return> to continue, or q <return> to quit---
\#22 0x0000000000515102 in ring::SIPVoIPLink::handleEvents (this=0xb797d0)
at sipvoiplink.cpp:692
\#23 0x00000000004ba751 in std::function<void ()>::operator()() const (this=0xb88528)
at /usr/lib/gcc/x86\_64-pc-linux-gnu/5.3.0/include/g++-v5/functional:2271
\#24 ring::Manager::pollEvents (this=0x9a8260 <ring::Manager::instance()::instance\_>)
at manager.cpp:1420
\#25 0x00007ffff7bc0e86 in DBus::DefaultMainLoop::dispatch() ()
from /usr/lib64/libdbus-c++-1.so.0
\#26 0x00007ffff7bc1b3c in DBus::BusDispatcher::enter() ()
from /usr/lib64/libdbus-c++-1.so.0
\#27 0x0000000000419edf in DBusClient::event\_loop (this=<optimized out>)
at dbusclient.cpp:236
\#28 0x0000000000414f83 in run () at main.cpp:145
\#29 (closed) main (argc=3, argv=<optimized out>) at main.cpp:206
(gdb)
(gdb) continue
Continuing.
[1458020762.636|20427|sipaccount.cpp:1777 ] Matching account id in request is a fullmatch 5000@192.95.9.63
[1458020762.636|20427|sipvoiplink.cpp:633 ] username = 5000, server = 192.95.9.63, from = 192.95.9.63
[1458020770.509|20427|sipaccount.cpp:1777 ] Matching account id in request is a fullmatch 5000@192.95.9.63
[1458020770.509|20427|sipvoiplink.cpp:633 ] username = 5000, server = 192.95.9.63, from = 192.95.9.63
[1458020778.741|20427|sipaccount.cpp:1777 ] Matching account id in request is a fullmatch 5000@192.95.9.63
[1458020778.741|20427|sipvoiplink.cpp:633 ] username = 5000, server = 192.95.9.63, from = 192.95.9.63
[1458020780.993|20427|sipaccount.cpp:1777 ] Matching account id in request is a fullmatch 5000@192.95.9.63
[1458020780.993|20427|sipvoiplink.cpp:633 ] username = 5000, server = 192.95.9.63, from = 192.95.9.63
\^C
Thread 1 "dring" received signal SIGINT, Interrupt.
0x00007ffff34542fd in poll () from /lib64/libc.so.6
(gdb) thread apply all bt
Thread 19 (Thread 0x7fffe9a38700 (LWP 20485)):
\#0 0x00007ffff62ce478 in pthread\_cond\_timedwait () from /lib64/libpthread.so.0
\#1 0x000000000067279e in WorkerThread ()
\#2 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#3 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 18 (Thread 0x7fffc67fc700 (LWP 20476)):
\#0 0x00007ffff3455f93 in select () from /lib64/libc.so.6
\#1 0x00000000006b83ab in dht::DhtRunner::doRun(sockaddr\_in const\*, sockaddr\_in6 const\*, dht::SecureDht::Config)::{lambda()\#1}::operator()() const [clone .constprop.424] ()
\#2 0x00007ffff3cdcfe0 in std::(anonymous namespace)::execute\_native\_thread\_routine (
\_\_p=<optimized out>)
at /var/tmp/portage/sys-devel/gcc-5.3.0/work/gcc-5.3.0/libstdc++-v3/src/c++11/thread.cc:84
\#3 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#4 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 17 (Thread 0x7fffc6ffd700 (LWP 20475)):
\#0 0x00007ffff3455f93 in select () from /lib64/libc.so.6
---Type <return> to continue, or q <return> to quit---
\#1 0x00000000006b83ab in dht::DhtRunner::doRun(sockaddr\_in const\*, sockaddr\_in6 const\*, dht::SecureDht::Config)::{lambda()\#1}::operator()() const [clone .constprop.424] ()
\#2 0x00007ffff3cdcfe0 in std::(anonymous namespace)::execute\_native\_thread\_routine (
\_\_p=<optimized out>)
at /var/tmp/portage/sys-devel/gcc-5.3.0/work/gcc-5.3.0/libstdc++-v3/src/c++11/thread.cc:84
\#3 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#4 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 10 (Thread 0x7fffe7233700 (LWP 20446)):
\#0 0x00007ffff62ce478 in pthread\_cond\_timedwait () from /lib64/libpthread.so.0
\#1 0x000000000067279e in WorkerThread ()
\#2 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#3 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 9 (Thread 0x7fffe7a34700 (LWP 20445)):
\#0 0x00007ffff62ce478 in pthread\_cond\_timedwait () from /lib64/libpthread.so.0
\#1 0x000000000067279e in WorkerThread ()
\#2 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#3 0x00007ffff345d28d in clone () from /lib64/libc.so.6
---Type <return> to continue, or q <return> to quit---
Thread 7 (Thread 0x7fffe8a36700 (LWP 20443)):
\#0 0x00007ffff3455f93 in select () from /lib64/libc.so.6
\#1 0x00000000006643a1 in RunMiniServer ()
\#2 0x0000000000672af2 in WorkerThread ()
\#3 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#4 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 6 (Thread 0x7fffe9237700 (LWP 20442)):
\#0 0x00007ffff62ce478 in pthread\_cond\_timedwait () from /lib64/libpthread.so.0
\#1 0x000000000067279e in WorkerThread ()
\#2 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#3 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 3 (Thread 0x7fffeaa3a700 (LWP 20439)):
\#0 0x00007ffff62ce0cf in pthread\_cond\_wait () from /lib64/libpthread.so.0
\#1 0x000000000067398b in TimerThreadWorker ()
\#2 0x0000000000672af2 in WorkerThread ()
\#3 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#4 0x00007ffff345d28d in clone () from /lib64/libc.so.6
---Type <return> to continue, or q <return> to quit---
Thread 2 (Thread 0x7fffeb23b700 (LWP 20438)):
\#0 0x00007ffff3455f93 in select () from /lib64/libc.so.6
\#1 0x0000000000553ffc in ring::video::VideoDeviceMonitorImpl::run (this=0x9fea60)
at video\_device\_monitor\_impl.cpp:197
\#2 0x00007ffff3cdcfe0 in std::(anonymous namespace)::execute\_native\_thread\_routine (
\_\_p=<optimized out>)
at /var/tmp/portage/sys-devel/gcc-5.3.0/work/gcc-5.3.0/libstdc++-v3/src/c++11/thread.cc:84
\#3 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#4 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 1 (Thread 0x7ffff7f9fdc0 (LWP 20427)):
\#0 0x00007ffff34542fd in poll () from /lib64/libc.so.6
\#1 0x00007fffe5412c0d in \_\_libc\_res\_nsend () from /lib64/libresolv.so.2
\#2 0x00007fffe5410c72 in \_\_libc\_res\_nquery () from /lib64/libresolv.so.2
\#3 0x00007fffe54112b5 in \_\_libc\_res\_nquerydomain () from /lib64/libresolv.so.2
\#4 0x00007fffe5411771 in \_\_libc\_res\_nsearch () from /lib64/libresolv.so.2
\#5 0x00007fffe5622b09 in \_nss\_dns\_gethostbyname4\_r () from /lib64/libnss\_dns.so.2
\#6 0x00007ffff3448746 in gaih\_inet () from /lib64/libc.so.6
---Type <return> to continue, or q <return> to quit---
\#7 0x00007ffff344a13e in getaddrinfo () from /lib64/libc.so.6
\#8 0x00000000005f2683 in pj\_getaddrinfo ()
\#9 0x00000000004d7fdb in ring::ip\_utils::getAddrList (name="montreal3.voip.ms",
family=family@entry=0) at ip\_utils.cpp:55
\#10 0x00000000004f1795 in ring::SIPAccount::proxyMatch (this=this@entry=0xbb4720,
hostname="192.95.9.63") at sipaccount.cpp:1306
\#11 0x00000000004f1cdf in ring::SIPAccount::matches (this=0xbb4720, userName="5000",
server="192.95.9.63", endpt=0xb8c6f8, pool=0xb8b640) at sipaccount.cpp:1785
\#12 0x0000000000518b0d in ring::SIPVoIPLink::guessAccount (this=0xb797d0,
userName="5000", server="192.95.9.63", fromUri="192.95.9.63") at sipvoiplink.cpp:660
\#13 0x00000000005194cf in ring::transaction\_request\_cb (rdata=0xb52008)
at sipvoiplink.cpp:218
\#14 0x0000000000595fe2 in pjsip\_endpt\_process\_rx\_data ()
\#15 0x000000000059633e in endpt\_on\_rx\_msg ()
\#16 0x000000000059f962 in pjsip\_tpmgr\_receive\_packet ()
\#17 0x00000000005a0893 in udp\_on\_read\_complete ()
\#18 0x00000000005ed627 in ioqueue\_dispatch\_read\_event ()
\#19 0x00000000005ef925 in pj\_ioqueue\_poll ()
\#20 0x0000000000595c90 in pjsip\_endpt\_handle\_events2 ()
\#21 0x0000000000595d51 in pjsip\_endpt\_handle\_events ()
---Type <return> to continue, or q <return> to quit---
\#22 0x0000000000515102 in ring::SIPVoIPLink::handleEvents (this=0xb797d0)
at sipvoiplink.cpp:692
\#23 0x00000000004ba751 in std::function<void ()>::operator()() const (this=0xb88528)
at /usr/lib/gcc/x86\_64-pc-linux-gnu/5.3.0/include/g++-v5/functional:2271
\#24 ring::Manager::pollEvents (this=0x9a8260 <ring::Manager::instance()::instance\_>)
at manager.cpp:1420
\#25 0x00007ffff7bc0e86 in DBus::DefaultMainLoop::dispatch() ()
from /usr/lib64/libdbus-c++-1.so.0
\#26 0x00007ffff7bc1b3c in DBus::BusDispatcher::enter() ()
from /usr/lib64/libdbus-c++-1.so.0
\#27 0x0000000000419edf in DBusClient::event\_loop (this=<optimized out>)
at dbusclient.cpp:236
\#28 0x0000000000414f83 in run () at main.cpp:145
\#29 (closed) main (argc=3, argv=<optimized out>) at main.cpp:206
(gdb)
(gdb) continue
Continuing.
[New Thread 0x7fffe6a32700 (LWP 20905)]
[New Thread 0x7fffe6231700 (LWP 20906)]
[New Thread 0x7fffc7fff700 (LWP 20907)]
[New Thread 0x7fffe8235700 (LWP 20908)]
[New Thread 0x7fffea239700 (LWP 20909)]
[1458020796.978|20427|sipaccount.cpp:1777 ] Matching account id in request is a fullmatch 5000@192.95.9.63
[1458020796.978|20427|sipvoiplink.cpp:633 ] username = 5000, server = 192.95.9.63, from = 192.95.9.63
[Thread 0x7fffea239700 (LWP 20909) exited]
[Thread 0x7fffc7fff700 (LWP 20907) exited]
[Thread 0x7fffe6231700 (LWP 20906) exited]
[Thread 0x7fffe9a38700 (LWP 20485) exited]
[Thread 0x7fffe9237700 (LWP 20442) exited]
[1458020803.360|20427|sipaccount.cpp:1777 ] Matching account id in request is a fullmatch 5000@192.95.9.63
[1458020803.360|20427|sipvoiplink.cpp:633 ] username = 5000, server = 192.95.9.63, from = 192.95.9.63
[1458020804.753|20427|sipaccount.cpp:1777 ] Matching account id in request is a fullmatch 5000@192.95.9.63
[1458020804.754|20427|sipvoiplink.cpp:633 ] username = 5000, server = 192.95.9.63, from = 192.95.9.63
[1458020815.592|20427|sipaccount.cpp:1777 ] Matching account id in request is a fullmatch 5000@192.95.9.63
[1458020815.592|20427|sipvoiplink.cpp:633 ] username = 5000, server = 192.95.9.63, from = 192.95.9.63
[1458020816.570|20427|sipaccount.cpp:1777 ] Matching account id in request is a fullmatch 5000@192.95.9.63
[1458020816.570|20427|sipvoiplink.cpp:633 ] username = 5000, server = 192.95.9.63, from = 192.95.9.63
\^C
Thread 1 "dring" received signal SIGINT, Interrupt.
0x00007ffff34542fd in poll () from /lib64/libc.so.6
(gdb) thread apply all bt
Thread 23 (Thread 0x7fffe8235700 (LWP 20908)):
\#0 0x00007ffff62ce478 in pthread\_cond\_timedwait () from /lib64/libpthread.so.0
\#1 0x000000000067279e in WorkerThread ()
\#2 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#3 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 20 (Thread 0x7fffe6a32700 (LWP 20905)):
\#0 0x00007ffff62ce478 in pthread\_cond\_timedwait () from /lib64/libpthread.so.0
\#1 0x000000000067279e in WorkerThread ()
\#2 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#3 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 18 (Thread 0x7fffc67fc700 (LWP 20476)):
\#0 0x00007ffff3455f93 in select () from /lib64/libc.so.6
\#1 0x00000000006b83ab in dht::DhtRunner::doRun(sockaddr\_in const\*, sockaddr\_in6 const\*, dht::SecureDht::Config)::{lambda()\#1}::operator()() const [clone .constprop.424] ()
\#2 0x00007ffff3cdcfe0 in std::(anonymous namespace)::execute\_native\_thread\_routine (
\_\_p=<optimized out>)
at /var/tmp/portage/sys-devel/gcc-5.3.0/work/gcc-5.3.0/libstdc++-v3/src/c++11/thread.c---Type <return> to continue, or q <return> to quit---
c:84
\#3 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#4 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 17 (Thread 0x7fffc6ffd700 (LWP 20475)):
\#0 0x00007ffff3455f93 in select () from /lib64/libc.so.6
\#1 0x00000000006b83ab in dht::DhtRunner::doRun(sockaddr\_in const\*, sockaddr\_in6 const\*, dht::SecureDht::Config)::{lambda()\#1}::operator()() const [clone .constprop.424] ()
\#2 0x00007ffff3cdcfe0 in std::(anonymous namespace)::execute\_native\_thread\_routine (
\_\_p=<optimized out>)
at /var/tmp/portage/sys-devel/gcc-5.3.0/work/gcc-5.3.0/libstdc++-v3/src/c++11/thread.cc:84
\#3 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#4 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 10 (Thread 0x7fffe7233700 (LWP 20446)):
\#0 0x00007ffff62ce478 in pthread\_cond\_timedwait () from /lib64/libpthread.so.0
\#1 0x000000000067279e in WorkerThread ()
\#2 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#3 0x00007ffff345d28d in clone () from /lib64/libc.so.6
---Type <return> to continue, or q <return> to quit---
Thread 9 (Thread 0x7fffe7a34700 (LWP 20445)):
\#0 0x00007ffff62ce478 in pthread\_cond\_timedwait () from /lib64/libpthread.so.0
\#1 0x000000000067279e in WorkerThread ()
\#2 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#3 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 7 (Thread 0x7fffe8a36700 (LWP 20443)):
\#0 0x00007ffff3455f93 in select () from /lib64/libc.so.6
\#1 0x00000000006643a1 in RunMiniServer ()
\#2 0x0000000000672af2 in WorkerThread ()
\#3 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#4 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 3 (Thread 0x7fffeaa3a700 (LWP 20439)):
\#0 0x00007ffff62ce0cf in pthread\_cond\_wait () from /lib64/libpthread.so.0
\#1 0x000000000067398b in TimerThreadWorker ()
\#2 0x0000000000672af2 in WorkerThread ()
\#3 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#4 0x00007ffff345d28d in clone () from /lib64/libc.so.6
---Type <return> to continue, or q <return> to quit---
Thread 2 (Thread 0x7fffeb23b700 (LWP 20438)):
\#0 0x00007ffff3455f93 in select () from /lib64/libc.so.6
\#1 0x0000000000553ffc in ring::video::VideoDeviceMonitorImpl::run (this=0x9fea60)
at video\_device\_monitor\_impl.cpp:197
\#2 0x00007ffff3cdcfe0 in std::(anonymous namespace)::execute\_native\_thread\_routine (
\_\_p=<optimized out>)
at /var/tmp/portage/sys-devel/gcc-5.3.0/work/gcc-5.3.0/libstdc++-v3/src/c++11/thread.cc:84
\#3 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#4 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 1 (Thread 0x7ffff7f9fdc0 (LWP 20427)):
\#0 0x00007ffff34542fd in poll () from /lib64/libc.so.6
\#1 0x00007fffe5412c0d in \_\_libc\_res\_nsend () from /lib64/libresolv.so.2
\#2 0x00007fffe5410c72 in \_\_libc\_res\_nquery () from /lib64/libresolv.so.2
\#3 0x00007fffe54112b5 in \_\_libc\_res\_nquerydomain () from /lib64/libresolv.so.2
\#4 0x00007fffe5411771 in \_\_libc\_res\_nsearch () from /lib64/libresolv.so.2
\#5 0x00007fffe5622b09 in \_nss\_dns\_gethostbyname4\_r () from /lib64/libnss\_dns.so.2
\#6 0x00007ffff3448746 in gaih\_inet () from /lib64/libc.so.6
---Type <return> to continue, or q <return> to quit---
\#7 0x00007ffff344a13e in getaddrinfo () from /lib64/libc.so.6
\#8 0x00000000005f2683 in pj\_getaddrinfo ()
\#9 0x00000000004d7fdb in ring::ip\_utils::getAddrList (name="mtl.savoirfairelinux.net",
family=family@entry=0) at ip\_utils.cpp:55
\#10 0x00000000004f1795 in ring::SIPAccount::proxyMatch (this=this@entry=0xbb9170,
hostname="192.95.9.63") at sipaccount.cpp:1306
\#11 0x00000000004f1cdf in ring::SIPAccount::matches (this=0xbb9170, userName="5000",
server="192.95.9.63", endpt=0xb8c6f8, pool=0xb8b640) at sipaccount.cpp:1785
\#12 0x0000000000518b0d in ring::SIPVoIPLink::guessAccount (this=0xb797d0,
userName="5000", server="192.95.9.63", fromUri="192.95.9.63") at sipvoiplink.cpp:660
\#13 0x00000000005194cf in ring::transaction\_request\_cb (rdata=0xb52008)
at sipvoiplink.cpp:218
\#14 0x0000000000595fe2 in pjsip\_endpt\_process\_rx\_data ()
\#15 0x000000000059633e in endpt\_on\_rx\_msg ()
\#16 0x000000000059f962 in pjsip\_tpmgr\_receive\_packet ()
\#17 0x00000000005a0893 in udp\_on\_read\_complete ()
\#18 0x00000000005ed627 in ioqueue\_dispatch\_read\_event ()
\#19 0x00000000005ef925 in pj\_ioqueue\_poll ()
\#20 0x0000000000595c90 in pjsip\_endpt\_handle\_events2 ()
\#21 0x0000000000595d51 in pjsip\_endpt\_handle\_events ()
---Type <return> to continue, or q <return> to quit---
\#22 0x0000000000515102 in ring::SIPVoIPLink::handleEvents (this=0xb797d0)
at sipvoiplink.cpp:692
\#23 0x00000000004ba751 in std::function<void ()>::operator()() const (this=0xb88528)
at /usr/lib/gcc/x86\_64-pc-linux-gnu/5.3.0/include/g++-v5/functional:2271
\#24 ring::Manager::pollEvents (this=0x9a8260 <ring::Manager::instance()::instance\_>)
at manager.cpp:1420
\#25 0x00007ffff7bc0e86 in DBus::DefaultMainLoop::dispatch() ()
from /usr/lib64/libdbus-c++-1.so.0
\#26 0x00007ffff7bc1b3c in DBus::BusDispatcher::enter() ()
from /usr/lib64/libdbus-c++-1.so.0
\#27 0x0000000000419edf in DBusClient::event\_loop (this=<optimized out>)
at dbusclient.cpp:236
\#28 0x0000000000414f83 in run () at main.cpp:145
\#29 (closed) main (argc=3, argv=<optimized out>) at main.cpp:206
(gdb)
(gdb) continue
Continuing.
[1458020828.622|20427|sipaccount.cpp:1777 ] Matching account id in request is a fullmatch 5000@192.95.9.63
[1458020828.622|20427|sipvoiplink.cpp:633 ] username = 5000, server = 192.95.9.63, from = 192.95.9.63
[1458020835.611|20427|sipaccount.cpp:1777 ] Matching account id in request is a fullmatch 5000@192.95.9.63
[1458020835.611|20427|sipvoiplink.cpp:633 ] username = 5000, server = 192.95.9.63, from = 192.95.9.63
[1458020847.539|20427|sipaccount.cpp:1777 ] Matching account id in request is a fullmatch 5000@192.95.9.63
[1458020847.539|20427|sipvoiplink.cpp:633 ] username = 5000, server = 192.95.9.63, from = 192.95.9.63
\^C
Thread 1 "dring" received signal SIGINT, Interrupt.
0x00007ffff34542fd in poll () from /lib64/libc.so.6
(gdb) thread apply all bt
Thread 23 (Thread 0x7fffe8235700 (LWP 20908)):
\#0 0x00007ffff62ce478 in pthread\_cond\_timedwait () from /lib64/libpthread.so.0
\#1 0x000000000067279e in WorkerThread ()
\#2 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#3 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 20 (Thread 0x7fffe6a32700 (LWP 20905)):
\#0 0x00007ffff62ce478 in pthread\_cond\_timedwait () from /lib64/libpthread.so.0
\#1 0x000000000067279e in WorkerThread ()
\#2 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#3 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 18 (Thread 0x7fffc67fc700 (LWP 20476)):
\#0 0x00007ffff3455f93 in select () from /lib64/libc.so.6
\#1 0x00000000006b83ab in dht::DhtRunner::doRun(sockaddr\_in const\*, sockaddr\_in6 const\*, dht::SecureDht::Config)::{lambda()\#1}::operator()() const [clone .constprop.424] ()
\#2 0x00007ffff3cdcfe0 in std::(anonymous namespace)::execute\_native\_thread\_routine (
\_\_p=<optimized out>)
at /var/tmp/portage/sys-devel/gcc-5.3.0/work/gcc-5.3.0/libstdc++-v3/src/c++11/thread.c---Type <return> to continue, or q <return> to quit---
c:84
\#3 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#4 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 17 (Thread 0x7fffc6ffd700 (LWP 20475)):
\#0 0x00007ffff3455f93 in select () from /lib64/libc.so.6
\#1 0x00000000006b83ab in dht::DhtRunner::doRun(sockaddr\_in const\*, sockaddr\_in6 const\*, dht::SecureDht::Config)::{lambda()\#1}::operator()() const [clone .constprop.424] ()
\#2 0x00007ffff3cdcfe0 in std::(anonymous namespace)::execute\_native\_thread\_routine (
\_\_p=<optimized out>)
at /var/tmp/portage/sys-devel/gcc-5.3.0/work/gcc-5.3.0/libstdc++-v3/src/c++11/thread.cc:84
\#3 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#4 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 10 (Thread 0x7fffe7233700 (LWP 20446)):
\#0 0x00007ffff62ce478 in pthread\_cond\_timedwait () from /lib64/libpthread.so.0
\#1 0x000000000067279e in WorkerThread ()
\#2 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#3 0x00007ffff345d28d in clone () from /lib64/libc.so.6
---Type <return> to continue, or q <return> to quit---
Thread 9 (Thread 0x7fffe7a34700 (LWP 20445)):
\#0 0x00007ffff62ce478 in pthread\_cond\_timedwait () from /lib64/libpthread.so.0
\#1 0x000000000067279e in WorkerThread ()
\#2 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#3 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 7 (Thread 0x7fffe8a36700 (LWP 20443)):
\#0 0x00007ffff3455f93 in select () from /lib64/libc.so.6
\#1 0x00000000006643a1 in RunMiniServer ()
\#2 0x0000000000672af2 in WorkerThread ()
\#3 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#4 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 3 (Thread 0x7fffeaa3a700 (LWP 20439)):
\#0 0x00007ffff62ce0cf in pthread\_cond\_wait () from /lib64/libpthread.so.0
\#1 0x000000000067398b in TimerThreadWorker ()
\#2 0x0000000000672af2 in WorkerThread ()
\#3 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#4 0x00007ffff345d28d in clone () from /lib64/libc.so.6
---Type <return> to continue, or q <return> to quit---
Thread 2 (Thread 0x7fffeb23b700 (LWP 20438)):
\#0 0x00007ffff3455f93 in select () from /lib64/libc.so.6
\#1 0x0000000000553ffc in ring::video::VideoDeviceMonitorImpl::run (this=0x9fea60)
at video\_device\_monitor\_impl.cpp:197
\#2 0x00007ffff3cdcfe0 in std::(anonymous namespace)::execute\_native\_thread\_routine (
\_\_p=<optimized out>)
at /var/tmp/portage/sys-devel/gcc-5.3.0/work/gcc-5.3.0/libstdc++-v3/src/c++11/thread.cc:84
\#3 0x00007ffff62c8484 in start\_thread () from /lib64/libpthread.so.0
\#4 0x00007ffff345d28d in clone () from /lib64/libc.so.6
Thread 1 (Thread 0x7ffff7f9fdc0 (LWP 20427)):
\#0 0x00007ffff34542fd in poll () from /lib64/libc.so.6
\#1 0x00007fffe5412c0d in \_\_libc\_res\_nsend () from /lib64/libresolv.so.2
\#2 0x00007fffe5410c72 in \_\_libc\_res\_nquery () from /lib64/libresolv.so.2
\#3 0x00007fffe54112b5 in \_\_libc\_res\_nquerydomain () from /lib64/libresolv.so.2
\#4 0x00007fffe5411771 in \_\_libc\_res\_nsearch () from /lib64/libresolv.so.2
\#5 0x00007fffe5622b09 in \_nss\_dns\_gethostbyname4\_r () from /lib64/libnss\_dns.so.2
\#6 0x00007ffff3448746 in gaih\_inet () from /lib64/libc.so.6
---Type <return> to continue, or q <return> to quit---
\#7 0x00007ffff344a13e in getaddrinfo () from /lib64/libc.so.6
\#8 0x00000000005f2683 in pj\_getaddrinfo ()
\#9 0x00000000004d7fdb in ring::ip\_utils::getAddrList (name="montreal3.voip.ms",
family=family@entry=0) at ip\_utils.cpp:55
\#10 0x00000000004f1625 in ring::SIPAccount::hostnameMatch (this=this@entry=0xbb4720,
hostname="192.95.9.63") at sipaccount.cpp:1297
\#11 0x00000000004f1cc1 in ring::SIPAccount::matches (this=0xbb4720, userName="5000",
server="192.95.9.63", endpt=0xb8c6f8, pool=0xb8b640) at sipaccount.cpp:1779
\#12 0x0000000000518b0d in ring::SIPVoIPLink::guessAccount (this=0xb797d0,
userName="5000",&