$ gdb --args evince --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 evince...Reading symbols from /usr/lib/debug/usr/bin/evince.debug...done.
done.
(gdb) run
Starting program: /usr/bin/evince --g-fatal-warnings
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

(evince:6231): GLib-GObject-WARNING **: The property GtkSettings:gtk-menu-images is deprecated and shouldn't be used anymore. It will be removed in a future version.
[New Thread 0x7fffc17fa700 (LWP 6249)]
[New Thread 0x7fffc1ffb700 (LWP 6247)]
[New Thread 0x7fffc27fc700 (LWP 6246)]
[New Thread 0x7fffc2ffd700 (LWP 6245)]
[New Thread 0x7fffc37fe700 (LWP 6244)]
[New Thread 0x7fffc3fff700 (LWP 6243)]
[New Thread 0x7fffdcf06700 (LWP 6242)]
[New Thread 0x7fffdd707700 (LWP 6241)]
[New Thread 0x7fffddf08700 (LWP 6240)]
[New Thread 0x7fffde795700 (LWP 6239)]
[New Thread 0x7fffdef96700 (LWP 6238)]
[New Thread 0x7fffdf797700 (LWP 6237)]
[New Thread 0x7fffe5158700 (LWP 6236)]
[New Thread 0x7fffe5959700 (LWP 6235)]

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffff4b1336b in _g_log_abort (breakpoint=1) at gmessages.c:315
315	    G_BREAKPOINT ();
Missing separate debuginfos, use: dnf debuginfo-install 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 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) c
Continuing.
[Thread 0x7fffc27fc700 (LWP 6246) exited]
xkbcommon: ERROR: Key "<LFSH>" added to modifier map for multiple modifiers; Using Lock, ignoring Shift
[Thread 0x7fffc2ffd700 (LWP 6245) exited]
[Thread 0x7fffc37fe700 (LWP 6244) exited]
[Thread 0x7fffc3fff700 (LWP 6243) exited]
[Thread 0x7fffdcf06700 (LWP 6242) exited]
[Thread 0x7fffdd707700 (LWP 6241) exited]
[Thread 0x7fffddf08700 (LWP 6240) exited]
[Thread 0x7fffde795700 (LWP 6239) exited]
[Thread 0x7fffdf797700 (LWP 6237) exited]

(evince:6231): Gdk-CRITICAL **: gdk_window_get_display: assertion 'GDK_IS_WINDOW (window)' failed

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffff4b1336b in _g_log_abort (breakpoint=1) at gmessages.c:315
315	    G_BREAKPOINT ();
Missing separate debuginfos, use: dnf debuginfo-install libstdc++-5.1.1-1.fc22.x86_64
(gdb) bt full
#0  0x00007ffff4b1336b in g_logv (breakpoint=1) at gmessages.c:315
        domain = 0x0
        data = 0x0
        depth = 1
        log_func = 0x7ffff4b12b30 <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 = 0x6d13f0 "gdk_window_get_display: assertion 'GDK_IS_WINDOW (window)' failed"
        msg_alloc = 0x6d13f0 "gdk_window_get_display: assertion 'GDK_IS_WINDOW (window)' failed"
        i = 3
#1  0x00007ffff4b1336b in g_logv (log_domain=0x7ffff62216ae "Gdk", log_level=G_LOG_LEVEL_CRITICAL, format=<optimized out>, args=args@entry=0x7fffffffd830) at gmessages.c:1041
        domain = 0x0
        data = 0x0
        depth = 1
        log_func = 0x7ffff4b12b30 <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 = 0x6d13f0 "gdk_window_get_display: assertion 'GDK_IS_WINDOW (window)' failed"
        msg_alloc = 0x6d13f0 "gdk_window_get_display: assertion 'GDK_IS_WINDOW (window)' failed"
        i = 3
#2  0x00007ffff4b134df in g_log (log_domain=log_domain@entry=0x7ffff62216ae "Gdk", log_level=log_level@entry=G_LOG_LEVEL_CRITICAL, format=format@entry=0x7ffff4b82c7d "%s: assertion '%s' failed") at gmessages.c:1079
        args = {{gp_offset = 40, fp_offset = 48, overflow_arg_area = 0x7fffffffd910, reg_save_area = 0x7fffffffd850}}
