[Home]

Summary:DAHLIN-00255: system freezes when using dahdi mirror tool on a sangoma card and line gets unplugged
Reporter:Johann Steinwendtner (steinwej)Labels:
Date Opened:2011-09-08 14:39:50Date Closed:2011-09-10 22:13:03
Priority:MajorRegression?
Status:Closed/CompleteComponents:dahdi (the module)
Versions:2.5.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Sangoma104eAttachments:
Description:I 'm using the dahdi pcap capturing functionality implemented in https://issues.asterisk.org/view.php?id=16831.
I use libss7 + asterisk on a sangoma card. Kernel 2.6.32-21 from ubuntu.
The tracing functionality works fine. However, if i unplug the line the machine freezes.
I connected a serial connection and I was able to capture the panic.

[  202.444208] BUG: unable to handle kernel NULL pointer dereference at 00000100
[  202.448169] IP: [<f8727b25>] T.1201+0x575/0x5f0 [dahdi]
[  202.448169] *pdpt = 0000000035509001 *pde = 0000000000000000
[  202.448169] Thread overran stack, or stack corrupted
[  202.448169] Oops: 0000 [#1] SMP
[  202.448169] last sysfs file: /sys/devices/pci0000:00/0000:00:1c.5/0000:05:00.0/irq
[  202.448169] Modules linked in: wanec af_wanpipe wanpipe wanrouter dahdi crc_ccitt sdladrv kvm_intel kvm fbcon tileblit font bitblit softcursor vga16fb vgastate radeon ttm drm_kms_helper uss720 drm lp i3000_edac shpchp psmouse serio_raw agpgart i2c_algo_bit dell_wmi dcdbas parport edac_core 8139too usbhid hid 8139cp mii tg3
[  202.448169]
[  202.448169] Pid: 0, comm: swapper Not tainted (2.6.32-21-generic-pae #32-Ubuntu) PowerEdge SC440
[  202.448169] EIP: 0060:[<f8727b25>] EFLAGS: 00010046 CPU: 0
[  202.448169] EIP is at T.1201+0x575/0x5f0 [dahdi]
[  202.448169] EAX: 00000000 EBX: f3c64000 ECX: f3c64000 EDX: 00000200
[  202.448169] ESI: f3638200 EDI: 00000001 EBP: c078dd10 ESP: c078dcc8
[  202.448169]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
[  202.448169] Process swapper (pid: 0, ti=c078c000 task=c079ce80 task.ti=c078c000)
[  202.448169] Stack:
[  202.448169]  f87334d8 f87344ec f4888ab4 f4888ab4 00000000 f3c64004 f3c640d4 f3c64000
[  202.448169] <0> f3638200 00000000 00000001 00000001 f4ac4201 00000007 00000000 0000001f
[  202.448169] <0> f4888ab0 f4888ab0 c078dd74 f872a758 c22094e0 c078dd50 00000000 08236400
[  202.448169] Call Trace:
[  202.448169]  [<f872a758>] ? __dahdi_receive_chunk+0x68/0xb70 [dahdi]
[  202.448169]  [<c013c009>] ? scale_rt_power+0x29/0xb0
[  202.448169]  [<f872ccc7>] ? _dahdi_receive+0x2f7/0x390 [dahdi]
[  202.448169]  [<f89b25c4>] ? wp_tdmv_span_buf_rotate+0x174/0x240 [wanpipe]
[  202.448169]  [<f89b2910>] ? wp_tdmv_rx_tx_span+0x40/0x110 [wanpipe]
[  202.448169]  [<f89b2450>] ? wp_tdmv_span_buf_rotate+0x0/0x240 [wanpipe]
[  202.448169]  [<f89cb0ff>] ? aft_voice_span_rx_tx+0x6f/0x2b0 [wanpipe]
[  202.448169]  [<f89d9d18>] ? wp_aft_global_isr+0x788/0x2100 [wanpipe]
[  202.448169]  [<c017d850>] ? clockevents_program_event+0x90/0x140
[  202.448169]  [<c01201c9>] ? powernow_decode_bios+0x19/0x2b0
[  202.448169]  [<f8a30bf5>] ? sdla_isr+0x265/0x410 [wanpipe]
[  202.448169]  [<c01a8114>] ? handle_IRQ_event+0x54/0x150
[  202.448169]  [<c0175c5e>] ? sched_clock_tick+0x5e/0xa0
[  202.448169]  [<c01aa15a>] ? handle_fasteoi_irq+0x6a/0xd0
[  202.448169]  [<c010bf0d>] ? handle_irq+0x1d/0x30
[  202.448169]  [<c05b5d3c>] ? do_IRQ+0x4c/0xc0
[  202.448169]  [<c0109e90>] ? common_interrupt+0x30/0x40
[  202.448169]  [<c0110f65>] ? mwait_idle+0x55/0xa0
[  202.448169]  [<c0108634>] ? cpu_idle+0x94/0xd0
[  202.448169]  [<c059dbf8>] ? rest_init+0x58/0x60
[  202.448169]  [<c07e08fd>] ? start_kernel+0x351/0x357
[  202.448169]  [<c07e03d8>] ? unknown_bootoption+0x0/0x19e
[  202.448169]  [<c07e00bb>] ? i386_start_kernel+0xaa/0xb1
[  202.448169] Code: ff ff a9 00 00 20 00 74 0c ba 1d 00 00 00 89 d8 e8 d1 e2 ff ff f0 80 4b 36 80 83 c4 3c 5b 5e 5f 5d c3 8b 4d d4 8b 81 c4 00 00 00 <8b> b0 00 01 00 00 85 f6 74 35 c7 83 ac 06 00 00 00 00 00 00 c7
[  202.448169] EIP: [<f8727b25>] T.1201+0x575/0x5f0 [dahdi] SS:ESP 0068:c078dcc8
[  202.448169] CR2: 0000000000000100
[  202.448169] ---[ end trace ed8c787678f9cf2c ]---
[  202.448169] Kernel panic - not syncing: Fatal exception in interrupt
[  202.448169] Pid: 0, comm: swapper Tainted: G      D    2.6.32-21-generic-pae #32-Ubuntu
[  202.448169] Call Trace:
[  202.448169]  [<c05af225>] ? printk+0x1d/0x20
[  202.448169]  [<c05af15d>] panic+0x48/0xf3
[  202.448169]  [<c05b27cd>] oops_end+0xcd/0xd0
[  202.448169]  [<c0131e3c>] no_context+0xbc/0xe0
[  202.448169]  [<c0131e9c>] __bad_area_nosemaphore+0x3c/0x160
[  202.448169]  [<c015476a>] ? release_console_sem+0x1ba/0x200
[  202.448169]  [<c0131fd7>] bad_area_nosemaphore+0x17/0x20
[  202.448169]  [<c05b3f96>] do_page_fault+0x2f6/0x3a0
[  202.448169]  [<c014a880>] ? default_wake_function+0x0/0x20
[  202.448169]  [<c05b3ca0>] ? do_page_fault+0x0/0x3a0
[  202.448169]  [<c05b1c63>] error_code+0x73/0x80
[  202.448169]  [<f8727b25>] ? T.1201+0x575/0x5f0 [dahdi]
[  202.448169]  [<f872a758>] __dahdi_receive_chunk+0x68/0xb70 [dahdi]
[  202.448169]  [<c013c009>] ? scale_rt_power+0x29/0xb0
[  202.448169]  [<f872ccc7>] _dahdi_receive+0x2f7/0x390 [dahdi]
[  202.448169]  [<f89b25c4>] ? wp_tdmv_span_buf_rotate+0x174/0x240 [wanpipe]
[  202.448169]  [<f89b2910>] wp_tdmv_rx_tx_span+0x40/0x110 [wanpipe]
[  202.448169]  [<f89b2450>] ? wp_tdmv_span_buf_rotate+0x0/0x240 [wanpipe]
[  202.448169]  [<f89cb0ff>] aft_voice_span_rx_tx+0x6f/0x2b0 [wanpipe]
[  202.448169]  [<f89d9d18>] wp_aft_global_isr+0x788/0x2100 [wanpipe]
[  202.448169]  [<c017d850>] ? clockevents_program_event+0x90/0x140
[  202.448169]  [<c01201c9>] ? powernow_decode_bios+0x19/0x2b0
[  202.448169]  [<f8a30bf5>] sdla_isr+0x265/0x410 [wanpipe]
[  202.448169]  [<c01a8114>] handle_IRQ_event+0x54/0x150
[  202.448169]  [<c0175c5e>] ? sched_clock_tick+0x5e/0xa0
[  202.448169]  [<c01aa15a>] handle_fasteoi_irq+0x6a/0xd0
[  202.448169]  [<c010bf0d>] handle_irq+0x1d/0x30
[  202.448169]  [<c05b5d3c>] do_IRQ+0x4c/0xc0
[  202.448169]  [<c0109e90>] common_interrupt+0x30/0x40
[  202.448169]  [<c0110f65>] ? mwait_idle+0x55/0xa0
[  202.448169]  [<c0108634>] cpu_idle+0x94/0xd0
[  202.448169]  [<c059dbf8>] rest_init+0x58/0x60
[  202.448169]  [<c07e08fd>] start_kernel+0x351/0x357
[  202.448169]  [<c07e03d8>] ? unknown_bootoption+0x0/0x19e
[  202.448169]  [<c07e00bb>] i386_start_kernel+0xaa/0xb1

I'm not sure if
Comments:By: Shaun Ruffell (sruffell) 2011-09-08 14:52:23.848-0500

Have you contacted Sangoma? It's complaining of stack overrun / corruption and there are several wanpipe functions in the call chain. I don't think I'll be of much help.

By: Johann Steinwendtner (steinwej) 2011-09-09 02:28:26.912-0500

Yes, I've filed a report to them. I thought it happend in __dahdi_receive_chunk where also code for the mirror tool is.
So sorry for the noise. You can close.

By: Shaun Ruffell (sruffell) 2011-09-10 22:13:03.335-0500

Thanks. If after working with them you still can point to a specific problem in DAHDI feel free to open this back up.