[wp-trac] [WordPress Trac] #44532: Extreme memory leak related to wp_is_stream in wp-includes/functions.php in WordPress 4.9.7
WordPress Trac
noreply at wordpress.org
Sun Jul 15 08:16:09 UTC 2018
#44532: Extreme memory leak related to wp_is_stream in wp-includes/functions.php in
WordPress 4.9.7
-----------------------------------------+---------------------
Reporter: timbowesohft | Owner: (none)
Type: defect (bug) | Status: new
Priority: high | Milestone: 4.9.8
Component: Media | Version: 4.9.7
Severity: major | Resolution:
Keywords: has-patch reporter-feedback | Focuses:
-----------------------------------------+---------------------
Comment (by ddenev):
Unfortunately, I got another crash today. Here is the Apache error log:
{{{
[Sun Jul 15 11:03:27.857012 2018] [php7:notice] [pid 29440:tid 860]
[client 192.168.88.11:22465] PHP Fatal error: Allowed memory size of
268435456 bytes exhausted (tried to allocate 17179869232 bytes) in
D:\\Projects\\Websites\\bayer-machines\\web\\wp-includes\\functions.php on
line 5158, referer: https://bayer-machines.ddev/products/plasma-cutting-
machines/
[Sun Jul 15 11:03:27.857012 2018] [php7:notice] [pid 29440:tid 860]
[client 192.168.88.11:22465] PHP Stack trace:, referer: https://bayer-
machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.857012 2018] [php7:notice] [pid 29440:tid 860]
[client 192.168.88.11:22465] PHP 1. {main}() D:\\Projects\\Websites
\\bayer-machines\\web\\index.php:0, referer: https://bayer-
machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.857012 2018] [php7:notice] [pid 29440:tid 860]
[client 192.168.88.11:22465] PHP 2. require() D:\\Projects\\Websites
\\bayer-machines\\web\\index.php:17, referer: https://bayer-
machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.857012 2018] [php7:notice] [pid 29440:tid 860]
[client 192.168.88.11:22465] PHP 3. require_once()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-blog-header.php:13,
referer: https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.857012 2018] [php7:notice] [pid 29440:tid 860]
[client 192.168.88.11:22465] PHP 4. require_once()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-load.php:37, referer:
https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.857012 2018] [php7:notice] [pid 29440:tid 860]
[client 192.168.88.11:22465] PHP 5. require_once()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-config.php:111, referer:
https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.857012 2018] [php7:notice] [pid 29440:tid 860]
[client 192.168.88.11:22465] PHP 6. do_action() D:\\Projects\\Websites
\\bayer-machines\\web\\wp-settings.php:327, referer: https://bayer-
machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.857012 2018] [php7:notice] [pid 29440:tid 860]
[client 192.168.88.11:22465] PHP 7. WP_Hook->do_action()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-includes\\plugin.php:453,
referer: https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.857012 2018] [php7:notice] [pid 29440:tid 860]
[client 192.168.88.11:22465] PHP 8. WP_Hook->apply_filters()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-includes\\class-wp-
hook.php:310, referer: https://bayer-machines.ddev/products/plasma-
cutting-machines/
[Sun Jul 15 11:03:27.857012 2018] [php7:notice] [pid 29440:tid 860]
[client 192.168.88.11:22465] PHP 9. {closure:D:\\Projects\\Websites
\\bayer-machines\\web\\wp-content\\plugins\\gdpr-
framework\\bootstrap.php:45-53}() D:\\Projects\\Websites\\bayer-
machines\\web\\wp-includes\\class-wp-hook.php:286, referer: https://bayer-
machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.857012 2018] [php7:notice] [pid 29440:tid 860]
[client 192.168.88.11:22465] PHP 10.
Codelight\\GDPR\\Setup->__construct() D:\\Projects\\Websites\\bayer-
machines\\web\\wp-content\\plugins\\gdpr-framework\\bootstrap.php:51,
referer: https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.857012 2018] [php7:notice] [pid 29440:tid 860]
[client 192.168.88.11:22465] PHP 11.
Codelight\\GDPR\\Setup->runComponents() D:\\Projects\\Websites\\bayer-
machines\\web\\wp-content\\plugins\\gdpr-framework\\src\\Setup.php:36,
referer: https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.857012 2018] [php7:notice] [pid 29440:tid 860]
[client 192.168.88.11:22465] PHP 12. Codelight\\GDPR\\Container->make()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-content\\plugins\\gdpr-
framework\\src\\Setup.php:87, referer: https://bayer-
machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.857012 2018] [php7:notice] [pid 29440:tid 860]
[client 192.168.88.11:22465] PHP 13.
Codelight\\GDPR\\Container->resolve() D:\\Projects\\Websites\\bayer-
machines\\web\\wp-content\\plugins\\gdpr-
framework\\vendor\\illuminate\\container\\Container.php:575, referer:
https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.857012 2018] [php7:notice] [pid 29440:tid 860]
[client 192.168.88.11:22465] PHP 14. Codelight\\GDPR\\Container->build()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-content\\plugins\\gdpr-
framework\\vendor\\illuminate\\container\\Container.php:608, referer:
https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.857012 2018] [php7:notice] [pid 29440:tid 860]
[client 192.168.88.11:22465] PHP 15. ReflectionClass->()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-content\\plugins\\gdpr-
framework\\vendor\\illuminate\\container\\Container.php:762, referer:
https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.857012 2018] [php7:notice] [pid 29440:tid 860]
[client 192.168.88.11:22465] PHP 16.
Codelight\\GDPR\\Components\\WordpressComments\\WordpressComments->__construct()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-content\\plugins\\gdpr-
framework\\vendor\\illuminate\\container\\Container.php:762, referer:
https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.857012 2018] [php7:notice] [pid 29440:tid 860]
[client 192.168.88.11:22465] PHP 17.
Codelight\\GDPR\\Components\\WordpressComments\\WordpressComments->setup()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-content\\plugins\\gdpr-
framework\\src\\Components\\WordpressComments\\WordpressComments.php:17,
referer: https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.857012 2018] [php7:notice] [pid 29440:tid 860]
[client 192.168.88.11:22465] PHP 18.
Codelight\\GDPR\\Options\\Options->get() D:\\Projects\\Websites\\bayer-
machines\\web\\wp-content\\plugins\\gdpr-
framework\\src\\Components\\WordpressComments\\WordpressComments.php:22,
referer: https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.857012 2018] [php7:notice] [pid 29440:tid 860]
[client 192.168.88.11:22465] PHP 19. get_option() D:\\Projects\\Websites
\\bayer-machines\\web\\wp-content\\plugins\\gdpr-
framework\\src\\Options\\Options.php:25, referer: https://bayer-
machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.857012 2018] [php7:notice] [pid 29440:tid 860]
[client 192.168.88.11:22465] PHP 20. QM_DB->get_row()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-includes\\option.php:98,
referer: https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.857012 2018] [php7:notice] [pid 29440:tid 860]
[client 192.168.88.11:22465] PHP 21. QM_DB->query()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-includes\\wp-db.php:2413,
referer: https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.857012 2018] [php7:notice] [pid 29440:tid 860]
[client 192.168.88.11:22465] PHP 22. QM_DB->query()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-content\\plugins\\query-
monitor\\wp-content\\db.php:100, referer: https://bayer-
machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.857012 2018] [php7:notice] [pid 29440:tid 860]
[client 192.168.88.11:22465] PHP 23. QM_DB->_do_query()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-includes\\wp-db.php:1813,
referer: https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.857012 2018] [php7:notice] [pid 29440:tid 860]
[client 192.168.88.11:22465] PHP 24. QM_DB->get_caller()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-includes\\wp-db.php:1931,
referer: https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.857012 2018] [php7:notice] [pid 29440:tid 860]
[client 192.168.88.11:22465] PHP 25. wp_debug_backtrace_summary()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-includes\\wp-db.php:3412,
referer: https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.951018 2018] [php7:notice] [pid 29440:tid 852]
[client 192.168.88.11:22468] PHP Fatal error: Allowed memory size of
268435456 bytes exhausted (tried to allocate 17179869232 bytes) in
D:\\Projects\\Websites\\bayer-machines\\web\\wp-includes\\functions.php on
line 5158, referer: https://bayer-machines.ddev/products/plasma-cutting-
machines/
[Sun Jul 15 11:03:27.951018 2018] [php7:notice] [pid 29440:tid 852]
[client 192.168.88.11:22468] PHP Stack trace:, referer: https://bayer-
machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.951018 2018] [php7:notice] [pid 29440:tid 852]
[client 192.168.88.11:22468] PHP 1. {main}() D:\\Projects\\Websites
\\bayer-machines\\web\\index.php:0, referer: https://bayer-
machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.951018 2018] [php7:notice] [pid 29440:tid 852]
[client 192.168.88.11:22468] PHP 2. require() D:\\Projects\\Websites
\\bayer-machines\\web\\index.php:17, referer: https://bayer-
machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.951018 2018] [php7:notice] [pid 29440:tid 852]
[client 192.168.88.11:22468] PHP 3. require_once()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-blog-header.php:13,
referer: https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.951018 2018] [php7:notice] [pid 29440:tid 852]
[client 192.168.88.11:22468] PHP 4. require_once()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-load.php:37, referer:
https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.951018 2018] [php7:notice] [pid 29440:tid 852]
[client 192.168.88.11:22468] PHP 5. require_once()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-config.php:111, referer:
https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.951018 2018] [php7:notice] [pid 29440:tid 852]
[client 192.168.88.11:22468] PHP 6. do_action() D:\\Projects\\Websites
\\bayer-machines\\web\\wp-settings.php:327, referer: https://bayer-
machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.951018 2018] [php7:notice] [pid 29440:tid 852]
[client 192.168.88.11:22468] PHP 7. WP_Hook->do_action()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-includes\\plugin.php:453,
referer: https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.951018 2018] [php7:notice] [pid 29440:tid 852]
[client 192.168.88.11:22468] PHP 8. WP_Hook->apply_filters()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-includes\\class-wp-
hook.php:310, referer: https://bayer-machines.ddev/products/plasma-
cutting-machines/
[Sun Jul 15 11:03:27.951018 2018] [php7:notice] [pid 29440:tid 852]
[client 192.168.88.11:22468] PHP 9. {closure:D:\\Projects\\Websites
\\bayer-machines\\web\\wp-content\\plugins\\gdpr-
framework\\bootstrap.php:45-53}() D:\\Projects\\Websites\\bayer-
machines\\web\\wp-includes\\class-wp-hook.php:286, referer: https://bayer-
machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.951018 2018] [php7:notice] [pid 29440:tid 852]
[client 192.168.88.11:22468] PHP 10.
Codelight\\GDPR\\Setup->__construct() D:\\Projects\\Websites\\bayer-
machines\\web\\wp-content\\plugins\\gdpr-framework\\bootstrap.php:51,
referer: https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.951018 2018] [php7:notice] [pid 29440:tid 852]
[client 192.168.88.11:22468] PHP 11.
Codelight\\GDPR\\Setup->runComponents() D:\\Projects\\Websites\\bayer-
machines\\web\\wp-content\\plugins\\gdpr-framework\\src\\Setup.php:36,
referer: https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.951018 2018] [php7:notice] [pid 29440:tid 852]
[client 192.168.88.11:22468] PHP 12. Codelight\\GDPR\\Container->make()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-content\\plugins\\gdpr-
framework\\src\\Setup.php:87, referer: https://bayer-
machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.951018 2018] [php7:notice] [pid 29440:tid 852]
[client 192.168.88.11:22468] PHP 13.
Codelight\\GDPR\\Container->resolve() D:\\Projects\\Websites\\bayer-
machines\\web\\wp-content\\plugins\\gdpr-
framework\\vendor\\illuminate\\container\\Container.php:575, referer:
https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.951018 2018] [php7:notice] [pid 29440:tid 852]
[client 192.168.88.11:22468] PHP 14. Codelight\\GDPR\\Container->build()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-content\\plugins\\gdpr-
framework\\vendor\\illuminate\\container\\Container.php:608, referer:
https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.951018 2018] [php7:notice] [pid 29440:tid 852]
[client 192.168.88.11:22468] PHP 15. ReflectionClass->()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-content\\plugins\\gdpr-
framework\\vendor\\illuminate\\container\\Container.php:762, referer:
https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.951018 2018] [php7:notice] [pid 29440:tid 852]
[client 192.168.88.11:22468] PHP 16.
Codelight\\GDPR\\Components\\WordpressComments\\WordpressComments->__construct()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-content\\plugins\\gdpr-
framework\\vendor\\illuminate\\container\\Container.php:762, referer:
https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.952018 2018] [php7:notice] [pid 29440:tid 852]
[client 192.168.88.11:22468] PHP 17.
Codelight\\GDPR\\Components\\WordpressComments\\WordpressComments->setup()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-content\\plugins\\gdpr-
framework\\src\\Components\\WordpressComments\\WordpressComments.php:17,
referer: https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.952018 2018] [php7:notice] [pid 29440:tid 852]
[client 192.168.88.11:22468] PHP 18.
Codelight\\GDPR\\Options\\Options->get() D:\\Projects\\Websites\\bayer-
machines\\web\\wp-content\\plugins\\gdpr-
framework\\src\\Components\\WordpressComments\\WordpressComments.php:22,
referer: https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.952018 2018] [php7:notice] [pid 29440:tid 852]
[client 192.168.88.11:22468] PHP 19. get_option() D:\\Projects\\Websites
\\bayer-machines\\web\\wp-content\\plugins\\gdpr-
framework\\src\\Options\\Options.php:25, referer: https://bayer-
machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.952018 2018] [php7:notice] [pid 29440:tid 852]
[client 192.168.88.11:22468] PHP 20. QM_DB->get_row()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-includes\\option.php:98,
referer: https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.952018 2018] [php7:notice] [pid 29440:tid 852]
[client 192.168.88.11:22468] PHP 21. QM_DB->query()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-includes\\wp-db.php:2413,
referer: https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.952018 2018] [php7:notice] [pid 29440:tid 852]
[client 192.168.88.11:22468] PHP 22. QM_DB->query()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-content\\plugins\\query-
monitor\\wp-content\\db.php:100, referer: https://bayer-
machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.952018 2018] [php7:notice] [pid 29440:tid 852]
[client 192.168.88.11:22468] PHP 23. QM_DB->_do_query()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-includes\\wp-db.php:1813,
referer: https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.952018 2018] [php7:notice] [pid 29440:tid 852]
[client 192.168.88.11:22468] PHP 24. QM_DB->get_caller()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-includes\\wp-db.php:1931,
referer: https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:27.952018 2018] [php7:notice] [pid 29440:tid 852]
[client 192.168.88.11:22468] PHP 25. wp_debug_backtrace_summary()
D:\\Projects\\Websites\\bayer-machines\\web\\wp-includes\\wp-db.php:3412,
referer: https://bayer-machines.ddev/products/plasma-cutting-machines/
[Sun Jul 15 11:03:30.567167 2018] [mpm_winnt:notice] [pid 29428:tid 356]
AH00428: Parent: child process 29440 exited with status 255 -- Restarting.
}}}
Honestly, I am not sure that this is related since the line in
functions.php is completely different:
{{{#!php
$caller[] = "{$call['class']}{$call['type']}{$call['function']}";
}}}
in `wp_debug_backtrace_summary()` but I'm posting it here as it seems
again as a memory leak.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44532#comment:40>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list