#3  0x00007ffff4b13519 in g_return_if_fail_warning (log_domain=log_domain@entry=0x7ffff62216ae "Gdk", pretty_function=pretty_function@entry=0x7ffff6238e60 <__func__.59098> "gdk_window_get_display", expression=expression@entry=0x7ffff6222007 "GDK_IS_WINDOW (window)") at gmessages.c:1088
#4  0x00007ffff61dae64 in gdk_window_get_display (window=0x0) at gdkwindow.c:2216
        window = 0x0
#5  0x00007ffff62196c2 in gdk_wayland_drag_context_finalize (object=0x7fffe0004dd0 [GdkWaylandDragContext]) at gdkdnd-wayland.c:68
        wayland_context = 0x7fffe0004dd0 [GdkWaylandDragContext]
        context = 0x7fffe0004dd0 [GdkWaylandDragContext]
        display = <optimized out>
#6  0x00007ffff4e10a4f in g_object_unref (_object=0x7fffe0004dd0) at gobject.c:3174
        weak_locations = <optimized out>
        old_ref = <optimized out>
        object = 0x7fffe0004dd0 [GdkWaylandDragContext]
#7  0x00007ffff621725d in seat_handle_capabilities (data=0x6c6130, seat=0x6c60e0, caps=<optimized out>) at gdkdevice-wayland.c:1630
        _pp = 0x6c6228
        _p = <optimized out>
        device = 0x6c6130
        device_manager = 0x6a8e90 [GdkWaylandDeviceManager]
#8  0x00007fffef22bdb0 in ffi_call_unix64 () at ../src/x86/unix64.S:76
#9  0x00007fffef22b818 in ffi_call (cif=<optimized out>, fn=<optimized out>, rvalue=0x0, avalue=0x7fffffffdbb0) at ../src/x86/ffi64.c:525
        classes = {X86_64_INTEGERSI_CLASS, X86_64_NO_CLASS, 4294957792, 32767}
        stack = <optimized out>
        argp = 0x7fffffffd9c0 ""
        arg_types = 0x7fffffffdb00
        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 0x00007ffff0f5c622 in wl_closure_invoke () at /lib64/libwayland-client.so.0
#11 0x00007ffff0f59880 in dispatch_event.isra () at /lib64/libwayland-client.so.0
#12 0x00007ffff0f598fc in dispatch_queue () at /lib64/libwayland-client.so.0
#13 0x00007ffff0f5a63f in wl_display_dispatch_queue () at /lib64/libwayland-client.so.0
#14 0x00007ffff621a0fc in _gdk_wayland_display_queue_events (display=<optimized out>) at gdkeventsource.c:165
        display_wayland = <optimized out>
        source = 0x6c05d0
#15 0x00007ffff61ca9e9 in gdk_display_get_event (display=display@entry=0x6b8000 [GdkWaylandDisplay]) at gdkdisplay.c:340
        __func__ = "gdk_display_get_event"
#16 0x00007ffff6219ea2 in gdk_event_source_dispatch (base=<optimized out>, callback=<optimized out>, data=<optimized out>) at gdkeventsource.c:86
        source = <optimized out>
        display = 0x6b8000 [GdkWaylandDisplay]
        event = <optimized out>
#17 0x00007ffff4b0c0ba in g_main_context_dispatch (context=0x6b6650) at gmain.c:3122
        dispatch = 0x7ffff6219e90 <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 = 0x6c05d0
        current = 0x6ff280
        i = 0
#18 0x00007ffff4b0c0ba in g_main_context_dispatch (context=context@entry=0x6b6650) at gmain.c:3737
#19 0x00007ffff4b0c450 in g_main_context_iterate (context=context@entry=0x6b6650, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3808
        max_priority = 2147483647
        timeout = 13704
        some_ready = 1
        nfds = <optimized out>
        allocated_nfds = 3
        fds = 0xc087c0
#20 0x00007ffff4b0c4fc in g_main_context_iteration (context=0x6b6650, context@entry=0x0, may_block=may_block@entry=1) at gmain.c:3869
        retval = <optimized out>
#21 0x00007ffff50f521c in g_application_run (application=0x74b110 [EvApplication], argc=argc@entry=0, argv=argv@entry=0x0) at gapplication.c:2308
        arguments = 0xc087c0
        status = 0
        __func__ = "g_application_run"
#22 0x000000000041ce52 in main (argc=1, argv=0x7fffffffe078) at main.c:316

        application = 0x74b110 [EvApplication]
        context = <optimized out>
        error = 0x0
        status = <optimized out>
(gdb) 
(gdb) 
(gdb) 
(gdb) quit
A debugging session is active.

	Inferior 1 [process 6231] will be killed.

Quit anyway? (y or n) y
