Crash with segmentation fault `xfsm_manager_get_shutdown_type()`
$ xfce4-session -V
xfce4-session 4.14.0 (Xfce 4.14)
Copyright (c) 2003-2016
The Xfce development team. All rights reserved.
Please report bugs to <https://bugzilla.xfce.org/>.
Linux logs the crash below:
[15805581.161311] xfce4-session[27576]: segfault at 2c ip 0000000000426370 sp 00007fff2b2041d8 error 4 in xfce4-session[412000+1a000]
[15805581.161316] Code: c3 66 0f 1f 84 00 00 00 00 00 48 89 df be 02 00 00 00 e8 13 62 ff ff 48 83 c4 08 48 89 ef 5b 5d e9 45 f4 ff ff 0f 1f 44 00 00 <8b> 47 2c c3 66 66 2e 0f 1f 84 00 00 00 00 00 90 8b 47 28 c3 66 66
Here is the backtrace:
Core was generated by `xfce4-session'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 xfsm_manager_get_shutdown_type (manager=manager@entry=0x0)
at /scratch/local/bee-root/xfce4-session/xfce4-session-4.14.0-0/source/xfce4-session/xfsm-manager.c:1931
1931 /scratch/local/bee-root/xfce4-session/xfce4-session-4.14.0-0/source/xfce4-session/xfsm-manager.c: No such file or directory.
[Current thread is 1 (Thread 0x7f34afc95980 (LWP 7101))]
(gdb) bt
#0 0x0000000000426370 in xfsm_manager_get_shutdown_type (manager=manager@entry=0x0)
at /scratch/local/bee-root/xfce4-session/xfce4-session-4.14.0-0/source/xfce4-session/xfsm-manager.c:1931
#1 0x0000000000419f50 in name_lost (connection=<optimized out>, name=<optimized out>, user_data=<optimized out>)
at /scratch/local/bee-root/xfce4-session/xfce4-session-4.14.0-0/source/xfce4-session/main.c:228
#2 0x00007f34b5ed9f06 in do_call (client=0x4ded10, call_type=CALL_TYPE_NAME_LOST) at ../source/gio/gdbusnameowning.c:215
#6 0x00007f34b5d9cbb2 in <emit signal ??? on instance 0x4962a0 [GDBusConnection]>
(instance=<optimized out>, signal_id=<optimized out>, detail=detail@entry=0) at ../source/gobject/gsignal.c:3554
#3 0x00007f34b5d7ee8d in g_closure_invoke
(closure=0x4f6ae0, return_value=0x0, n_param_values=3, param_values=0x7fff0970f270, invocation_hint=0x7fff0970f210) at ../source/gobject/gclosure.c:810
#4 0x00007f34b5d9224e in signal_emit_unlocked_R
(node=node@entry=0x4cf8d0, detail=detail@entry=0, instance=instance@entry=0x4962a0, emission_return=emission_return@entry=0x0, instance_and_params=instance_and_params@entry=0x7fff0970f270) at ../source/gobject/gsignal.c:3742
#5 0x00007f34b5d9c109 in g_signal_emit_valist
(instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>, var_args=var_args@entry=0x7fff0970f438)
at ../source/gobject/gsignal.c:3498
#7 0x00007f34b5ecb6d2 in emit_closed_in_idle (user_data=0x7f34a005c140) at ../source/gio/gdbusconnection.c:1371
#8 0x00007f34b5c96404 in g_main_dispatch (context=0x494960) at ../source/glib/gmain.c:3309
#9 0x00007f34b5c96404 in g_main_context_dispatch (context=context@entry=0x494960) at ../source/glib/gmain.c:3974
#10 0x00007f34b5c96778 in g_main_context_iterate (context=0x494960, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
at ../source/glib/gmain.c:4047
#11 0x00007f34b5c96a32 in g_main_loop_run (loop=0x495750) at ../source/glib/gmain.c:4241
#12 0x00007f34b673df05 in gtk_main () at /dev/shm/bee-root/gtk3/gtk3-3.24.14-0/source/gtk/gtkmain.c:1325
#13 0x0000000000414458 in main (argc=<optimized out>, argv=<optimized out>)
at /scratch/local/bee-root/xfce4-session/xfce4-session-4.14.0-0/source/xfce4-session/main.c:367