[Home]

Summary:ASTERISK-12389: 99% cpu with 'logger rotate'
Reporter:Paul Belanger (pabelanger)Labels:
Date Opened:2008-07-15 18:10:11Date Closed:2008-07-15 19:44:57
Priority:BlockerRegression?No
Status:Closed/CompleteComponents:General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:In issue 13085 Corydon76 pointed out the 'logger rotate' command.  However using 1.6.0-beta9, we're unable to get it to work properly.  It locks up our cli and spikes the CPU to 99%.

Below is the output of 'core show locks'.

****** ADDITIONAL INFORMATION ******

=======================================================================
=== Currently Held Locks ==============================================
=======================================================================
===
=== <file> <line num> <function> <lock name> <lock addr> (times locked)
===
=== Thread ID: -1216402544 (netconsole           started at [ 1068] asterisk.c listener())
=== ---> Lock #0 (logger.c): WRLOCK 543 reload_logger &(&logchannels)->lock 0x81dd4a8 (1)
=== -------------------------------------------------------------------
===
=======================================================================
Comments:By: Digium Subversion (svnbot) 2008-07-15 19:44:56

Repository: asterisk
Revision: 131166

U   trunk/main/logger.c

------------------------------------------------------------------------
r131166 | tilghman | 2008-07-15 19:44:55 -0500 (Tue, 15 Jul 2008) | 3 lines

Fix rotate strategy
(Closes issue ASTERISK-12389)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=131166