Steps to replicate the issue (include links if applicable):
- Upgrade MediaWiki 1.40.3 -> 1.42.1
- Navigate to wiki
What happens?:
Browser spends ~30s 'thinking' then displays a blank page.
What should have happened instead?:
Normal wiki content.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
MediaWiki 1.42.1 PHP 8.3.8 (apache2handler) ICU 74.2 MariaDB 10.6.18-MariaDB Auth_remoteuser REL1_42
Other information (browser name/version, screenshots, etc.):
Checking the web server error log I see entries like:
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /data/webs/wikirw/includes/libs/rdbms/database/DatabaseMySQL.php on line 756
but it looks like DatabaseMySLQ.pgp:756 is an innocent bystander because the amount of memory allocation attempted, the current script, and the line all vary:
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097152 bytes) in /data/webs/wikirw/includes/libs/rdbms/database/DatabaseMySQL.php on line 764, PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097152 bytes) in /data/webs/wikirw/includes/exception/MWExceptionHandler.php on line 391, PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097152 bytes) in /data/webs/wikirw/includes/Request/HeaderCallback.php on line 81, PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097152 bytes) in /data/webs/wikirw/includes/libs/rdbms/database/DatabaseMySQL.php on line 763, PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097152 bytes) in /data/webs/wikirw/includes/exception/MWExceptionHandler.php on line 391, PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097152 bytes) in /data/webs/wikirw/includes/Request/HeaderCallback.php on line 81, PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097152 bytes) in /data/webs/wikirw/includes/libs/rdbms/database/DatabaseMySQL.php on line 763, PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097152 bytes) in /data/webs/wikirw/includes/exception/MWExceptionHandler.php on line 391, PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097152 bytes) in /data/webs/wikirw/includes/Request/HeaderCallback.php on line 81, PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097152 bytes) in /data/webs/wikirw/includes/libs/rdbms/database/DatabaseMySQL.php on line 763, PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097152 bytes) in /data/webs/wikirw/includes/exception/MWExceptionHandler.php on line 391, PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097152 bytes) in /data/webs/wikirw/includes/Request/HeaderCallback.php on line 81, PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes) in /data/webs/wikirw/includes/libs/rdbms/platform/SQLPlatform.php on line 1042,
If I comment out "wfLoadExtension( 'Auth_remoteuser' );" in LocalSettings.php, the wiki behaves fine, but without the user logged in.
Using curl(1) to fetch a wiki page with the extension loaded, I see an HTTP 500 response after ~17s, and zero content.
This may be related to the problem described in T368904.