Page MenuHomePhabricator

Fix "Warning: Unable to allocate timer" and "Warning: Unable to start limit timer"
Closed, ResolvedPublicPRODUCTION ERROR

Description

https://integration.wikimedia.org/ci/job/mwext-Wikibase-client-tests-sqlite-hhvm/126/consoleFull

The following is repeated 100s of times

[mwext-Wikibase-client-tests-sqlite-hhvm] $ /bin/bash -xe /tmp/hudson8890553434909966069.sh
+ cd /mnt/jenkins-workspace/workspace/mwext-Wikibase-client-tests-sqlite-hhvm/src/tests/phpunit
+ php phpunit.php --log-junit /mnt/jenkins-workspace/workspace/mwext-Wikibase-client-tests-sqlite-hhvm/log/junit-wikidata.xml --with-phpunitdir /srv/deployment/integration/phpunit/vendor/phpunit/phpunit --group Wikibase,WikibaseClient
Will attempt loading PHPUnit from `/srv/deployment/integration/phpunit/vendor/phpunit/phpunit`
..
00:01:02.481 Warning: LuaSandboxFunction::call(): Unable to start limit timer in /mnt/jenkins-workspace/workspace/mwext-Wikibase-client-tests-sqlite-hhvm/src/extensions/Scribunto/engines/LuaSandbox/Engine.php on line 297
00:01:02.481 [Sat Apr 11 12:16:05 2015] [hphp] [30901:7fd34e592bc0:0:000526] [] 
00:01:02.481 Warning: LuaSandboxFunction::call(): Unable to allocate timer: No such file or directory in /mnt/jenkins-workspace/workspace/mwext-Wikibase-client-tests-sqlite-hhvm/src/extensions/Scribunto/engines/LuaSandbox/Engine.php on line 297
00:01:02.482 [Sat Apr 11 12:16:05 2015] [hphp] [30901:7fd34e592bc0:0:000527] [] 
00:01:02.482 Warning: LuaSandboxFunction::call(): Unable to start limit timer in /mnt/jenkins-workspace/workspace/mwext-Wikibase-client-tests-sqlite-hhvm/src/extensions/Scribunto/engines/LuaSandbox/Engine.php on line 297
00:01:02.482 [Sat Apr 11 12:16:05 2015] [hphp] [30901:7fd34e592bc0:0:000528] [] 
..
Warning: LuaSandboxFunction::call(): Unable to allocate timer: No such file or directory in /mnt/jenkins-workspace/workspace/mwext-Wikibase-client-tests-sqlite-hhvm/src/extensions/Scribunto/engines/LuaSandbox/Engine.php on line 297
..
Warning: LuaSandboxFunction::call(): Unable to start limit timer in /mnt/jenkins-workspace/workspace/mwext-Wikibase-client-tests-sqlite-hhvm/src/extensions/Scribunto/engines/LuaSandbox/Engine.php on line 297
..
Warning: LuaSandbox::enableProfiler(): Unable to allocate timer: No such file or directory in /mnt/jenkins-workspace/workspace/mwext-Wikibase-client-tests-sqlite-hhvm/src/extensions/Scribunto/engines/LuaSandbox/Engine.php on line 247
..

Event Timeline

Krinkle created this task.Apr 11 2015, 1:13 PM
Krinkle raised the priority of this task from to Needs Triage.
Krinkle updated the task description. (Show Details)
Krinkle added subscribers: Krinkle, tstarling, Anomie.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 11 2015, 1:13 PM
Aklapper triaged this task as Medium priority.Apr 13 2015, 9:30 AM

Possible fixes:

  • Increase LUASANDBOX_MAX_TIMERS until the error no longer appears. Repeat as necessary in the future. Cost appears to be around 56 bytes each, per thread, FYI.
  • Finish Gerrit change 159822, currently stalled on looking like it's needing a good-sized chunk of complicated code to be written/imported and tested.
thiemowmde raised the priority of this task from Medium to Unbreak Now!.EditedMay 11 2015, 8:35 AM
thiemowmde added a subscriber: thiemowmde.

