Bug 491141 - Crash after copying from the address bar in Firefox
Summary: Crash after copying from the address bar in Firefox
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-crash (show other bugs)
Version: master
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2024-08-01 20:56 UTC by duha.bugs
Modified: 2024-08-08 18:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report: https://crash-reports.kde.org/organizations/kde/issues/53576/events/9e218a17e37d4095884ff39b3752b4fa/


Attachments
New crash information added by DrKonqi (101.55 KB, text/plain)
2024-08-01 20:56 UTC, duha.bugs
Details
crash_when_cut (106.65 KB, text/plain)
2024-08-02 09:46 UTC, duha.bugs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description duha.bugs 2024-08-01 20:56:00 UTC
Application: plasmashell (6.1.80)
 (Compiled from sources)
ApplicationNotResponding [ANR]: false
Qt Version: 6.9.0
Frameworks Version: 6.5.0
Operating System: Linux 6.10.2-arch1-1 x86_64
Windowing System: Wayland
Distribution: "Arch Linux"
DrKonqi: 6.1.80 [CoredumpBackend]

-- Information about the crash:
Crash after copying from the address bar in Firefox, so far this has happend only once.

The crash does not seem to be reproducible.

-- Backtrace (Reduced):
#5  __strlen_evex () at ../sysdeps/x86_64/multiarch/strlen-evex-base.S:81
#6  0x000071f26c1a76a2 in qstrlen (str=0x71 <error: Cannot access memory at address 0x71>) at /home/duha/kde/src/qtbase/src/corelib/text/qbytearrayalgorithms.h:114
[...]
#8  0x000071f26c1bce06 in (anonymous namespace)::QMetaTypeCustomRegistry::registerCustomType (this=0x71f26c67a060 <QGlobalStatic<QtGlobalStatic::Holder<(anonymous namespace)::(anonymous namespace)::Q_QGS_customTypeRegistry> >::instance()::holder>, cti=0x64f0e925eb70) at /home/duha/kde/src/qtbase/src/corelib/kernel/qmetatype.cpp:119
#9  QMetaType::registerHelper (iface=0x64f0e925eb70) at /home/duha/kde/src/qtbase/src/corelib/kernel/qmetatype.cpp:560
#10 0x000071f26dd85c95 in QMetaType::id (this=0x7ffc798a1308) at /home/duha/kde/qt/include/QtCore/qmetatype.h:479


Reported using DrKonqi
Comment 1 duha.bugs 2024-08-01 20:56:01 UTC
Created attachment 172195 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 Nate Graham 2024-08-01 21:03:29 UTC
Relevant part is here:

#14 QmlCacheGeneratedCode::_qt_qml_org_kde_plasma_private_clipboard_ClipboardItemDelegate_qml::aotBuiltFunctions::{lambda(QQmlPrivate::AOTCompiledContext const*, void**)#10}::operator()(QQmlPrivate::AOTCompiledContext const*, void**) const (__closure=<optimized out>, aotContext=0x7ffc798a14c0, argv=0x7ffc798a1878) at /home/duha/kde/build/plasma-workspace/klipper/declarative/.rcc/qmlcache/klipperplugin_qml/ClipboardItemDelegate_qml.cpp:2771

Looks like the QML got compiled to C++ and it's crashing somewhere in the generated C++ code. Hooray.
Comment 3 duha.bugs 2024-08-02 09:46:17 UTC
Created attachment 172206 [details]
crash_when_cut

Similar backtrace after using cut instead of copy. Again in Firefox.

Thread 1 (Thread 0x7d15a3fadf80 (LWP 1528)):
[KCrash Handler]
#5  0x00007d15784784dc in ??? ()
#6  0x00007d1581fcfbd8 in QMetaType::metaObject (this=<optimized out>) at /home/duha/kde/qt/include/QtCore/qmetatype.h:2666
#7  QmlCacheGeneratedCode::_qt_qml_org_kde_plasma_private_clipboard_ClipboardItemDelegate_qml::aotBuiltFunctions::{lambda(QQmlPrivate::AOTCompiledContext const*, void**)#10}::operator()(QQmlPrivate::AOTCompiledContext const*, void**) const (__closure=<optimized out>, aotContext=0x7fffe84f7cf0, argv=0x7fffe84f80a8) at /home/duha/kde/build/plasma-workspace/klipper/declarative/.rcc/qmlcache/klipperplugin_qml/ClipboardItemDelegate_qml.cpp:2771
#8  0x00007d15aa2cd723 in operator() (argc=<optimized out>, __closure=0x7fffe84f7dc0, argv=0x7fffe84f80a8) at /home/duha/kde/src/qtdeclarative/src/qml/jsruntime/qv4vme_moth.cpp:446
#9  QV4::coerceAndCall<AOTCompiledMetaMethod, QV4::Moth::VME::exec(QV4::MetaTypesStackFrame*, QV4::ExecutionEngine*)::<lambda(void**, int)> >(QV4::ExecutionEngine *, const AOTCompiledMetaMethod *, void **, const QMetaType *, int, struct {...}) (engine=engine@entry=0x5d37fba4fb20, typedFunction=typedFunction@entry=0x7fffe84f7df8, argv=<optimized out>, types=<optimized out>, argc=<optimized out>, call=...) at /home/duha/kde/src/qtdeclarative/src/qml/jsruntime/qv4jscall_p.h:555
#10 0x00007d15aa2d4318 in QV4::Moth::VME::exec (frame=frame@entry=0x7fffe84f7eb0, engine=engine@entry=0x5d37fba4fb20) at /home/duha/kde/src/qtdeclarative/src/qml/jsruntime/qv4stackframe_p.h:151
#11 0x00007d15aa2113e0 in QV4::Function::call (this=0x5d37fec796c0, thisObject=0x5d38008c5c50, a=a@entry=0x7fffe84f80a8, types=types@entry=0x7fffe84f80b0, argc=0, context=0x7d1557ea4bf8) at /home/duha/kde/src/qtdeclarative/src/qml/jsruntime/qv4function.cpp:36
#12 0x00007d15aa37c1f3 in QQmlJavaScriptExpression::evaluate (this=this@entry=0x5d3800a44ca0, a=a@entry=0x7fffe84f80a8, types=types@entry=0x7fffe84f80b0, argc=argc@entry=0) at /home/duha/kde/src/qtdeclarative/src/qml/qml/qqmljavascriptexpression_p.h:248
#13 0x00007d15aa30ad1d in QQmlBinding::evaluate (this=0x5d3800a44ca0, result=0x7fffe84f8070, type=...) at /home/duha/kde/src/qtdeclarative/src/qml/qml/qqmlbinding_p.h:84
#14 QQmlBinding::doUpdate (this=0x5d3800a44ca0, watcher=..., flags=..., scope=<optimized out>) at /home/duha/kde/src/qtdeclarative/src/qml/qml/qqmlbinding.cpp:691
Comment 4 duha.bugs 2024-08-08 18:52:01 UTC
Cannot reproduce anymore. Seems like either a more recent QT or Plasma version fixed it.  Closing