gnome-shell exits when I plug in my phone
When I plug my phone in, gnome-shell exits with status 1. If I log in while the phone is attached, gnome-shell immediately exits.
Jan 25 16:28:03 kernel: usb 1-4.4.2: new high-speed USB device number 20 using xhci_hcd
Jan 25 16:28:03 kernel: usb 1-4.4.2: New USB device found, idVendor=22b8, idProduct=2e82
Jan 25 16:28:03 kernel: usb 1-4.4.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 25 16:28:03 kernel: usb 1-4.4.2: Product: MotoG3
Jan 25 16:28:03 kernel: usb 1-4.4.2: Manufacturer: motorola
Jan 25 16:28:03 kernel: usb 1-4.4.2: SerialNumber: ZY222W9MR7
Jan 25 16:28:03 gvfs-gphoto2-vo[26218]: device (null) has no BUSNUM property, ignoring
Jan 25 16:28:03 upowerd[1173]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.4/1-4.4.2
Jan 25 16:28:03 gvfsd[26106]: Device 0 (VID=22b8 and PID=2e82) is a Motorola Moto G (ID2).
Jan 25 16:28:03 upowerd[1173]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.4/1-4.4.2/1-4.4.2:1.0
Jan 25 16:28:03 colord-sane[29679]: [bjnp] create_broadcast_socket: ERROR - bind socket to local address failed - Cannot assign requested address
Jan 25 16:28:03 colord-sane[29679]: [bjnp] create_broadcast_socket: ERROR - bind socket to local address failed - Cannot assign requested address
Jan 25 16:28:03 gvfsd[26106]: Error 1: Get Storage information failed.
Jan 25 16:28:03 gnome-shell[29238]: invalid cast from 'GTask' to 'GSimpleAsyncResult'
Jan 25 16:28:03 gnome-shell[29238]: g_simple_async_result_propagate_error: assertion 'G_IS_SIMPLE_ASYNC_RESULT (simple)' failed
Jan 25 16:28:03 evolution-alarm[29464]: Error reading events from display: Broken pipe
Jan 25 16:28:03 gnome-terminal-[29552]: Error reading events from display: Broken pipe
Jan 25 16:28:03 systemd[25652]: gnome-terminal-server.service: Main process exited, code=exited, status=1/FAILURE
Jan 25 16:28:03 systemd[25652]: gnome-terminal-server.service: Failed with result 'exit-code'.
Jan 25 16:28:03 org.gnome.Shell.desktop[29238]: (EE)
Jan 25 16:28:03 org.gnome.Shell.desktop[29238]: Fatal server error:
Jan 25 16:28:03 org.gnome.Shell.desktop[29238]: (EE) failed to read Wayland events: Broken pipe
Jan 25 16:28:03 org.gnome.Shell.desktop[29238]: (EE)
Jan 25 16:28:03 gnome-session[29204]: gnome-session-binary[29204]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Jan 25 16:28:03 gnome-session-binary[29204]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Jan 25 16:28:03 gnome-session-binary[29204]: Unrecoverable failure in required component org.gnome.Shell.desktop
Jan 25 16:28:03 polkitd(authority=local)[999]: Unregistered Authentication Agent for unix-session:20 (system bus name :1.887, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_GB.UTF-8) (disconnected from bus)
Jan 25 16:28:03 ownCloud.desktop[29473]: ICE default IO error handler doing an exit(), pid = 29473, errno = 11
Jan 25 16:28:03 pulseaudio[29166]: ICE default IO error handler doing an exit(), pid = 29166, errno = 11
Jan 25 16:28:03 gsd-rfkill[29294]: g_object_notify: object class 'CcRfkillGlib' has no property named 'kernel-noinput'
Jan 25 16:28:03 systemd[25652]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Jan 25 16:28:03 systemd[25652]: pulseaudio.service: Failed with result 'exit-code'.
Jan 25 16:28:03 gdm-password][29191]: pam_unix(gdm-password:session): session closed for user sam
Jan 25 16:28:03 gsd-color[1418]: failed to connect to device: Failed to connect to missing device /org/freedesktop/ColorManager/devices/xrandr_Iiyama_North_America_PLE2483H_1130763144183_sam_1000
Jan 25 16:28:03 gsd-color[1418]: failed to connect to device: Failed to connect to missing device /org/freedesktop/ColorManager/devices/xrandr_Sharp_Corporation_sam_1000
Jan 25 16:28:04 kernel: rfkill: input handler enabled
Jan 25 16:28:04 systemd[25652]: pulseaudio.service: Service hold-off time over, scheduling restart.
Jan 25 16:28:04 systemd[25652]: pulseaudio.service: Scheduled restart job, restart counter is at 6.
Jan 25 16:28:04 systemd[25652]: Stopped Sound Service.
Jan 25 16:28:04 systemd[25652]: Starting Sound Service...
Jan 25 16:28:04 rtkit-daemon[954]: Successfully made thread 29699 of process 29699 (n/a) owned by '1000' high priority at nice level -11.
Jan 25 16:28:04 rtkit-daemon[954]: Supervising 1 threads of 1 processes of 1 users.
Jan 25 16:28:04 pulseaudio[29699]: W: [pulseaudio] pid.c: Stale PID file, overwriting.
Jan 25 16:28:04 systemd[25652]: Started Sound Service.
Jan 25 16:28:04 pulseaudio[29699]: E: [pulseaudio] backend-ofono.c: Failed to register as a handsfree audio agent with ofono: org.freedesktop.DBus.Error.ServiceUnknown: The name org.ofono was not provided by any .service files
Jan 25 16:28:04 gnome-shell[1121]: Failed to apply DRM plane transform 0: Invalid argument
Jan 25 16:28:04 systemd[1]: Started Process Core Dump (PID 29696/UID 0).
Jan 25 16:28:05 kernel: snd_hda_codec_hdmi hdaudioC2D0: HDMI: invalid ELD data byte 87
Jan 25 16:28:05 at-spi-bus-launcher[26131]: XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
Jan 25 16:28:05 at-spi-bus-launcher[26131]: after 25 requests (25 known processed) with 0 events remaining.
Jan 25 16:28:05 systemd[1]: session-20.scope: Consumed 10.282s CPU time
Jan 25 16:28:05 systemd-logind[956]: Removed session 20.
Jan 25 16:28:05 kernel: nouveau 0000:01:00.0: disp: 0x00006671[0]: INIT_GENERIC_CONDITON: unknown 0x07
Jan 25 16:28:05 systemd-coredump[29701]: Process 29245 (Xwayland) of user 1000 dumped core.
Stack trace of thread 29245:
#0 0x00007f5d0fef16a0 __GI_raise (libc.so.6)
#1 0x00007f5d0fef2cf7 __GI_abort (libc.so.6)
#2 0x0000562ce6dce8ba OsAbort (Xwayland)
#3 0x0000562ce6dd43d3 AbortServer (Xwayland)
#4 0x0000562ce6dd51f5 FatalError (Xwayland)
#5 0x0000562ce6c5c84f xwl_read_events (Xwayland)
#6 0x0000562ce6dcc371 ospoll_wait (Xwayland)
#7 0x0000562ce6dc535b WaitForSomething (Xwayland)
#8 0x0000562ce6d91193 Dispatch (Xwayland)
#9 0x0000562ce6d95410 dix_main (Xwayland)
#10 0x00007f5d0feddf2a __libc_start_main (libc.so.6)
#11 0x0000562ce6c5be9a _start (Xwayland)
Stack trace of thread 29250:
#0 0x00007f5d102807dd futex_wait_cancelable (libpthread.so.0)
#1 0x00007f5d0c8f6d7b n/a (nouveau_dri.so)
#2 0x00007f5d0c8f6bf7 n/a (nouveau_dri.so)
#3 0x00007f5d1027a51a start_thread (libpthread.so.0)
#4 0x00007f5d0ffb23ef __clone (libc.so.6)
Stack trace of thread 29253:
#0 0x00007f5d102807dd futex_wait_cancelable (libpthread.so.0)
#1 0x00007f5d0c8f6d7b n/a (nouveau_dri.so)
#2 0x00007f5d0c8f6bf7 n/a (nouveau_dri.so)
#3 0x00007f5d1027a51a start_thread (libpthread.so.0)
#4 0x00007f5d0ffb23ef __clone (libc.so.6)
Stack trace of thread 29248:
#0 0x00007f5d102807dd futex_wait_cancelable (libpthread.so.0)
#1 0x00007f5d0c8f6d7b n/a (nouveau_dri.so)
#2 0x00007f5d0c8f6bf7 n/a (nouveau_dri.so)
#3 0x00007f5d1027a51a start_thread (libpthread.so.0)
#4 0x00007f5d0ffb23ef __clone (libc.so.6)
Stack trace of thread 29251:
#0 0x00007f5d102807dd futex_wait_cancelable (libpthread.so.0)
#1 0x00007f5d0c8f6d7b n/a (nouveau_dri.so)
#2 0x00007f5d0c8f6bf7 n/a (nouveau_dri.so)
#3 0x00007f5d1027a51a start_thread (libpthread.so.0)
#4 0x00007f5d0ffb23ef __clone (libc.so.6)
Stack trace of thread 29247:
#0 0x00007f5d102807dd futex_wait_cancelable (libpthread.so.0)
#1 0x00007f5d0c4e623b n/a (nouveau_dri.so)
#2 0x00007f5d0c4e6157 n/a (nouveau_dri.so)
#3 0x00007f5d1027a51a start_thread (libpthread.so.0)
#4 0x00007f5d0ffb23ef __clone (libc.so.6)
Stack trace of thread 29249:
#0 0x00007f5d102807dd futex_wait_cancelable (libpthread.so.0)
#1 0x00007f5d0c8f6d7b n/a (nouveau_dri.so)
#2 0x00007f5d0c8f6bf7 n/a (nouveau_dri.so)
#3 0x00007f5d1027a51a start_thread (libpthread.so.0)
#4 0x00007f5d0ffb23ef __clone (libc.so.6)
Stack trace of thread 29252:
#0 0x00007f5d102807dd futex_wait_cancelable (libpthread.so.0)
#1 0x00007f5d0c8f6d7b n/a (nouveau_dri.so)
#2 0x00007f5d0c8f6bf7 n/a (nouveau_dri.so)
#3 0x00007f5d1027a51a start_thread (libpthread.so.0)
#4 0x00007f5d0ffb23ef __clone (libc.so.6)
Stack trace of thread 29254:
#0 0x00007f5d102807dd futex_wait_cancelable (libpthread.so.0)
#1 0x00007f5d0c8f6d7b n/a (nouveau_dri.so)
#2 0x00007f5d0c8f6bf7 n/a (nouveau_dri.so)
#3 0x00007f5d1027a51a start_thread (libpthread.so.0)
#4 0x00007f5d0ffb23ef __clone (libc.so.6)
Stack trace of thread 29255:
#0 0x00007f5d102807dd futex_wait_cancelable (libpthread.so.0)
#1 0x00007f5d0c8f6d7b n/a (nouveau_dri.so)
#2 0x00007f5d0c8f6bf7 n/a (nouveau_dri.so)
#3 0x00007f5d1027a51a start_thread (libpthread.so.0)
#4 0x00007f5d0ffb23ef __clone (libc.so.6)
Jan 25 16:28:05 systemd[1]: systemd-coredump@9-29696-0.service: Consumed 271ms CPU time
I tried to get a stack trace from gjs:
(gdb) b exit
Breakpoint 1 at 0x7f537625d280: file exit.c, line 105.
(gdb) c
Continuing.
[New Thread 0x7f52ebbc4700 (LWP 30809)]
[Thread 0x7f52ebbc4700 (LWP 30809) exited]
[New Thread 0x7f52ebbc4700 (LWP 30915)]
Thread 1 "gnome-shell" hit Breakpoint 1, __GI_exit (status=1) at exit.c:105
105 exit.c: No such file or directory.
(gdb) where
#0 0x00007f537625d280 in __GI_exit (status=1) at exit.c:105
#1 0x00007f537732d4f0 in () at /usr/lib/libgjs.so.0
#2 0x00007f537269ad6f in ffi_closure_unix64_inner () at /usr/lib/x86_64-linux-gnu/libffi.so.6
#3 0x00007f537269b136 in ffi_closure_unix64 () at /usr/lib/x86_64-linux-gnu/libffi.so.6
#4 0x00007f53789131c3 in g_task_return_now (task=0x560f351af1b0 [GTask]) at ../../../../gio/gtask.c:1145
#5 0x00007f5378913be6 in g_task_return (task=0x560f351af1b0 [GTask], type=<optimized out>) at ../../../../gio/gtask.c:1203
#6 0x00007f537895227d in init_second_async_cb (source_object=<optimized out>, res=<optimized out>, user_data=0x560f351af1b0) at ../../../../gio/gdbusproxy.c:1808
#7 0x00007f53789131c3 in g_task_return_now (task=0x560f351af0e0 [GTask]) at ../../../../gio/gtask.c:1145
#8 0x00007f5378913be6 in g_task_return (task=0x560f351af0e0 [GTask], type=<optimized out>) at ../../../../gio/gtask.c:1203
#9 0x00007f5378951a62 in async_init_get_all_cb (connection=<optimized out>, res=<optimized out>, user_data=0x560f351af0e0) at ../../../../gio/gdbusproxy.c:1443
#10 0x00007f53789131c3 in g_task_return_now (task=0x560f31f43b80 [GTask]) at ../../../../gio/gtask.c:1145
#11 0x00007f5378913be6 in g_task_return (task=0x560f31f43b80 [GTask], type=<optimized out>) at ../../../../gio/gtask.c:1
#12 0x00007f5378946c82 in g_dbus_connection_call_done (source=<optimized out>, result=0x560f31f61820, user_data=0x560f31f43b80) at ../../../../gio/gdbusconnection.c:5722
#13 0x00007f53789131c3 in g_task_return_now (task=0x560f31f61820 [GTask]) at ../../../../gio/gtask.c:1145
#14 0x00007f53789131f9 in complete_in_idle_cb (task=0x560f31f61820) at ../../../../gio/gtask.c:1159
#15 0x00007f537836ae25 in g_main_dispatch (context=0x560f31dcb6f0) at ../../../../glib/gmain.c:3165
#16 0x00007f537836ae25 in g_main_context_dispatch (context=context@entry=0x560f31dcb6f0) at ../../../../glib/gmain.c:3818
#17 0x00007f537836b1f0 in g_main_context_iterate (context=0x560f31dcb6f0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../../glib/gmain.c:3891
#18 0x00007f537836b502 in g_main_loop_run (loop=0x560f31fe87c0) at ../../../../glib/gmain.c:4087
#19 0x00007f5376898e6c in meta_run () at /usr/lib/x86_64-linux-gnu/libmutter-1.so.0
#20 0x0000560f30ccf43c in ()
#21 0x00007f5376246f2a in __libc_start_main (main=0x560f30ccf020, argc=1, argv=0x7ffcc3c87428, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffcc3c87418) at ../csu/libc-start.c:310
#22 0x0000560f30ccf57a in ()
(gdb) call gjs_dumpstack()
$1 = 836306960
But the only thing that ended up in the journal is the first line (something like "dumping stack", I forgot to email the exact message to myself from the machine where this happens) but no subsequent lines with the actual stack.
In case it's relevant, at the point where gnome-shell has been suspended by GDB, I can see the notification from the device being plugged in.
This is with 3.26.2.