cheako@debian:~$ gdb gnome-shell
GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
Copyright (C) 2014 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 "i586-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 gnome-shell...Reading symbols from /usr/lib/debug/.build-id/55/18516911c3517e9fa51c843acd933c660d8577.debug...Dwarf Error: wrong version in compilation unit header (is 6252, should be 2, 3, or 4) [in module /usr/lib/debug/.build-id/55/18516911c3517e9fa51c843acd933c660d8577.debug]
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(gdb) run --wayland --display-server
Starting program: /usr/bin/gnome-shell --wayland --display-server
Dwarf Error: wrong version in compilation unit header (is 5740, should be 2, 3, or 4) [in module /usr/lib/debug/.build-id/43/3f117f79832ac61991af3d4ada6479371a78f7.debug]
Dwarf Error: wrong version in compilation unit header (is -30918, should be 2, 3, or 4) [in module /usr/lib/debug/.build-id/5b/29574d64dfe0fb70449b93f25b9d8cfce089f1.debug]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/i686/cmov/libthread_db.so.1".
Dwarf Error: wrong version in compilation unit header (is 30107, should be 2, 3, or 4) [in module /usr/lib/debug/.build-id/23/bc61e5e442b11ad0ce536ab49ecd234e86b748.debug]
[New Thread 0xf28f7b40 (LWP 7390)]
[New Thread 0xf1effb40 (LWP 7391)]
[New Thread 0xf14ffb40 (LWP 7392)]
[New Thread 0xf0490b40 (LWP 7393)]

(gnome-shell:7385): mutter-WARNING **: failed to bind to @/tmp/.X11-unix/X0: Address already in use
glamor: EGL version 1.4 (DRI2):
Window manager warning: Failed to set environment variable DISPLAY for gnome-session: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.gnome.SessionManager" does not exist
Window manager warning: Failed to set environment variable WAYLAND_DISPLAY for gnome-session: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.gnome.SessionManager" does not exist
[New Thread 0xebafeb40 (LWP 7419)]
[New Thread 0xeb0ffb40 (LWP 7420)]
[New Thread 0xea6ffb40 (LWP 7421)]
Gjs-Message: JS LOG: Failed to launch ibus-daemon: Failed to execute child process "ibus-daemon" (No such file or directory)
[New Thread 0xe510db40 (LWP 7482)]

(gnome-shell:7385): Gjs-WARNING **: JS ERROR: could not get remote objects for service org.gnome.SettingsDaemon.Smartcard path /org/gnome/SettingsDaemon/Smartcard: Gio.DBusError: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SettingsDaemon.Smartcard was not provided by any .service files
_proxyInvoker/asyncCallback@resource:///org/gnome/gjs/modules/overrides/Gio.js:83

[New Thread 0xe3589b40 (LWP 7491)]
[New Thread 0xe2d88b40 (LWP 7493)]
[Thread 0xe3589b40 (LWP 7491) exited]
[Thread 0xf14ffb40 (LWP 7392) exited]
[Thread 0xe510db40 (LWP 7482) exited]
[New Thread 0xe510db40 (LWP 7511)]
[New Thread 0xf14ffb40 (LWP 7513)]
[Thread 0xe510db40 (LWP 7511) exited]
[Thread 0xe2d88b40 (LWP 7493) exited]
[New Thread 0xe2d88b40 (LWP 7515)]
[New Thread 0xe510db40 (LWP 7516)]
[New Thread 0xe3589b40 (LWP 7517)]
[New Thread 0xe0bd0b40 (LWP 7518)]
[New Thread 0xe03cfb40 (LWP 7519)]
[Thread 0xe03cfb40 (LWP 7519) exited]
[Thread 0xe2d88b40 (LWP 7515) exited]
[Thread 0xe3589b40 (LWP 7517) exited]
[Thread 0xe510db40 (LWP 7516) exited]
[Thread 0xe0bd0b40 (LWP 7518) exited]
[New Thread 0xe0bd0b40 (LWP 7522)]
[Thread 0xe0bd0b40 (LWP 7522) exited]
Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0xa00014 (0 A.D.)
[Thread 0xf14ffb40 (LWP 7513) exited]
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Compat map for group 2 redefined
>                   Using new definition
> Warning:          Compat map for group 3 redefined
>                   Using new definition
> Warning:          Compat map for group 4 redefined
>                   Using new definition
Errors from xkbcomp are not fatal to the X server

