Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Plasma 6 crashes
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1761

PostPosted: Mon Jul 01, 2024 6:17 pm    Post subject: Reply with quote

Any luck with that patch? I don't think it is in there..

EDIT: nevermind, I see the tag is wrong. Sorry!
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1761

PostPosted: Mon Jul 01, 2024 6:26 pm    Post subject: Reply with quote

Can you try UBSAN on ksvg please? See https://wiki.gentoo.org/wiki/UndefinedBehaviorSanitizer.
Back to top
View user's profile Send private message
tranquilcool
Veteran
Veteran


Joined: 25 Mar 2005
Posts: 1204

PostPosted: Mon Jul 01, 2024 9:12 pm    Post subject: Reply with quote

sam_ wrote:
Can you try UBSAN on ksvg please? See https://wiki.gentoo.org/wiki/UndefinedBehaviorSanitizer.


I have compiled ksvg with the URBAN instructions, now how do I proceed to check it out?
something like this?:
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../lib64/Scrt1.o: in function `_start':
(.text+0x1b): undefined reference to `main'
collect2: error: ld returned 1 exit status
_________________
this is a strange strange world.
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1761

PostPosted: Mon Jul 01, 2024 10:31 pm    Post subject: Reply with quote

You should just run it again under gdb and we should get better output.
Back to top
View user's profile Send private message
tranquilcool
Veteran
Veteran


Joined: 25 Mar 2005
Posts: 1204

PostPosted: Mon Jul 01, 2024 10:38 pm    Post subject: Reply with quote

sam_ wrote:
You should just run it again under gdb and we should get better output.


Reading symbols from plasmashell...
Reading symbols from /usr/lib/debug//usr/bin/plasmashell.debug...
(gdb) run
Starting program: /usr/bin/plasmashell
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffedf216c0 (LWP 6471)]
[New Thread 0x7fffed7206c0 (LWP 6472)]
[New Thread 0x7fffe7ed56c0 (LWP 6552)]
[New Thread 0x7fffe76d46c0 (LWP 6553)]
[New Thread 0x7fffe6ed36c0 (LWP 6554)]
[New Thread 0x7fffe66396c0 (LWP 6571)]
[New Thread 0x7fffe5e386c0 (LWP 6572)]
[New Thread 0x7fffe56376c0 (LWP 6573)]
[New Thread 0x7fffca7b06c0 (LWP 6605)]
[New Thread 0x7fffc9faf6c0 (LWP 6606)]
[New Thread 0x7fffc97ae6c0 (LWP 6607)]
[New Thread 0x7fffc8fad6c0 (LWP 6608)]
[New Thread 0x7fffbc9cf6c0 (LWP 6609)]
[New Thread 0x7fffa7fff6c0 (LWP 6610)]
[New Thread 0x7fffa77fe6c0 (LWP 6611)]
[New Thread 0x7fffa6ffd6c0 (LWP 6612)]
[New Thread 0x7fffa67fc6c0 (LWP 6613)]
[New Thread 0x7fffa5ffb6c0 (LWP 6614)]
[New Thread 0x7fffa57fa6c0 (LWP 6615)]
[New Thread 0x7fffa4ff96c0 (LWP 6616)]
[Thread 0x7fffa4ff96c0 (LWP 6616) exited]
[Thread 0x7fffa57fa6c0 (LWP 6615) exited]
[Thread 0x7fffa5ffb6c0 (LWP 6614) exited]
Couldn't start kglobalaccel from org.kde.kglobalaccel.service: QDBusError("org.freedesktop.DBus.Error.ServiceUnknown", "The name org.kde.kglobalaccel was not provided by any .service files")
kde.plasmashell: Aborting shell load: The activity manager daemon (kactivitymanagerd) is not running.
kde.plasmashell: If this Plasma has been installed into a custom prefix, verify that its D-Bus services dir is known to the system for the daemon to be activatable.
kde.plasmashell: Aborting shell load: The activity manager daemon (kactivitymanagerd) is not running.
kde.plasmashell: If this Plasma has been installed into a custom prefix, verify that its D-Bus services dir is known to the system for the daemon to be activatable.
[New Thread 0x7fffa5ffb6c0 (LWP 6645)]
[New Thread 0x7fffa57fa6c0 (LWP 6646)]
[New Thread 0x7fffa4ff96c0 (LWP 6647)]
[Thread 0x7fffa4ff96c0 (LWP 6647) exited]
[Thread 0x7fffa57fa6c0 (LWP 6646) exited]
[Thread 0x7fffa5ffb6c0 (LWP 6645) exited]
[New Thread 0x7fffa5ffb6c0 (LWP 6648)]
kf.kirigami.platform: Failed to find a Kirigami platform plugin for style "Fusion"

Thread 1 "plasmashell" received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()

