https://bugzilla.wikimedia.org/show_bug.cgi?id=55818

       Web browser: ---
            Bug ID: 55818
           Summary: enabling wgDebugFunctionEntry triggers infinite loop
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General/Unknown
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: ebernhard...@wikimedia.org
    Classification: Unclassified
   Mobile Platform: ---

Created attachment 13518
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=13518&action=edit
stack trace produced by the bug

When enabling profiling by providing a StartProfiler.php script along with
setting 
    $wgDebugFunctionEntry = true;
php hits its maximum nesting level. The error stacktrace is attached.

In short, wfProfileIn calls wfDebug.  wfDebug calls wfRunHooks which(the impl
not the hooks) goes back to calling wfProfileIn by the 16th stack frame.

The bug can be reproduced for bisecting by creating StartProfiler.php and
executing 

$ echo "\$wgDebugFunctionEntry = true;wfProfileIn('test');" | php
maintenance/eval.php 

This finds af125df5199b5c232bf335d735cecc6d8f8e9784 as the change which caused
this bug.  Tested on a new mediawiki/vagrant instance with no additional
extensions enabled.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to