[asterisk-bugs] [Asterisk 0018811]: Seems Like ast_read / timerfd_timer_ack Causes lockups and resource drain

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Feb 15 03:51:20 CST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18811 
====================================================================== 
Reported By:                irroot
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18811
Category:                   Resources/res_timing_timerfd
Reproducibility:            random
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.2.17-rc2 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-02-15 02:31 CST
Last Modified:              2011-02-15 03:51 CST
====================================================================== 
Summary:                    Seems Like ast_read / timerfd_timer_ack Causes
lockups and resource drain
Description: 
The system locks up eventually and as it is holding a channel lock things
like pickup and walking channels locked will cause a deadlock ...

i have reverted to dahdi timer that is not prone to this problem.


====================================================================== 

---------------------------------------------------------------------- 
 (0131963) irroot (reporter) - 2011-02-15 03:51
 https://issues.asterisk.org/view.php?id=18811#c131963 
---------------------------------------------------------------------- 
Here is a alternate path same effect ... 

=======================================================================
=== Currently Held Locks ==============================================
=======================================================================
===
=== <pending> <lock#> (<file>): <lock type> <line num> <function> <lock
name> <lock addr> (times locked)
===
=== Thread ID: -1414575248 (pbx_thread           started at [ 4627] pbx.c
ast_pbx_start())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (channel.c): MUTEX 2744
__ast_read &chan->lock_dont_use
0xa2e02f8 (1)
        /usr/sbin/asterisk(ast_bt_get_addresses+0x19) [0x8107e33]
        /usr/sbin/asterisk() [0x809c674]
        /usr/sbin/asterisk() [0x80a3de0]
        /usr/sbin/asterisk(ast_read+0x19) [0x80a5adf]
        /usr/sbin/asterisk(ast_safe_sleep_conditional+0xc0) [0x80a07b4]
        /usr/sbin/asterisk(ast_safe_sleep+0x28) [0x80a094e]
        /usr/lib/asterisk/modules-1.6/res_musiconhold.so(+0x4d54)
[0xafbf2d54]
        /usr/sbin/asterisk(pbx_exec+0x1a5) [0x811b433]
        /usr/sbin/asterisk() [0x8122aca]
        /usr/sbin/asterisk(ast_spawn_extension+0x53) [0x8124264]
        /usr/lib/asterisk/modules-1.6/app_macro.so(+0x2ff8) [0xb3670ff8]
        /usr/lib/asterisk/modules-1.6/app_macro.so(+0x4109) [0xb3672109]
        /usr/sbin/asterisk(pbx_exec+0x1a5) [0x811b433]
        /usr/sbin/asterisk() [0x8122aca]
        /usr/sbin/asterisk(ast_spawn_extension+0x53) [0x8124264]
        /usr/sbin/asterisk() [0x8124970]
        /usr/sbin/asterisk() [0x8125e39]
        /usr/sbin/asterisk() [0x81811b6]
        /lib/libpthread.so.0(+0x5afe) [0xb75a2afe]
        /lib/libc.so.6(clone+0x5e) [0xb688564e]
=== -------------------------------------------------------------------
===
=======================================================================


Thread 47 (process 21863):
https://issues.asterisk.org/view.php?id=0  0xb7875430 in __kernel_vsyscall ()
No symbol table info available.
https://issues.asterisk.org/view.php?id=1  0xb75aa21b in read () from
/lib/libpthread.so.0
No symbol table info available.
https://issues.asterisk.org/view.php?id=2  0xafbdee0e in timerfd_timer_ack
(handle=62, quantity=1) at
res_timing_timerfd.c:86
        expirations = 0
        read_result = 0
        __PRETTY_FUNCTION__ = "timerfd_timer_ack"
https://issues.asterisk.org/view.php?id=3  0x0817573d in ast_timer_ack
(handle=0x9fdd228, quantity=1) at
timing.c:76
No locals.
https://issues.asterisk.org/view.php?id=4  0x080a40b6 in __ast_read
(chan=0xa2e0260, dropaudio=0) at
/mnt/x86_64/usr/src/voip/asterisk-1.6.2.17-rc2/include/asterisk/lock.h:236
        res = AST_TIMING_EVENT_EXPIRED
        f = (struct ast_frame *) 0x0
        blah = 1
        prestate = 6
        count = 7
        cause = 0
        __PRETTY_FUNCTION__ = "__ast_read"
https://issues.asterisk.org/view.php?id=5  0x080a5adf in ast_read
(chan=0xa2e0260) at
/mnt/x86_64/usr/src/voip/asterisk-1.6.2.17-rc2/include/asterisk/lock.h:236
No locals.
https://issues.asterisk.org/view.php?id=6  0x080a07b4 in
ast_safe_sleep_conditional (chan=0xa2e0260, ms=2808,
cond=0, data=0x0)
    at
/mnt/x86_64/usr/src/voip/asterisk-1.6.2.17-rc2/include/asterisk/lock.h:236
        dup_f = (struct ast_frame *) 0x0
        f = (struct ast_frame *) 0x81fac00
        silgen = (struct ast_silence_generator *) 0x0
        res = 0
        deferred_frames = {first = 0x0, last = 0x0}
        __PRETTY_FUNCTION__ = "ast_safe_sleep_conditional"
https://issues.asterisk.org/view.php?id=7  0x080a094e in ast_safe_sleep
(chan=0xa2e0260, ms=10000) at
/mnt/x86_64/usr/src/voip/asterisk-1.6.2.17-rc2/include/asterisk/lock.h:236
No locals.
https://issues.asterisk.org/view.php?id=8  0xafbf2d54 in play_moh_exec
(chan=0xa2e0260, data=0x81d2ec0) at
/mnt/x86_64/usr/src/voip/asterisk-1.6.2.17-rc2/include/asterisk/lock.h:236
        parse = 0xabaeaaa0 ""
        class = 0x0
        timeout = -1
        res = 0
        args = {argc = 0, argv = 0xabaeaac0, class = 0x0, duration = 0x0}
        __PRETTY_FUNCTION__ = "play_moh_exec" 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-02-15 03:51 irroot         Note Added: 0131963                          
======================================================================




More information about the asterisk-bugs mailing list