After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 787604 - gnome-shell segfault
gnome-shell segfault
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: overview
3.26.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 788521 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2017-09-12 22:07 UTC by Jura
Modified: 2017-10-04 16:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot (2.80 MB, image/png)
2017-09-12 22:07 UTC, Jura
  Details
gdb.log (1.83 KB, text/plain)
2017-09-13 20:30 UTC, Jura
  Details
another log (66.34 KB, text/x-log)
2017-09-13 20:40 UTC, Jura
  Details
gdb log (10.86 KB, text/plain)
2017-09-15 18:40 UTC, Jura
  Details
gdb.log (10.13 KB, text/plain)
2017-09-19 18:01 UTC, Jura
  Details
gnome-tweak-tool switch (108.89 KB, image/png)
2017-09-19 19:29 UTC, Jura
  Details
first screen (2.96 MB, image/png)
2017-09-19 20:15 UTC, Jura
  Details
second screen (2.96 MB, image/png)
2017-09-19 20:15 UTC, Jura
  Details
gnome-tweak-tool (125.94 KB, image/png)
2017-09-19 21:29 UTC, Jura
  Details
gnome-tweak-tool (168.94 KB, image/png)
2017-09-19 21:51 UTC, Jura
  Details
nativeWindowPlacement: Adjust to overview changes (1.62 KB, patch)
2017-09-19 23:10 UTC, Florian Müllner
committed Details | Review

Description Jura 2017-09-12 22:07:24 UTC
Created attachment 359673 [details]
screenshot

in dmesg:
[   45.045818] gnome-shell[931]: segfault at 80 ip 00007f3def126180 sp 00007fff5d94c1c8 error 4 in libst-1.0.so[7f3def0f2000+52000]

If I click on workspace in overview(see screenshot) gnome-shell segfault.

If I press ctrl+alt+<arrow up>/<arrow down> problem does not occur
Comment 1 Florian Müllner 2017-09-13 10:55:50 UTC
(In reply to Jura from comment #0)
> If I click on workspace in overview(see screenshot) gnome-shell segfault.

This doesn't reproduce the crash here, so you'll have to provide a proper backtrace. If you have coredumpctl enabled, you can use that to retrieve the necessary information, otherwise you can follow https://wiki.gnome.org/Projects/GnomeShell/Debugging to gather the information yourself.

(Please make sure to install debug symbols for relevant components, that is at least mutter and gnome-shell)
Comment 2 Jura 2017-09-13 20:30:55 UTC
Created attachment 359740 [details]
gdb.log
Comment 3 Jura 2017-09-13 20:40:35 UTC
Created attachment 359741 [details]
another log

copied from terminal
Comment 4 Jura 2017-09-15 09:41:26 UTC
any news?
Comment 5 Jonas Ådahl 2017-09-15 09:47:55 UTC
Can you open gdb the same way as before, but also type

bt full

then attach the output as a file here? It seems you uploaded just the top most frame of the backtrace, meaning we can't see where the call came from, just the actual place it crashed.
Comment 6 Jura 2017-09-15 18:40:39 UTC
Created attachment 359872 [details]
gdb log
Comment 7 Jura 2017-09-19 09:55:38 UTC
Any news?
Comment 8 Florian Müllner 2017-09-19 17:31:39 UTC
Not really.

We somehow end up calling st_theme_node_paint_borders() with a paint state that has no theme node set, but it's unclear how we end up there - we should catch that case[0] and make sure the paint state's node is updated.

[0] https://git.gnome.org//browse/gnome-shell/tree/src/st/st-theme-node-drawing.c#n2516


From inspecting the code, I only found one place that looks like it could trigger this, albeit under very suspicious circumstances (we should never dispose a theme node that is still used for painting) - does the following patch help?

diff --git a/src/st/st-theme-node.c b/src/st/st-theme-node.c
index 3739b93b4..746e8e51a 100644
--- a/src/st/st-theme-node.c
+++ b/src/st/st-theme-node.c
@@ -122,6 +122,7 @@ st_theme_node_dispose (GObject *gobject)
                                           on_custom_stylesheets_changed, node);
 
   st_theme_node_paint_state_free (&node->cached_state);
+  node->cached_textures = FALSE;
 
   g_clear_object (&node->theme);
