Page MenuHomePhabricator

A long babel execution causes a PHP OoM error
Closed, DuplicatePublicBUG REPORT

Description

https://meta.wikimedia.org/w/index.php?title=User:Gangleri&oldid=17976567 contained a very long babel execution (see P11918 for full wikitext), which caused the page to throw PHP Fatal Error: Allowed memory size of 698351616 bytes exhausted (tried to allocate 1150976 bytes)., leaving the page unaccessible. When @Urbanecm commented the babel line out, the page started to work again. This can still be observed by opening the old version, or saving/previewing the paste content at your own sandbox.

Old description

  • Steps to Reproduce: Open https://meta.wikimedia.org/wiki/User:Gangleri
  • Actual Results: User page opens without error
  • Expected Results: The pagina gives 500 Internal Server error complaining about being exhausted of memory (PHP Fatal Error: Allowed memory size of 698351616 bytes exhausted (tried to allocate 1150976 bytes).

As it doesn't give much more info it's hard for me to determine where this bug/task should be categorized. Also, this is only page I'm aware of right now that will give this error every single time you try to visit. There might possibly more of these cases, so hence I created this ticket

Event Timeline

Wiki13 renamed this task from PHP Fatal error (Allowed memory size of 698351616 bytes exhausted) on a meta userrpage to PHP Fatal error (Allowed memory size of 698351616 bytes exhausted) on a meta userpage.Jul 15 2020, 7:16 PM

Content of the faulty page:

1[[Category:User alias|{{PAGENAME}}]]
2[[file:systemScript 004.svg|lang={{int:lang}}|thumb|<span dir="ltr" >ISO 15924:Latn – {{#language:{{int:lang}} |{{int:lang}}}} (<code>lang={{int:lang}} </code>)</span>|left|640px]]
3[[Image:Vina vom Schloss Neubronn_2004-07-E-08-300.jpg|100px|thumb|right|[[w:en:Image:Vina vom Schloss Neubronn_2004-07-E-08-300.jpg|Homage]]]]<br clear="all" /><div dir="ltr" >
4[[File:Draumur Þorsteins Egilssonar - batik, silki - Isni 2001-09.jpg|thumb|Dream of [[w:es:Þorsteinn Egilsson]] according to [[w:is:Gunnlaugs saga ormstungu]]; see also fva.is/harpa/forn/ml_annad/helga.jpg]]
5[[file:Gangleri replica 2000 Snorrastofa, Reykholt í Borgarfirði, Iceland.jpg|180px|thumb|right|Gylfi ([[d:Q2296321|Q2296321]])<br />aka Gangleri]]
6<sup><span dir "ltr" class="plainlinks" >ns:{{NAMESPACENUMBER}}&nbsp;· '''PAGEID:'''&nbsp;{{PAGEID}}&nbsp;· [https:{{SERVER}}/?curid={{PAGEID}}#top links&nbsp;'''here''']&nbsp;· <sup>[https:{{SERVER}}/?curid={{PAGEID}}&action=purge# purge&nbsp;↺]&nbsp;· [https:{{SERVER}}/?curid={{PAGEID}}&action=edit&section=0# section=0]</sup>&nbsp;· '''REVISIONID:'''&nbsp;{{REVISIONID}}&nbsp;· [https:{{SERVER}}/?oldid={{REVISIONID}}# permanent&nbsp;link]</span></sup><br />
7Hello world!
8: → [[mw:extension:Scribunto/Lua reference manual]]
9: → [[special:Prefixindex/Module:|'''local:'''special:Prefixindex/Module:]]&nbsp;<sup>[[special:Prefixindex/Module talk:|'''local:'''&nbsp;talks]]</sup>&nbsp;· [[b:en:special:Prefixindex/Module:|b:]]&nbsp;<sup>[[b:en:special:Prefixindex/Module talk:|talks]]</sup>&nbsp;· [[c:special:Prefixindex/Module:|c:]]&nbsp;<sup>[[c:special:Prefixindex/Module talk:|talks]]</sup>&nbsp;· [[d:special:Prefixindex/Module:|d:]]&nbsp;<sup>[[d:special:Prefixindex/Module talk:|talks]]</sup>&nbsp;· [[testwikidata:special:Prefixindex/Module:|d2:]]&nbsp;<sup>[[testwikidata:special:Prefixindex/Module talk:|talks]]</sup>&nbsp;· [[m:special:Prefixindex/Module:|m:]]&nbsp;<sup>[[m:special:Prefixindex/Module talk:|talks]]</sup>&nbsp;· [[mw:special:Prefixindex/Module:|mw:]]&nbsp;<sup>[[mw:special:Prefixindex/Module talk:|talks]]</sup>&nbsp;· [[n:en:special:Prefixindex/Module:|n:]]&nbsp;<sup>[[n:en:special:Prefixindex/Module talk:|talks]]</sup>&nbsp;· [[q:en:special:Prefixindex/Module:|q:]]&nbsp;<sup>[[q:en:special:Prefixindex/Module talk:|talks]]</sup>&nbsp;· [[s:special:Prefixindex/Module:|s:]]&nbsp;<sup>[[s:special:Prefixindex/Module talk:|talks]]</sup>&nbsp;· [[testwiki:special:Prefixindex/Module:|t:]]&nbsp;<sup>[[testwiki:special:Prefixindex/Module talk:|talks]]</sup>&nbsp;· [[test2wiki:special:Prefixindex/Module:|t2:]]&nbsp;<sup>[[test2wiki:special:Prefixindex/Module talk:|talks]]</sup>&nbsp;· [[v:en:special:Prefixindex/Module:|v:]]&nbsp;<sup>[[v:en:special:Prefixindex/Module talk:|talks]]</sup>&nbsp;· [[voy:en:special:Prefixindex/Module:|voy:]]&nbsp;<sup>[[voy:en:special:Prefixindex/Module talk:|talks]]</sup>&nbsp;· [[w:en:special:Prefixindex/Module:|w:]]&nbsp;<sup>[[w:en:special:Prefixindex/Module talk:|talks]]</sup>&nbsp;· [[wikt:en:special:Prefixindex/Module:|wikt]]&nbsp;<sup>[[wikt:en:special:Prefixindex/Module talk:|talks]]</sup>&nbsp;· [[incubator:special:Prefixindex/Module:|incubator]]&nbsp;<sup>[[incubator:special:Prefixindex/Module talk:|talks]]</sup>&nbsp;· [[wmania:special:Prefixindex/Module:|wmania]]&nbsp;<sup>[[wmania:special:Prefixindex/Module talk:|talks]]</sup>&nbsp;· [[wm2016:special:Prefixindex/Module:|wm2016]]&nbsp;<sup>[[wm2016:special:Prefixindex/Module talk:|talks]]</sup>&nbsp;· <sup>[[m:interwiki map]]</sup>
10<!--
11
12<br clear="all" />
13
14-->
15: my aliases:
16:: '''local&nbsp;links:'''&nbsp;[[user:לערי ריינהארט]]&nbsp;<sup>[[user talk:לערי ריינהארט|talk]]</sup>, [[user:I18n]]&nbsp;<sup>[[user talk:I18n|talk]]</sup>, [[user:בײַ מיר ביסטו שיין]]&nbsp;<sup>[[user talk:בײַ מיר ביסטו שיין|talk]]</sup>
17:: links&nbsp;on&nbsp;'''meta:'''&nbsp;[[m:user:לערי ריינהארט]]&nbsp;<sup>[[m:user talk:לערי ריינהארט|talk]]</sup>, [[m:user:I18n]]&nbsp;<sup>[[m:user talk:I18n|talk]]</sup>, [[m:user:בײַ מיר ביסטו שיין]]&nbsp;<sup>[[m:user talk:בײַ מיר ביסטו שיין|talk]]</sup>
18: actual work:
19:: [[testwiki:most-perfect magic square]] <sup>https://test.wikipedia.org/?curid=84307#focus (started&nbsp;August&nbsp;2015)</sup>
20:: [[testwiki:category:4x4 type square]] <sup>a "''[[w:en:Kalachakra|Kalachakra]]''" style (creation/destruction/recreation) work (started&nbsp;2005)</sup>
21:: [[c:project:rakonto|c:project:Story (game) - multilingual interdisciplinary collaborative work]] · [[c:project:rakonto#Media_.28examples.29|#Media (examples)]] <sup>(started&nbsp;2009)</sup>
22: actual location:
23:: nick "''gangleri|foobar''" at [https://webchat.freenode.net/?channels=kavehoyz freenode IRC channel #kavehoyz]
24: [[User:Gangleri|Gangleri]] ([[User talk:Gangleri|talk]]) 11:33, 20 December 2015 (UTC) / [[User:I18n|I18n]] ([[User talk:I18n|talk]]) 11:34, 2 January 2016 (UTC)
25P.S. This page is transcluded from https://meta.wikimedia.org/?curid=9907726# ; the links labeled with prefix '''local''' relate to the local project
26{{#babel:de|en-2|eo-2|ro-2|fr-1|is-1|la-1|ru-1|yi-1||mi-0|rmy-0|tn-0| aa-0| ab-0| ace-0| af-0| ak-0| als-0| am-0| an-0| ang-0| ar-0| arc-0| arz-0| as-0| ast-0| av-0| ay-0| az-0| azb-0| ba-0| bar-0| bat-smg-0| bcl-0| be-0| be-x-old-0| bg-0| bh-0| bi-0| bjn-0| bm-0| bn-0| bo-0| bpy-0| br-0| bs-0| bug-0| bxr-0| ca-0| cbk-zam-0| cdo-0| ce-0| ceb-0| ch-0| cho-0| chr-0| chy-0| ckb-0| co-0| cr-0| crh-0| cs-0| csb-0| cu-0| cv-0| cy-0| da-0| de-0| diq-0| dsb-0| dv-0| dz-0| ee-0| el-0| eml-0| en-0| eo-0| es-0| et-0| eu-0| ext-0| fa-0| ff-0| fi-0| fiu-vro-0| fj-0| fo-0| fr-0| frp-0| frr-0| fur-0| fy-0| ga-0| gag-0| gan-0| gd-0| gl-0| glk-0| gn-0| gom-0| got-0| gu-0| gv-0| ha-0| hak-0| haw-0| he-0| hi-0| hif-0| ho-0| hr-0| hsb-0| ht-0| hu-0| hy-0| hz-0| ia-0| id-0| ie-0| ig-0| ii-0| ik-0| ilo-0| io-0| is-0| it-0| iu-0| ja-0| jbo-0| jv-0| ka-0| kaa-0| kab-0| kbd-0| kg-0| ki-0| kj-0| kk-0| kl-0| km-0| kn-0| ko-0| koi-0| kr-0| krc-0| ks-0| ksh-0| ku-0| kv-0| kw-0| ky-0| la-0| lad-0| lb-0| lbe-0| lez-0| lg-0| li-0| lij-0| lmo-0| ln-0| lo-0| lrc-0| lt-0| ltg-0| lv-0| mai-0| map-bms-0| mdf-0| mg-0| mh-0| mhr-0| mi-0| min-0| mk-0| ml-0| mn-0| mo-0| mr-0| mrj-0| ms-0| mt-0| mus-0| mwl-0| my-0| myv-0| mzn-0| na-0| nah-0| nap-0| nds-0| nds-nl-0| ne-0| new-0| ng-0| nl-0| nn-0| no-0| nov-0| nrm-0| nso-0| nv-0| ny-0| oc-0| om-0| or-0| os-0| pa-0| pag-0| pam-0| pap-0| pcd-0| pdc-0| pfl-0| pi-0| pih-0| pl-0| pms-0| pnb-0| pnt-0| ps-0| pt-0| qu-0| rm-0| rmy-0| rn-0| ro-0| roa-rup-0| roa-tara-0| ru-0| rue-0| rw-0| sa-0| sah-0| sc-0| scn-0| sco-0| sd-0| se-0| sg-0| sh-0| si-0| simple-0| sk-0| sl-0| sm-0| sn-0| so-0| sq-0| sr-0| srn-0| ss-0| st-0| stq-0| su-0| sv-0| sw-0| szl-0| ta-0| te-0| tet-0| tg-0| th-0| ti-0| tk-0| tl-0| tn-0| to-0| tpi-0| tr-0| ts-0| tt-0| tum-0| tw-0| ty-0| tyv-0| udm-0| ug-0| uk-0| ur-0| uz-0| ve-0| vec-0| vep-0| vi-0| vls-0| vo-0| wa-0| war-0| wo-0| wuu-0| xal-0| xh-0| xmf-0| yi-0| yo-0| za-0| zea-0| zh-0| zh-classical-0| zh-min-nan-0| zh-yue-0| zu-0}}
27<br clear="all" />
28{{Userboxtop}}
29{{User wikipedia/Administrator|[[w:en:Maori Wikipedia|Maori Wikipedia]]|lang_code=mi}}
30{{User wikipedia/Administrator|[[w:en:test Wikipedia|test Wikipedia]]|lang_code=testwiki}}
31{{Userboxbottom}}
32</div>

Urbanecm renamed this task from PHP Fatal error (Allowed memory size of 698351616 bytes exhausted) on a meta userpage to A long babel execution causes a PHP OoM error.Jul 15 2020, 7:38 PM
Urbanecm updated the task description. (Show Details)
Urbanecm added a project: Performance-Team.
Urbanecm updated the task description. (Show Details)
Urbanecm updated the task description. (Show Details)

Per IRC discussion last night, I think the advice here is mostly "don't do that, then".