[Bug 265989] cad/qcad: core dumps on -current

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 10 Sep 2022 08:44:10 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265989

--- Comment #8 from ice@extreme.hu ---
This might be a more general problem with qt5-script or some other parts of Qt
though (that is likely to have started with 787e501e).

I have just tested databases/sqlitestudio and emulators/ukncbtl, which both
make use of Qt's scripting facilities (fair warning though, I am not a regular
user of these packages). As soon as either is triggered to run a
QtScript/JavaScript/whatever it is called today script/function, a crash occurs
in libQt5Script.so (which had been compiled without debug, as having it
compiled with debug seemingly makes the entire problem go away).

On the other hand, were this completely true, one would assume large chunks of
KDE to be failing as well, but there doesn't seem to be any obvious noise in
that neck of the woods, so take this observation for what it's worth.

(gdb) run
Starting program: /usr/local/bin/sqlitestudio /tmp/baboo.db 
[New LWP 112056 of process 85397]
[New LWP 112057 of process 85397]
[New LWP 112058 of process 85397]
[Detaching after fork from child process 85660]
[New LWP 112059 of process 85397]
[New LWP 112060 of process 85397]

Thread 6 received signal SIGSEGV, Segmentation fault.
Address not mapped to object.
[Switching to LWP 112060 of process 85397]
0x000000080276f038 in ?? () from /usr/local/lib/qt5/libQt5Script.so.5
(gdb) where
#0  0x000000080276f038 in ?? () from /usr/local/lib/qt5/libQt5Script.so.5
#1  0x0000000802772459 in ?? () from /usr/local/lib/qt5/libQt5Script.so.5
#2  0x00000008027a90e6 in ?? () from /usr/local/lib/qt5/libQt5Script.so.5
#3  0x0000000802824d93 in QScriptValue::call(QScriptValue const&, QScriptValue
const&) () from /usr/local/lib/qt5/libQt5Script.so.5
#4  0x000000080048f2d3 in ScriptingQt::evaluate(ScriptingQt::ContextQt*,
QScriptContext*, QString const&, QList<QVariant> const&, Db*, bool) ()
   from /usr/local/lib/libcoreSQLiteStudio.so.1
#5  0x000000080048f1a9 in ScriptingQt::evaluate(QString const&, QList<QVariant>
const&, Db*, bool, QString*) () from /usr/local/lib/libcoreSQLiteStudio.so.1
#6  0x000000080048f57a in non-virtual thunk to ScriptingQt::evaluate(QString
const&, QList<QVariant> const&, Db*, bool, QString*) ()
   from /usr/local/lib/libcoreSQLiteStudio.so.1
#7  0x00000008004b8675 in
FunctionManagerImpl::evaluateScriptScalar(FunctionManager::ScriptFunction*,
QString const&, int, QList<QVariant> const&, Db*, bool&) ()
   from /usr/local/lib/libcoreSQLiteStudio.so.1
#8  0x00000008004b8423 in FunctionManagerImpl::evaluateScalar(QString const&,
int, QList<QVariant> const&, Db*, bool&) () from
/usr/local/lib/libcoreSQLiteStudio.so.1
#9  0x00000008004b233e in AbstractDb::evaluateScalar(void*, QList<QVariant>
const&, bool&) () from /usr/local/lib/libcoreSQLiteStudio.so.1
#10 0x00000008004d602b in
AbstractDb3<Sqlite3>::evaluateScalar(sqlite3_context*, int, sqlite3_value**) ()
from /usr/local/lib/libcoreSQLiteStudio.so.1
#11 0x00000008025b054a in ?? () from /usr/local/lib/libsqlite3.so.0
#12 0x000000080257c151 in sqlite3_step () from /usr/local/lib/libsqlite3.so.0
#13 0x00000008004d50d5 in AbstractDb3<Sqlite3>::Query::fetchNext() () from
/usr/local/lib/libcoreSQLiteStudio.so.1
#14 0x00000008004d5e9f in AbstractDb3<Sqlite3>::Query::fetchFirst() () from
/usr/local/lib/libcoreSQLiteStudio.so.1
#15 0x00000008004d485d in
AbstractDb3<Sqlite3>::Query::execInternal(QHash<QString, QVariant> const&) ()
from /usr/local/lib/libcoreSQLiteStudio.so.1
#16 0x0000000800501772 in SqlQuery::execute() () from
/usr/local/lib/libcoreSQLiteStudio.so.1
#17 0x0000000800462a80 in QueryExecutorExecute::executeQueries() () from
/usr/local/lib/libcoreSQLiteStudio.so.1
#18 0x0000000800459afb in QueryExecutor::executeChain() () from
/usr/local/lib/libcoreSQLiteStudio.so.1
#19 0x000000080045afd3 in QueryExecutor::execInternal() () from
/usr/local/lib/libcoreSQLiteStudio.so.1
#20 0x0000000801e73469 in ?? () from /usr/local/lib/qt5/libQt5Core.so.5
#21 0x0000000801e6f248 in ?? () from /usr/local/lib/qt5/libQt5Core.so.5
#22 0x0000000801b0883a in thread_start (curthread=0x807148a00) at
/usr/src/lib/libthr/thread/thr_create.c:292
#23 0x0000000000000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x7fffdf7fa000

-- 
You are receiving this mail because:
You are the assignee for the bug.