[asterisk-bugs] [Asterisk 0014175]: Asterisk uses 100% of processor forever when I used the CLI during a load test
Asterisk Bug Tracker
noreply at bugs.digium.com
Thu Feb 26 12:13:01 CST 2009
The following issue requires your FEEDBACK.
======================================================================
http://bugs.digium.com/view.php?id=14175
======================================================================
Reported By: fcsil
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 14175
Category: General
Reproducibility: sometimes
Severity: major
Priority: normal
Status: feedback
Asterisk Version: Older 1.4
Regression: No
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2009-01-05 17:59 CST
Last Modified: 2009-02-26 12:13 CST
======================================================================
Summary: Asterisk uses 100% of processor forever when I used
the CLI during a load test
Description:
I made a load test in asterisk and when I terminated the test, asterisk
continued using 100% of cpu without 0 channels UP.
I attached GDB to asterisk pid and debug thread by thread to found a
infinite looping in CLI see the file read.c:533 of edline.
case CC_ERROR:
default: /* functions we don't know about */
#ifdef DEBUG_READ
(void) fprintf(el->el_errfile,
"*** editor ERROR ***\r\n\n");
#endif /* DEBUG_READ */
el->el_state.argument = 1;
el->el_state.doingarg = 0;
term_beep(el);
term__flush();
break;
}
} /*<---- closing: for (num = OKCMD; num == OKCMD;) */
when CC_ERROR happens the condition of for is not changed and the loop
runs again, but in my scenary, the loop never ends.
I think the IO of memory swap turn the machine too slow to handle
correctaly the events from CLI , probably the cause of bug is the cursor
posicioned in a invalid place (I don't found a deterministic way to
reproduce it).
I'm trying to solve the problem using the same code of CC_FATAL to
CC_ERROR.
above my changed code:
read.c:520
[[[unlicensed patch removed]]]
I don't yet reproduce the error after code change (I think it was solved),
but I'm not sure about the efects of this change.
my english is wrong :( sorry!.
======================================================================
----------------------------------------------------------------------
(0100820) tilghman (administrator) - 2009-02-26 12:13
http://bugs.digium.com/view.php?id=14175#c100820
----------------------------------------------------------------------
All patches must be uploaded and a license agreement signed. Please do not
embed patches in the body of an issue.
Issue History
Date Modified Username Field Change
======================================================================
2009-02-26 12:13 tilghman Note Added: 0100820
2009-02-26 12:13 tilghman Status new => feedback
2009-02-26 12:13 tilghman Description Updated
======================================================================
More information about the asterisk-bugs
mailing list