(gdb) bt
#0 0x00007ffff4720df0 in poll () at /lib64/libc.so.6
#1 0x00007ffff7b97e40 in ??? () at /usr/lib64/libKF6Crash.so.6
#2 0x00007ffff7b987a8 in KCrash::defaultCrashHandler(int) ()
at /usr/lib64/libKF6Crash.so.6
#3 0x00007ffff466e060 in <signal handler called> () at /lib64/libc.so.6
#4 0x0000000000000000 in ??? ()
#5 0x00007ffff6e546c9 in KSvg::FrameSvgPrivate::generateFrameBackground
(this=this@entry=0x55555601f4c0, frame=...)
at /usr/src/debug/kde-frameworks/ksvg-6.3.1/ksvg-6.3.1/src/ksvg/framesvg.cpp:613
#6 0x00007ffff6e57209 in KSvg::FrameSvgPrivate::generateBackground
(this=this@entry=0x55555601f4c0, frame=...)
at /usr/src/debug/kde-frameworks/ksvg-6.3.1/ksvg-6.3.1/src/ksvg/framesvg.cpp:541
#7 0x00007ffff6e510c2 in KSvg::FrameSvgPrivate::alphaMask
(this=0x55555601f4c0)
at /usr/src/debug/kde-frameworks/ksvg-6.3.1/ksvg-6.3.1/src/ksvg/framesvg.cpp:464
#8 0x00007ffff6e67672 in KSvg::FrameSvg::mask (this=0x55555601e990)
at /usr/src/debug/kde-frameworks/ksvg-6.3.1/ksvg-6.3.1/src/ksvg/framesvg.cpp:342
#9 0x00007fffa40eb90c in KSvg::FrameSvgItem::mask (this=0x555555f22770)
at /usr/src/debug/kde-frameworks/ksvg-6.3.1/ksvg-6.3.1/src/declarativeimport--Type <RET> for more, q to quit, c to continue without paging--
s/framesvgitem.cpp:500
#10 KSvg::FrameSvgItem::qt_static_metacall
(_o=_o@entry=0x555555f22770, _c=_c@entry=QMetaObject::ReadProperty, _id=_id@entry=9, _a=_a@entry=0x7fffffffc090)
at /usr/src/debug/kde-frameworks/ksvg-6.3.1/ksvg-6.3.1_build/src/declarativeimports/corebindingsplugin_autogen/include/moc_framesvgitem.cpp:486
#11 0x00007fffa40f5d12 in KSvg::FrameSvgItem::qt_metacall
(this=0x555555f22770, _c=QMetaObject::ReadProperty, _id=9, _a=0x7fffffffc090)
at /usr/src/debug/kde-frameworks/ksvg-6.3.1/ksvg-6.3.1_build/src/declarativeimports/corebindingsplugin_autogen/include/moc_framesvgitem.cpp:538
#12 0x00007ffff4e03458 in QMetaProperty::read
(this=this@entry=0x7fffffffc190, object=object@entry=0x555555f22770)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qmetaobject.cpp:3734
#13 0x00007ffff4d7a848 in QObject::property
(this=0x555555f22770, name=<optimized out>,
name@entry=0x7ffff7cc7c5a "mask")
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobject.cpp:4316
#14 0x00007ffff7c9e7f8 in PlasmaQuick::DialogBackground::mask
(this=<optimized out>)
at /usr/src/debug/kde-plasma/libplasma-6.1.1/libplasma-6.1.1/src/plasmaquick--Type <RET> for more, q to quit, c to continue without paging--
/private/dialogbackground_p.cpp:59
#15 0x00007ffff7c76ea6 in PlasmaQuick::DialogPrivate::updateTheme
(this=0x55555601bd10)
at /usr/src/debug/kde-plasma/libplasma-6.1.1/libplasma-6.1.1/src/plasmaquick/dialog.cpp:245
#16 0x00007ffff5daa02a in QQmlObjectCreator::finalize
(this=0x555555f42070, interrupt=...)
at /usr/src/debug/dev-qt/qtdeclarative-6.7.2/qtdeclarative-everywhere-src-6.7.2/src/qml/qml/qqmlobjectcreator.cpp:1567
#17 0x00007ffff5e610db in QQmlComponentPrivate::complete
(enginePriv=0x555555fb7f40, state=state@entry=0x555555ebdfa8)
at /usr/src/debug/dev-qt/qtdeclarative-6.7.2/qtdeclarative-everywhere-src-6.7.2/src/qml/qml/qqmlcomponent.cpp:1172
#18 0x00007ffff5e96820 in QQmlComponentPrivate::completeCreate
(this=<optimized out>)
at /usr/src/debug/dev-qt/qtdeclarative-6.7.2/qtdeclarative-everywhere-src-6.7.2/src/qml/qml/qqmlcomponent.cpp:1277
#19 0x00007ffff7c95c7a in PlasmaQuick::SharedQmlEngine::completeInitialization
(this=0x5555557d0520, initialProperties=<optimized out>)
at /usr/src/debug/kde-plasma/libplasma-6.1.1/libplasma-6.1.1/src/plasmaquick/sharedqmlengine.cpp:239
#20 0x00007ffff7c95d97 in PlasmaQuick::SharedQmlEnginePrivate::scheduleExecutionEnd (this=0x5555560e1760) at /usr/include/qt6/QtCore/qhash.h:836
--Type <RET> for more, q to quit, c to continue without paging--
#21 0x00007ffff7c97f78 in PlasmaQuick::QuickViewSharedEngine::setSource
(this=0x555555ff4c00, url=...)
at /usr/src/debug/kde-plasma/libplasma-6.1.1/libplasma-6.1.1/src/plasmaquick/quickviewsharedengine.cpp:214
#22 PlasmaQuick::QuickViewSharedEngine::setSource
(this=this@entry=0x555555ff4c00, url=...)
at /usr/src/debug/kde-plasma/libplasma-6.1.1/libplasma-6.1.1/src/plasmaquick/quickviewsharedengine.cpp:208
#23 0x00005555555a746a in DesktopView::DesktopView
(this=this@entry=0x555555ff4c00, corona=corona@entry=0x555555859540, targetScreen=targetScreen@entry=0x5555556d0b30)
at /usr/src/debug/kde-plasma/plasma-workspace-6.1.1/plasma-workspace-6.1.1/shell/desktopview.cpp:65
#24 0x00005555555c7a99 in ShellCorona::addOutput
(this=0x555555859540, screen=0x5555556d0b30)
at /usr/src/debug/kde-plasma/plasma-workspace-6.1.1/plasma-workspace-6.1.1/shell/shellcorona.cpp:1397
#25 0x00005555555dc8a1 in ShellCorona::addOutput
(this=0x555555859540, screen=0x5555556d0b30)
at /usr/src/debug/kde-plasma/plasma-workspace-6.1.1/plasma-workspace-6.1.1/shell/shellcorona.cpp:1067
#26 ShellCorona::loadDefaultLayout (this=0x555555859540)
at /usr/src/debug/kde-plasma/plasma-workspace-6.1.1/plasma-workspace-6.1.1/s--Type <RET> for more, q to quit, c to continue without paging--
hell/shellcorona.cpp:1068
#27 0x00007ffff79a96f5 in Plasma::Corona::loadLayout
(this=this@entry=0x555555859540, configName=...)
at /usr/src/debug/kde-plasma/libplasma-6.1.1/libplasma-6.1.1/src/plasma/corona.cpp:144
#28 0x00005555555dd418 in ShellCorona::load (this=0x555555859540)
at /usr/src/debug/kde-plasma/plasma-workspace-6.1.1/plasma-workspace-6.1.1/shell/shellcorona.cpp:796
#29 0x00007ffff4de3214 in QtPrivate::QSlotObjectBase::call
(this=0x555555ffb860, r=<optimized out>, a=0x7fffffffcca0)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobjectdefs_impl.h:469
#30 doActivate<false>
(sender=0x555555d80ed0, signal_index=4, argv=0x7fffffffcca0)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobject.cpp:4086
#31 0x00007ffff6b1e0e5 in KActivities::Consumer::serviceStatusChanged(KActivities::Consumer::ServiceStatus) () at /usr/lib64/libPlasmaActivities.so.6
#32 0x00007ffff4de3214 in QtPrivate::QSlotObjectBase::call
(this=0x555555d9b480, r=<optimized out>, a=0x7fffffffcf60)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobjectdefs_impl.h:469
#33 doActivate<false>
--Type <RET> for more, q to quit, c to continue without paging--
(sender=0x555555cb81e0, signal_index=11, argv=0x7fffffffcf60)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobject.cpp:4086
#34 0x00007ffff6b3b4b1 in ??? () at /usr/lib64/libPlasmaActivities.so.6
#35 0x00007ffff6b41d59 in ??? () at /usr/lib64/libPlasmaActivities.so.6
#36 0x00007ffff4de3538 in doActivate<false>
(sender=0x555555ff98f0, signal_index=3, argv=0x7fffffffd1f0)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobject.cpp:4098
#37 0x00007ffff4d9b3a7 in QMetaObject::activate
(sender=<optimized out>, m=m@entry=0x7ffff51af560 <QDBusPendingCallWatcher::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fffffffd1f0)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobject.cpp:4146
#38 0x00007ffff510acb3 in QDBusPendingCallWatcher::finished
(this=<optimized out>, _t1=<optimized out>)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2_build/src/dbus/DBus_autogen/include/moc_qdbuspendingcall.cpp:160
#39 0x00007ffff4d77774 in QObject::event
(this=0x555555ff98f0, e=0x555555d43740)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobject.cpp:1452
--Type <RET> for more, q to quit, c to continue without paging--
#40 0x00007ffff7715ed5 in QApplicationPrivate::notify_helper
(this=<optimized out>, receiver=0x555555ff98f0, e=0x555555d43740)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/widgets/kernel/qapplication.cpp:3287
#41 0x00007ffff4dfc440 in QCoreApplication::notifyInternal2
(receiver=0x555555ff98f0, event=0x555555d43740)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qcoreapplication.cpp:1142
#42 0x00007ffff4dfc4ed in QCoreApplication::sendEvent
(receiver=<optimized out>, event=<optimized out>)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qcoreapplication.cpp:1583
#43 0x00007ffff4e27d4b in QCoreApplicationPrivate::sendPostedEvents
(receiver=0x0, event_type=0, data=0x555555663ba0)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qcoreapplication.cpp:1940
#44 0x00007ffff4e27fbc in QCoreApplication::sendPostedEvents
(receiver=<optimized out>, event_type=<optimized out>)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qcoreapplication.cpp:1797
#45 0x00007ffff4b7fb7f in postEventSourceDispatch (s=0x5555556c2580)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qeventdispatcher_glib.cpp:244
--Type <RET> for more, q to quit, c to continue without paging--
#46 0x00007ffff2e1bcfa in ??? () at /usr/lib64/libglib-2.0.so.0
#47 0x00007ffff2e1f0a8 in ??? () at /usr/lib64/libglib-2.0.so.0
#48 0x00007ffff2e1f868 in g_main_context_iteration ()
at /usr/lib64/libglib-2.0.so.0
#49 0x00007ffff4b7dd0d in QEventDispatcherGlib::processEvents
(this=0x5555558d5d60, flags=...)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qeventdispatcher_glib.cpp:394
#50 0x00007ffff4e2e5ca in QEventLoop::exec
(this=this@entry=0x7fffffffd5f0, flags=..., flags@entry=...)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/global/qflags.h:34
#51 0x00007ffff4e2e9d5 in QCoreApplication::exec ()
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/global/qflags.h:74
#52 0x00007ffff5368798 in QGuiApplication::exec ()
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/gui/kernel/qguiapplication.cpp:1926
#53 0x00007ffff7674289 in QApplication::exec ()
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/widgets/kernel/qapplication.cpp:2555
#54 0x0000555555588bd2 in main (argc=<optimized out>, argv=<optimized out>)
at /usr/src/debug/kde-plasma/plasma-workspace-6.1.1/plasma-workspace-6.1.1/s--Type <RET> for more, q to quit, c to continue without paging--
hell/main.cpp:188
(gdb)


