SIGSEGV QtPrivate::QMetaTypeInterfaceWrapper<QFlagsQt::WindowState >::metaType ()
-
Got a crash in libQt6Core.so, I can't find the same occurrence on forum and web, any idea?:
Message: Process 946 (plasmashell) of user 1000 dumped core.
Stack trace of thread 946: #0 0x00007fe8be3e8e20 n/a (libQt6Core.so.6 + 0x5e8e20) ELF object binary architecture: AMD x86-64
$ coredumpctl debug
…
(gdb) bt
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007fe8be3e8e20 in QtPrivate::QMetaTypeInterfaceWrapper<QFlagsQt::WindowState >::metaType () from /usr/lib/libQt6Core.so.6
[Current thread is 1 (Thread 0x7fe8b90439c0 (LWP 946))]
(gdb) bt
#0 0x00007fe8be3e8e20 in QtPrivate::QMetaTypeInterfaceWrapper<QFlagsQt::WindowState >::metaType () at /usr/lib/libQt6Core.so.6
#1 0x00007fe8be14b583 in QPersistentModelIndex::row (this=) at /usr/src/debug/qt6-base/qtbase/src/corelib/itemmodels/qabstractitemmodel.cpp:511
#2 QItemSelectionRange::top (this=) at /usr/src/debug/qt6-base/qtbase/src/corelib/itemmodels/qitemselectionmodel.h:31
#3 QItemSelectionRange::intersects (this=0x7ffde0251d70, other=…) at /usr/src/debug/qt6-base/qtbase/src/corelib/itemmodels/qitemselectionmodel.cpp:187
#4 0x00005620865c4dc0 in ??? ()
#5 0x00005620870b3b50 in ??? ()
#6 0x0000000000000000 in ??? ()(gdb) info registers
rax 0x7fe8be3d9b18 140637600848664
rbx 0x7ffde0251d70 140728363982192
rcx 0x7fe8bce71770 140637578401648
rdx 0x0 0
rsi 0x7fe8b4022e00 140637429181952
rdi 0x7ffde0251d70 140728363982192
rbp 0x5620870ae630 0x5620870ae630
rsp 0x7ffde0251d28 0x7ffde0251d28
r8 0x0 0
r9 0x7fe8be20fac0 140637598972608
r10 0x562085ab9f40 94697681559360
r11 0x5acde567b9527b3 408946129205798835
r12 0x5620865c4dc0 94697693138368
r13 0x14 20
r14 0x56208716d430 94697705362480
r15 0x562085d88cc0 94697684503744
rip 0x7fe8be3e8e20 0x7fe8be3e8e20 <QtPrivate::QMetaTypeInterfaceWrapper<QFlagsQt::WindowState >::metaType>
eflags 0x10246 [ PF ZF IF RF ]
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x0 0
fs_base 0x7fe8b90439c0 140637513202112
gs_base 0x0 0 -
this is the return -1 in the code below right? dont see any register full of 0xff's, something optimized? Are we missing a check in metaType () for -1?, the qabstractitemmodel.cpp:511 :
int QPersistentModelIndex::row() const
{
if (d)
return d->index.row();
return -1;
}where am I wrong?
-
When you post code, please use the code formatting tags. It makes reading much easier for those who help you.
I have never bumped into an error like that. Probably there is something wrong in how this QAIM is instantiated andd
is either stale ornullptr
.