(gnome-shell:7385): GLib-GObject-WARNING **: value "nan" of type 'gdouble' is invalid or out of range for property 'scale-x' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "nan" of type 'gdouble' is invalid or out of range for property 'scale-y' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-x' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-y' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-x' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-y' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-x' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-y' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-x' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-y' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-x' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-y' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-x' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-y' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-x' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-y' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-x' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-y' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-x' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-y' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-x' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-y' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-x' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-y' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-x' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-y' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-x' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-y' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-x' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-y' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-x' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-y' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-x' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-y' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "nan" of type 'gdouble' is invalid or out of range for property 'scale-x' of type 'gdouble'

(gnome-shell:7385): GLib-GObject-WARNING **: value "nan" of type 'gdouble' is invalid or out of range for property 'scale-y' of type 'gdouble'
Window manager warning: Failed to allocate HW cursor buffer

Program received signal SIGSEGV, Segmentation fault.
has_valid_cursor_sprite_gbm_bo (cursor_sprite=0x97787b0) at backends/native/meta-cursor-renderer-native.c:261
261     backends/native/meta-cursor-renderer-native.c: No such file or directory.
(gdb) bt
#0  has_valid_cursor_sprite_gbm_bo (cursor_sprite=0x97787b0) at backends/native/meta-cursor-renderer-native.c:261
#1  should_have_hw_cursor (renderer=0x8221d68, cursor_sprite=0x97787b0) at backends/native/meta-cursor-renderer-native.c:292
#2  meta_cursor_renderer_native_update_cursor (renderer=0x8221d68, cursor_sprite=0x97787b0) at backends/native/meta-cursor-renderer-native.c:360
#3  0xf78a03d9 in update_cursor (renderer=renderer@entry=0x8221d68, cursor_sprite=cursor_sprite@entry=0x97787b0) at backends/meta-cursor-renderer.c:132
#4  0xf78a054a in meta_cursor_renderer_set_cursor (renderer=0x8221d68, cursor_sprite=0x97787b0) at backends/meta-cursor-renderer.c:164
#5  0xf789faae in update_displayed_cursor (tracker=0x80875b8) at backends/meta-cursor-tracker.c:76
#6  sync_cursor (tracker=tracker@entry=0x80875b8) at backends/meta-cursor-tracker.c:91
#7  0xf789fe94 in set_window_cursor (cursor_sprite=0x97787b0, has_cursor=1, tracker=0x80875b8) at backends/meta-cursor-tracker.c:166
#8  meta_cursor_tracker_set_window_cursor (tracker=0x80875b8, cursor_sprite=0x97787b0) at backends/meta-cursor-tracker.c:329
#9  0xf790aaf3 in meta_wayland_pointer_update_cursor_surface (pointer=<optimized out>, pointer=<optimized out>) at wayland/meta-wayland-pointer.c:762
#10 0xf58e6a82 in ffi_call_SYSV () from /usr/lib/i386-linux-gnu/libffi.so.6
#11 0xf58e6556 in ffi_call () from /usr/lib/i386-linux-gnu/libffi.so.6
#12 0xf55b7696 in ?? () from /usr/lib/i386-linux-gnu/libwayland-server.so.0
#13 0xf55b3991 in ?? () from /usr/lib/i386-linux-gnu/libwayland-server.so.0
#14 0xf55b51a7 in ?? () from /usr/lib/i386-linux-gnu/libwayland-server.so.0
#15 0xf55b59ea in wl_event_loop_dispatch () from /usr/lib/i386-linux-gnu/libwayland-server.so.0
#16 0xf7903e25 in wayland_event_source_dispatch (base=0x831dd80, callback=0x0, data=0x0) at wayland/meta-wayland.c:85
#17 0xf6ba5e59 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#18 0xf6ba60f9 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#19 0xf6ba64a9 in g_main_loop_run () from /lib/i386-linux-gnu/libglib-2.0.so.0
#20 0xf78d47df in meta_run () at core/main.c:437
#21 0x08049a1c in main ()
(gdb) kill
Kill the program being debugged? (y or n)
P