Last modified: 2014-02-12 23:35:35 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T46256, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44256 - Segfault in LinksUpdate::incrTableUpdate
Segfault in LinksUpdate::incrTableUpdate
Status: NEW
Product: MediaWiki
Classification: Unclassified
Unit tests (Other open bugs)
1.21.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-22 20:54 UTC by OverlordQ
Modified: 2014-02-12 23:35 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description OverlordQ 2013-01-22 20:54:08 UTC
While running the PHPUnit tests PHP will segfault when running ArticleTablesTest->testbug14404 testing.

ZBacktrace can be found on dpaste[1].

1 - http://dpaste.org/Weyd5/
Comment 1 OverlordQ 2013-01-22 20:58:35 UTC
PHP 5.4.4-11 (cli) (built: Dec 17 2012 08:39:10) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies


Using APC 3.1.9 (enabled or disabled) 
PHPUnit 3.6.11
Comment 2 OverlordQ 2013-01-22 21:07:19 UTC
Might be tangentially related to bug 44136 as fixing that fixes this, or at least hides the issue. Still probably shouldn't segfault.
Comment 3 Andre Klapper 2013-01-22 21:09:55 UTC
Thanks for taking the time to report this!

For future reference, pasting the stacktrace here is welcome so it does not get lost. So this is on Postgres, or which kind of database?

(gdb) zbacktrace
[0x7ffff7facbd8] incrTableUpdate() /var/www/thedarkcitadel.com/w/includes/LinksUpdate.php:0 
[0x7ffff7fabe00] LinksUpdate->incrTableUpdate("pagelinks", "pl", array(0)[0x53b1f58], array(1)[0x53b2038]) /var/www/thedarkcitadel.com/w/includes/LinksUpdate.php:132 
[0x7ffff7fabbe8] LinksUpdate->doIncrementalUpdate() /var/www/thedarkcitadel.com/w/includes/LinksUpdate.php:121 
[0x7ffff7fab6d0] LinksUpdate->doUpdate() /var/www/thedarkcitadel.com/w/includes/DataUpdate.php:100 
[0x7ffff7faa040] DataUpdate::runUpdates(array(1)[0x53b32b8]) /var/www/thedarkcitadel.com/w/includes/WikiPage.php:2050 
[0x7ffff7fa7650] WikiPage->doEditUpdates(object[0x4f621f8], object[0x38b80b8], array(1)[0x4c25138]) /var/www/thedarkcitadel.com/w/includes/WikiPage.php:1887 
[0x7ffff7fa6f20] WikiPage->doEditContent(object[0x4e712b0], "Test\40code\40for\40bug\4014404", 0, false, object[0x4c32648]) /var/www/thedarkcitadel.com/w/tests/phpunit/includes/ArticleTablesTest.php:19 
[0x7fffffffa660] ArticleTablesTest->testbug14404() 
[0x7ffff7fa65e0] ReflectionMethod->invokeArgs(object[0x12321e0], array(0)[0x4c33ae0]) /usr/share/php/PHPUnit/Framework/TestCase.php:942 
[0x7ffff7fa5448] PHPUnit_Framework_TestCase->runTest() /usr/share/php/PHPUnit/Framework/TestCase.php:804 
[0x7fffffffa9b0] PHPUnit_Framework_TestCase->runBare() 
[0x7ffff7fa50d8] call_user_func_array(array(2)[0x4cfa850], array(0)[0x4b62570]) /usr/share/php/PHP/Invoker.php:93 
[0x7ffff7fa3c48] PHP_Invoker->invoke(array(2)[0x4cfad18], array(0)[0x4cfade8], 2) /usr/share/php/PHPUnit/Framework/TestResult.php:647 
[0x7ffff7fa2de8] PHPUnit_Framework_TestResult->run(object[0x12321e0]) /usr/share/php/PHPUnit/Framework/TestCase.php:751 
[0x7ffff7fa2368] PHPUnit_Framework_TestCase->run(object[0x3b81f30]) /var/www/thedarkcitadel.com/w/tests/phpunit/MediaWikiTestCase.php:116 
[0x7ffff7fa2268] MediaWikiTestCase->run(object[0x3b81f30]) /usr/share/php/PHPUnit/Framework/TestSuite.php:772 
[0x7ffff7fa0f90] PHPUnit_Framework_TestSuite->runTest(object[0x12321e0], object[0x3b81f30]) /usr/share/php/PHPUnit/Framework/TestSuite.php:745 
[0x7ffff7f9fca0] PHPUnit_Framework_TestSuite->run(object[0x3b81f30], false, array(0)[0x4b61e18], array(3)[0x4b61e48], false) /usr/share/php/PHPUnit/Framework/TestSuite.php:705 
[0x7ffff7f9e9b0] PHPUnit_Framework_TestSuite->run(object[0x3b81f30], false, array(0)[0x4b62430], array(3)[0x4b62460], false) /usr/share/php/PHPUnit/Framework/TestSuite.php:705 
[0x7ffff7f9c4f0] PHPUnit_Framework_TestSuite->run(object[0x3b81f30], false, array(0)[0x4b62a48], array(3)[0x4b62a78], false) /usr/share/php/PHPUnit/TextUI/TestRunner.php:325 
[0x7ffff7f9b868] PHPUnit_TextUI_TestRunner->doRun(object[0x7fffe889faa8], array(5)[0x4b63030]) /usr/share/php/PHPUnit/TextUI/Command.php:192 
[0x7ffff7f9b6b0] PHPUnit_TextUI_Command->run(array(5)[0x4b636b8], false) /var/www/thedarkcitadel.com/w/tests/phpunit/MediaWikiPHPUnitCommand.php:61 
[0x7ffff7f9b3e8] MediaWikiPHPUnitCommand->run(array(5)[0x4b63c28], true) /var/www/thedarkcitadel.com/w/tests/phpunit/MediaWikiPHPUnitCommand.php:47 
[0x7ffff7f9b060] MediaWikiPHPUnitCommand::main() /var/www/thedarkcitadel.com/w/tests/phpunit/phpunit.php:107

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links