Here it is!
_________________
this is a strange strange world.
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1761

PostPosted: Mon Jul 01, 2024 10:44 pm    Post subject: Reply with quote

Hm. Could you show me emerge --info ksvg? I wonder if it took correctly.
Back to top
View user's profile Send private message
tranquilcool
Veteran
Veteran


Joined: 25 Mar 2005
Posts: 1204

PostPosted: Mon Jul 01, 2024 11:09 pm    Post subject: Reply with quote

sam_ wrote:
Hm. Could you show me emerge --info ksvg? I wonder if it took correctly.


USE="-debug -doc -test"
CFLAGS="-O4 -march=native -pipe -ggdb3"
CXXFLAGS="-O4 -march=native -pipe -ggdb3 -fsanitize=undefined"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live clean-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
LDFLAGS="-O4 -march=native -pipe -Wl,-O1 -Wl,--as-needed -fsanitize=undefined"

Here it is.
_________________
this is a strange strange world.
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1761

PostPosted: Mon Jul 01, 2024 11:14 pm    Post subject: Reply with quote

Please add it to CFLAGS too, and then try -fsanitize=address,undefined instead. Then make it crash again...

(Also, please in general do -O3 if you must, but -O4 is not a thing and it's historically done different things in different compilers as an alias.)
Back to top
View user's profile Send private message
tranquilcool
Veteran
Veteran


Joined: 25 Mar 2005
Posts: 1204

PostPosted: Mon Jul 01, 2024 11:38 pm    Post subject: Reply with quote

sam_ wrote:
Please add it to CFLAGS too, and then try -fsanitize=address,undefined instead. Then make it crash again...

(Also, please in general do -O3 if you must, but -O4 is not a thing and it's historically done different things in different compilers as an alias.)



emerge --info ksvg:

kde-frameworks/ksvg-6.3.1::gentoo was built with the following:
USE="-debug -doc -test"
CFLAGS="-O2 -march=native -pipe -ggdb3"
CXXFLAGS="-O2 -march=native -pipe -ggdb3 -fsanitize=address,undefined"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live clean-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
LDFLAGS="-O2 -march=native -pipe -Wl,-O1 -Wl,--as-needed -fsanitize=address,undefined"

and no segfaults in dmesg
_________________
this is a strange strange world.
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1761

PostPosted: Mon Jul 01, 2024 11:39 pm    Post subject: Reply with quote

Looks missing from CFLAGS there. Anyway, new crash output when you can please. Fingers crossed...

If we continue to be stuck, it might be easier if we debug together on IRC.
Back to top
View user's profile Send private message
tranquilcool
Veteran
Veteran


Joined: 25 Mar 2005
Posts: 1204

PostPosted: Mon Jul 01, 2024 11:44 pm    Post subject: Reply with quote

Type "apropos word" to search for commands related to "word"...
Reading symbols from plasmashell...
Reading symbols from /usr/lib/debug//usr/bin/plasmashell.debug...
(gdb) run
Starting program: /usr/bin/plasmashell
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
==5622==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.
[Inferior 1 (process 5622) exited with code 01]

Can't gdb plasmashell anymore!
_________________
this is a strange strange world.
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1761

PostPosted: Tue Jul 02, 2024 12:05 am    Post subject: Reply with quote

Interesting! Let's do a naughty hack.

ASAN_OPTIONS="verify_asan_link_order=0" gdb ...
Back to top
View user's profile Send private message
tranquilcool
Veteran
Veteran


Joined: 25 Mar 2005
Posts: 1204

PostPosted: Tue Jul 02, 2024 12:31 am    Post subject: Reply with quote

sam_ wrote:
Interesting! Let's do a naughty hack.

ASAN_OPTIONS="verify_asan_link_order=0" gdb ...


emerge --info ksvg:

kde-frameworks/ksvg-6.3.1::gentoo was built with the following:
USE="-debug -doc -test"
CFLAGS="-O2 -march=native -pipe -ggdb3 -fsanitize=address,undefined"
CXXFLAGS="-O2 -march=native -pipe -ggdb3 -fsanitize=address,undefined"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live clean-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
LDFLAGS="-O2 -march=native -pipe -Wl,-O1 -Wl,--as-needed -fsanitize=address,undefined"

ASAN_OPTIONS="verify_asan_link_order=0" gdb...:

Thread 1 "plasmashell" received signal SIGSTOP, Stopped (signal).
0x00007ffff40c8df0 in poll () from /lib64/libc.so.6
(gdb) bt
#0 0x00007ffff40c8df0 in poll () at /lib64/libc.so.6
#1 0x00007ffff7b97e40 in ??? () at /usr/lib64/libKF6Crash.so.6
#2 0x00007ffff7b987a8 in KCrash::defaultCrashHandler(int) ()
at /usr/lib64/libKF6Crash.so.6
#3 0x00007ffff4016060 in <signal handler called> () at /lib64/libc.so.6
#4 0x0000000000000000 in ??? ()
#5 0x00007ffff6a53f19 in KSvg::FrameSvgPrivate::generateFrameBackground
(this=this@entry=0x555556021980, frame=...)
at /usr/src/debug/kde-frameworks/ksvg-6.3.1/ksvg-6.3.1/src/ksvg/framesvg.cpp:613
#6 0x00007ffff6a591a1 in KSvg::FrameSvgPrivate::generateBackground
(this=this@entry=0x555556021980, frame=...)
at /usr/src/debug/kde-frameworks/ksvg-6.3.1/ksvg-6.3.1/src/ksvg/framesvg.cpp:541
#7 0x00007ffff6a4cc05 in KSvg::FrameSvgPrivate::alphaMask
(this=<optimized out>)
at /usr/src/debug/kde-frameworks/ksvg-6.3.1/ksvg-6.3.1/src/ksvg/framesvg.cpp:464
#8 0x00007ffff6a702c7 in KSvg::FrameSvg::mask (this=0x555556020c80)
at /usr/src/debug/kde-frameworks/ksvg-6.3.1/ksvg-6.3.1/src/ksvg/framesvg.cpp:342
#9 0x00007fff983b7553 in KSvg::FrameSvgItem::mask (this=0x555555f7ba60)
at /usr/src/debug/kde-frameworks/ksvg-6.3.1/ksvg-6.3.1/src/declarativeimport--Type <RET> for more, q to quit, c to continue without paging--
s/framesvgitem.cpp:500
#10 KSvg::FrameSvgItem::qt_static_metacall
(_o=_o@entry=0x555555f7ba60, _c=_c@entry=QMetaObject::ReadProperty, _id=_id@entry=9, _a=_a@entry=0x7fffffffc060)
at /usr/src/debug/kde-frameworks/ksvg-6.3.1/ksvg-6.3.1_build/src/declarativeimports/corebindingsplugin_autogen/include/moc_framesvgitem.cpp:486
#11 0x00007fff983c7865 in KSvg::FrameSvgItem::qt_metacall
(this=0x555555f7ba60, _c=QMetaObject::ReadProperty, _id=<optimized out>, _a=0x7fffffffc060)
at /usr/src/debug/kde-frameworks/ksvg-6.3.1/ksvg-6.3.1_build/src/declarativeimports/corebindingsplugin_autogen/include/moc_framesvgitem.cpp:538
#12 0x00007ffff47ab458 in QMetaProperty::read
(this=this@entry=0x7fffffffc160, object=object@entry=0x555555f7ba60)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qmetaobject.cpp:3734
#13 0x00007ffff4722848 in QObject::property
(this=0x555555f7ba60, name=<optimized out>,
name@entry=0x7ffff7cc7c5a "mask")
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobject.cpp:4316
#14 0x00007ffff7c9e7f8 in PlasmaQuick::DialogBackground::mask
(this=<optimized out>)
at /usr/src/debug/kde-plasma/libplasma-6.1.1/libplasma-6.1.1/src/plasmaquick--Type <RET> for more, q to quit, c to continue without paging--
/private/dialogbackground_p.cpp:59
#15 0x00007ffff7c76ea6 in PlasmaQuick::DialogPrivate::updateTheme
(this=0x55555601d3f0)
at /usr/src/debug/kde-plasma/libplasma-6.1.1/libplasma-6.1.1/src/plasmaquick/dialog.cpp:245
#16 0x00007ffff575202a in QQmlObjectCreator::finalize
(this=0x555555d79f90, interrupt=...)
at /usr/src/debug/dev-qt/qtdeclarative-6.7.2/qtdeclarative-everywhere-src-6.7.2/src/qml/qml/qqmlobjectcreator.cpp:1567
#17 0x00007ffff58090db in QQmlComponentPrivate::complete
(enginePriv=0x555555ee20c0, state=state@entry=0x555555ee3718)
at /usr/src/debug/dev-qt/qtdeclarative-6.7.2/qtdeclarative-everywhere-src-6.7.2/src/qml/qml/qqmlcomponent.cpp:1172
#18 0x00007ffff583e820 in QQmlComponentPrivate::completeCreate
(this=<optimized out>)
at /usr/src/debug/dev-qt/qtdeclarative-6.7.2/qtdeclarative-everywhere-src-6.7.2/src/qml/qml/qqmlcomponent.cpp:1277
#19 0x00007ffff7c95c7a in PlasmaQuick::SharedQmlEngine::completeInitialization
(this=0x7fffdc00bbf0, initialProperties=<optimized out>)
at /usr/src/debug/kde-plasma/libplasma-6.1.1/libplasma-6.1.1/src/plasmaquick/sharedqmlengine.cpp:239
#20 0x00007ffff7c95d97 in PlasmaQuick::SharedQmlEnginePrivate::scheduleExecutionEnd (this=0x5555560e2590) at /usr/include/qt6/QtCore/qhash.h:836
--Type <RET> for more, q to quit, c to continue without paging--
#21 0x00007ffff7c97f78 in PlasmaQuick::QuickViewSharedEngine::setSource
(this=0x55555582dd70, url=...)
at /usr/src/debug/kde-plasma/libplasma-6.1.1/libplasma-6.1.1/src/plasmaquick/quickviewsharedengine.cpp:214
#22 PlasmaQuick::QuickViewSharedEngine::setSource
(this=this@entry=0x55555582dd70, url=...)
at /usr/src/debug/kde-plasma/libplasma-6.1.1/libplasma-6.1.1/src/plasmaquick/quickviewsharedengine.cpp:208
#23 0x00005555555a746a in DesktopView::DesktopView
(this=this@entry=0x55555582dd70, corona=corona@entry=0x5555558584f0, targetScreen=targetScreen@entry=0x5555556cf930)
at /usr/src/debug/kde-plasma/plasma-workspace-6.1.1/plasma-workspace-6.1.1/shell/desktopview.cpp:65
#24 0x00005555555c7a99 in ShellCorona::addOutput
(this=0x5555558584f0, screen=0x5555556cf930)
at /usr/src/debug/kde-plasma/plasma-workspace-6.1.1/plasma-workspace-6.1.1/shell/shellcorona.cpp:1397
#25 0x00005555555dc8a1 in ShellCorona::addOutput
(this=0x5555558584f0, screen=0x5555556cf930)
at /usr/src/debug/kde-plasma/plasma-workspace-6.1.1/plasma-workspace-6.1.1/shell/shellcorona.cpp:1067
#26 ShellCorona::loadDefaultLayout (this=0x5555558584f0)
at /usr/src/debug/kde-plasma/plasma-workspace-6.1.1/plasma-workspace-6.1.1/s--Type <RET> for more, q to quit, c to continue without paging--
hell/shellcorona.cpp:1068
#27 0x00007ffff79a96f5 in Plasma::Corona::loadLayout
(this=this@entry=0x5555558584f0, configName=...)
at /usr/src/debug/kde-plasma/libplasma-6.1.1/libplasma-6.1.1/src/plasma/corona.cpp:144
#28 0x00005555555dd418 in ShellCorona::load (this=0x5555558584f0)
at /usr/src/debug/kde-plasma/plasma-workspace-6.1.1/plasma-workspace-6.1.1/shell/shellcorona.cpp:796
#29 0x00007ffff478b214 in QtPrivate::QSlotObjectBase::call
(this=0x555555fee1b0, r=<optimized out>, a=0x7fffffffcc70)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobjectdefs_impl.h:469
#30 doActivate<false>
(sender=0x555555d80cd0, signal_index=4, argv=0x7fffffffcc70)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobject.cpp:4086
#31 0x00007ffff64c60e5 in KActivities::Consumer::serviceStatusChanged(KActivities::Consumer::ServiceStatus) () at /usr/lib64/libPlasmaActivities.so.6
#32 0x00007ffff478b214 in QtPrivate::QSlotObjectBase::call
(this=0x555555d9c700, r=<optimized out>, a=0x7fffffffcf30)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobjectdefs_impl.h:469
#33 doActivate<false>
--Type <RET> for more, q to quit, c to continue without paging--
(sender=0x555555d9fad0, signal_index=11, argv=0x7fffffffcf30)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobject.cpp:4086
#34 0x00007ffff64e34b1 in ??? () at /usr/lib64/libPlasmaActivities.so.6
#35 0x00007ffff64e9d59 in ??? () at /usr/lib64/libPlasmaActivities.so.6
#36 0x00007ffff478b538 in doActivate<false>
(sender=0x555555d9c1c0, signal_index=3, argv=0x7fffffffd1c0)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobject.cpp:4098
#37 0x00007ffff47433a7 in QMetaObject::activate
(sender=<optimized out>, m=m@entry=0x7ffff4b57560 <QDBusPendingCallWatcher::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fffffffd1c0)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobject.cpp:4146
#38 0x00007ffff4ab2cb3 in QDBusPendingCallWatcher::finished
(this=<optimized out>, _t1=<optimized out>)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2_build/src/dbus/DBus_autogen/include/moc_qdbuspendingcall.cpp:160
#39 0x00007ffff471f774 in QObject::event
(this=0x555555d9c1c0, e=0x5555556f7710)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobject.cpp:1452
--Type <RET> for more, q to quit, c to continue without paging--
#40 0x00007ffff7715ed5 in QApplicationPrivate::notify_helper
(this=<optimized out>, receiver=0x555555d9c1c0, e=0x5555556f7710)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/widgets/kernel/qapplication.cpp:3287
#41 0x00007ffff47a4440 in QCoreApplication::notifyInternal2
(receiver=0x555555d9c1c0, event=0x5555556f7710)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qcoreapplication.cpp:1142
#42 0x00007ffff47a44ed in QCoreApplication::sendEvent
(receiver=<optimized out>, event=<optimized out>)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qcoreapplication.cpp:1583
#43 0x00007ffff47cfd4b in QCoreApplicationPrivate::sendPostedEvents
(receiver=0x0, event_type=0, data=0x555555663ba0)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qcoreapplication.cpp:1940
#44 0x00007ffff47cffbc in QCoreApplication::sendPostedEvents
(receiver=<optimized out>, event_type=<optimized out>)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qcoreapplication.cpp:1797
#45 0x00007ffff4527b7f in postEventSourceDispatch (s=0x55555594d240)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qeventdispatcher_glib.cpp:244
--Type <RET> for more, q to quit, c to continue without paging--
#46 0x00007ffff20f8cfa in ??? () at /usr/lib64/libglib-2.0.so.0
#47 0x00007ffff20fc0a8 in ??? () at /usr/lib64/libglib-2.0.so.0
#48 0x00007ffff20fc868 in g_main_context_iteration ()
at /usr/lib64/libglib-2.0.so.0
#49 0x00007ffff4525d0d in QEventDispatcherGlib::processEvents
(this=0x55555589d650, flags=...)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qeventdispatcher_glib.cpp:394
#50 0x00007ffff47d65ca in QEventLoop::exec
(this=this@entry=0x7fffffffd5c0, flags=..., flags@entry=...)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/global/qflags.h:34
#51 0x00007ffff47d69d5 in QCoreApplication::exec ()
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/global/qflags.h:74
#52 0x00007ffff4d10798 in QGuiApplication::exec ()
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/gui/kernel/qguiapplication.cpp:1926
#53 0x00007ffff7674289 in QApplication::exec ()
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/widgets/kernel/qapplication.cpp:2555
#54 0x0000555555588bd2 in main (argc=<optimized out>, argv=<optimized out>)
at /usr/src/debug/kde-plasma/plasma-workspace-6.1.1/plasma-workspace-6.1.1/s--Type <RET> for more, q to quit, c to continue without paging--
hell/main.cpp:188
(gdb)
_________________
this is a strange strange world.
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1761

PostPosted: Tue Jul 02, 2024 12:54 am    Post subject: Reply with quote

Huh. That is NOT what I expected at all.

Can you try without asan+ubsan, and then try valgrind ... (no gdb)? (Keep debug symbols of course but get rid of -fsanitize=, then rebuild).
Back to top
View user's profile Send private message
tranquilcool
Veteran
Veteran


Joined: 25 Mar 2005
Posts: 1204

PostPosted: Tue Jul 02, 2024 1:11 am    Post subject: Reply with quote

sam_ wrote:
Huh. That is NOT what I expected at all.

Can you try without asan+ubsan, and then try valgrind ... (no gdb)? (Keep debug symbols of course but get rid of -fsanitize=, then rebuild).


Reading symbols from /usr/lib/debug//usr/bin/plasmashell.debug...
(gdb) run
Starting program: /usr/bin/plasmashell
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffee8d76c0 (LWP 31378)]
[New Thread 0x7fffee0d66c0 (LWP 31379)]
[New Thread 0x7fffec8b76c0 (LWP 31380)]
[New Thread 0x7fffdffff6c0 (LWP 31381)]
[New Thread 0x7fffdf7fe6c0 (LWP 31382)]
[New Thread 0x7fffdefe96c0 (LWP 31383)]
[New Thread 0x7fffde7e86c0 (LWP 31384)]
[New Thread 0x7fffddfe76c0 (LWP 31385)]
[New Thread 0x7fffdd0796c0 (LWP 31386)]
[New Thread 0x7fffbf1806c0 (LWP 31387)]
[New Thread 0x7fffbe97f6c0 (LWP 31388)]
[New Thread 0x7fffbe17e6c0 (LWP 31389)]
[New Thread 0x7fffbd97d6c0 (LWP 31390)]
[New Thread 0x7fffbd17c6c0 (LWP 31391)]
[New Thread 0x7fffbc97b6c0 (LWP 31392)]
[New Thread 0x7fff9ffff6c0 (LWP 31393)]
[New Thread 0x7fff9f7fe6c0 (LWP 31394)]
[New Thread 0x7fff9effd6c0 (LWP 31395)]
[New Thread 0x7fff9e7fc6c0 (LWP 31396)]
[New Thread 0x7fff9dffb6c0 (LWP 31397)]
[Thread 0x7fff9dffb6c0 (LWP 31397) exited]
[Thread 0x7fff9e7fc6c0 (LWP 31396) exited]
[Thread 0x7fff9effd6c0 (LWP 31395) exited]
Couldn't start kglobalaccel from org.kde.kglobalaccel.service: QDBusError("org.freedesktop.DBus.Error.ServiceUnknown", "The name org.kde.kglobalaccel was not provided by any .service files")
[New Thread 0x7fff9effd6c0 (LWP 31398)]
[New Thread 0x7fff9e7fc6c0 (LWP 31399)]
[New Thread 0x7fff9dffb6c0 (LWP 31400)]
[Thread 0x7fff9dffb6c0 (LWP 31400) exited]
[Thread 0x7fff9e7fc6c0 (LWP 31399) exited]
[Thread 0x7fff9effd6c0 (LWP 31398) exited]
[New Thread 0x7fff9effd6c0 (LWP 31401)]
kf.kirigami.platform: Failed to find a Kirigami platform plugin for style "Fusion"

Thread 1 "plasmashell" received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0 0x0000000000000000 in ??? ()
#1 0x00007ffff708919c in KSvg::FrameSvgPrivate::generateFrameBackground
(this=this@entry=0x555556027670, frame=...)
at /usr/src/debug/kde-frameworks/ksvg-6.3.1/ksvg-6.3.1/src/ksvg/framesvg.cpp:613
#2 0x00007ffff7089978 in KSvg::FrameSvgPrivate::generateBackground
(this=this@entry=0x555556027670, frame=...)
at /usr/src/debug/kde-frameworks/ksvg-6.3.1/ksvg-6.3.1/src/ksvg/framesvg.cpp:541
#3 0x00007ffff70889e1 in KSvg::FrameSvgPrivate::generateBackground
(this=0x555556027670, frame=...)
at /usr/src/debug/kde-frameworks/ksvg-6.3.1/ksvg-6.3.1/src/ksvg/framesvg.cpp:480
#4 KSvg::FrameSvgPrivate::alphaMask (this=0x555556027670)
at /usr/src/debug/kde-frameworks/ksvg-6.3.1/ksvg-6.3.1/src/ksvg/framesvg.cpp:480
#5 0x00007ffff708af85 in KSvg::FrameSvg::mask (this=0x555556026970)
at /usr/src/debug/kde-frameworks/ksvg-6.3.1/ksvg-6.3.1/src/ksvg/framesvg.cpp:342
#6 0x00007fff9c557a5c in KSvg::FrameSvgItem::mask (this=0x5555558dde70)
at /usr/src/debug/kde-frameworks/ksvg-6.3.1/ksvg-6.3.1/src/declarativeimports/framesvgitem.cpp:500
#7 KSvg::FrameSvgItem::qt_static_metacall
--Type <RET> for more, q to quit, c to continue without paging--
(_o=0x5555558dde70, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>)
at /usr/src/debug/kde-frameworks/ksvg-6.3.1/ksvg-6.3.1_build/src/declarativeimports/corebindingsplugin_autogen/include/moc_framesvgitem.cpp:486
#8 0x00007fff9c5593cf in KSvg::FrameSvgItem::qt_metacall
(this=0x5555558dde70, _c=QMetaObject::ReadProperty, _id=9, _a=0x7fffffffc090)
at /usr/src/debug/kde-frameworks/ksvg-6.3.1/ksvg-6.3.1_build/src/declarativeimports/corebindingsplugin_autogen/include/moc_framesvgitem.cpp:538
#9 0x00007ffff51a3458 in QMetaProperty::read
(this=this@entry=0x7fffffffc190, object=object@entry=0x5555558dde70)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qmetaobject.cpp:3734
#10 0x00007ffff511a848 in QObject::property
(this=0x5555558dde70, name=<optimized out>,
name@entry=0x7ffff7cc7c5a "mask")
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobject.cpp:4316
#11 0x00007ffff7c9e7f8 in PlasmaQuick::DialogBackground::mask
(this=<optimized out>)
at /usr/src/debug/kde-plasma/libplasma-6.1.1/libplasma-6.1.1/src/plasmaquick/private/dialogbackground_p.cpp:59
#12 0x00007ffff7c76ea6 in PlasmaQuick::DialogPrivate::updateTheme
--Type <RET> for more, q to quit, c to continue without paging--
(this=0x555556023b20)
at /usr/src/debug/kde-plasma/libplasma-6.1.1/libplasma-6.1.1/src/plasmaquick/dialog.cpp:245
#13 0x00007ffff614a02a in QQmlObjectCreator::finalize
(this=0x555555cb90b0, interrupt=...)
at /usr/src/debug/dev-qt/qtdeclarative-6.7.2/qtdeclarative-everywhere-src-6.7.2/src/qml/qml/qqmlobjectcreator.cpp:1567
#14 0x00007ffff62010db in QQmlComponentPrivate::complete
(enginePriv=0x555555ed21b0, state=state@entry=0x555555e9c358)
at /usr/src/debug/dev-qt/qtdeclarative-6.7.2/qtdeclarative-everywhere-src-6.7.2/src/qml/qml/qqmlcomponent.cpp:1172
#15 0x00007ffff6236820 in QQmlComponentPrivate::completeCreate
(this=<optimized out>)
at /usr/src/debug/dev-qt/qtdeclarative-6.7.2/qtdeclarative-everywhere-src-6.7.2/src/qml/qml/qqmlcomponent.cpp:1277
#16 0x00007ffff7c95c7a in PlasmaQuick::SharedQmlEngine::completeInitialization
(this=0x7fffe000bb20, initialProperties=<optimized out>)
at /usr/src/debug/kde-plasma/libplasma-6.1.1/libplasma-6.1.1/src/plasmaquick/sharedqmlengine.cpp:239
#17 0x00007ffff7c95d97 in PlasmaQuick::SharedQmlEnginePrivate::scheduleExecutionEnd (this=0x5555560dfee0) at /usr/include/qt6/QtCore/qhash.h:836
#18 0x00007ffff7c97f78 in PlasmaQuick::QuickViewSharedEngine::setSource
(this=0x55555580a340, url=...)
--Type <RET> for more, q to quit, c to continue without paging--
at /usr/src/debug/kde-plasma/libplasma-6.1.1/libplasma-6.1.1/src/plasmaquick/quickviewsharedengine.cpp:214
#19 PlasmaQuick::QuickViewSharedEngine::setSource
(this=this@entry=0x55555580a340, url=...)
at /usr/src/debug/kde-plasma/libplasma-6.1.1/libplasma-6.1.1/src/plasmaquick/quickviewsharedengine.cpp:208
#20 0x00005555555a746a in DesktopView::DesktopView
(this=this@entry=0x55555580a340, corona=corona@entry=0x5555558d18c0, targetScreen=targetScreen@entry=0x5555556cf8e0)
at /usr/src/debug/kde-plasma/plasma-workspace-6.1.1/plasma-workspace-6.1.1/shell/desktopview.cpp:65
#21 0x00005555555c7a99 in ShellCorona::addOutput
(this=0x5555558d18c0, screen=0x5555556cf8e0)
at /usr/src/debug/kde-plasma/plasma-workspace-6.1.1/plasma-workspace-6.1.1/shell/shellcorona.cpp:1397
#22 0x00005555555dc8a1 in ShellCorona::addOutput
(this=0x5555558d18c0, screen=0x5555556cf8e0)
at /usr/src/debug/kde-plasma/plasma-workspace-6.1.1/plasma-workspace-6.1.1/shell/shellcorona.cpp:1067
#23 ShellCorona::loadDefaultLayout (this=0x5555558d18c0)
at /usr/src/debug/kde-plasma/plasma-workspace-6.1.1/plasma-workspace-6.1.1/shell/shellcorona.cpp:1068
#24 0x00007ffff79a96f5 in Plasma::Corona::loadLayout
--Type <RET> for more, q to quit, c to continue without paging--
(this=this@entry=0x5555558d18c0, configName=...)
at /usr/src/debug/kde-plasma/libplasma-6.1.1/libplasma-6.1.1/src/plasma/corona.cpp:144
#25 0x00005555555dd418 in ShellCorona::load (this=0x5555558d18c0)
at /usr/src/debug/kde-plasma/plasma-workspace-6.1.1/plasma-workspace-6.1.1/shell/shellcorona.cpp:796
#26 0x00007ffff5183214 in QtPrivate::QSlotObjectBase::call
(this=0x555555e6f8a0, r=<optimized out>, a=0x7fffffffcca0)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobjectdefs_impl.h:469
#27 doActivate<false>
(sender=0x555555d83410, signal_index=4, argv=0x7fffffffcca0)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobject.cpp:4086
#28 0x00007ffff6ebe0e5 in KActivities::Consumer::serviceStatusChanged(KActivities::Consumer::ServiceStatus) () at /usr/lib64/libPlasmaActivities.so.6
#29 0x00007ffff5183214 in QtPrivate::QSlotObjectBase::call
(this=0x555555cffe70, r=<optimized out>, a=0x7fffffffcf60)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobjectdefs_impl.h:469
#30 doActivate<false>
(sender=0x555555cb9a60, signal_index=11, argv=0x7fffffffcf60)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/coreli--Type <RET> for more, q to quit, c to continue without paging--
b/kernel/qobject.cpp:4086
#31 0x00007ffff6edb4b1 in ??? () at /usr/lib64/libPlasmaActivities.so.6
#32 0x00007ffff6ee1d59 in ??? () at /usr/lib64/libPlasmaActivities.so.6
#33 0x00007ffff5183538 in doActivate<false>
(sender=0x555555cff840, signal_index=3, argv=0x7fffffffd1f0)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobject.cpp:4098
#34 0x00007ffff513b3a7 in QMetaObject::activate
(sender=<optimized out>, m=m@entry=0x7ffff554f560 <QDBusPendingCallWatcher::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fffffffd1f0)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobject.cpp:4146
#35 0x00007ffff54aacb3 in QDBusPendingCallWatcher::finished
(this=<optimized out>, _t1=<optimized out>)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2_build/src/dbus/DBus_autogen/include/moc_qdbuspendingcall.cpp:160
#36 0x00007ffff5117774 in QObject::event
(this=0x555555cff840, e=0x555555d83760)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobject.cpp:1452
#37 0x00007ffff7715ed5 in QApplicationPrivate::notify_helper
(this=<optimized out>, receiver=0x555555cff840, e=0x555555d83760)
--Type <RET> for more, q to quit, c to continue without paging--
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/widgets/kernel/qapplication.cpp:3287
#38 0x00007ffff519c440 in QCoreApplication::notifyInternal2
(receiver=0x555555cff840, event=0x555555d83760)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qcoreapplication.cpp:1142
#39 0x00007ffff519c4ed in QCoreApplication::sendEvent
(receiver=<optimized out>, event=<optimized out>)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qcoreapplication.cpp:1583
#40 0x00007ffff51c7d4b in QCoreApplicationPrivate::sendPostedEvents
(receiver=0x0, event_type=0, data=0x555555663ba0)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qcoreapplication.cpp:1940
#41 0x00007ffff51c7fbc in QCoreApplication::sendPostedEvents
(receiver=<optimized out>, event_type=<optimized out>)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qcoreapplication.cpp:1797
#42 0x00007ffff4f1fb7f in postEventSourceDispatch (s=0x5555556949d0)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qeventdispatcher_glib.cpp:244
#43 0x00007ffff37cfcfa in ??? () at /usr/lib64/libglib-2.0.so.0
#44 0x00007ffff37d30a8 in ??? () at /usr/lib64/libglib-2.0.so.0
--Type <RET> for more, q to quit, c to continue without paging--
#45 0x00007ffff37d3868 in g_main_context_iteration ()
at /usr/lib64/libglib-2.0.so.0
#46 0x00007ffff4f1dd0d in QEventDispatcherGlib::processEvents
(this=0x5555559364d0, flags=...)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qeventdispatcher_glib.cpp:394
#47 0x00007ffff51ce5ca in QEventLoop::exec
(this=this@entry=0x7fffffffd5f0, flags=..., flags@entry=...)
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/global/qflags.h:34
#48 0x00007ffff51ce9d5 in QCoreApplication::exec ()
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/corelib/global/qflags.h:74
#49 0x00007ffff5708798 in QGuiApplication::exec ()
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/gui/kernel/qguiapplication.cpp:1926
#50 0x00007ffff7674289 in QApplication::exec ()
at /usr/src/debug/dev-qt/qtbase-6.7.2/qtbase-everywhere-src-6.7.2/src/widgets/kernel/qapplication.cpp:2555
#51 0x0000555555588bd2 in main (argc=<optimized out>, argv=<optimized out>)
at /usr/src/debug/kde-plasma/plasma-workspace-6.1.1/plasma-workspace-6.1.1/shell/main.cpp:188
(gdb)

Without asan+ubsan and -fsanitize=,
_________________
this is a strange strange world.
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1761

PostPosted: Tue Jul 02, 2024 1:15 am    Post subject: Reply with quote

Try run it under valgrind? valgrind plasmashell ....
Back to top
View user's profile Send private message
tranquilcool
Veteran
Veteran


Joined: 25 Mar 2005
Posts: 1204

PostPosted: Tue Jul 02, 2024 1:17 am    Post subject: Reply with quote

sam_ wrote:
Try run it under valgrind? valgrind plasmashell ....


valgrind plasmashell :(
==31794== Memcheck, a memory error detector
==31794== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al.
==31794== Using Valgrind-3.23.1.GIT and LibVEX; rerun with -h for copyright info
==31794== Command: plasmashell
==31794==
vex amd64->IR: unhandled instruction bytes: 0x8F 0xEA 0x78 0x10 0xD0 0x8 0x4 0x0 0x0 0x89
vex amd64->IR: REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0
vex amd64->IR: VEX=0 VEX.L=0 VEX.nVVVV=0x0 ESC=NONE
vex amd64->IR: PFX.66=0 PFX.F2=0 PFX.F3=0
==31794== valgrind: Unrecognised instruction at address 0x4015957.
==31794== at 0x4015957: get_common_indices.constprop.0 (in /lib64/ld-linux-x86-64.so.2)
==31794== by 0x4016A52: init_cpu_features.constprop.0 (in /lib64/ld-linux-x86-64.so.2)
==31794== by 0x4017C60: _dl_x86_init_cpu_features (in /lib64/ld-linux-x86-64.so.2)
==31794== by 0x401BB07: _dl_sysdep_start (in /lib64/ld-linux-x86-64.so.2)
==31794== by 0x401D3F3: _dl_start (in /lib64/ld-linux-x86-64.so.2)
==31794== by 0x401C187: ??? (in /lib64/ld-linux-x86-64.so.2)
==31794== Your program just tried to execute an instruction that Valgrind
==31794== did not recognise. There are two possible reasons for this.
==31794== 1. Your program has a bug and erroneously jumped to a non-code
==31794== location. If you are running Memcheck and you just saw a
==31794== warning about a bad jump, it's probably your program's fault.
==31794== 2. The instruction is legitimate but Valgrind doesn't handle it,
==31794== i.e. it's Valgrind's fault. If you think this is the case or
==31794== you are not sure, please let us know and we'll try to fix it.
==31794== Either way, Valgrind will now raise a SIGILL signal which will
==31794== probably kill your program.
==31794==
==31794== Process terminating with default action of signal 4 (SIGILL)
==31794== Illegal opcode at address 0x4015957
==31794== at 0x4015957: get_common_indices.constprop.0 (in /lib64/ld-linux-x86-64.so.2)
==31794== by 0x4016A52: init_cpu_features.constprop.0 (in /lib64/ld-linux-x86-64.so.2)
==31794== by 0x4017C60: _dl_x86_init_cpu_features (in /lib64/ld-linux-x86-64.so.2)
==31794== by 0x401BB07: _dl_sysdep_start (in /lib64/ld-linux-x86-64.so.2)
==31794== by 0x401D3F3: _dl_start (in /lib64/ld-linux-x86-64.so.2)
==31794== by 0x401C187: ??? (in /lib64/ld-linux-x86-64.so.2)
==31794==
==31794== HEAP SUMMARY:
==31794== in use at exit: 0 bytes in 0 blocks
==31794== total heap usage: 0 allocs, 0 frees, 0 bytes allocated
==31794==
==31794== All heap blocks were freed -- no leaks are possible
==31794==
==31794== For lists of detected and suppressed errors, rerun with: -s
==31794== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
[1] 31794 illegal hardware instruction valgrind plasmashell


Here it is!
I am baffled, I don't know why plasma 5 works seamlessly.
_________________
this is a strange strange world.
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1761

PostPosted: Tue Jul 02, 2024 1:25 am    Post subject: Reply with quote

Gah. I guess you have AVX512 and I don't really want to ask you to rebuild various things without it unless we get truly stuck (Valgrind doesn't support it yet).

Arsen isn't around at the moment, I'm still really surprised ASAN and UBSAN showed nothing. I don't think I've ever seen something null-dereference where UBSAN doesn't show something up even if it's a second-order report from something going wrong earlier it didn't catch.

Two more ideas for now:
1) I wonder if you try USE=debug on ksvg, which will enable assertions, whether you get any more helpful output before it crashes?
2) If you build qtbase *and* ksvg with -fsanitize=undefined (you can do ASAN too if you want), do you get a better error when it crashes?

