[asterisk-bugs] [JIRA] (ASTERISK-22857) Deadlock: Locked Here: chan_iax2.c line 9756 (socket_read)

David Brillert (JIRA) noreply at issues.asterisk.org
Tue Nov 19 09:34:03 CST 2013


     [ https://issues.asterisk.org/jira/browse/ASTERISK-22857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Brillert updated ASTERISK-22857:
--------------------------------------

    Attachment: valgrind.txt

I ran Asterisk under Valgrind and reproduced a lock.  Valgrind debug output is attached.

These are the commands I used to lock IAX2

iax2 show peers
Name/Username    Host                 Mask             Port          Status      Description
236/236          (null)          (D)  255.255.255.255  0             UNKNOWN
iaxmodem0        127.0.0.1       (S)  255.255.255.255  4570          OK (185 ms)
iaxmodem1        127.0.0.1       (S)  255.255.255.255  4571          OK (224 ms)
iaxmodem2        127.0.0.1       (S)  255.255.255.255  4572          OK (86 ms)
iaxmodem3        127.0.0.1       (S)  255.255.255.255  4573          OK (166 ms)
610/610          192.168.192.140 (D)  255.255.255.255  4569          OK (115 ms)

provision   prune       reload      set         show        test        unregister
*CLI> iax2 show
cache         callnumber    channels      firmware      netstats      peer          peers         provisioning
registry      stats         threads       users
*CLI> iax2 show threads

IAX2 Thread Information
Idle Threads:
Thread 9: state=0, update=40, actions=407, func=''
Thread 10: state=0, update=36, actions=426, func=''
Thread 1: state=0, update=36, actions=411, func=''
Thread 2: state=0, update=36, actions=435, func=''
Thread 4: state=0, update=36, actions=420, func=''
Thread 6: state=0, update=35, actions=421, func=''
Thread 7: state=0, update=35, actions=409, func=''
Thread 5: state=0, update=34, actions=412, func=''
Thread 8: state=0, update=34, actions=422, func=''
Thread 3: state=0, update=33, actions=429, func=''
Active Threads:
Dynamic Threads:
10 of 10 threads accounted for with 0 dynamic threads
*CLI> iax2 show netstats
                           -------- LOCAL ---------------------  -------- REMOTE --------------------
Channel               RTT  Jit  Del  Lost   %  Drop  OOO  Kpkts  Jit  Del  Lost   %  Drop  OOO  Kpkts FirstMsg    LastMsg
iax2 show peers
0 active IAX channels
*CLI> iax2 show peers
Name/Username    Host                 Mask             Port          Status      Description
236/236          (null)          (D)  255.255.255.255  0             UNKNOWN
iaxmodem0        127.0.0.1       (S)  255.255.255.255  4570          OK (420 ms)
iaxmodem1        127.0.0.1       (S)  255.255.255.255  4571          OK (457 ms)
iaxmodem2        127.0.0.1       (S)  255.255.255.255  4572          OK (161 ms)
iaxmodem3        127.0.0.1       (S)  255.255.255.255  4573          OK (331 ms)
610/610          192.168.192.140 (D)  255.255.255.255  4569          OK (1176 ms)

*CLI> [2013-11-19 10:01:36] NOTICE[16411]: chan_iax2.c:12219 __iax2_poke_noanswer: Peer 'iaxmodem2' is now UNREACHABLE! Time: 161
[2013-11-19 10:01:37] NOTICE[16412]: chan_iax2.c:12219 __iax2_poke_noanswer: Peer 'iaxmodem3' is now UNREACHABLE! Time: 331
[2013-11-19 10:01:41] NOTICE[16407]: chan_iax2.c:12219 __iax2_poke_noanswer: Peer 'iaxmodem0' is now UNREACHABLE! Time: 420
[2013-11-19 10:01:42] NOTICE[16409]: chan_iax2.c:12219 __iax2_poke_noanswer: Peer 'iaxmodem1' is now UNREACHABLE! Time: 457
[2013-11-19 10:01:45] NOTICE[16412]: chan_iax2.c:12219 __iax2_poke_noanswer: Peer '610' is now UNREACHABLE! Time: 1176


                
> Deadlock: Locked Here: chan_iax2.c line 9756 (socket_read)
> ----------------------------------------------------------
>
>                 Key: ASTERISK-22857
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-22857
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_iax2
>    Affects Versions: SVN, 11.6.0
>         Environment: 64 bit CentOS, 4GB RAM
>            Reporter: David Brillert
>            Assignee: David Brillert
>            Severity: Critical
>         Attachments: core show locks_gdb thread apply all bt full.txt, gdbcorebtbtfull.txt, iax2 debug.txt, valgrind.txt
>
>
> Full deadlock no call processing, no SIP traffic.
> GDB output DONT_OPTIMIZE DEBUG_THREADS BETTER_BACKTRACES thread apply all bt full.txt attached.  The deadlock occurred overnight while the system was idle.
> It is happening on multiple production servers.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list