Bug 377962

Summary: kate crashes after closing a file with long lines / wayland [Backtrace with debug symbols attached]
Product: [Applications] kate Reporter: Kurt Seebauer <kurt_seebauer>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Kurt Seebauer 2017-03-22 22:17:42 UTC
Application: kate (16.12.3)

Qt Version: 5.7.1
Frameworks Version: 5.31.0
Operating System: Linux 4.10.3-1-default x86_64
Distribution: "openSUSE Tumbleweed"

-- Information about the crash:
- What I was doing when the application crashed:
test driving kde wayland again, as I do once in a while. This time kate crashed and the backtrace seems to indicate it's wayland-related. I opened a file with long lines (22275 chars max), clicked "Temporarily raise limit and reload file", scrolled around. 
After clicking close (x-symbol) kate crashes. 

Crash is reproducable.

Any more info I can provide?

-- Backtrace:
Application: Kate (kate), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f4d584f4ec0 (LWP 7360))]

Thread 7 (Thread 0x7f4d29b10700 (LWP 7366)):
#0  0x00007f4d4f2429a6 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x1267068) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x1267018, cond=0x1267040) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x1267040, mutex=0x1267018) at pthread_cond_wait.c:655
#3  0x00007f4d331a780b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f4d331a7537 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f4d4f23c537 in start_thread (arg=0x7f4d29b10700) at pthread_create.c:456
#6  0x00007f4d52bdc04f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 6 (Thread 0x7f4d2a311700 (LWP 7365)):
#0  0x00007f4d4f2429a6 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x1267068) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x1267018, cond=0x1267040) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x1267040, mutex=0x1267018) at pthread_cond_wait.c:655
#3  0x00007f4d331a780b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f4d331a7537 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f4d4f23c537 in start_thread (arg=0x7f4d2a311700) at pthread_create.c:456
#6  0x00007f4d52bdc04f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 5 (Thread 0x7f4d2ab12700 (LWP 7364)):
#0  0x00007f4d4f2429a6 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x1267068) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x1267018, cond=0x1267040) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x1267040, mutex=0x1267018) at pthread_cond_wait.c:655
#3  0x00007f4d331a780b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f4d331a7537 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f4d4f23c537 in start_thread (arg=0x7f4d2ab12700) at pthread_create.c:456
#6  0x00007f4d52bdc04f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 4 (Thread 0x7f4d2b313700 (LWP 7363)):
#0  0x00007f4d4f2429a6 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x1267068) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x1267018, cond=0x1267040) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x1267040, mutex=0x1267018) at pthread_cond_wait.c:655
#3  0x00007f4d331a780b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f4d331a7537 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f4d4f23c537 in start_thread (arg=0x7f4d2b313700) at pthread_create.c:456
#6  0x00007f4d52bdc04f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 3 (Thread 0x7f4d2bd4e700 (LWP 7362)):
#0  0x00007f4d4f2429a6 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x1525ac0) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x1525a70, cond=0x1525a98) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x1525a98, mutex=0x1525a70) at pthread_cond_wait.c:655
#3  0x00007f4d331a780b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f4d331a7537 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f4d4f23c537 in start_thread (arg=0x7f4d2bd4e700) at pthread_create.c:456
#6  0x00007f4d52bdc04f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 2 (Thread 0x7f4d464c2700 (LWP 7361)):
#0  0x00007f4d52bd27bd in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f4d4d2ea896 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f4d4d2ea9ac in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f4d5380818b in QEventDispatcherGlib::processEvents (this=0x7f4d400008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f4d537b1aea in QEventLoop::exec (this=this@entry=0x7f4d464c1c80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#5  0x00007f4d535df813 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:507
#6  0x00007f4d53c1a385 in ?? () from /usr/lib64/libQt5DBus.so.5
#7  0x00007f4d535e44c8 in QThreadPrivate::start (arg=0x7f4d53e8bd20) at thread/qthread_unix.cpp:368
#8  0x00007f4d4f23c537 in start_thread (arg=0x7f4d464c2700) at pthread_create.c:456
#9  0x00007f4d52bdc04f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 1 (Thread 0x7f4d584f4ec0 (LWP 7360)):
[KCrash Handler]
#6  0x00007f4d3f690059 in wl_map_insert_at (map=<optimized out>, flags=flags@entry=0, i=<optimized out>, data=<optimized out>) at src/wayland-util.c:249
#7  0x00007f4d3f68c22e in proxy_destroy (proxy=0xf90320) at src/wayland-client.c:411
#8  wl_proxy_destroy (proxy=0xf90320) at src/wayland-client.c:442
#9  0x00007f4d3e4ae415 in wl_registry_destroy (wl_registry=<optimized out>) at /usr/include/wayland/wayland-client-protocol.h:1065
#10 KWayland::Client::WaylandPointer<wl_registry, wl_registry_destroy>::release (this=0xf9c520, this=0xf9c520) at /usr/src/debug/kwayland-5.31.0/src/client/wayland_pointer_p.h:53
#11 KWayland::Client::Registry::release (this=this@entry=0xf1d1d0) at /usr/src/debug/kwayland-5.31.0/src/client/registry.cpp:358
#12 0x00007f4d3e4ae43c in KWayland::Client::Registry::~Registry (this=0xf1d1d0, __in_chrg=<optimized out>) at /usr/src/debug/kwayland-5.31.0/src/client/registry.cpp:353
#13 0x00007f4d3e4ae4d9 in KWayland::Client::Registry::~Registry (this=0xf1d1d0, __in_chrg=<optimized out>) at /usr/src/debug/kwayland-5.31.0/src/client/registry.cpp:354
#14 0x00007f4d537ddf31 in QObjectPrivate::deleteChildren (this=this@entry=0xf99080) at kernel/qobject.cpp:1970
#15 0x00007f4d537e72bf in QObject::~QObject (this=<optimized out>, __in_chrg=<optimized out>) at kernel/qobject.cpp:1041
#16 0x00007f4d28c567e3 in WaylandIntegration::~WaylandIntegration (this=<optimized out>, __in_chrg=<optimized out>) at /usr/src/debug/kwayland-integration-5.9.3/src/windowsystem/waylandintegration.cpp:51
#17 WaylandIntegrationSingleton::~WaylandIntegrationSingleton (this=<optimized out>, __in_chrg=<optimized out>) at /usr/src/debug/kwayland-integration-5.9.3/src/windowsystem/waylandintegration.cpp:37
#18 (anonymous namespace)::Q_QGS_privateWaylandIntegrationSelf::Holder::~Holder (this=<optimized out>, __in_chrg=<optimized out>) at /usr/src/debug/kwayland-integration-5.9.3/src/windowsystem/waylandintegration.cpp:43
#19 0x00007f4d52b26c50 in __run_exit_handlers (status=0, listp=0x7f4d52e8e5b8 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:83
#20 0x00007f4d52b26caa in __GI_exit (status=<optimized out>) at exit.c:105
#21 0x00007f4d52b0f548 in __libc_start_main (main=0x428770 <main(int, char**)>, argc=3, argv=0x7fffda9dd548, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffda9dd538) at ../csu/libc-start.c:329
#22 0x000000000042c40a in _start () at ../sysdeps/x86_64/start.S:120

