root@kali:~# gdb -q gnome-shell --ex "set logging on" --ex "r"
Reading symbols from /usr/bin/gnome-shell...Reading symbols from /usr/lib/debug/usr/bin/gnome-shell...done.
done.
Copying output to gdb.txt.
Starting program: /usr/bin/gnome-shell
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/i686/cmov/libthread_db.so.1".
(gnome-shell:5516): Gdk-WARNING **: The program 'gnome-shell' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadRequest (invalid request code or no such operation)'.
(Details: serial 128 error_code 1 request_code 139 minor_code 66)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the GDK_SYNCHRONIZE environment
variable to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
[Inferior 1 (process 5516) exited with code 01]
(gdb)