[asterisk-bugs] [LibPRI 0016913]: [patch] crash on dahdi dial

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Mar 2 17:19:36 CST 2011


The following issue has been UPDATED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16913 
====================================================================== 
Reported By:                kobaz
Assigned To:                
====================================================================== 
Project:                    LibPRI
Issue ID:                   16913
Category:                   General
Reproducibility:            random
Severity:                   crash
Priority:                   normal
Status:                     closed
Asterisk Version:           1.6.0.22 
JIRA:                       SWP-1172 
libpri Version:             I did not set the version. :( 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-02-26 09:34 CST
Last Modified:              2011-03-02 17:19 CST
====================================================================== 
Summary:                    [patch] crash on dahdi dial
Description: 
I had a new box that was running fine for a few days and crashed randomly
with:

https://issues.asterisk.org/view.php?id=0  0xb612cd83 in q921_transmit_iframe
(pri=0x54454720, buf=0xb4df81d0,
len=9, cr=1)
    at q921.c:490
490             for (f=pri->txqueue; f; f = f->next) prev = f;
(gdb) bt
https://issues.asterisk.org/view.php?id=0  0xb612cd83 in q921_transmit_iframe
(pri=0x54454720, buf=0xb4df81d0,
len=9, cr=1)
    at q921.c:490
https://issues.asterisk.org/view.php?id=1  0xb6135930 in q931_xmit
(pri=0x54454720, h=0xb4df81d0, len=9, cr=1)
    at q931.c:2617
https://issues.asterisk.org/view.php?id=2  0xb6135b25 in send_message
(pri=0xb6684420, c=0xb41a7ea0, msgtype=3,
    ies=0xb614c2f8) at q931.c:2660
https://issues.asterisk.org/view.php?id=3  0xb6135f34 in q931_call_progress
(pri=0xb6684420, c=0xb41a7ea0,
channel=20,
    info=1) at q931.c:2770
https://issues.asterisk.org/view.php?id=4  0xb612a75a in pri_progress
(pri=0xb6684420, call=0xb41a7ea0,
channel=20, info=1)
    at pri.c:499
https://issues.asterisk.org/view.php?id=5  0xb61973d5 in dahdi_indicate
(chan=0xb41a89c8, condition=14, data=0x0,
datalen=0)
    at chan_dahdi.c:6188
https://issues.asterisk.org/view.php?id=6  0x08092cf6 in ast_indicate_data
(chan=0xb41a89c8, _condition=14,
data=0x0,
    datalen=0) at channel.c:3117
https://issues.asterisk.org/view.php?id=7  0x08092f18 in ast_indicate
(chan=0xb41a89c8, condition=14) at
channel.c:3060
https://issues.asterisk.org/view.php?id=8  0xb6207dd0 in dial_exec_full
(chan=0xb41a89c8, data=0xb4df9150,
    peerflags=0xb4df90d0, continue_exec=0x0) at app_dial.c:1639
https://issues.asterisk.org/view.php?id=9  0xb620b30d in dial_exec
(chan=0xb41a89c8, data=0xb4df9150) at
app_dial.c:2077
https://issues.asterisk.org/view.php?id=10 0x080f29fe in pbx_exec (c=0xb41a89c8,
app=0xb6662630, data=0xb4df9150)
    at pbx.c:951
https://issues.asterisk.org/view.php?id=11 0xb6d06b57 in handle_exec
(chan=0xb41a89c8, agi=0xb4dfadf4, argc=3,
    argv=0xb4df929c) at res_agi.c:1515
https://issues.asterisk.org/view.php?id=12 0xb6d09125 in agi_handle_command
(chan=0xb41a89c8, agi=0xb4dfadf4,
    buf=0xb4df957b "EXEC", dead=0) at res_agi.c:2627
https://issues.asterisk.org/view.php?id=13 0xb6d09ed9 in run_agi
(chan=0xb41a89c8, data=0xb4dfcf18, enhanced=0,
dead=0)
    at res_agi.c:2783
https://issues.asterisk.org/view.php?id=14 agi_exec_full (chan=0xb41a89c8,
data=0xb4dfcf18, enhanced=0, dead=0)
    at res_agi.c:3017
https://issues.asterisk.org/view.php?id=15 0x080f29fe in pbx_exec (c=0xb41a89c8,
app=0x81f3910, data=0xb4dfcf18)
    at pbx.c:951
https://issues.asterisk.org/view.php?id=16 0x080fcaa8 in pbx_extension_helper
(c=0xb41a89c8, con=0x0,
    context=0xb41a8b50 "CallQueue_Join", exten=0xb41a8ba0 "s", priority=8,
    label=0x0, callerid=0xb4227208 "2017873482", action=E_SPAWN,
found=0xb4dff338,
    combined_find_spawn=1) at pbx.c:3136
https://issues.asterisk.org/view.php?id=17 0x080fe695 in ast_spawn_extension
(c=0xb41a89c8, args=0x0) at
pbx.c:3603
https://issues.asterisk.org/view.php?id=18 __ast_pbx_run (c=0xb41a89c8,
args=0x0) at pbx.c:3690
https://issues.asterisk.org/view.php?id=19 0x080ffd60 in pbx_thread
(data=0xb41a89c8) at pbx.c:3963
https://issues.asterisk.org/view.php?id=20 0x0813a97b in dummy_start
(data=0xb4156b48) at utils.c:861
https://issues.asterisk.org/view.php?id=21 0xb7513585 in start_thread () from
/lib/i686/cmov/libpthread.so.0
https://issues.asterisk.org/view.php?id=22 0xb75f926e in clone () from
/lib/i686/cmov/libc.so.6

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0016833 segfault in q921_transmit_iframe at  q9...
====================================================================== 

---------------------------------------------------------------------- 
 (0132551) rmudgett (administrator) - 2011-03-02 17:19
 https://issues.asterisk.org/view.php?id=16913#c132551 
---------------------------------------------------------------------- 
Closing this issue as the attached chan_dahdi.patch is effectively in
Asterisk for the following revisions:
-r303765 v1.4
-r303769 v1.6.2
-r303771 v1.8
-r303772 trunk

The patch added protection for out-of-sequence AST_CONTROL_xxx frames on
the current call because of things like transfers. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-03-02 17:19 rmudgett       Note Added: 0132551                          
2011-03-02 17:19 rmudgett       Status                   ready for testing =>
closed
2011-03-02 17:19 rmudgett       Resolution               open => fixed       
======================================================================




More information about the asterisk-bugs mailing list