Reported using DrKonqi
Comment 1 Kurt Seebauer 2017-03-22 22:34:14 UTC
ok, forget about the long lines and even about kate. Closed dolphin and the same thing happenes:

Thread 1 (Thread 0x7fa696b31140 (LWP 7203)):
[KCrash Handler]
#6  0x00007fa680927059 in wl_map_insert_at (map=<optimized out>, flags=flags@entry=0, i=<optimized out>, data=<optimized out>) at src/wayland-util.c:249
#7  0x00007fa68092322e in proxy_destroy (proxy=0x1bff7f0) at src/wayland-client.c:411
#8  wl_proxy_destroy (proxy=0x1bff7f0) at src/wayland-client.c:442
#9  0x00007fa67fc67415 in wl_registry_destroy (wl_registry=<optimized out>) at /usr/include/wayland/wayland-client-protocol.h:1065
#10 KWayland::Client::WaylandPointer<wl_registry, wl_registry_destroy>::release (this=0x1e82000, this=0x1e82000) at /usr/src/debug/kwayland-5.31.0/src/client/wayland_pointer_p.h:53
#11 KWayland::Client::Registry::release (this=this@entry=0x1e5d750) at /usr/src/debug/kwayland-5.31.0/src/client/registry.cpp:358
#12 0x00007fa67fc6743c in KWayland::Client::Registry::~Registry (this=0x1e5d750, __in_chrg=<optimized out>) at /usr/src/debug/kwayland-5.31.0/src/client/registry.cpp:353
#13 0x00007fa67fc674d9 in KWayland::Client::Registry::~Registry (this=0x1e5d750, __in_chrg=<optimized out>) at /usr/src/debug/kwayland-5.31.0/src/client/registry.cpp:354
#14 0x00007fa690659f31 in QObjectPrivate::deleteChildren (this=this@entry=0x230d5b0) at kernel/qobject.cpp:1970
#15 0x00007fa6906632bf in QObject::~QObject (this=<optimized out>, __in_chrg=<optimized out>) at kernel/qobject.cpp:1041
#16 0x00007fa66836a7e3 in WaylandIntegration::~WaylandIntegration (this=<optimized out>, __in_chrg=<optimized out>) at /usr/src/debug/kwayland-integration-5.9.3/src/windowsystem/waylandintegration.cpp:51
#17 WaylandIntegrationSingleton::~WaylandIntegrationSingleton (this=<optimized out>, __in_chrg=<optimized out>) at /usr/src/debug/kwayland-integration-5.9.3/src/windowsystem/waylandintegration.cpp:37
#18 (anonymous namespace)::Q_QGS_privateWaylandIntegrationSelf::Holder::~Holder (this=<optimized out>, __in_chrg=<optimized out>) at /usr/src/debug/kwayland-integration-5.9.3/src/windowsystem/waylandintegration.cpp:43
#19 0x00007fa69634cc50 in __run_exit_handlers (status=0, listp=0x7fa6966b45b8 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:83
#20 0x00007fa69634ccaa in __GI_exit (status=<optimized out>) at exit.c:105
#21 0x00007fa696335548 in __libc_start_main (main=0x400640, argc=3, argv=0x7ffc16540cd8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffc16540cc8) at ../csu/libc-start.c:329
#22 0x000000000040067a in _start ()

something's seriously broken.
Comment 2 Christoph Feck 2017-03-24 02:32:52 UTC

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