Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 386633 - >=net-misc/asterisk-1.8.X double-fd close bug
Summary: >=net-misc/asterisk-1.8.X double-fd close bug
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Tony Vroon (RETIRED)
URL: https://issues.asterisk.org/jira/brow...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-10 10:30 UTC by Jaco Kroon
Modified: 2011-10-12 09:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ast_manager.patch (ast_manager.patch,236 bytes, patch)
2011-10-10 10:32 UTC, Jaco Kroon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaco Kroon 2011-10-10 10:30:28 UTC
As per the asterisk issue, there is a double-close bug in the asterisk http manager code.  This can cause a massive number of random failures throughout the entirety of asterisk on pretty much any dynamically opened fd and can explain quite a number of the issues I've seen over the last month or so.

I've rolled a patch I'm about to attach.  I suggest this gets added to the patch set for <=1.8.7.0, but will need to be removed again for >=1.8.7.0 as I suspect the fix will go into 1.8.7.0 (unconfirmed).

Reproducible: Always
Comment 1 Jaco Kroon 2011-10-10 10:32:17 UTC
Created attachment 289439 [details, diff]
ast_manager.patch

Ok, my mistake, been out of the loop for more than a week, I note 1.8.7.0 has already been released, so will probably only go into 1.8.8 :(.
Comment 2 Tony Vroon (RETIRED) gentoo-dev 2011-10-12 09:25:40 UTC
+*asterisk-1.8.7.0-r1 (12 Oct 2011)
+
+  12 Oct 2011; Tony Vroon <chainsaw@gentoo.org> -asterisk-1.8.7.0_rc2.ebuild,
+  +asterisk-1.8.7.0-r1.ebuild:
+  Install the provided radius dictionary, closes bug #383911 by Oleg Gawriloff.
+  Close manager file descriptors once, not twice as per Jaco Kroon in bug
+  #386633. Remove release candidate now that the final release is available.