Page MenuHomePhabricator

SqlBlobStore emits "PHP Warning: data error" from gzinflate()
Open, NormalPublic

Description

stack trace
#0 [internal function]: MWExceptionHandler::handleError(integer, string, string, integer, array, array)
#1 /srv/mediawiki/php-1.32.0-wmf.19/includes/Storage/SqlBlobStore.php(505): gzinflate(string)
#2 /srv/mediawiki/php-1.32.0-wmf.19/includes/Storage/SqlBlobStore.php(432): MediaWiki\Storage\SqlBlobStore->decompressData(string, array)
#3 /srv/mediawiki/php-1.32.0-wmf.19/includes/Storage/SqlBlobStore.php(353): MediaWiki\Storage\SqlBlobStore->expandBlob(string, array, string)
#4 /srv/mediawiki/php-1.32.0-wmf.19/includes/Storage/SqlBlobStore.php(281): MediaWiki\Storage\SqlBlobStore->fetchBlob(string, integer)
#5 /srv/mediawiki/php-1.32.0-wmf.19/includes/libs/objectcache/WANObjectCache.php(1277): Closure$MediaWiki\Storage\SqlBlobStore::getBlob(boolean, integer, array, NULL)
#6 /srv/mediawiki/php-1.32.0-wmf.19/includes/libs/objectcache/WANObjectCache.php(1150): WANObjectCache->doGetWithSetCallback(string, integer, Closure$MediaWiki\Storage\SqlBlobStore::getBlob;2710, array)
#7 /srv/mediawiki/php-1.32.0-wmf.19/includes/Storage/SqlBlobStore.php(284): WANObjectCache->getWithSetCallback(string, integer, Closure$MediaWiki\Storage\SqlBlobStore::getBlob;2710, array)
#8 /srv/mediawiki/php-1.32.0-wmf.19/includes/Storage/RevisionStore.php(1382): MediaWiki\Storage\SqlBlobStore->getBlob(string, integer)
#9 /srv/mediawiki/php-1.32.0-wmf.19/includes/Storage/RevisionStore.php(1319): MediaWiki\Storage\RevisionStore->loadSlotContent(MediaWiki\Storage\SlotRecord, NULL, NULL, NULL, integer)
#10 [internal function]: Closure$MediaWiki\Storage\RevisionStore::emulateMainSlot_1_29#2(MediaWiki\Storage\SlotRecord)
#11 /srv/mediawiki/php-1.32.0-wmf.19/includes/Storage/SlotRecord.php(306): call_user_func(Closure$MediaWiki\Storage\RevisionStore::emulateMainSlot_1_29#2;2705, MediaWiki\Storage\SlotRecord)
#12 /srv/mediawiki/php-1.32.0-wmf.19/includes/Storage/SlotRecord.php(512): MediaWiki\Storage\SlotRecord->getContent()
#13 /srv/mediawiki/php-1.32.0-wmf.19/includes/Storage/RevisionSlots.php(149): MediaWiki\Storage\SlotRecord->getSize()
#14 [internal function]: Closure$MediaWiki\Storage\RevisionSlots::computeSize(integer, MediaWiki\Storage\SlotRecord)
#15 /srv/mediawiki/php-1.32.0-wmf.19/includes/Storage/RevisionSlots.php(150): array_reduce(array, Closure$MediaWiki\Storage\RevisionSlots::computeSize;2728, integer)
#16 /srv/mediawiki/php-1.32.0-wmf.19/includes/Storage/RevisionStoreRecord.php(160): MediaWiki\Storage\RevisionSlots->computeSize()
#17 /srv/mediawiki/php-1.32.0-wmf.19/includes/Revision.php(707): MediaWiki\Storage\RevisionStoreRecord->getSize()
#18 /srv/mediawiki/php-1.32.0-wmf.19/extensions/MobileFrontend/includes/specials/SpecialMobileHistory.php(204): Revision->getSize()
#19 /srv/mediawiki/php-1.32.0-wmf.19/extensions/MobileFrontend/includes/specials/SpecialMobileHistory.php(245): SpecialMobileHistory->showRow(Revision, Revision)
#20 /srv/mediawiki/php-1.32.0-wmf.19/extensions/MobileFrontend/includes/specials/SpecialMobileHistory.php(134): SpecialMobileHistory->showHistory(Wikimedia\Rdbms\ResultWrapper)
#21 /srv/mediawiki/php-1.32.0-wmf.19/extensions/MobileFrontend/includes/specials/MobileSpecialPage.php(58): SpecialMobileHistory->executeWhenAvailable(string)
#22 /srv/mediawiki/php-1.32.0-wmf.19/extensions/MobileFrontend/includes/specials/MobileSpecialPageFeed.php(26): MobileSpecialPage->execute(string)
#23 /srv/mediawiki/php-1.32.0-wmf.19/includes/specialpage/SpecialPage.php(569): MobileSpecialPageFeed->execute(string)
#24 /srv/mediawiki/php-1.32.0-wmf.19/includes/specialpage/SpecialPageFactory.php(581): SpecialPage->run(string)
#25 /srv/mediawiki/php-1.32.0-wmf.19/includes/MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
#26 /srv/mediawiki/php-1.32.0-wmf.19/includes/MediaWiki.php(868): MediaWiki->performRequest()
#27 /srv/mediawiki/php-1.32.0-wmf.19/includes/MediaWiki.php(525): MediaWiki->main()
#28 /srv/mediawiki/php-1.32.0-wmf.19/index.php(42): MediaWiki->run()
#29 /srv/mediawiki/w/index.php(3): include(string)
#30 {main}

Sample:

Original task description:

Spotted in production, probably related:

Warning: data error in /srv/mediawiki/php-1.30.0-wmf.17/includes/Revision.php on line 1367
Warning: Revision::decompressRevisionText: gzinflate() failed [Called from Revision::decompressRevisionText in /srv/mediawiki/php-1.30.0-wmf.17/includes/Revision.php at line 1370] in /srv/mediawiki/php-1.30.0-wmf.17/includes/debug/MWDebug.php on line 309

Event Timeline

demon created this task.Sep 7 2017, 10:13 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 7 2017, 10:13 PM
Krinkle renamed this task from Revision data errors - Revision::decompressRevisionText() / gzinflate() to gzinflate() data error from SqlBlobStore.Sep 1 2018, 1:36 AM
Krinkle updated the task description. (Show Details)
Anomie added a subscriber: Anomie.

Seems similar to T203075: old corruption from T22757: Corruption of text from early 2005 due to HistoryBlobStub pointers broken by recompressTracked.php means that data for some revisions from 2005 or earlier isn't found anymore, and MCR stuff may be logging more errors about it than the old pre-MCR code did. I see more than one of that user's earliest revisions seem to be affected.

Krinkle renamed this task from gzinflate() data error from SqlBlobStore to SqlBlobStore emits "PHP Warning: data error" from gzinflate().Sep 19 2018, 10:20 PM
demon removed a subscriber: demon.Mar 16 2019, 3:30 PM
mmodell changed the subtype of this task from "Task" to "Production Error".Aug 28 2019, 11:10 PM