Bug 454157 - (SEGV) SessionTrack::~SessionTrack, when logging out from plasma-wayland session on tty3
Summary: (SEGV) SessionTrack::~SessionTrack, when logging out from plasma-wayland sess...
Status: RESOLVED DUPLICATE of bug 454159
Alias: None
Product: plasmashell
Classification: Plasma
Component: Startup process (show other bugs)
Version: master
Platform: Other Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-21 13:58 UTC by postix
Modified: 2022-06-17 20:35 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description postix 2022-05-21 13:58:14 UTC
SUMMARY

git commit 13a6e772761764de20b9cdba969dc2cd423f35c (kdesrc-build)


I was logged in a running wayland session in tty2 (openSUSE TW 5.24.5) and in tty3 (kdesrc-build master). When logging out in tty3, plasma-workspace crashed:

```
#0  0x000000000041d37c in SessionTrack::~SessionTrack (this=0x1344020, __in_chrg=<optimized out>) at /snip/kde/src/kde/workspace/plasma-workspace/startkde/plasma-session/sessiontrack.cpp:44
        process = 0x1302aa0
        __for_range = @0x1344030: {d = 0x7fa8700157e0}
        __for_begin = 0x7fa870015840
        __for_end = 0x7fa870015860
        process = <optimized out>
        __for_range = <optimized out>
        __for_begin = <optimized out>
        __for_end = <optimized out>
        process = <optimized out>
        __for_range = <optimized out>
        __for_begin = <optimized out>
        __for_end = <optimized out>
#1  0x000000000041d3d4 in SessionTrack::~SessionTrack (this=0x1344020, __in_chrg=<optimized out>) at /snip/kde/src/kde/workspace/plasma-workspace/startkde/plasma-session/sessiontrack.cpp:47
        process = <optimized out>
        __for_range = <optimized out>
        __for_begin = <optimized out>
        __for_end = <optimized out>
        process = <optimized out>
        __for_range = <optimized out>
        __for_begin = <optimized out>
        __for_end = <optimized out>
#2  0x00007fa87db2a42f in QObject::event (this=0x1344020, e=0x1343ae0) at kernel/qobject.cpp:1301
No locals.
#3  0x00007fa87dafe95d in doNotify (event=0x1343ae0, receiver=0x1344020) at kernel/qcoreapplication.cpp:1154
No locals.
#4  QCoreApplication::notify (event=<optimized out>, receiver=<optimized out>, this=<optimized out>) at kernel/qcoreapplication.cpp:1140
No locals.
#5  QCoreApplication::notifyInternal2 (receiver=0x1344020, event=0x1343ae0) at kernel/qcoreapplication.cpp:1064
        selfRequired = <optimized out>
        result = false
        cbdata = {0x1344020, 0x1343ae0, 0x7fff7264957f}
        d = <optimized out>
        threadData = 0x12a2a30
        scopeLevelCounter = {threadData = 0x12a2a30}
#6  0x00007fa87db01921 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=52, data=0x12a2a30) at kernel/qcoreapplication.cpp:1821
        e = 0x1343ae0
        pe = <optimized out>
        r = <optimized out>
        relocker = <optimized out>
        event_deleter = {d = 0x1343ae0}
        locker = {_M_device = 0x12a2a60, _M_owns = false}
        startOffset = 1
        i = @0x7fff726495fc: 1
        cleanup = {receiver = 0x0, event_type = 52, data = 0x12a2a30, exceptionCaught = true}
#7  0x00007fa87db05580 in QCoreApplication::exec () at kernel/qcoreapplication.h:86
        threadData = 0x12a2a30
        eventLoop = {<QObject> = {_vptr.QObject = 0x7fa87ddd1fa8 <vtable for QEventLoop+16>, static staticMetaObject = {d = {superdata = {direct = 0x0}, stringdata = 0x7fa87dcc69c0 <qt_meta_stringdata_QObject>, data = 0x7fa87dcc68a0 <qt_meta_data_QObject>, static_metacall = 0x7fa87db34590 <QObject::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}, d_ptr = {d = 0x130bee0}, static staticQtMetaObject = {d = {superdata = {direct = 0x0}, stringdata = 0x7fa87dcc9960 <qt_meta_stringdata_Qt>, data = 0x7fa87dcc6ae0 <qt_meta_data_Qt>, static_metacall = 0x0, relatedMetaObjects = 0x0, extradata = 0x0}}}, static staticMetaObject = {d = {superdata = {direct = 0x7fa87ddc9820 <QObject::staticMetaObject>}, stringdata = 0x7fa87dcc1140 <qt_meta_stringdata_QEventLoop>, data = 0x7fa87dcc10e0 <qt_meta_data_QEventLoop>, static_metacall = 0x7fa87dafd130 <QEventLoop::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}}
        returnCode = 0
#8  0x0000000000411def in main (argc=2, argv=0x7fff72649818) at /snip/kde/src/kde/workspace/plasma-workspace/startkde/plasma-session/main.cpp:16
        app = {<QObject> = {_vptr.QObject = 0x7fa87ddd20d0 <vtable for QCoreApplication+16>, static staticMetaObject = {d = {superdata = {direct = 0x0}, stringdata = 0x7fa87dcc69c0 <qt_meta_stringdata_QObject>, data = 0x7fa87dcc68a0 <qt_meta_data_QObject>, static_metacall = 0x7fa87db34590 <QObject::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}, d_ptr = {d = 0x12db420}, static staticQtMetaObject = {d = {superdata = {direct = 0x0}, stringdata = 0x7fa87dcc9960 <qt_meta_stringdata_Qt>, data = 0x7fa87dcc6ae0 <qt_meta_data_Qt>, static_metacall = 0x0, relatedMetaObjects = 0x0, extradata = 0x0}}}, static staticMetaObject = {d = {superdata = {direct = 0x7fa87ddc9820 <QObject::staticMetaObject>}, stringdata = 0x7fa87dcc1840 <qt_meta_stringdata_QCoreApplication>, data = 0x7fa87dcc1720 <qt_meta_data_QCoreApplication>, static_metacall = 0x7fa87db001a0 <QCoreApplication::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}, static self = 0x7fff726496f0}
```

```
list
39          }
40          for (auto process : std::as_const(m_processes)) {
41              if (process->state() == QProcess::Running && !process->waitForFinished(500)) {
42                  process->kill();
43              } else {
44                  delete process;
45              }
46          }
47      }
```
Comment 1 David Edmundson 2022-06-17 17:20:05 UTC
*** Bug 454159 has been marked as a duplicate of this bug. ***
Comment 2 Nate Graham 2022-06-17 20:35:36 UTC

*** This bug has been marked as a duplicate of bug 454159 ***