[asterisk-bugs] [JIRA] (ASTERISK-27299) Asterisk Hangs with Bad file descriptor on read()
Aaron An (JIRA)
noreply at issues.asterisk.org
Mon Dec 18 03:08:10 CST 2017
[ https://issues.asterisk.org/jira/browse/ASTERISK-27299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=240688#comment-240688 ]
Aaron An commented on ASTERISK-27299:
-------------------------------------
Hi, update information here: asterisk remain hangs every few days. I take a lot of investigation about the lose of NONBLOCK flag, It seems that other thread closes the fd holding by alertpipe.
for example:
channel A has alertpipe read fd=3, but other thread B call close(3) by some unknown reason. and maybe thread C get a new fd of value=3, so I can see the "Bad File Descriptor" error and the "Losing NONBLOCK flag" randomly.
The key issue is some module closes the FD not belong to it.
> Asterisk Hangs with Bad file descriptor on read()
> -------------------------------------------------
>
> Key: ASTERISK-27299
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-27299
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Bridges/bridge_native_rtp
> Affects Versions: 13.17.1
> Environment: Ubuntu 16.04 with asterisk 13.17.1
> Reporter: Abhay Gupta
> Assignee: Unassigned
> Attachments: 11.log, 12.log, 3858.threads.log, latestGDB, modules.conf.sample, output2.txt, sip-3-0002949d.log, taskprocessSterl.txt
>
>
> Asterisk stops responding and only have errors of alertpipe
> {noformat}
> Sep 26 15:36:05] WARNING[3133] bridge_channel.c: Weird. No frame from bridge for Local/agentmanual at asterisk-00013cae;1 to process?
> [Sep 26 15:36:05] WARNING[3133] alertpipe.c: read() failed: Bad file descriptor
> [Sep 26 15:36:05] WARNING[3133] bridge_channel.c: Weird. No frame from bridge for Local/agentmanual at asterisk-00013cae;1 to process?
> [Sep 26 15:36:05] WARNING[3133] alertpipe.c: read() failed: Bad file descriptor
> [Sep 26 15:36:05] WARNING[3133] bridge_channel.c: Weird. No frame from bridge for Local/agentmanual at asterisk-00013cae;1 to process?
> [Sep 26 15:36:05] WARNING[3133] alertpipe.c: read() failed: Bad file descriptor
> [Sep 26 15:36:05] WARNING[3133] bridge_channel.c: Weird. No frame from bridge for Local/agentmanual at asterisk-00013cae;1 to process?
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list