GNOME Bugzilla – Bug 782690
gnome shell crashed on opening evolution.
Last modified: 2021-07-05 14:16:08 UTC
I closed every open application. The I reopened evolution. while the spinner was showing in the top bar, gnome-shell crashed. GNU gdb (GDB) 7.12.1 Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/bin/gnome-shell...done. [New LWP 30525] [New LWP 3849] [New LWP 3842] [New LWP 3852] [New LWP 3843] [New LWP 3853] [New LWP 3850] [New LWP 19017] [New LWP 3854] [New LWP 3856] [New LWP 18888] [New LWP 3851] [New LWP 3848] [New LWP 3855] [New LWP 3844] [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". Core was generated by `/usr/bin/gnome-shell'. Program terminated with signal SIGTRAP, Trace/breakpoint trap.
+ Trace 237483
Thread 11 (Thread 0x7fc88f1ee700 (LWP 18888))
Thread 8 (Thread 0x7fc89f7fe700 (LWP 19017))
Thread 1 (Thread 0x7fc91b78d000 (LWP 30525))
According to the backtrace, it seems to have aborted due too many files being open (Creating pipes for GWakeup: Too many open files). Was this using Wayland or X11? Would be interesting to have know the content of /proc/<pid-of-gnome-shell>/fd/ before it crashed, but for that you'd have to always have a gdb attached stopping gnome-shell from exiting when crashing. That is quite annoying since it means you need a secondary computer to recover from a crash, since it'd now have frozen instead.
X11. It was after ~20 hours of running the same gnome-shell instance. I had many open applications. I usually don't stay logged onto the same session that long. What I can do is ssh from my android phone tomorrow around 20 hours from now and attach gdb to the gnome-shell process, close everything and reopen, and see if the crash happens again. Is the FD leak supposedly happening gradually or suddenly when I closed everything? Either way, I will try to replicate what I was doing and hopefully have useful information tomorrow.
Fd leaks are AFAIK more prominent on Wayland, as each client will have a unique fd, and buffers will be transferred using fds, clipboard via fds, etc. Running out of fds on X11 seems odd. It could either be a gradual increase of open files, or a sudden spike; hard to say. You could observe the number of open files, using "ls /proc/<pid-of-gnome-shell>/fd | wc -l" and see if there is anything increase, but otherwise, using gdb to inhibit the application from exiting, while before quitting gdb checking the open fds (using "ls -l") should at least give us some hint. That is assuming you can even reproduce the same crash. Have you ever hit it before? The output of ulimit -n is also relevant.
Yes, I recall seeing the "Creating pipes for GWakeup: Too many open files" crash once around two months ago. ulimit -n says 1024.
Ok, I found the chat log from when this last happened. https://pastebin.com/raw/2hq6cCS8 It looks like this also happened on starting evolution which was refreshing the items on the calendar.
This could potentially be the same issue (or at least similar) to that observed in bug 782688, which also is triggered by too many open files.
(It's in the same copr, or https://copr-be.cloud.fedoraproject.org/results/jadahl/gnomebug-782688/fedora-26-x86_64/00555141-libxkbcommon/ if you do it manuall).
Sorry, that comment should have gone to the other bug report.
(In reply to Jonas Ådahl from comment #8) > Sorry, that comment should have gone to the other bug report. I installed the patch attached in that bug report.
Think this is the same issue affecting me, can you confirm? GNOME Shell 3.26.2 4.14.13-1-ARCH evolution 3.26.4 ``` jan. 18 15:11:03 idea systemd-coredump[13444]: Process 23666 (gnome-shell) of user 1000 dumped core. Stack trace of thread 23666: #0 0x00007fad3049ac50 raise (libpthread.so.0) #1 0x0000563aa6bb9562 n/a (gnome-shell) #2 0x00007fad3049adb0 __restore_rt (libpthread.so.0) #3 0x00007fad2f3c09b2 n/a (libglib-2.0.so.0) #4 0x00007fad2f3c1a5d g_log_default_handler (libglib-2.0.so.0) #5 0x0000563aa6bb9448 n/a (gnome-shell) #6 0x00007fad2f3c1cff g_logv (libglib-2.0.so.0) #7 0x00007fad2f3c1e80 g_log (libglib-2.0.so.0) #8 0x00007fad2f3c0633 g_malloc0 (libglib-2.0.so.0) #9 0x00007fad2d3fb131 n/a (libst-1.0.so) #10 0x00007fad2d3fd324 _st_create_shadow_pipeline (libst-1.0.so) #11 0x00007fad2d3fd74d _st_create_shadow_pipeline_from_actor (libst-1.0.so) #12 0x00007fad2d3fd7ae n/a (libst-1.0.so) #13 0x00007fad2d3fd83f n/a (libst-1.0.so) #14 0x00007fad2d408298 n/a (libst-1.0.so) #15 0x00007fad2f694db1 n/a (libgobject-2.0.so.0) #16 0x00007fad2f6b1af9 g_signal_emit_valist (libgobject-2.0.so.0) #17 0x00007fad2f6b2240 g_signal_emit (libgobject-2.0.so.0) #18 0x00007fad2d41fe8e n/a (libst-1.0.so) #19 0x00007fad2d42012b st_widget_style_changed (libst-1.0.so) #20 0x00007fad2d42116b n/a (libst-1.0.so) #21 0x00007fad2f694db1 n/a (libgobject-2.0.so.0) #22 0x00007fad2f6b1af9 g_signal_emit_valist (libgobject-2.0.so.0) #23 0x00007fad2f6b2240 g_signal_emit (libgobject-2.0.so.0) #24 0x00007fad2d41fe8e n/a (libst-1.0.so) #25 0x00007fad2d42012b st_widget_style_changed (libst-1.0.so) #26 0x00007fad2d42116b n/a (libst-1.0.so) #27 0x00007fad2f694b72 g_closure_invoke (libgobject-2.0.so.0) #28 0x00007fad2f6a85aa n/a (libgobject-2.0.so.0) #29 0x00007fad2f6b1806 g_signal_emit_valist (libgobject-2.0.so.0) #30 0x00007fad2f6b2240 g_signal_emit (libgobject-2.0.so.0) #31 0x00007fad2d41fe8e n/a (libst-1.0.so) #32 0x00007fad2d42012b st_widget_style_changed (libst-1.0.so) #33 0x00007fad2d42116b n/a (libst-1.0.so) #34 0x00007fad2f694b72 g_closure_invoke (libgobject-2.0.so.0) #35 0x00007fad2f6a85aa n/a (libgobject-2.0.so.0) #36 0x00007fad2f6b1806 g_signal_emit_valist (libgobject-2.0.so.0) #37 0x00007fad2f6b2240 g_signal_emit (libgobject-2.0.so.0) #38 0x00007fad2d41fe8e n/a (libst-1.0.so) #39 0x00007fad2d42012b st_widget_style_changed (libst-1.0.so) #40 0x00007fad2d42116b n/a (libst-1.0.so) #41 0x00007fad2f694db1 n/a (libgobject-2.0.so.0) #42 0x00007fad2f6b1af9 g_signal_emit_valist (libgobject-2.0.so.0) #43 0x00007fad2f6b2240 g_signal_emit (libgobject-2.0.so.0) #44 0x00007fad2d41fe8e n/a (libst-1.0.so) #45 0x00007fad2d42012b st_widget_style_changed (libst-1.0.so) #46 0x00007fad2d42116b n/a (libst-1.0.so) #47 0x00007fad2f694db1 n/a (libgobject-2.0.so.0) #48 0x00007fad2f6b1af9 g_signal_emit_valist (libgobject-2.0.so.0) #49 0x00007fad2f6b2240 g_signal_emit (libgobject-2.0.so.0) #50 0x00007fad2d41fe8e n/a (libst-1.0.so) #51 0x00007fad2d42012b st_widget_style_changed (libst-1.0.so) #52 0x00007fad2d42116b n/a (libst-1.0.so) #53 0x00007fad2f694c5d g_closure_invoke (libgobject-2.0.so.0) #54 0x00007fad2f6a85aa n/a (libgobject-2.0.so.0) #55 0x00007fad2f6b1806 g_signal_emit_valist (libgobject-2.0.so.0) #56 0x00007fad2f6b2240 g_signal_emit (libgobject-2.0.so.0) #57 0x00007fad2d41fe8e n/a (libst-1.0.so) #58 0x00007fad2d42012b st_widget_style_changed (libst-1.0.so) #59 0x00007fad2d420d29 st_widget_add_style_class_name (libst-1.0.so) #60 0x00007fad29b121c8 ffi_call_unix64 (libffi.so.6) #61 0x00007fad29b11c2a ffi_call (libffi.so.6) #62 0x00007fad2e36dcab n/a (libgjs.so.0) #63 0x00007fad2e36f607 n/a (libgjs.so.0) Stack trace of thread 23685: #0 0x00007fad3049639d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0) #1 0x00007fad268b14ad n/a (libmozjs-52.so.0) #2 0x00007fad26ccf59a n/a (libmozjs-52.so.0) #3 0x00007fad26c9b49a n/a (libmozjs-52.so.0) #4 0x00007fad3049008c start_thread (libpthread.so.0) #5 0x00007fad301c7e1f __clone (libc.so.6) Stack trace of thread 23683: #0 0x00007fad3049639d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0) #1 0x00007fad268b14ad n/a (libmozjs-52.so.0) #2 0x00007fad26ccf59a n/a (libmozjs-52.so.0) #3 0x00007fad26c9b49a n/a (libmozjs-52.so.0) #4 0x00007fad3049008c start_thread (libpthread.so.0) #5 0x00007fad301c7e1f __clone (libc.so.6) Stack trace of thread 23688: #0 0x00007fad3049639d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0) #1 0x00007fad268b14ad n/a (libmozjs-52.so.0) #2 0x00007fad26ccf59a n/a (libmozjs-52.so.0) #3 0x00007fad26c9b49a n/a (libmozjs-52.so.0) #4 0x00007fad3049008c start_thread (libpthread.so.0) #5 0x00007fad301c7e1f __clone (libc.so.6) Stack trace of thread 23687: #0 0x00007fad3049639d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0) #1 0x00007fad268b14ad n/a (libmozjs-52.so.0) #2 0x00007fad26ccf59a n/a (libmozjs-52.so.0) #3 0x00007fad26c9b49a n/a (libmozjs-52.so.0) #4 0x00007fad3049008c start_thread (libpthread.so.0) #5 0x00007fad301c7e1f __clone (libc.so.6) Stack trace of thread 23686: #0 0x00007fad3049639d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0) #1 0x00007fad268b14ad n/a (libmozjs-52.so.0) #2 0x00007fad26ccf59a n/a (libmozjs-52.so.0) #3 0x00007fad26c9b49a n/a (libmozjs-52.so.0) #4 0x00007fad3049008c start_thread (libpthread.so.0) #5 0x00007fad301c7e1f __clone (libc.so.6) Stack trace of thread 23692: #0 0x00007fad3049639d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0) #1 0x00007fad268b14ad n/a (libmozjs-52.so.0) #2 0x00007fad26ccf59a n/a (libmozjs-52.so.0) #3 0x00007fad26c9b49a n/a (libmozjs-52.so.0) #4 0x00007fad3049008c start_thread (libpthread.so.0) #5 0x00007fad301c7e1f __clone (libc.so.6) Stack trace of thread 23689: #0 0x00007fad3049639d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0) #1 0x00007fad268b14ad n/a (libmozjs-52.so.0) #2 0x00007fad26ccf59a n/a (libmozjs-52.so.0) #3 0x00007fad26c9b49a n/a (libmozjs-52.so.0) #4 0x00007fad3049008c start_thread (libpthread.so.0) #5 0x00007fad301c7e1f __clone (libc.so.6) Stack trace of thread 23680: #0 0x00007fad301bd91b __poll (libc.so.6) #1 0x00007fad10253773 n/a (libpulse.so.0) #2 0x00007fad10244bd0 pa_mainloop_poll (libpulse.so.0) #3 0x00007fad10245271 pa_mainloop_iterate (libpulse.so.0) #4 0x00007fad10245301 pa_mainloop_run (libpulse.so.0) #5 0x00007fad102536ae n/a (libpulse.so.0) #6 0x00007fad05eaa81c n/a (libpulsecommon-11.1.so) #7 0x00007fad3049008c start_thread (libpthread.so.0) #8 0x00007fad301c7e1f __clone (libc.so.6) Stack trace of thread 23727: #0 0x00007fad301c2819 syscall (libc.so.6) #1 0x00007fad2f401ce1 g_cond_wait (libglib-2.0.so.0) #2 0x00007fad2c973105 n/a (libmutter-cogl-1.so) #3 0x00007fad2f3e329a n/a (libglib-2.0.so.0) #4 0x00007fad3049008c start_thread (libpthread.so.0) #5 0x00007fad301c7e1f __clone (libc.so.6) Stack trace of thread 23691: #0 0x00007fad3049639d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0) #1 0x00007fad268b14ad n/a (libmozjs-52.so.0) #2 0x00007fad26ccf59a n/a (libmozjs-52.so.0) #3 0x00007fad26c9b49a n/a (libmozjs-52.so.0) #4 0x00007fad3049008c start_thread (libpthread.so.0) #5 0x00007fad301c7e1f __clone (libc.so.6) Stack trace of thread 23670: #0 0x00007fad301bd91b __poll (libc.so.6) #1 0x00007fad2f3bb023 n/a (libglib-2.0.so.0) #2 0x00007fad2f3bb13e g_main_context_iteration (libglib-2.0.so.0) #3 0x00007fad2f3bb192 n/a (libglib-2.0.so.0) #4 0x00007fad2f3e329a n/a (libglib-2.0.so.0) #5 0x00007fad3049008c start_thread (libpthread.so.0) #6 0x00007fad301c7e1f __clone (libc.so.6) Stack trace of thread 23672: #0 0x00007fad301bd91b __poll (libc.so.6) #1 0x00007fad2f3bb023 n/a (libglib-2.0.so.0) #2 0x00007fad2f3bb3e2 g_main_loop_run (libglib-2.0.so.0) #3 0x00007fad2f9af6d8 n/a (libgio-2.0.so.0) #4 0x00007fad2f3e329a n/a (libglib-2.0.so.0) #5 0x00007fad3049008c start_thread (libpthread.so.0) #6 0x00007fad301c7e1f __clone (libc.so.6) Stack trace of thread 23682: #0 0x00007fad3049639d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0) #1 0x00007fad268b14ad n/a (libmozjs-52.so.0) #2 0x00007fad26ccf59a n/a (libmozjs-52.so.0) #3 0x00007fad26c9b49a n/a (libmozjs-52.so.0) #4 0x00007fad3049008c start_thread (libpthread.so.0) #5 0x00007fad301c7e1f __clone (libc.so.6) Stack trace of thread 23671: #0 0x00007fad301bd91b __poll (libc.so.6) #1 0x00007fad2f3bb023 n/a (libglib-2.0.so.0) #2 0x00007fad2f3bb13e g_main_context_iteration (libglib-2.0.so.0) #3 0x00007fad18b6ab0e n/a (libdconfsettings.so) #4 0x00007fad2f3e329a n/a (libglib-2.0.so.0) #5 0x00007fad3049008c start_thread (libpthread.so.0) #6 0x00007fad301c7e1f __clone (libc.so.6) Stack trace of thread 13425: #0 0x00007fad301c2819 syscall (libc.so.6) #1 0x00007fad2f401dfd g_cond_wait_until (libglib-2.0.so.0) #2 0x00007fad2f38e753 n/a (libglib-2.0.so.0) #3 0x00007fad2f38ed3e g_async_queue_timeout_pop (libglib-2.0.so.0) #4 0x00007fad2f3e3db1 n/a (libglib-2.0.so.0) #5 0x00007fad2f3e329a n/a (libglib-2.0.so.0) #6 0x00007fad3049008c start_thread (libpthread.so.0) #7 0x00007fad301c7e1f __clone (libc.so.6) Stack trace of thread 23681: #0 0x00007fad3049639d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0) #1 0x00007fad268b14ad n/a (libmozjs-52.so.0) #2 0x00007fad26ccf59a n/a (libmozjs-52.so.0) #3 0x00007fad26c9b49a n/a (libmozjs-52.so.0) #4 0x00007fad3049008c start_thread (libpthread.so.0) #5 0x00007fad301c7e1f __clone (libc.so.6) Stack trace of thread 23690: #0 0x00007fad3049639d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0) #1 0x00007fad268b14ad n/a (libmozjs-52.so.0) #2 0x00007fad26ccf59a n/a (libmozjs-52.so.0) #3 0x00007fad26c9b49a n/a (libmozjs-52.so.0) #4 0x00007fad3049008c start_thread (libpthread.so.0) #5 0x00007fad301c7e1f __clone (libc.so.6) Stack trace of thread 23684: #0 0x00007fad3049639d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0) #1 0x00007fad268b14ad n/a (libmozjs-52.so.0) #2 0x00007fad26ccf59a n/a (libmozjs-52.so.0) #3 0x00007fad26c9b49a n/a (libmozjs-52.so.0) #4 0x00007fad3049008c start_thread (libpthread.so.0) #5 0x00007fad301c7e1f __clone (libc.so.6) jan. 18 15:11:03 idea gnome-shell[13446]: JS WARNING: [resource:///org/gnome/shell/ui/osdMonitorLabeler.js 59]: reference to undefined property "MetaDBusDisplayConfigSkeleton" jan. 18 15:11:03 idea gnome-shell[13446]: JS WARNING: [resource:///org/gnome/shell/ui/layout.js 221]: reference to undefined property "MetaWindowGroup" jan. 18 15:11:03 idea gnome-shell[13446]: JS WARNING: [resource:///org/gnome/shell/ui/main.js 315]: reference to undefined property "MetaStage" ```
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/ Thank you for your understanding and your help.