Comment 9 Jura 2017-09-19 18:01:11 UTC
I apply patch, but problem not disappear
Comment 10 Jura 2017-09-19 18:01:49 UTC
Created attachment 360078 [details]
gdb.log
Comment 11 Ray Strode [halfline] 2017-09-19 18:54:54 UTC
So the widget itself is already gibberish by frame 3:

  • #3 st_widget_paint_background
    at ../gnome-shell-3.26.0/src/st/st-widget.c line 459
Note how the allocation is hosed.  Do you have any extensions enabled? I wonder if an extension is destroying the label from the "paint" signal or something like that.
Comment 12 Jura 2017-09-19 19:28:44 UTC
I remove all extensions from ~/.local/share/gnome-shell/extensions and restart gnome-shell - problem not disapper

I disable all default extensions in gnome-tweak-tool - problem not disapper

I turn off switch for all extensions(see screenshot) - problem disapper.

If I turn on this switch and all extensions disabled problem reappears.

P.S. sorry for bad english
Comment 13 Jura 2017-09-19 19:29:30 UTC
Created attachment 360080 [details]
gnome-tweak-tool switch
Comment 14 Ray Strode [halfline] 2017-09-19 20:09:31 UTC
can you

1) start tweak tool
2) turn on the switch, but leave all extensions disabled
3) hit alt-f2
4) type lg <enter>
5) click the "Extensions" word in the upper right corner of the console that comes down
6) hit the print-screen key and wait until the screen flashes from a screenshot being taken
7) hit the escape key
8) upload the screenshot here (should be in ~/Pictures)
Comment 15 Ray Strode [halfline] 2017-09-19 20:10:12 UTC
also, please confirm that after step 2 the problem still happens.
Comment 16 Jura 2017-09-19 20:15:02 UTC
Created attachment 360082 [details]
first screen
Comment 17 Jura 2017-09-19 20:15:26 UTC
Created attachment 360083 [details]
second screen
Comment 18 Jura 2017-09-19 20:18:57 UTC
after step 2 problem still happens.

"Выключено" - translate as disabled
"Включено" - translate as enabled

in gnome-tweak-tool all extensions diabled, but in lg some extensions enabled
Comment 19 Ray Strode [halfline] 2017-09-19 20:50:09 UTC
thanks, so one of the enabled ones is triggering the problem i guess.

For clarity, can you post the output of

$ gsettings get org.gnome.shell enabled-extensions

too?
Comment 21 Florian Müllner 2017-09-19 21:24:27 UTC
Are you using a custom theme?
Comment 22 Jura 2017-09-19 21:29:43 UTC
Created attachment 360086 [details]
gnome-tweak-tool

No. And «users themes» extensions disabled in gnome-tweak-tool
Comment 23 Florian Müllner 2017-09-19 21:45:49 UTC
(In reply to Jura from comment #22)
> And «users themes» extensions disabled in gnome-tweak-tool

Well, according to

(In reply to Jura from comment #18)
> "Включено" - translate as enabled

and

(In reply to Jura from comment #16)
> Created attachment 360082 [details]
> first screen

the extension is enabled.

Can you:

1. Turn off all extensions (one-by-one, not with the master switch)
2. Log out & log in again
3. Try to reproduce the issue
4. Enable the extensions one-by-one until you can reproduce the issue
Comment 24 Jura 2017-09-19 21:51:14 UTC
Created attachment 360088 [details]
gnome-tweak-tool
Comment 25 Jura 2017-09-19 21:52:13 UTC
All extensions disabled in gnome-tweak-tool ;)
But in lg some extensions is enabled.

Is there another way to disable extensions?
Comment 26 Jura 2017-09-19 22:00:44 UTC
https://extensions.gnome.org/local/ - works

After enable "Native Window Placement" problem still happens
Comment 27 Florian Müllner 2017-09-19 23:10:25 UTC
Created attachment 360091 [details] [review]
nativeWindowPlacement: Adjust to overview changes

title._spacing is no longer defined, so we end up with bogus positions
when window-captions-on-top is set to true. Adjust the positioning to
do without that for now, though the whole extension could use a rewrite
to not copy everything-and-the-kitching-sink, or be killed off as yet
another extension from the original random collection that turned out
too expensive to keep dragging along ...
Comment 28 Jura 2017-09-20 05:56:22 UTC
Patch works. Thanks. Problem disapper.
Comment 29 Florian Müllner 2017-10-03 23:09:11 UTC
Attachment 360091 [details] pushed as 530b165 - nativeWindowPlacement: Adjust to overview changes
Comment 30 Florian Müllner 2017-10-04 16:12:10 UTC
*** Bug 788521 has been marked as a duplicate of this bug. ***