[Home]

Summary:ASTERISK-18250: Resource leak in timerfd
Reporter:Mark Murawski (kobaz)Labels:
Date Opened:2011-08-09 11:11:37Date Closed:2011-08-14 22:04:58
Priority:MajorRegression?
Status:Closed/CompleteComponents:Resources/res_timing_timerfd
Versions:1.8.5.0 Frequency of
Occurrence
Related
Issues:
is related toASTERISK-18247 Asterisk taking up 673 mb of ram in idle state
Environment:Attachments:
Description:After running for a while with the patches from ASTERISK-17867
This is a 100% SIP system.

timerfd leavs open file handles.  After a week of operation I was left with > 900 open files that looked like this:

COMMAND     PID        USER   FD      TYPE     DEVICE   SIZE/OFF       NODE NAME
asterisk   2472        pbx 1017u     0000        0,7         0       2050 anon_inode
...900+ more

In /proc/<pid>/fds...

lrwx------ 1 pbx pbx 64 Aug  9 11:31 980 -> anon_inode:[timerfd]
lrwx------ 1 pbx pbx 64 Aug  9 11:31 981 -> anon_inode:[timerfd]
lrwx------ 1 pbx pbx 64 Aug  9 11:31 983 -> anon_inode:[timerfd]
...900+ more
Comments:By: Terry Wilson (twilson) 2011-08-12 09:48:58.987-0500

Yes, that patch was reverted due to several issues. An updated version is on reviewboard here: https://reviewboard.asterisk.org/r/1361/

By: Mark Murawski (kobaz) 2011-08-14 22:03:30.286-0500

I didn't know if this was the result of an existing issue or with the patch.  I'll close this out since it's not against the asterisk mainline.

By: Mark Murawski (kobaz) 2011-08-14 22:04:58.522-0500

Not a bug in an official asterisk release.