problem with qcad port

From: Nilton Jose Rizzo <rizzo_at_rizzo.eng.br>
Date: Wed, 31 Jan 2024 13:27:04 UTC
Hi all

I install the QCad on FreeBSD 15-current and I get this error:

% qcad
QCAD version  3.28.1
10:20:31: Debug:    loading plugins...
10:20:31: Debug:    loading static plugins...
Segmentation fault

under cgdb debbbuger tools, I get this infomations:

(gdb) run
Starting program: /usr/local/bin/qcad
QCAD version  3.28.1
[New LWP 282536 of process 34997]
10:21:05: Debug:    loading plugins...
10:21:05: Debug:    loading static plugins...
[New LWP 282537 of process 34997]

Thread 1 received signal SIGSEGV, Segmentation fault.
Address not mapped to object.
0x0000000803d9da80 in ?? () from /usr/local/lib/qt5/libQt5Script.so.5

last instruction: 
**    0x803d9da80:      mov    -0x38(%r15),%r14 (803d9da80 - 803d9dc06) **      

(gdb) bt
#0  0x0000000803d9da80 in ?? () from /usr/local/lib/qt5/libQt5Script.so.5
#1  0x0000000803d2b436 in ?? () from /usr/local/lib/qt5/libQt5Script.so.5
#2  0x0000000803d2a419 in ?? () from /usr/local/lib/qt5/libQt5Script.so.5
#3  0x0000000803da57b1 in ?? () from /usr/local/lib/qt5/libQt5Script.so.5
#4  0x0000000803da6d44 in QScriptEngine::newVariant(QVariant const&) ()
   from /usr/local/lib/qt5/libQt5Script.so.5
#5  0x000000080ba1b7d8 in qtscript_create_Qt_class(QScriptEngine*) ()
   from /usr/local/share/qcad/plugins/script/libqtscript_core.so.1.0.0
#6  0x000000080baae570 in qtscript_initialize_com_trolltech_qt_core_bindings(QSc
riptValue&) ()
   from /usr/local/share/qcad/plugins/script/libqtscript_core.so.1.0.0
#7  0x000000080b92b938 in non-virtual thunk to com_trolltech_qt_core_ScriptPlugi
n::initialize(QString const&, QScriptEngine*) ()
   from /usr/local/share/qcad/plugins/script/libqtscript_core.so.1.0.0
#8  0x0000000803dacad7 in QScriptEngine::importExtension(QString const&) ()
   from /usr/local/lib/qt5/libQt5Script.so.5
#9  0x0000000800ae2d15 in RScriptHandlerEcma::RScriptHandlerEcma() ()
   from /usr/local/lib/libqcadecmaapi.so
#10 0x0000000800aef6fc in RScriptHandlerEcma::factory() ()
   from /usr/local/lib/libqcadecmaapi.so
#11 0x0000000801db77de in RScriptHandlerRegistry::getGlobalScriptHandler(QString
 const&) () from /usr/local/lib/libqcadcore.so
#12 0x0000000000206b8f in ?? ()
#13 0x00000008048d987a in __libc_start1 (argc=1, argv=0x7fffffffd910,
--Type <RET> for more, q to quit, c to continue without paging--      
    env=0x7fffffffd920, cleanup=<optimized out>, mainX=0x205c70)
    at /usr/src/lib/libc/csu/libc_start1.c:157
#14 0x0000000000205c00 in ?? ()
(gdb) 

I trying recompile all qt5 and qcad and reinstall the both ports, but the erro persist.

Information about my box:

% uname -nmbK
valfenda amd64 1500012 c5ee0db87cb2833d50db2da0342580b6a2342920
% uname -a
FreeBSD valfenda 15.0-CURRENT FreeBSD 15.0-CURRENT #3: Mon Jan 29 21:06:53 -03 2024     rizzo@valfenda:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64
% cd /usr/src
# git log -1
commit c46860dbcb2037933575a260028325418b3e9789 (HEAD -> main, freebsd/main, freebsd/HEAD)
Author: John Baldwin <jhb@FreeBSD.org>
Date:   Mon Jan 29 11:02:07 2024 -0800

    bhyve: Use NVMEF macro to construct fields
    
    Reviewed by:    corvink, chuck (older version)
    Sponsored by:   Chelsio Communications
    Differential Revision:  https://reviews.freebsd.org/D43607
# cd /usr/ports
# git log -1
commit 9cf62446de471195b1bc744d53b4a8463e692657 (HEAD -> main, origin/main, origin/HEAD)
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
Date:   Mon Jan 29 20:53:58 2024 +0100

    x11-wm/fvwm2: Moved man to share/man
    
    Approved by:    portmgr (blanket)


Whats did I do wrong?

TIA

Nilton Jose Rizzo