This currently breaks all Wikibase Client tests on HHVM, e.g. https://integration.wikimedia.org/ci/job/mwext-Wikibase-client-tests-sqlite-hhvm/858/consoleFull:

17:41:49 + php phpunit.php --log-junit /mnt/jenkins-workspace/workspace/mwext-Wikibase-client-tests-sqlite-hhvm/log/junit-wikidata.xml --with-phpunitdir /srv/deployment/integration/phpunit/vendor/phpunit/phpunit --group Wikibase,WikibaseClient
17:41:49 Will attempt loading PHPUnit from `/srv/deployment/integration/phpunit/vendor/phpunit/phpunit`
17:42:10 [Sun May 10 17:42:10 2015] [hphp] [2391:7f917aa4bbc0:0:000001] [] 
17:42:10 Warning: LuaSandboxFunction::call(): Unable to allocate timer: No such file or directory in /mnt/jenkins-workspace/workspace/mwext-Wikibase-client-tests-sqlite-hhvm/src/extensions/Scribunto/engines/LuaSandbox/Engine.php on line 297
17:42:10 [Sun May 10 17:42:10 2015] [hphp] [2391:7f917aa4bbc0:0:000002] [] 
17:42:10 Warning: LuaSandboxFunction::call(): Unable to start limit timer in /mnt/jenkins-workspace/workspace/mwext-Wikibase-client-tests-sqlite-hhvm/src/extensions/Scribunto/engines/LuaSandbox/Engine.php on line 297
...
17:42:12 [Sun May 10 17:42:12 2015] [hphp] [2391:7f917aa4bbc0:0:000365] [] 
17:42:12 Warning: LuaSandboxFunction::call(): Unable to allocate timer: No such file or directory in /mnt/jenkins-workspace/workspace/mwext-Wikibase-client-tests-sqlite-hhvm/src/extensions/Scribunto/engines/LuaSandbox/Engine.php on line 297
17:42:12 [Sun May 10 17:42:12 2015] [hphp] [2391:7f917aa4bbc0:0:000366] [] 
17:42:12 Warning: LuaSandboxFunction::call(): Unable to start limit timer in /mnt/jenkins-workspace/workspace/mwext-Wikibase-client-tests-sqlite-hhvm/src/extensions/Scribunto/engines/LuaSandbox/Engine.php on line 297
17:42:13 PHPUnit 3.7.37 by Sebastian Bergmann.
17:42:13 
17:42:13 Configuration read from /mnt/jenkins-workspace/workspace/mwext-Wikibase-client-tests-sqlite-hhvm/src/tests/phpunit/suite.xml
17:42:13 
17:42:13 
17:42:13 
17:42:13 Time: 23.58 seconds, Memory: 111.16Mb
17:42:13 
17:42:13 No tests executed!
17:42:13 Archiving artifacts
17:42:13 Recording test results
17:42:13 ERROR: Publisher hudson.tasks.junit.JUnitResultArchiver aborted due to exception
17:42:13 hudson.AbortException: None of the test reports contained any result
Addshore added a subscriber: Addshore.
thiemowmde lowered the priority of this task from Unbreak Now! to Medium.May 11 2015, 10:11 AM

@JanZerebecki explained that the actual "No tests executed" error is unrelated to the "timer" messages.

Change 159822 had a related patch set uploaded (by Anomie):
Dynamically allocate luasandbox_timer instances

https://gerrit.wikimedia.org/r/159822

hoo raised the priority of this task from Medium to High.Jun 1 2015, 7:08 PM

Patch got merged, but I guess a new php-luasandbox deb needs to be packaged. Raising priority as this is disrupting both Scribunto and Capiunto tests.

hashar assigned this task to Anomie.Jun 3 2015, 12:51 PM
hashar added a subscriber: hashar.

Assigning to @Anomie since he did the Gerrit patch.

Assigning to @Anomie since he did the Gerrit patch.

I created T101275 to track the work of creating new debs and deploying them to Jenkins.

mmodell changed the subtype of this task from "Task" to "Production Error".Aug 28 2019, 11:11 PM