Last modified: 2013-06-26 09:26:52 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 T51509, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49509 - Test Failed in PHP 5.3.3 while installing Luasandbox: "Functions called on an invalid LuaSandbox, after emergency timeout"
Test Failed in PHP 5.3.3 while installing Luasandbox: "Functions called on an...
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
Scribunto (Other open bugs)
unspecified
PC Linux
: Low major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-13 06:34 UTC by Fazil
Modified: 2013-06-26 09:26 UTC (History)
5 users (show)

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


Attachments
configure.txt (3.89 KB, text/plain)
2013-06-16 06:27 UTC, Fazil
Details
make.txt (51 bytes, text/plain)
2013-06-16 06:28 UTC, Fazil
Details
maketest.txt (3.66 KB, text/plain)
2013-06-16 06:28 UTC, Fazil
Details

Description Fazil 2013-06-13 06:34:49 UTC
=====================================================================
PHP         : /usr/bin/php
PHP_SAPI    : cli
PHP_VERSION : 5.3.3
ZEND_VERSION: 2.3.0
PHP_OS      : Linux - Linux power.mew.gov.kw 2.6.32-220.el6.x86_64 #1 SMP Wed Nov 9 08:03:13 EST 2011 x86_64
INI actual  : /usr/local/Lua/tmp-php.ini
More .INIs  : 
CWD         : /usr/local/Lua
Extra dirs  :
VALGRIND    : Not used
=====================================================================
TIME START 2013-06-13 08:54:38
=====================================================================
PASS LuaSandboxFunction::construct() is private [tests/LuaSandboxFunction_construct.phpt]
PASS LuaSandboxFunction::call [tests/call.phpt]
PASS Exception in a PHP function called from Lua [tests/callback_exception.phpt]
FAIL dump -> loadBinary -> call [tests/dump_loadBinary_call.phpt]
FAIL Functions called on an invalid LuaSandbox, after emergency timeout [tests/invalid_state.phpt]
PASS ipairs() and __ipairs [tests/ipairs.phpt]
PASS loadString 1 [tests/loadString.phpt]
PASS PHP throwing exceptions to be caught by pcall() [tests/lua_catches_php_exception.phpt]
PASS pairs() and __pairs [tests/pairs.phpt]
PASS pcall() catching various errors [tests/pcall.phpt]
FAIL Re-entering Lua during a callback to PHP [tests/reentrant.phpt]
FAIL timer pausing and unpausing [tests/timer.phpt]
PASS xpcall() basic behaviour [tests/xpcall.phpt]
=====================================================================
TIME END 2013-06-13 08:54:43

=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :    0
Exts tested     :   29
---------------------------------------------------------------------

Number of tests :   13                13
Tests skipped   :    0 (  0.0%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    4 ( 30.8%) ( 30.8%)
Expected fail   :    0 (  0.0%) (  0.0%)
Tests passed    :    9 ( 69.2%) ( 69.2%)


---------------------------------------------------------------------
Time taken      :    5 seconds
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
dump -> loadBinary -> call [tests/dump_loadBinary_call.phpt]
Functions called on an invalid LuaSandbox, after emergency timeout [tests/invalid_state.phpt]
Re-entering Lua during a callback to PHP [tests/reentrant.phpt]
timer pausing and unpausing [tests/timer.phpt]
=====================================================================
Comment 1 Andre Klapper 2013-06-13 14:46:57 UTC
What are steps to reproduce this?
Comment 2 Fazil 2013-06-16 06:26:22 UTC
SteP 1 : 

phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626

Step 2 : ./configure

configure.txt file attached

Step 3 : make 

make.txt file attached

Step 4 : make test

maketest.txt file attached
Comment 3 Fazil 2013-06-16 06:27:54 UTC
Created attachment 12548 [details]
configure.txt

configure.txt file
Comment 4 Fazil 2013-06-16 06:28:27 UTC
Created attachment 12549 [details]
make.txt

make.txt
Comment 5 Fazil 2013-06-16 06:28:56 UTC
Created attachment 12550 [details]
maketest.txt

maketest.txt
Comment 6 Fazil 2013-06-18 05:42:34 UTC
any update on this.?
Comment 7 Andre Klapper 2013-06-18 06:59:00 UTC
Tentatively moving this to Scribunto, as this is listed under http://www.mediawiki.org/wiki/Extension:Scribunto#LuaSandbox .
Comment 8 Brad Jorsch 2013-06-18 15:44:32 UTC
(In reply to comment #7)
> Tentatively moving this to Scribunto, as this is listed under
> http://www.mediawiki.org/wiki/Extension:Scribunto#LuaSandbox .

Yeah, that's the most correct option (at least for now). There isn't a separate product/component for the luasandbox PHP extension.


@Fazil: Please attach any files matching test/*.log that were created by "make test". Also, please provide the output of the following commands:

  pkg-config --modversion --short-errors --print-errors lua
  pkg-config --modversion --short-errors --print-errors lua5.1
  pkg-config --modversion --short-errors --print-errors lua-5.1
  pkg-config --modversion --short-errors --print-errors luajit

Thanks.
Comment 9 Andre Klapper 2013-06-25 10:33:17 UTC
Fazil: Can you answer comment 8, please?
Comment 10 Fazil 2013-06-26 05:37:31 UTC
Andre,

thanks for your support. i have resolved the issue. now it is working fine.
Comment 11 Andre Klapper 2013-06-26 09:26:52 UTC
Fazil: Would you share the solution here, so others might find it if they run into the same problem?

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


Navigation
Links