[wp-trac] [WordPress Trac] #39338: class-wp-hook.php - apply_filters() infinite loop

WordPress Trac noreply at wordpress.org
Mon Apr 9 07:40:44 UTC 2018


#39338: class-wp-hook.php - apply_filters() infinite loop
-------------------------------------------------+-------------------------
 Reporter:  frettled                             |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  Plugins                              |  Release
 Severity:  normal                               |     Version:  4.7
 Keywords:  reporter-feedback needs-patch dev-   |  Resolution:
  feedback                                       |     Focuses:
-------------------------------------------------+-------------------------

Comment (by Jonathan.Moore@…):

 Defensive coding is needed, it shouldn't be possible for some plugin
 interaction to produce:
 Invalid argument supplied for foreach() in wp-includes/class-wp-hook.php
 on line 277
 etc

 In the case I'm attempting to debug it seems to occur with certain
 combinations of plugins, combined with a cron and/or other load (not
 reproducible interactively).  So no, I can't provide a reproducible test
 case either despite much trying, I would love to be able to do so.

 In these cases php-fpm spins up to full cpu and starts eating memory until
 out of memory or execution time exceeded or both.
 (increasing memory or execution time doesn't solve - better maybe to
 reduce and fail earier whatever infinite loop is happening).  If there's a
 possibility core itself is producing this infinite loop as per the thread
 title [whatever 'bad' plugin combination may have caused it], that
 possibility should be closed.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39338#comment:42>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list