Closed XmiliaH closed 2 months ago
Unable to reproduce with Pluto@main on Windows and Ubuntu.
The following script already asserts for me wcall(||->warn("xx"))
.
I have the following changes to the Makefile (removed -O3
and added -g
, -DLUAI_ASSERT
, and -lpthread
):
--- a/src/Makefile
+++ b/src/Makefile
@@ -6,10 +6,10 @@
# Your platform. See PLATS for possible values.
PLAT=
-CXX= g++ -std=c++17 -O3 -flto -fvisibility=hidden -fPIC
-CXXFLAGS= -Wno-multichar $(SYSCFLAGS) $(MYCFLAGS)
+CXX= g++ -std=c++17 -flto -fvisibility=hidden -fPIC -g
+CXXFLAGS= -Wno-multichar $(SYSCFLAGS) $(MYCFLAGS) -DLUAI_ASSERT
LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
-LIBS= -lm $(SYSLIBS) $(MYLIBS)
+LIBS= -lm -lpthread $(SYSLIBS) $(MYLIBS)
# Specifying DEBUG=0 (or any value) will remove any optimizations.
ifdef DEBUG
and gcc version gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.2)
I must've messed up my compiler flags at first, because I can indeed repro it on Ubuntu, still not on Windows, tho. What an odd one. I'll try to find out the cause.
When commenting out the
lua_assert(i == 0 || isOT(*(pc - 1)) == isIT(*pc));
check inlcode.cpp
the following assertiong will trigger when runningtests/_driver.pluto
.