$ gdb --args gedit --g-fatal-warnings
GNU gdb (GDB) Fedora 7.9-11.fc22
Copyright (C) 2015 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 "x86_64-redhat-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 gedit...Reading symbols from /usr/lib/debug/usr/bin/gedit.debug...done.
done.
(gdb) run
Starting program: /usr/bin/gedit --g-fatal-warnings
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffe5de0700 (LWP 6747)]
xkbcommon: ERROR: Key "<LFSH>" added to modifier map for multiple modifiers; Using Lock, ignoring Shift

(gedit:6743): Gdk-CRITICAL **: gdk_window_get_display: assertion 'GDK_IS_WINDOW (window)' failed
[New Thread 0x7fffdde8c700 (LWP 6751)]
[New Thread 0x7fffdee8e700 (LWP 6749)]
[New Thread 0x7fffe53d2700 (LWP 6748)]

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffff475736b in _g_log_abort (breakpoint=1) at gmessages.c:315
315	    G_BREAKPOINT ();
Missing separate debuginfos, use: dnf debuginfo-install aspell-0.60.6.1-10.fc22.x86_64 bzip2-libs-1.0.6-14.fc22.x86_64 cairo-1.14.2-1.fc22.x86_64 cairo-gobject-1.14.2-1.fc22.x86_64 dbus-libs-1.8.16-1.fc22.x86_64 dconf-0.24.0-1.fc22.x86_64 freetype-2.5.5-1.fc22.x86_64 GConf2-3.2.6-11.fc22.x86_64 gdk-pixbuf2-2.31.3-1.fc22.x86_64 harfbuzz-0.9.40-1.fc22.x86_64 libgcc-5.1.1-1.fc22.x86_64 libselinux-2.3-9.fc22.x86_64 libstdc++-5.1.1-1.fc22.x86_64 libwayland-client-1.7.0-1.fc22.x86_64 libwayland-cursor-1.7.0-1.fc22.x86_64 libwayland-server-1.7.0-1.fc22.x86_64 libXau-1.0.8-4.fc22.x86_64 libxcb-1.11-3.fc22.x86_64 libXcomposite-0.4.4-6.fc22.x86_64 libXcursor-1.1.14-4.fc22.x86_64 libXi-1.7.4-2.fc22.x86_64 libXinerama-1.1.3-4.fc22.x86_64 libXrandr-1.4.2-2.fc22.x86_64 libXrender-0.9.9-1.fc22.x86_64 libXxf86vm-1.1.4-1.fc22.x86_64 pango-1.36.8-2.fc22.x86_64 pixman-0.32.6-4.fc22.x86_64 zlib-1.2.8-7.fc22.x86_64
(gdb) bt full
#0  0x00007ffff475736b in g_logv (breakpoint=1) at gmessages.c:315
        domain = 0x0
        data = 0x0
        depth = 1
        log_func = 0x7ffff4756b30 <g_log_default_handler>
        domain_fatal_mask = <optimized out>
        masquerade_fatal = 0
        test_level = <optimized out>
        was_fatal = <optimized out>
        was_recursion = <optimized out>
        msg = 0x6ab150 "gdk_window_get_display: assertion 'GDK_IS_WINDOW (window)' failed"
        msg_alloc = 0x6ab150 "gdk_window_get_display: assertion 'GDK_IS_WINDOW (window)' failed"
        i = 3
#1  0x00007ffff475736b in g_logv (log_domain=0x7ffff67f26ae "Gdk", log_level=G_LOG_LEVEL_CRITICAL, format=<optimized out>, args=args@entry=0x7fffffffd890) at gmessages.c:1041
        domain = 0x0
        data = 0x0
        depth = 1
        log_func = 0x7ffff4756b30 <g_log_default_handler>
        domain_fatal_mask = <optimized out>
        masquerade_fatal = 0
        test_level = <optimized out>
        was_fatal = <optimized out>
        was_recursion = <optimized out>
        msg = 0x6ab150 "gdk_window_get_display: assertion 'GDK_IS_WINDOW (window)' failed"
        msg_alloc = 0x6ab150 "gdk_window_get_display: assertion 'GDK_IS_WINDOW (window)' failed"
        i = 3
#2  0x00007ffff47574df in g_log (log_domain=log_domain@entry=0x7ffff67f26ae "Gdk", log_level=log_level@entry=G_LOG_LEVEL_CRITICAL, format=format@entry=0x7ffff47c6c7d "%s: assertion '%s' failed") at gmessages.c:1079
        args = {{gp_offset = 40, fp_offset = 48, overflow_arg_area = 0x7fffffffd970, reg_save_area = 0x7fffffffd8b0}}
