Bug 396303 - Seg fault on client close with (large) data offering
Summary: Seg fault on client close with (large) data offering
Status: RESOLVED WORKSFORME
Alias: None
Product: kwayland
Classification: Frameworks and Libraries
Component: server (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: Martin Flöser
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-08 07:19 UTC by Roman Gilg
Modified: 2021-01-16 04:37 UTC (History)
0 users

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


Attachments
KWin backtrace (4.95 KB, text/plain)
2018-07-08 07:19 UTC, Roman Gilg
Details
org_kde_kwin_xclipboard_syncer backtrace (5.79 KB, text/plain)
2018-07-08 07:21 UTC, Roman Gilg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Gilg 2018-07-08 07:19:36 UTC
Created attachment 113825 [details]
KWin backtrace

KWin session crashed. I had a rather large text paste as a data offering while this happened.

The clipboard syncer helper crashed as well.
Comment 1 Roman Gilg 2018-07-08 07:21:16 UTC
Created attachment 113826 [details]
org_kde_kwin_xclipboard_syncer backtrace
Comment 2 Christoph Feck 2018-07-30 23:12:17 UTC
Backtrace from comment #0:

Core was generated by `/usr/bin/kwin_wayland --xwayland --libinput --exit-with-session=/usr/lib/x86_64'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f069396960c in QScopedPointer<KWayland::Server::Resource::Private, QScopedPointerDeleter<KWayland::Server::Resource::Private> >::data (this=0x10) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qscopedpointer.h:140
140             return d;
[Current thread is 1 (Thread 0x7f0694ffe940 (LWP 12181))]
(gdb) bt
#0  0x00007f069396960c in QScopedPointer<KWayland::Server::Resource::Private, QScopedPointerDeleter<KWayland::Server::Resource::Private> >::data (this=0x10) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qscopedpointer.h:140
#1  0x00007f0693972d76 in KWayland::Server::DataSourceInterface::d_func (this=0x0) at /home/roman/dev/kde/src/frameworks/kwayland/src/server/datasource_interface.cpp:161
#2  0x00007f0693972c3a in KWayland::Server::DataSourceInterface::requestData (this=0x0, mimeType=..., fd=52) at /home/roman/dev/kde/src/frameworks/kwayland/src/server/datasource_interface.cpp:130
#3  0x00007f069397151d in KWayland::Server::DataOfferInterface::Private::receive (this=0x31ec850, mimeType=..., fd=52) at /home/roman/dev/kde/src/frameworks/kwayland/src/server/dataoffer_interface.cpp:72
#4  0x00007f06939714cd in KWayland::Server::DataOfferInterface::Private::receiveCallback (client=0x1dd3cf0, resource=0x2b65830, mimeType=0x305d68c "text/plain", fd=52) at /home/roman/dev/kde/src/frameworks/kwayland/src/server/dataoffer_interface.cpp:67
#5  0x00007f0684457e40 in ffi_call_unix64 () from /usr/lib/x86_64-linux-gnu/libffi.so.6
#6  0x00007f06844578ab in ffi_call () from /usr/lib/x86_64-linux-gnu/libffi.so.6
#7  0x00007f068a8afdb4 in wl_closure_invoke (closure=0x305d5b0, flags=<optimized out>, target=0x2b65830, opcode=1, data=0x1dd3cf0) at /home/roman/dev/gfx/wayland/src/wayland/src/connection.c:996
#8  0x00007f068a8ac867 in wl_client_connection_data (fd=<optimized out>, mask=<optimized out>, data=0x1dd3cf0) at /home/roman/dev/gfx/wayland/src/wayland/src/wayland-server.c:420
#9  0x00007f068a8ade22 in wl_event_loop_dispatch (loop=0x1c91450, timeout=<optimized out>) at /home/roman/dev/gfx/wayland/src/wayland/src/event-loop.c:641
#10 0x00007f0693973dff in KWayland::Server::Display::Private::dispatch (this=0x1c91550) at /home/roman/dev/kde/src/frameworks/kwayland/src/server/display.cpp:141
#11 0x00007f0693973a25 in KWayland::Server::Display::Private::<lambda()>::operator()(void) const (__closure=0x1c91d90) at /home/roman/dev/kde/src/frameworks/kwayland/src/server/display.cpp:109
#12 0x00007f069397b4dd in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, KWayland::Server::Display::Private::installSocketNotifier()::<lambda()> >::call(KWayland::Server::Display::Private::<lambda()> &, void **) (f=..., arg=0x7ffefba58910) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:128
#13 0x00007f069397aec9 in QtPrivate::Functor<KWayland::Server::Display::Private::installSocketNotifier()::<lambda()>, 0>::call<QtPrivate::List<>, void>(KWayland::Server::Display::Private::<lambda()> &, void *, void **) (f=..., arg=0x7ffefba58910) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:238
#14 0x00007f0693979ac1 in QtPrivate::QFunctorSlotObject<KWayland::Server::Display::Private::installSocketNotifier()::<lambda()>, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=1, this_=0x1c91d80, r=0x1c9cbc0, a=0x7ffefba58910, ret=0x0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:421
#15 0x00007f06924f32a6 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007f06924ff538 in QSocketNotifier::activated(int, QSocketNotifier::QPrivateSignal) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007f06924ff8eb in QSocketNotifier::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007f0692aa939c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007f0692ab0ab0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007f06924c6228 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007f0692519e8d in QEventDispatcherUNIXPrivate::activateSocketNotifiers() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007f069251a24d in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007f067c2030cd in QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/KWinQpaPlugin.so
#24 0x00007f06924c45ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#25 0x00007f06924cd6c4 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#26 0x000000000040ef45 in main ()
Comment 3 Justin Zobel 2020-12-17 05:38:28 UTC
Thank you for the crash report.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 4 Bug Janitor Service 2021-01-01 04:38:39 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2021-01-16 04:37:25 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!