Summary:ASTERISK-18492: Deadlock in channel.c / chan_sip.c
Reporter:Stefan Lekov (arcopix)Labels:
Date Opened:2011-09-09 05:20:23Date Closed:2011-09-12 12:57:23
Status:Closed/CompleteComponents:Channels/chan_sip/General Channels/General
Versions: Frequency of
One Time
Environment:Debian Squeeze (2.6.32-5-amd64), 64 bit system, 8 core @ Intel(R) Xeon(R) CPU X3440 @ 2.53GHz, 8GB RAM, Dual Intel Corporation 82574L ethernet interfaces, no specialized telephony hardware installedAttachments:( 0) backtrace-threads.txt
( 1) locks.txt
Description:I don't know if the following issue is related to (https://issues.asterisk.org/jira/browse/ASTERISK-18491) but I came across another deadlock which looked quite different. That's why I'm starting separate ticket.

System description: Asterisk is compiled from source, usage of AGI scripts, realtime configuration for SIP (mySQL) and voicemail. Dialplan is relatively short (about 12kB total) and the average load is about 0.1~0.2. Average concurrent channels: 2.7

Debug information provided is from
Comments:By: Gregory Hinton Nietsky (irroot) 2011-09-09 15:09:43.448-0500

Hi please make sure res_timerfd is disabled or you using 1.8.7-rc1 or latter the fix is available in latest source.

This is not a "dead" lock but a block and a documented problem

Thread 3 (Thread 0x7f3132f9c700 (LWP 58705)):
#0  0x00007f3153268ebd in read () from /lib/libc.so.6
#1  0x00007f3147d532dc in timerfd_timer_ack (handle=44, quantity=1) at res_timing_timerfd.c:167
#2  0x000000000055c7a4 in ast_timer_ack (handle=0x7f312c04da78, quantity=1) at timing.c:169
#3  0x00000000004751fa in __ast_read (chan=0x7f312c037180, dropaudio=0) at channel.c:3788

By: Leif Madsen (lmadsen) 2011-09-12 12:57:23.548-0500

Closing as the res_timing_timerfd stuff should be fixed in