Commit Diff


commit - f5ea5fd43837143fa043628d65903bdd2c319447
commit + fc85bea6524972929ba86f69e0c586d6284bf423
blob - 793c5d733ef0a06be24d96eae9e628f590742ee3
blob + dfb4f01f57d9f0a2d7389f7bf0fe8a84b83b4981
--- luzer/tracer.c
+++ luzer/tracer.c
@@ -27,6 +27,8 @@
 #include "counters.h"
 #include "macros.h"
 
+#define UNUSED(x) (void)(x)
+
 /**
  * From afl-python
  * https://github.com/jwilk/python-afl/blob/8df6bfefac5de78761254bf5d7724e0a52d254f5/afl.pyx#L74-L87
@@ -66,6 +68,9 @@ void debug_hook(lua_State *L, lua_Debug *ar)
 	lua_getinfo(L, "Sln", ar);
 	if (ar && ar->source && ar->currentline) {
 		const unsigned int new_location = lhash(ar->source, ar->currentline);
-		_trace_branch(new_location);
+		UNUSED(new_location);
+		// Lua tracing is temporarily disabled due to segfaults,
+		// see https://github.com/ligurio/luzer/issues/18.
+		/* _trace_branch(new_location); */
 	}
 }