 $ gdb --args gimp --sync
GNU gdb (Gentoo 7.10.1 vanilla) 7.10.1
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-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
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 gimp...Reading symbols from /usr/lib64/debug//usr/bin/gimp-2.9.debug...done.
done.
(gdb) break gdk_x_error
Function "gdk_x_error" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (gdk_x_error) pending.
(gdb) run
Starting program: /usr/bin/gimp --sync
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
La dirección proporcionada está vacía
This is a development version of GIMP.  Debug messages may appear here.

[New Thread 0x7fffc9cd9700 (LWP 15904)]
[New Thread 0x7fffc94d8700 (LWP 15905)]

(gimp:15895): Gtk-WARNING **: Theme directory base/ of theme oxygen has no size field

[New Thread 0x7fffc2279700 (LWP 15906)]
[Thread 0x7fffc2279700 (LWP 15906) exited]

(gimp:15895): Gimp-Widgets-CRITICAL **: gimp_device_info_set_device: assertion '(info->device == NULL && GDK_IS_DEVICE (device)) || (GDK_IS_DEVICE (info->device) && device == NULL)' failed
gimp_display_shell_profile_update
gimp_display_shell_profile_update
[Thread 0x7fffc94d8700 (LWP 15905) exited]
[New Thread 0x7fffc94d8700 (LWP 15909)]
magic match 4 on file-jpeg-load
best magic match on file-jpeg-load
[New Thread 0x7fffc2279700 (LWP 15912)]
jpeg-load: found Exif block (2857 bytes)
jpeg-load: found image comment (118 bytes)

** (file-jpeg:15910): WARNING **: Directory OlympusCs, entry 0x0101: Strip 0 is outside of the data area; ignored.

gimp_display_shell_profile_update
src_profile: GIMP built-in sRGB
src_format:  R'G'B'A u8
dest_format: R'G'B'A u8
gimp_display_shell_profile_update
src_profile: GIMP built-in sRGB
src_format:  R'G'B'A u8
dest_format: R'G'B'A u8
gimp_pickable_contiguous_region_by_seed: foo took 1,7598 seconds

Breakpoint 1, 0x00007ffff72bb5b0 in gdk_x_error ()
   from /usr/lib64/libgdk-x11-2.0.so.0
(gdb) bt
#0  0x00007ffff72bb5b0 in gdk_x_error () from /usr/lib64/libgdk-x11-2.0.so.0
#1  0x00007ffff2cbfd3d in _XError () from /usr/lib64/libX11.so.6
#2  0x00007ffff2cbcc87 in handle_error () from /usr/lib64/libX11.so.6
#3  0x00007ffff2cbcd45 in handle_response () from /usr/lib64/libX11.so.6
#4  0x00007ffff2cbdcf0 in _XReply () from /usr/lib64/libX11.so.6
#5  0x00007ffff2cb979d in XSync () from /usr/lib64/libX11.so.6
#6  0x00007ffff2cb983b in _XSyncFunction () from /usr/lib64/libX11.so.6
#7  0x00007ffff2c9a7b3 in XChangeProperty () from /usr/lib64/libX11.so.6
#8  0x00007ffff72bd9de in gdk_property_change ()
   from /usr/lib64/libgdk-x11-2.0.so.0
#9  0x00007ffff76a3972 in _gtk_selection_incr_event ()
   from /usr/lib64/libgtk-x11-2.0.so.0
#10 0x00007ffff763db11 in gtk_main_do_event ()
   from /usr/lib64/libgtk-x11-2.0.so.0
#11 0x00007ffff72b424c in gdk_event_dispatch ()
   from /usr/lib64/libgdk-x11-2.0.so.0
#12 0x00007ffff413ad5d in g_main_context_dispatch ()
   from /usr/lib64/libglib-2.0.so.0
#13 0x00007ffff413b040 in g_main_context_iterate.isra ()
   from /usr/lib64/libglib-2.0.so.0
#14 0x00007ffff413b362 in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#15 0x000000000048ce0a in app_run (full_prog_name=<optimized out>, 
    filenames=<optimized out>, 
---Type <return> to continue, or q <return> to quit---
    alternate_system_gimprc=alternate_system_gimprc@entry=0x0, 
    alternate_gimprc=alternate_gimprc@entry=0x0, session_name=<optimized out>, 
    batch_interpreter=0x0, batch_commands=0x0, as_new=0, no_interface=0, 
    no_data=0, no_fonts=0, no_splash=0, be_verbose=0, use_shm=1, 
    use_cpu_accel=1, console_messages=0, use_debug_handler=0, 
    show_playground=1, stack_trace_mode=GIMP_STACK_TRACE_QUERY, 
    pdb_compat_mode=GIMP_PDB_COMPAT_WARN) at app.c:309
#16 0x000000000048c7c1 in main (argc=<optimized out>, argv=0xc2b8e0)
    at main.c:552
