egmont@blacky:~$ gdb /usr/lib/gnome-terminal/gnome-terminal-server 23137
GNU gdb (Ubuntu 7.11.90.20161005-0ubuntu1) 7.11.90.20161005-git
Copyright (C) 2016 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-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 /usr/lib/gnome-terminal/gnome-terminal-server...done.
Attaching to program: /usr/lib/gnome-terminal/gnome-terminal-server, process 23137
[New LWP 23139]
[New LWP 23140]
[New LWP 23141]
[New LWP 23405]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f53c05396ed in read () at ../sysdeps/unix/syscall-template.S:84
84	../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) bt full
#0  0x00007f53c05396ed in read () at ../sysdeps/unix/syscall-template.S:84
No locals.
#1  0x00007f53c09dd41a in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#2  0x00007f53c09dd83c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#3  0x00007f53c09de4e5 in g_spawn_async_with_pipes ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#4  0x00007f53c24a4d28 in __vte_pty_spawn (pty=pty@entry=0x560f644fc4d0, 
    directory=directory@entry=0x560f6447ed40 "/run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C099%5D/Internal storage/Pictures/Screenshots", 
    argv=argv@entry=0x560f644c4b40, envv=envv@entry=0x560f644c4cb0, 
    spawn_flags_=spawn_flags_@entry=(G_SPAWN_CHILD_INHERITS_STDIN | G_SPAWN_FILE_AND_ARGV_ZERO | G_SPAWN_SEARCH_PATH_FROM_ENVP | unknown: 33554432), 
    child_setup=child_setup@entry=0x0, child_setup_data=0x0, 
    child_pid=0x7ffc59801194, error=0x7ffc598012b8) at pty.cc:396
        priv = 0x560f644fc4a0
        data = 0x560f644fc4b0
        spawn_flags = 226
        ret = 1
        inherit_envv = 0
        i = <optimized out>
---Type <return> to continue, or q <return> to quit---
        err = 0x0
#5  0x00007f53c24bd6bf in VteTerminalPrivate::spawn_sync (this=0x560f64842050, 
    pty_flags=pty_flags@entry=VTE_PTY_DEFAULT, 
    working_directory=working_directory@entry=0x560f6447ed40 "/run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C099%5D/Internal storage/Pictures/Screenshots", 
    argv=argv@entry=0x560f644c4b40, envv=envv@entry=0x560f644c4cb0, 
    spawn_flags_=spawn_flags_@entry=(G_SPAWN_FILE_AND_ARGV_ZERO | G_SPAWN_SEARCH_PATH_FROM_ENVP | unknown: 33554432), child_setup=0x0, child_setup_data=0x0, 
    child_pid=0x7ffc598012d0, cancellable=0x0, error=0x7ffc598012b8)
    at vte.cc:3384
        spawn_flags = 33554656
        new_pty = 0x560f644fc4d0
        pid = 32764
        __PRETTY_FUNCTION__ = "bool VteTerminalPrivate::spawn_sync(VtePtyFlags, const char*, char**, char**, GSpawnFlags, GSpawnChildSetupFunc, gpointer, GPid*, GCancellable*, GError**)"
#6  0x00007f53c24c8626 in vte_terminal_spawn_sync (
    terminal=terminal@entry=0x560f64844060, 
    pty_flags=pty_flags@entry=VTE_PTY_DEFAULT, 
    working_directory=working_directory@entry=0x560f6447ed40 "/run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C099%5D/Internal storage/Pictures/Screenshots", 
    argv=argv@entry=0x560f644c4b40, envv=envv@entry=0x560f644c4cb0, 
    spawn_flags_=(G_SPAWN_FILE_AND_ARGV_ZERO | G_SPAWN_SEARCH_PATH_FROM_ENVP | unknown: 33554432), child_setup=0x0, child_setup_data=0x0, 
    child_pid=0x7ffc598012d0, cancellable=0x0, error=0x7ffc598012b8)
    at vtegtk.cc:2293
        __PRETTY_FUNCTION__ = "gboolean vte_terminal_spawn_sync(VteTerminal*, VtePtyFlags, const char*, char**, char**, GSpawnFlags, GSpawnChildSetupFunc, gpointer, GPid*, GCancellable*, GError**)"
#7  0x0000560f63478d57 in terminal_screen_do_exec (screen=<optimized out>, 
    data=data@entry=0x0, error=error@entry=0x0) at terminal-screen.c:1395
        priv = <optimized out>
        terminal = <optimized out>
        profile = <optimized out>
        argv = <optimized out>
        shell = 0x560f644a8640 "/bin/bash"
        err = 0x0
        working_dir = <optimized out>
        spawn_flags = <optimized out>
        pid = 1682721600
        result = 0
#8  0x0000560f6347913d in terminal_screen_launch_child_cb (
    screen=<optimized out>) at terminal-screen.c:1446
No locals.
#9  0x00007f53c099668a in g_main_context_dispatch ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#10 0x00007f53c0996a40 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#11 0x00007f53c0996aec in g_main_context_iteration ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#12 0x00007f53c0f5170d in g_application_run ()
   from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
No symbol table info available.
#13 0x0000560f6346cf9d in main (argc=<optimized out>, argv=<optimized out>)
    at server.c:180
        app = 0x560f644fe180
        home_dir = <optimized out>
        charset = 0x560f642a1340 "UTF-8"
        error = 0x0
(gdb) quit
A debugging session is active.

	Inferior 1 [process 23137] will be detached.

Quit anyway? (y or n) y
Detaching from program: /usr/lib/gnome-terminal/gnome-terminal-server, process 23137
egmont@blacky:~$