[Home]

Summary:ASTERISK-17775: Deadlock with Dahdi
Reporter:Kiril Valchev (djimbo)Labels:
Date Opened:2011-04-30 07:07:16Date Closed:2013-01-14 15:01:35.000-0600
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Channels/chan_dahdi
Versions:Frequency of
Occurrence
Related
Issues:
duplicatesASTERISK-18166 Deadlock: asterisk isn't responding to any sip package anymore
Environment:Attachments:( 0) 11130-backtrace-threads-2011-04-30T08:36:08+0300.txt
( 1) 11130-core-show-locks-2011-04-30T08:36:08+0300.txt
( 2) 30279-backtrace-threads-2011-05-05T09:07:08+0300.txt
( 3) 30279-core-show-locks-2011-05-05T09:07:08+0300.txt
( 4) backtrace.log
( 5) locks.log
Description:Deadlock after compiling asterisk with dahdi to use Sangoma A200 Analog AFT card


****** ADDITIONAL INFORMATION ******

Asterisk Version SVN-trunk-r314418M
Dahdi Version 2.4.1.2
LibPri Version SVN-branch-1.4-r2262

On clean asterisk without dahdi deadlock is missing.

openSUSE 11.3 (x86_64) kernel 2.6.34-12-default #1 SMP

cat /proc/interrupts
          CPU0       CPU1
 0:         99        639   IO-APIC-edge      timer
 1:          1          1   IO-APIC-edge      i8042
 4:          1          1   IO-APIC-edge
 7:          0          0   IO-APIC-edge      parport0
 8:         27         26   IO-APIC-edge      rtc0
 9:          0          0   IO-APIC-fasteoi   acpi
12:          1          3   IO-APIC-edge      i8042
14:          0          0   IO-APIC-edge      ata_piix
15:          0          0   IO-APIC-edge      ata_piix
16:          0          0   IO-APIC-fasteoi   uhci_hcd:usb5
18:          0          0   IO-APIC-fasteoi   uhci_hcd:usb4
19:    2393204    5489675   IO-APIC-fasteoi   ata_piix, uhci_hcd:usb3
20:  190133700       6113   IO-APIC-fasteoi   wanpipe1, wanpipe2
23:          0          0   IO-APIC-fasteoi   ehci_hcd:usb1, uhci_hcd:usb2
26:          0          0   PCI-MSI-edge      i915
27:  147309915        706   PCI-MSI-edge      eth0
NMI:          0          0   Non-maskable interrupts
LOC:   36431814   40261495   Local timer interrupts
SPU:          0          0   Spurious interrupts
PMI:          0          0   Performance monitoring interrupts
PND:          0          0   Performance pending work
RES:    1375161   14078459   Rescheduling interrupts
CAL:         82         79   Function call interrupts
TLB:   10228497    8691989   TLB shootdowns
TRM:          0          0   Thermal event interrupts
THR:          0          0   Threshold APIC interrupts
MCE:          0          0   Machine check exceptions
MCP:        645        645   Machine check polls
ERR:          1
MIS:          0

# lspci -vv -t
-[0000:00]-+-00.0  Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller
          +-02.0  Intel Corporation 82G33/G31 Express Integrated Graphics Controller
          +-1c.0-[01]--
          +-1c.1-[02]----00.0  Atheros Communications AR8131 Gigabit Ethernet
          +-1d.0  Intel Corporation N10/ICH 7 Family USB UHCI Controller #1
          +-1d.1  Intel Corporation N10/ICH 7 Family USB UHCI Controller #2
          +-1d.2  Intel Corporation N10/ICH 7 Family USB UHCI Controller #3
          +-1d.3  Intel Corporation N10/ICH 7 Family USB UHCI Controller #4
          +-1d.7  Intel Corporation N10/ICH 7 Family USB2 EHCI Controller
          +-1e.0-[03]----00.0  Sangoma Technologies Corp. A200/Remora FXO/FXS Analog AFT card
          +-1f.0  Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge
          +-1f.1  Intel Corporation 82801G (ICH7 Family) IDE Controller
          +-1f.2  Intel Corporation N10/ICH7 Family SATA IDE Controller
          \-1f.3  Intel Corporation N10/ICH 7 Family SMBus Controller


# cat /etc/dahdi/modules
# Autogenerated by /usr/sbin/dahdi_genconf (Dahdi::Config::Gen::Modules) on Wed Apr 20 20:43:13 2011
# If you edit this file and execute /usr/sbin/dahdi_genconf again,
# your manual changes will be LOST.
wanpipe

# cat /etc/dahdi/system.conf
# Autogenerated by /usr/sbin/dahdi_genconf on Thu Apr 28 15:10:36 2011
# If you edit this file and execute /usr/sbin/dahdi_genconf again,
# your manual changes will be LOST.
# Dahdi Configuration File
#
# This file is parsed by the Dahdi Configurator, dahdi_cfg
#
# Span 1: WPE1/0 "wanpipe1 card 0" (MASTER) HDB3/CCS/CRC4
span=1,1,0,ccs,hdb3,crc4
# termtype: te
bchan=1-15,17-31
dchan=16
#echocanceller=mg2,1-15,17-31

# Span 2: WPE1/1 "wanpipe2 card 1" HDB3/CCS/CRC4
span=2,2,0,ccs,hdb3,crc4
# termtype: te
bchan=32-46,48-62
dchan=47
#echocanceller=mg2,32-46,48-62

# Global data

loadzone        = us
defaultzone     = us

# dahdi_scan
[1]
active=yes
alarms=OK
description=wanpipe1 card 0
name=WPE1/0
manufacturer=Sangoma Technologies
devicetype=A102
location=SLOT=0, BUS=3
basechan=1
totchans=31
irq=20
type=digital-E1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=HDB3
framing_opts=CCS,CRC4
coding=HDB3
framing=CCS/CRC4
[2]
active=yes
alarms=OK
description=wanpipe2 card 1
name=WPE1/1
manufacturer=Sangoma Technologies
devicetype=A102
location=SLOT=0, BUS=3
basechan=32
totchans=31
irq=20
type=digital-E1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=HDB3
framing_opts=CCS,CRC4
coding=HDB3
framing=CCS/CRC4
Comments:By: Matt Jordan (mjordan) 2013-01-14 15:01:35.775-0600

This appears to be a duplicate of ASTERISK-18166, which was has been fixed in Asterisk 1.8. If you are still experiencing this issue on a recent version of Asterisk 1.8, please contact a bug marshal in #asterisk-bugs and we will be happy to re-open this issue.