Failing that, I think we might have to try arrange a time where you, I, and maybe Arsen are around to poke at it more interactively.

Feel like I'm missing something obvious.
Back to top
View user's profile Send private message
tranquilcool
Veteran
Veteran


Joined: 25 Mar 2005
Posts: 1204

PostPosted: Tue Jul 02, 2024 1:31 am    Post subject: Reply with quote

sam_ wrote:
Gah. I guess you have AVX512 and I don't really want to ask you to rebuild various things without it unless we get truly stuck (Valgrind doesn't support it yet).

Arsen isn't around at the moment, I'm still really surprised ASAN and UBSAN showed nothing. I don't think I've ever seen something null-dereference where UBSAN doesn't show something up even if it's a second-order report from something going wrong earlier it didn't catch.

Two more ideas for now:
1) I wonder if you try USE=debug on ksvg, which will enable assertions, whether you get any more helpful output before it crashes?
2) If you build qtbase *and* ksvg with -fsanitize=undefined (you can do ASAN too if you want), do you get a better error when it crashes?

Failing that, I think we might have to try arrange a time where you, I, and maybe Arsen are around to poke at it more interactively.

Feels like I'm missing something obvious.


Thank you very much for your patience. Yes I would appreciate. For now I'll go back to plasma 5 to finish what I was doing. And of course I'll reinstall plasma 6 again. I don't like to give up, especially on a source ditribution like gentoo.
Yes, I have a Processor Series with AVX Support I think: AMD Bulldozer, Excavator

