[asterisk-bugs] [JIRA] (ASTERISK-18200) CLI output is limited to 24000 bytes, running 'dialplan reload' in verbose mode
Corey Farrell (JIRA)
noreply at issues.asterisk.org
Sat Mar 28 14:43:34 CDT 2015
[ https://issues.asterisk.org/jira/browse/ASTERISK-18200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=225683#comment-225683 ]
Corey Farrell commented on ASTERISK-18200:
------------------------------------------
I've reproduced this issue by running asterisk from two terminals using {{asterisk -cvvv}}, then once fully booted {{asterisk -rvvv}}. I am able to confirm this issue, with the attached dialplan the output of {{dialplan reload}} only reached extension 272. Upon further investigation I found we are getting {{errno == EAGAIN}} from {{fdwrite}}. This is due to {{console\[x].p\[1]}} being set to {{O_NONBLOCK}}.
Removing O_NONBLOCK does fix the issue, but I'm concerned this could cause slowdowns when something floods remote consoles. O_NONBLOCK was set in SVN revision 367, which has "Version 0.1.9 from FTP" in the commit log. So it's possible that O_NONBLOCK is unneeded, but difficult to prove.
In my opinion this would be a high risk/low reward fix that should not be considered for any released version, if at all. As it is I see this as "accidental flood protection". This issue also does not effect verbose logs configured in logger.conf, only consoles.
> CLI output is limited to 24000 bytes, running 'dialplan reload' in verbose mode
> -------------------------------------------------------------------------------
>
> Key: ASTERISK-18200
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-18200
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Core/Configuration
> Affects Versions: 1.6.2.19, 1.8.5.0
> Environment: Linux Debian 6.0.2 (Squeeze), both asterisk versions compiled against standard Debian libraries
> Reporter: xerofun
> Severity: Trivial
> Attachments: cli-output-broken-dialplan.txt, extensions.conf
>
>
> Initially I thought not only the output on the CLI is limited, but also reloading the dialplan cuts off at a certain point.
> It seems that only the CLI output is limited to 24000 bytes when hitting 'dialplan reload'.
> So I still think this is a (cosmetic) bug, as I really want to see all the output when running in debug mode i.e. 'asterisk -rvvv'. If there's an error in the dialplan in the part that's cut off, I won't see it.
> Please use the attached extensions.conf to reproduce this by entering the asterisk shell with 'asterisk -rvvv' and enter 'dialplan reload'. Sometimes it works and outputs the full diaplan, but most times it just cuts off at extension 362 or 363.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list