Repro url: https://ro.wikipedia.org/w/index.php?title=Thomas_Mann&diff=10758157&oldid=9788822
Logged error: https://logstash.wikimedia.org/app/kibana#/doc/logstash-*/logstash-2017.03.24/mediawiki/?id=AVsCWMuLlL3ktRIGFTtD
No stack trace found, but digging around in mwrepl i can find it gets the exception at: Scribunto_LuaSandboxInterpreter::callFunction() on line 329 of /srv/mediawiki/php-1.29.0-wmf.17/extensions/Scribunto/engines/LuaSandbox/Engine.php
I couldn't figure out the exact exception, but setting a gdb breakpoint on __cxa_throw we get the following stack trace:
#0 __cxxabiv1::__cxa_throw (obj=0x7fffd0a93900, tinfo=0x7fffe39e3d00 <typeinfo for lua_longjmp*>, dest=0x0) at ../../../../src/libstdc++-v3/libsupc++/eh_throw.cc:62 #1 0x00007fffe37c3c1f in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1-c++.so.0 #2 0x00007fffe37c7c5f in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1-c++.so.0 #3 0x00007fffe37c5006 in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1-c++.so.0 #4 0x00007fffe37bfff1 in lua_pushcclosure () from /usr/lib/x86_64-linux-gnu/liblua5.1-c++.so.0 #5 0x00007fffe39f4c51 in ?? () from /usr/lib/x86_64-linux-gnu/hhvm/extensions/20150212/luasandbox.so #6 0x00007fffe39f5175 in zim_LuaSandboxFunction_call(int, HPHP::RefData*, HPHP::RefData**, HPHP::RefData*, int, void***) () from /usr/lib/x86_64-linux-gnu/hhvm/extensions/20150212/luasandbox.so
Unfortunately a good part of the stack has been lost, or perhaps terbium just doesn't have enough debugging symbols.