#3  0x00007ffff4757519 in g_return_if_fail_warning (log_domain=log_domain@entry=0x7ffff67f26ae "Gdk", pretty_function=pretty_function@entry=0x7ffff6809e60 <__func__.59098> "gdk_window_get_display", expression=expression@entry=0x7ffff67f3007 "GDK_IS_WINDOW (window)") at gmessages.c:1088
#4  0x00007ffff67abe64 in gdk_window_get_display (window=0x0) at gdkwindow.c:2216
        window = 0x0
#5  0x00007ffff67ea6c2 in gdk_wayland_drag_context_finalize (object=0x665e50 [GdkWaylandDragContext]) at gdkdnd-wayland.c:68
        wayland_context = 0x665e50 [GdkWaylandDragContext]
        context = 0x665e50 [GdkWaylandDragContext]
        display = <optimized out>
#6  0x00007ffff4a54a4f in g_object_unref (_object=0x665e50) at gobject.c:3174
        weak_locations = <optimized out>
        old_ref = <optimized out>
        object = 0x665e50 [GdkWaylandDragContext]
#7  0x00007ffff67e825d in seat_handle_capabilities (data=0x68f080, seat=0x68f030, caps=<optimized out>) at gdkdevice-wayland.c:1630
        _pp = 0x68f178
        _p = <optimized out>
        device = 0x68f080
        device_manager = 0x63c040 [GdkWaylandDeviceManager]
#8  0x00007fffef4a5db0 in ffi_call_unix64 () at ../src/x86/unix64.S:76
#9  0x00007fffef4a5818 in ffi_call (cif=<optimized out>, fn=<optimized out>, rvalue=0x0, avalue=0x7fffffffdc10) at ../src/x86/ffi64.c:525
        classes = {X86_64_INTEGERSI_CLASS, X86_64_NO_CLASS, 4294957888, 32767}
        stack = <optimized out>
        argp = 0x7fffffffda20 ""
        arg_types = 0x7fffffffdb60
        gprcount = 3
---Type <return> to continue, or q <return> to quit---
        ssecount = <optimized out>
        ngpr = 1
        nsse = 0
        i = <optimized out>
        avn = <optimized out>
        ret_in_memory = <optimized out>
        reg_args = <optimized out>
#10 0x00007ffff17f2622 in wl_closure_invoke () at /lib64/libwayland-client.so.0
#11 0x00007ffff17ef880 in dispatch_event.isra () at /lib64/libwayland-client.so.0
#12 0x00007ffff17ef8fc in dispatch_queue () at /lib64/libwayland-client.so.0
#13 0x00007ffff17f063f in wl_display_dispatch_queue () at /lib64/libwayland-client.so.0
#14 0x00007ffff67eb0fc in _gdk_wayland_display_queue_events (display=<optimized out>) at gdkeventsource.c:165
        display_wayland = <optimized out>
        source = 0x683a90
#15 0x00007ffff679b9e9 in gdk_display_get_event (display=display@entry=0x6253f0 [GdkWaylandDisplay]) at gdkdisplay.c:340
        __func__ = "gdk_display_get_event"
#16 0x00007ffff67eaea2 in gdk_event_source_dispatch (base=<optimized out>, callback=<optimized out>, data=<optimized out>) at gdkeventsource.c:86
        source = <optimized out>
        display = 0x6253f0 [GdkWaylandDisplay]
        event = <optimized out>
#17 0x00007ffff47500ba in g_main_context_dispatch (context=0x6230e0) at gmain.c:3122
        dispatch = 0x7ffff67eae90 <gdk_event_source_dispatch>
        prev_source = 0x0
        was_in_call = 0
        user_data = 0x0
        callback = 0x0
        cb_funcs = 0x0
        cb_data = 0x0
        need_destroy = <optimized out>
        source = 0x683a90
        current = 0x630970
        i = 0
#18 0x00007ffff47500ba in g_main_context_dispatch (context=context@entry=0x6230e0) at gmain.c:3737
#19 0x00007ffff4750450 in g_main_context_iterate (context=context@entry=0x6230e0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3808
        max_priority = 2147483647
        timeout = 895
        some_ready = 1
        nfds = <optimized out>
        allocated_nfds = 4
        fds = 0x770480
#20 0x00007ffff47504fc in g_main_context_iteration (context=0x6230e0, context@entry=0x0, may_block=may_block@entry=1) at gmain.c:3869
        retval = <optimized out>
#21 0x00007ffff4f6d21c in g_application_run (application=0x61d190 [GeditAppX11], argc=argc@entry=2, argv=argv@entry=0x7fffffffe078) at gapplication.c:2308
        arguments = 0x61ccf0
        status = 0
        __func__ = "g_application_run"
#22 0x0000000000400dfa in main (argc=2, argv=0x7fffffffe078) at gedit/gedit.c:146
        type = <optimized out>
        app = 0x61d190 [GeditAppX11]
        status = <optimized out>
        dir = <optimized out>
        __func__ = "main"
(gdb) quit
A debugging session is active.

	Inferior 1 [process 6743] will be killed.

Quit anyway? (y or n) y
