[asterisk-bugs] [Asterisk 0015612]: DAHDI restart causes multiple 'dahdi_pri_error: Can't destroy call 0!' on console

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jul 29 23:32:28 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15612 
====================================================================== 
Reported By:                alecdavis
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15612
Category:                   Channels/chan_dahdi
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.1.0 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!): 202764 
Request Review:              
====================================================================== 
Date Submitted:             2009-07-29 21:18 CDT
Last Modified:              2009-07-29 23:32 CDT
====================================================================== 
Summary:                    DAHDI restart causes multiple 'dahdi_pri_error:
Can't destroy call 0!' on console
Description: 
using Congestion(0) in dialplan is appearing to leave pri channels
unavailable.

Causing a PRI restart when no channels are actually in use, causes
multiple messages to appear on console as below.

! Unknown IE 50 (cs5, Unknown Information Element)
    -- Accepting call from '21496205' to '9147' on channel 0/31, span 1
    -- Executing [9147 at incoming:1] Congestion("DAHDI/31-1", "0") in new
stack
  == Spawn extension (incoming, 9147, 1) exited non-zero on 'DAHDI/31-1'
    -- Hungup 'DAHDI/31-1'

!! Unknown IE 50 (cs5, Unknown Information Element)
    -- Executing [9147 at incoming:1] Congestion("DAHDI/31-1", "0") in new
stack
  == Spawn extension (incoming, 9147, 1) exited non-zero on 'DAHDI/31-1'
    -- Hungup 'DAHDI/31-1'
    -- Accepting call from '21496205' to '' on channel 0/31, span 1

    -- Restart on requested on entire span 1
[Jul 30 11:52:16] ERROR[27574]: chan_dahdi.c:10723 dahdi_pri_error: Can't
destroy call 0!
[Jul 30 11:52:16] ERROR[27574]: chan_dahdi.c:10723 dahdi_pri_error: Can't
destroy call 0!

I can only get it to happen when <u>Accepting call</u> happens after the
Hangup.

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

---------------------------------------------------------------------- 
 (0108379) alecdavis (reporter) - 2009-07-29 23:32
 https://issues.asterisk.org/view.php?id=15612#c108379 
---------------------------------------------------------------------- 
Asterisk SVN-trunk-r209484 it gets much worse.
DAHDI Version: 2.2.0 Echo Canceller: MG2

After the first execution of 'Congestion(0)' no further inbound calls can
be made.

dialplan is slightly different, as it's on another box.
;congestion
exten => 8696,1,Congestion(0)

Asterisk also segfaults, but with DON'T OPTIMIZE on, I get a core dump but
it seems empty??

<b>BUT</b>: If compiled with DON'T OPTIMIZE and DEBUG THREADS I get the
following console output, thus am able to make multiple calls.

!! Unknown IE 50 (cs5, Unknown Information Element)
    -- Executing [8696 at incoming:1] Congestion("DAHDI/22-1", "0") in new
stack
  == Spawn extension (incoming, 8696, 1) exited non-zero on 'DAHDI/22-1'
    -- Hungup 'DAHDI/22-1'
[Jul 30 16:23:41] ERROR[17094]:
/usr/src/pbx/june2009/asterisk-trunk/include/asterisk/lock.h:733
__ast_pthread_mutex_unlock: pbx.c line 9347 (pbx_builtin_setvar_helper):
Error releasing mutex: Invalid argument
[Jul 30 16:23:41] ERROR[17094]:
/usr/src/pbx/june2009/asterisk-trunk/include/asterisk/lock.h:599
__ast_pthread_mutex_lock: pbx.c line 9309 (pbx_builtin_setvar_helper):
Error obtaining mutex: Invalid argument
[Jul 30 16:23:41] ERROR[17094]:
/usr/src/pbx/june2009/asterisk-trunk/include/asterisk/lock.h:705
__ast_pthread_mutex_unlock: pbx.c line 9347 (pbx_builtin_setvar_helper):
mutex 'chan' freed more times than we've locked!
[Jul 30 16:23:41] ERROR[17094]:
/usr/src/pbx/june2009/asterisk-trunk/include/asterisk/lock.h:733
__ast_pthread_mutex_unlock: pbx.c line 9347 (pbx_builtin_setvar_helper):
Error releasing mutex: Invalid argument
    -- Accepting call from '5604866' to '' on channel 0/22, span 1
!! Unknown IE 50 (cs5, Unknown Information Element)
    -- Executing [8696 at incoming:1] Congestion("DAHDI/23-1", "0") in new
stack
  == Spawn extension (incoming, 8696, 1) exited non-zero on 'DAHDI/23-1'
    -- Hungup 'DAHDI/23-1'
[Jul 30 16:23:47] ERROR[17094]:
/usr/src/pbx/june2009/asterisk-trunk/include/asterisk/lock.h:733
__ast_pthread_mutex_unlock: pbx.c line 9347 (pbx_builtin_setvar_helper):
Error releasing mutex: Invalid argument
[Jul 30 16:23:47] ERROR[17094]:
/usr/src/pbx/june2009/asterisk-trunk/include/asterisk/lock.h:599
__ast_pthread_mutex_lock: pbx.c line 9309 (pbx_builtin_setvar_helper):
Error obtaining mutex: Invalid argument
[Jul 30 16:23:47] ERROR[17094]:
/usr/src/pbx/june2009/asterisk-trunk/include/asterisk/lock.h:705
__ast_pthread_mutex_unlock: pbx.c line 9347 (pbx_builtin_setvar_helper):
mutex 'chan' freed more times than we've locked!
[Jul 30 16:23:47] ERROR[17094]:
/usr/src/pbx/june2009/asterisk-trunk/include/asterisk/lock.h:733
__ast_pthread_mutex_unlock: pbx.c line 9347 (pbx_builtin_setvar_helper):
Error releasing mutex: Invalid argument
    -- Accepting call from '5604866' to '' on channel 0/23, span 1
!! Unknown IE 50 (cs5, Unknown Information Element)
    -- Executing [8696 at incoming:1] Congestion("DAHDI/24-1", "0") in new
stack
  == Spawn extension (incoming, 8696, 1) exited non-zero on 'DAHDI/24-1'
    -- Hungup 'DAHDI/24-1'
[Jul 30 16:23:54] ERROR[17094]:
/usr/src/pbx/june2009/asterisk-trunk/include/asterisk/lock.h:733
__ast_pthread_mutex_unlock: pbx.c line 9347 (pbx_builtin_setvar_helper):
Error releasing mutex: Invalid argument
[Jul 30 16:23:54] ERROR[17094]:
/usr/src/pbx/june2009/asterisk-trunk/include/asterisk/lock.h:599
__ast_pthread_mutex_lock: pbx.c line 9309 (pbx_builtin_setvar_helper):
Error obtaining mutex: Invalid argument
[Jul 30 16:23:54] ERROR[17094]:
/usr/src/pbx/june2009/asterisk-trunk/include/asterisk/lock.h:705
__ast_pthread_mutex_unlock: pbx.c line 9347 (pbx_builtin_setvar_helper):
mutex 'chan' freed more times than we've locked!
[Jul 30 16:23:54] ERROR[17094]:
/usr/src/pbx/june2009/asterisk-trunk/include/asterisk/lock.h:733
__ast_pthread_mutex_unlock: pbx.c line 9347 (pbx_builtin_setvar_helper):
Error releasing mutex: Invalid argument
    -- Accepting call from '5604866' to '' on channel 0/24, span 1 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-07-29 23:32 alecdavis      Note Added: 0108379                          
======================================================================




More information about the asterisk-bugs mailing list