Update: This sounds to be somehow related to Scribunto, see T279832#6989713. This seems to be a more relevant stacktrace:
2021-04-11 18:10:19 [b9c651b7-5220-4608-88b5-32f00c1aa0ba] mw1262 fawiki 1.36.0-wmf.38 exception ERROR: [b9c651b7-5220-4608-88b5-32f00c1aa0ba] /w/index.php?title=%D9%88%DB%8C%DA%98%D9%87:%D8%A7%D9%86%D8%AA%D9%82%D8%A7%D9%84_%D8%B5%D9%81%D8%AD%D9%87&action=submit MediaWiki\Revision\RevisionAccessException: Revision 31758397 belongs to page ID 1869134, the provided Title object belongs to page ID 5602782 {"exception_url":"/w/index.php?title=%D9%88%DB%8C%DA%98%D9%87:%D8%A7%D9%86%D8%AA%D9%82%D8%A7%D9%84_%D8%B5%D9%81%D8%AD%D9%87&action=submit","reqId":"b9c651b7-5220-4608-88b5-32f00c1aa0ba","caught_by":"entrypoint"} [Exception MediaWiki\Revision\RevisionAccessException] (/srv/mediawiki/php-1.36.0-wmf.38/includes/Revision/RevisionStore.php:1803) Revision 31758397 belongs to page ID 1869134, the provided Title object belongs to page ID 5602782 #0 /srv/mediawiki/php-1.36.0-wmf.38/includes/Revision/RevisionStore.php(3215): MediaWiki\Revision\RevisionStore->ensureRevisionRowMatchesTitle(stdClass, Title, array) #1 /srv/mediawiki/php-1.36.0-wmf.38/includes/parser/Parser.php(3535): MediaWiki\Revision\RevisionStore->getKnownCurrentRevision(Title) #2 [internal function]: Parser::statelessFetchRevisionRecord(Title, Parser) #3 /srv/mediawiki/php-1.36.0-wmf.38/includes/Revision/RenderedRevision.php(393): call_user_func(array, Title, Parser) #4 /srv/mediawiki/php-1.36.0-wmf.38/includes/parser/Parser.php(3480): MediaWiki\Revision\RenderedRevision->MediaWiki\Revision\{closure}(Title, Parser) #5 /srv/mediawiki/php-1.36.0-wmf.38/extensions/Scribunto/includes/engines/LuaCommon/TitleLibrary.php(294): Parser->fetchCurrentRevisionRecordOfTitle(Title) #6 /srv/mediawiki/php-1.36.0-wmf.38/extensions/Scribunto/includes/engines/LuaCommon/TitleLibrary.php(328): Scribunto_LuaTitleLibrary->getContentInternal(string) #7 /srv/mediawiki/php-1.36.0-wmf.38/extensions/Scribunto/includes/engines/LuaSandbox/LuaSandboxCallback.php(26): Scribunto_LuaTitleLibrary->getContent(string) #8 [internal function]: Scribunto_LuaSandboxCallback->__call(string, array) #9 /srv/mediawiki/php-1.36.0-wmf.38/extensions/Scribunto/includes/engines/LuaSandbox/LuaSandboxInterpreter.php(113): LuaSandboxFunction->call(LuaSandboxFunction) #10 /srv/mediawiki/php-1.36.0-wmf.38/extensions/Scribunto/includes/engines/LuaCommon/LuaEngine.php(296): Scribunto_LuaSandboxInterpreter->callFunction(LuaSandboxFunction, LuaSandboxFunction) #11 /srv/mediawiki/php-1.36.0-wmf.38/extensions/Scribunto/includes/engines/LuaCommon/LuaModule.php(68): Scribunto_LuaEngine->executeFunctionChunk(LuaSandboxFunction, PPTemplateFrame_Hash) #12 /srv/mediawiki/php-1.36.0-wmf.38/extensions/Scribunto/includes/common/Hooks.php(128): Scribunto_LuaModule->invoke(string, PPTemplateFrame_Hash) #13 /srv/mediawiki/php-1.36.0-wmf.38/includes/parser/Parser.php(3356): ScribuntoHooks::invokeHook(Parser, PPTemplateFrame_Hash, array) #14 /srv/mediawiki/php-1.36.0-wmf.38/includes/parser/Parser.php(3041): Parser->callParserFunction(PPTemplateFrame_Hash, string, array) #15 /srv/mediawiki/php-1.36.0-wmf.38/includes/parser/PPFrame_Hash.php(263): Parser->braceSubstitution(array, PPTemplateFrame_Hash) #16 /srv/mediawiki/php-1.36.0-wmf.38/includes/parser/Parser.php(2955): PPFrame_Hash->expand(PPNode_Hash_Tree) #17 /srv/mediawiki/php-1.36.0-wmf.38/includes/parser/PPFrame_Hash.php(263): Parser->braceSubstitution(array, PPTemplateFrame_Hash) #18 /srv/mediawiki/php-1.36.0-wmf.38/extensions/ParserFunctions/includes/ParserFunctions.php(919): PPFrame_Hash->expand(PPNode_Hash_Tree) #19 /srv/mediawiki/php-1.36.0-wmf.38/extensions/ParserFunctions/includes/ParserFunctions.php(139): MediaWiki\Extensions\ParserFunctions\ParserFunctions::decodeTrimExpand(PPNode_Hash_Tree, PPTemplateFrame_Hash) #20 /srv/mediawiki/php-1.36.0-wmf.38/includes/parser/Parser.php(3356): MediaWiki\Extensions\ParserFunctions\ParserFunctions::ifeq(Parser, PPTemplateFrame_Hash, array) #21 /srv/mediawiki/php-1.36.0-wmf.38/includes/parser/Parser.php(3041): Parser->callParserFunction(PPTemplateFrame_Hash, string, array) #22 /srv/mediawiki/php-1.36.0-wmf.38/includes/parser/PPFrame_Hash.php(263): Parser->braceSubstitution(array, PPTemplateFrame_Hash) #23 /srv/mediawiki/php-1.36.0-wmf.38/extensions/ParserFunctions/includes/ParserFunctions.php(144): PPFrame_Hash->expand(PPNode_Hash_Tree) #24 /srv/mediawiki/php-1.36.0-wmf.38/includes/parser/Parser.php(3356): MediaWiki\Extensions\ParserFunctions\ParserFunctions::ifeq(Parser, PPTemplateFrame_Hash, array) #25 /srv/mediawiki/php-1.36.0-wmf.38/includes/parser/Parser.php(3041): Parser->callParserFunction(PPTemplateFrame_Hash, string, array) #26 /srv/mediawiki/php-1.36.0-wmf.38/includes/parser/PPFrame_Hash.php(263): Parser->braceSubstitution(array, PPTemplateFrame_Hash) #27 /srv/mediawiki/php-1.36.0-wmf.38/extensions/ParserFunctions/includes/ParserFunctions.php(144): PPFrame_Hash->expand(PPNode_Hash_Tree) #28 /srv/mediawiki/php-1.36.0-wmf.38/includes/parser/Parser.php(3356): MediaWiki\Extensions\ParserFunctions\ParserFunctions::ifeq(Parser, PPTemplateFrame_Hash, array) #29 /srv/mediawiki/php-1.36.0-wmf.38/includes/parser/Parser.php(3041): Parser->callParserFunction(PPTemplateFrame_Hash, string, array) #30 /srv/mediawiki/php-1.36.0-wmf.38/includes/parser/PPFrame_Hash.php(263): Parser->braceSubstitution(array, PPTemplateFrame_Hash) #31 /srv/mediawiki/php-1.36.0-wmf.38/includes/parser/PPTemplateFrame_Hash.php(97): PPFrame_Hash->expand(PPNode_Hash_Tree, integer) #32 /srv/mediawiki/php-1.36.0-wmf.38/includes/parser/Parser.php(3227): PPTemplateFrame_Hash->cachedExpand(string, PPNode_Hash_Tree) #33 /srv/mediawiki/php-1.36.0-wmf.38/includes/parser/PPFrame_Hash.php(263): Parser->braceSubstitution(array, PPFrame_Hash) #34 /srv/mediawiki/php-1.36.0-wmf.38/includes/parser/Parser.php(2879): PPFrame_Hash->expand(PPNode_Hash_Tree, integer) #35 /srv/mediawiki/php-1.36.0-wmf.38/includes/parser/Parser.php(1549): Parser->replaceVariables(string) #36 /srv/mediawiki/php-1.36.0-wmf.38/includes/parser/Parser.php(639): Parser->internalParse(string) #37 /srv/mediawiki/php-1.36.0-wmf.38/includes/content/WikitextContent.php(375): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer) #38 /srv/mediawiki/php-1.36.0-wmf.38/includes/content/AbstractContent.php(591): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput) #39 /srv/mediawiki/php-1.36.0-wmf.38/includes/Revision/RenderedRevision.php(266): AbstractContent->getParserOutput(Title, integer, ParserOptions, boolean) #40 /srv/mediawiki/php-1.36.0-wmf.38/includes/Revision/RenderedRevision.php(235): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(WikitextContent, boolean) #41 /srv/mediawiki/php-1.36.0-wmf.38/includes/Revision/RevisionRenderer.php(217): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string, array) #42 /srv/mediawiki/php-1.36.0-wmf.38/includes/Revision/RevisionRenderer.php(154): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, array) #43 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array) #44 /srv/mediawiki/php-1.36.0-wmf.38/includes/Revision/RenderedRevision.php(197): call_user_func(Closure, MediaWiki\Revision\RenderedRevision, array) #45 /srv/mediawiki/php-1.36.0-wmf.38/includes/Storage/DerivedPageDataUpdater.php(1348): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput() #46 /srv/mediawiki/php-1.36.0-wmf.38/includes/Storage/DerivedPageDataUpdater.php(1740): MediaWiki\Storage\DerivedPageDataUpdater->getCanonicalParserOutput() #47 /srv/mediawiki/php-1.36.0-wmf.38/includes/Storage/DerivedPageDataUpdater.php(1491): MediaWiki\Storage\DerivedPageDataUpdater->doParserCacheUpdate() #48 /srv/mediawiki/php-1.36.0-wmf.38/includes/page/WikiPage.php(2381): MediaWiki\Storage\DerivedPageDataUpdater->doUpdates() #49 /srv/mediawiki/php-1.36.0-wmf.38/includes/MovePage.php(1096): WikiPage->doEditUpdates(MediaWiki\Revision\RevisionStoreRecord, User, array) #50 /srv/mediawiki/php-1.36.0-wmf.38/includes/MovePage.php(658): MovePage->moveToInternal(User, Title, string, boolean, array) #51 /srv/mediawiki/php-1.36.0-wmf.38/includes/MovePage.php(504): MovePage->moveUnsafe(User, string, boolean, array) #52 /srv/mediawiki/php-1.36.0-wmf.38/includes/specials/SpecialMovepage.php(861): MovePage->moveIfAllowed(User, string, boolean) #53 /srv/mediawiki/php-1.36.0-wmf.38/includes/specials/SpecialMovepage.php(204): MovePageForm->doSubmit() #54 /srv/mediawiki/php-1.36.0-wmf.38/includes/specialpage/SpecialPage.php(646): MovePageForm->execute(NULL) #55 /srv/mediawiki/php-1.36.0-wmf.38/includes/specialpage/SpecialPageFactory.php(1382): SpecialPage->run(NULL) #56 /srv/mediawiki/php-1.36.0-wmf.38/includes/MediaWiki.php(309): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext) #57 /srv/mediawiki/php-1.36.0-wmf.38/includes/MediaWiki.php(913): MediaWiki->performRequest() #58 /srv/mediawiki/php-1.36.0-wmf.38/includes/MediaWiki.php(546): MediaWiki->main() #59 /srv/mediawiki/php-1.36.0-wmf.38/index.php(53): MediaWiki->run() #60 /srv/mediawiki/php-1.36.0-wmf.38/index.php(46): wfIndexMain() #61 /srv/mediawiki/w/index.php(3): require(string) #62 {main}
See https://logstash.wikimedia.org/goto/d3732dbc1578425c4a3ff73ef7abf9b2
I see it mostly in fawiki but also dewiki https://logstash.wikimedia.org/goto/d19fe3acef282baa88a7767bd5693e4d
from /srv/mediawiki/php-1.36.0-wmf.38/includes/deferred/LinksUpdate.php(140) #0 /srv/mediawiki/php-1.36.0-wmf.38/includes/Storage/DerivedPageDataUpdater.php(1384): LinksUpdate->__construct(Title, ParserOutput, boolean) #1 /srv/mediawiki/php-1.36.0-wmf.38/includes/deferred/RefreshSecondaryDataUpdate.php(83): MediaWiki\Storage\DerivedPageDataUpdater->getSecondaryDataUpdates(boolean) #2 /srv/mediawiki/php-1.36.0-wmf.38/includes/deferred/DeferredUpdates.php(513): RefreshSecondaryDataUpdate->doUpdate() #3 /srv/mediawiki/php-1.36.0-wmf.38/includes/deferred/DeferredUpdates.php(390): DeferredUpdates::attemptUpdate(RefreshSecondaryDataUpdate, Wikimedia\Rdbms\LBFactoryMulti) #4 /srv/mediawiki/php-1.36.0-wmf.38/includes/deferred/DeferredUpdates.php(221): DeferredUpdates::run(RefreshSecondaryDataUpdate, Wikimedia\Rdbms\LBFactoryMulti, Monolog\Logger, BufferingStatsdDataFactory, string) #5 /srv/mediawiki/php-1.36.0-wmf.38/includes/deferred/DeferredUpdatesScope.php(264): DeferredUpdates::{closure}(RefreshSecondaryDataUpdate, integer) #6 /srv/mediawiki/php-1.36.0-wmf.38/includes/deferred/DeferredUpdatesScope.php(196): DeferredUpdatesScope->processStageQueue(integer, integer, Closure) #7 /srv/mediawiki/php-1.36.0-wmf.38/includes/deferred/DeferredUpdates.php(242): DeferredUpdatesScope->processUpdates(integer, Closure) #8 /srv/mediawiki/php-1.36.0-wmf.38/includes/MediaWiki.php(1093): DeferredUpdates::doUpdates(string) #9 /srv/mediawiki/php-1.36.0-wmf.38/includes/MediaWiki.php(821): MediaWiki->restInPeace() #10 /srv/mediawiki/php-1.36.0-wmf.38/includes/MediaWiki.php(833): MediaWiki->{closure}() #11 /srv/mediawiki/php-1.36.0-wmf.38/api.php(125): MediaWiki->doPostOutputShutdown() #12 /srv/mediawiki/php-1.36.0-wmf.38/api.php(45): wfApiMain() #13 /srv/mediawiki/w/api.php(3): require(string) #14 {main}