Thank you!
_________________
this is a strange strange world.
Back to top
View user's profile Send private message
ArsenArsen
Developer
Developer


Joined: 16 Jan 2023
Posts: 3
Location: Serbia

PostPosted: Tue Jul 02, 2024 5:46 pm    Post subject: Reply with quote

I suppose it's best to check the value of that 'frame' thing in the KSVG stack frame..
Code:
print -pretty on -- frame
namely, we're looking to see what the cachedBackground qpixmap is looking like
_________________
choose free software, choose GNU/Linux, build it with Gentoo :)
Back to top
View user's profile Send private message
tranquilcool
Veteran
Veteran


Joined: 25 Mar 2005
Posts: 1204

PostPosted: Tue Jul 02, 2024 5:55 pm    Post subject: Reply with quote

ArsenArsen wrote:
I suppose it's best to check the value of that 'frame' thing in the KSVG stack frame..
Code:
print -pretty on -- frame
namely, we're looking to see what the cachedBackground qpixmap is looking like


I have just gone back to plasma 5 to finish my work projet, and later will reinstall plasma and check out your suggestion.
In any case, I suspect my problem could be related to cruft leftovers from plasma 5, regarding the way plasma 6 interprets .deshtop files through ksvg. My advice could be to use desktoptojson to convert old .desktop files to the new plasma 6 formats. And of course make sure there are no cruft from plasma 5
When I reinstall plasma 6 I'll check that out and report.

Thank you.
_________________
this is a strange strange world.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum