Hi, I hit an identical crash than QCAD in QT Script while playing with Mixxx.
After trying some upstream fixes I found this solution in FreeBSD port. Hope it will fix QCAD too, I'm not using it. I'm not sure this is the best way to overide with CXXFLAGS as both -O2 & -O0 are present in the generated build command. Index: Makefile =================================================================== RCS file: /cvs/ports/x11/qt5/qtscript/Makefile,v retrieving revision 1.13 diff -u -p -r1.13 Makefile --- Makefile 13 Jul 2022 15:48:58 -0000 1.13 +++ Makefile 30 Nov 2023 20:29:46 -0000 @@ -1,5 +1,9 @@ QT5NAME = QtScript COMMENT-main = ECMAScript language for Qt5 +REVISION-main = 1 + +# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265989 +CXXFLAGS += -O0 MULTI_PACKAGES = -main -examples SHARED_LIBS += Qt5Script 3.0 # 5.9