print tracebacks and line numbers for Lua runtime errors (#6564)
* print tracebacks and line numbers for Lua runtime errors * revert format changes * update changelog with lua traceback, #6564 * revert using protected_function for old GetStringListFromFunction and source_function #6564 * add unit test for line numbers in tracebacks, #6564 * apply clang-format (#6564) * remove unused test helper function, #6564 * suppress leaksanitizer warnings in extract-tests, #6564 When the extractor encounters a lua runtime error, some osmium objects are not freed. In production this doesn't matter because these errors bring down OSRM. In the tests we catch them to ensure they occur, and the leaksanitizer flags them.
This commit is contained in:
committed by
GitHub
parent
192d077ada
commit
d6afe91d8f
@@ -41,10 +41,10 @@ struct LuaScriptingContext final
|
||||
bool has_way_function = false;
|
||||
bool has_segment_function = false;
|
||||
|
||||
sol::function turn_function;
|
||||
sol::function way_function;
|
||||
sol::function node_function;
|
||||
sol::function segment_function;
|
||||
sol::protected_function turn_function;
|
||||
sol::protected_function way_function;
|
||||
sol::protected_function node_function;
|
||||
sol::protected_function segment_function;
|
||||
|
||||
int api_version = 4;
|
||||
sol::table profile_table;
|
||||
|
||||
Reference in New Issue
Block a user