geoff:~/code/gparted.git [remotes/origin/HEAD] % sudo LD_LIBRARY_PATH=$HOME/code/glib.git/glib/.libs gdb ./src/gpartedbin
GNU gdb (GDB) 7.7
Copyright (C) 2014 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-unknown-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 ./src/gpartedbin...done.
(gdb) start
Temporary breakpoint 1 at 0x418b50: file main.cc, line 24.
Starting program: /home/geoff/code/gparted.git/src/gpartedbin 
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
warning: File "/usr/lib/libstdc++.so.6.0.20-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
        add-auto-load-safe-path /usr/lib/libstdc++.so.6.0.20-gdb.py
line to your configuration file "/root/.gdbinit".
To completely disable this security protection add
        set auto-load safe-path /
line to your configuration file "/root/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
        info "(gdb)Auto-loading safe path"
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".

Temporary breakpoint 1, main (argc=1, argv=0x7fffffffea88) at main.cc:24
24      {
(gdb) b g_source_remove
Breakpoint 2 at 0x7ffff40d7a40: file gmain.c, line 2185.
(gdb) b g_source_destroy_internal
Breakpoint 3 at 0x7ffff40d6280: file gmain.c, line 1158.
(gdb) c
Continuing.
======================
libparted : 3.1
======================
[New Thread 0x7fffec408700 (LWP 8360)]

Breakpoint 3, g_source_destroy_internal (source=source@entry=0x843130, context=context@entry=0x76fa20, have_lock=have_lock@entry=1) at gmain.c:1158
1158      if (!have_lock)
(gdb) bt
#0  g_source_destroy_internal (source=source@entry=0x843130, context=context@entry=0x76fa20, have_lock=have_lock@entry=1) at gmain.c:1158
#1  0x00007ffff40d8bd8 in g_main_dispatch (context=0x76fa20) at gmain.c:3087
#2  g_main_context_dispatch (context=context@entry=0x76fa20) at gmain.c:3663
#3  0x00007ffff40d8f38 in g_main_context_iterate (context=0x76fa20, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3734
#4  0x00007ffff40d9252 in g_main_loop_run (loop=0x8439b0) at gmain.c:3928
#5  0x00007ffff5b3a087 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#6  0x00000000004a6c12 in GParted::Utils::execute_command (command=..., output=..., error=..., use_C_locale=use_C_locale@entry=true) at Utils.cc:541
#7  0x00000000004c4cd3 in GParted::ext2::get_filesystem_support (this=0x8410d0) at ext2.cc:71
#8  0x000000000046e41b in GParted::GParted_Core::find_supported_filesystems (this=this@entry=0x7fffffffe838) at GParted_Core.cc:132
#9  0x0000000000475162 in GParted::GParted_Core::GParted_Core (this=0x7fffffffe838) at GParted_Core.cc:86
#10 0x00000000004b4b71 in GParted::Win_GParted::Win_GParted (this=0x7fffffffdc60, user_devices=..., __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at Win_GParted.cc:49
#11 0x0000000000418c64 in main (argc=1, argv=0x7fffffffea88) at main.cc:56
(gdb) p source->source_id
$1 = 5
(gdb) c
Continuing.

Breakpoint 3, g_source_destroy_internal (source=source@entry=0x843810, context=context@entry=0x76fa20, have_lock=have_lock@entry=1) at gmain.c:1158
1158      if (!have_lock)
(gdb) bt
#0  g_source_destroy_internal (source=source@entry=0x843810, context=context@entry=0x76fa20, have_lock=have_lock@entry=1) at gmain.c:1158
#1  0x00007ffff40d8bd8 in g_main_dispatch (context=0x76fa20) at gmain.c:3087
#2  g_main_context_dispatch (context=context@entry=0x76fa20) at gmain.c:3663
#3  0x00007ffff40d8f38 in g_main_context_iterate (context=0x76fa20, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3734
#4  0x00007ffff40d9252 in g_main_loop_run (loop=0x8439b0) at gmain.c:3928
#5  0x00007ffff5b3a087 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#6  0x00000000004a6c12 in GParted::Utils::execute_command (command=..., output=..., error=..., use_C_locale=use_C_locale@entry=true) at Utils.cc:541
#7  0x00000000004c4cd3 in GParted::ext2::get_filesystem_support (this=0x8410d0) at ext2.cc:71
#8  0x000000000046e41b in GParted::GParted_Core::find_supported_filesystems (this=this@entry=0x7fffffffe838) at GParted_Core.cc:132
#9  0x0000000000475162 in GParted::GParted_Core::GParted_Core (this=0x7fffffffe838) at GParted_Core.cc:86
#10 0x00000000004b4b71 in GParted::Win_GParted::Win_GParted (this=0x7fffffffdc60, user_devices=..., __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at Win_GParted.cc:49
#11 0x0000000000418c64 in main (argc=1, argv=0x7fffffffea88) at main.cc:56
(gdb) p source->source_id
$2 = 6
(gdb) c                                                                                                                                                                                                                                                                          
Continuing.

Breakpoint 3, g_source_destroy_internal (source=source@entry=0x8438e0, context=context@entry=0x76fa20, have_lock=have_lock@entry=1) at gmain.c:1158
1158      if (!have_lock)
(gdb) bt
#0  g_source_destroy_internal (source=source@entry=0x8438e0, context=context@entry=0x76fa20, have_lock=have_lock@entry=1) at gmain.c:1158
#1  0x00007ffff40d8bd8 in g_main_dispatch (context=0x76fa20) at gmain.c:3087
#2  g_main_context_dispatch (context=context@entry=0x76fa20) at gmain.c:3663
#3  0x00007ffff40d8f38 in g_main_context_iterate (context=0x76fa20, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3734
#4  0x00007ffff40d9252 in g_main_loop_run (loop=0x8439b0) at gmain.c:3928
#5  0x00007ffff5b3a087 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#6  0x00000000004a6c12 in GParted::Utils::execute_command (command=..., output=..., error=..., use_C_locale=use_C_locale@entry=true) at Utils.cc:541
#7  0x00000000004c4cd3 in GParted::ext2::get_filesystem_support (this=0x8410d0) at ext2.cc:71
#8  0x000000000046e41b in GParted::GParted_Core::find_supported_filesystems (this=this@entry=0x7fffffffe838) at GParted_Core.cc:132
#9  0x0000000000475162 in GParted::GParted_Core::GParted_Core (this=0x7fffffffe838) at GParted_Core.cc:86
#10 0x00000000004b4b71 in GParted::Win_GParted::Win_GParted (this=0x7fffffffdc60, user_devices=..., __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at Win_GParted.cc:49
#11 0x0000000000418c64 in main (argc=1, argv=0x7fffffffea88) at main.cc:56
(gdb) p source->source_id                                                                                                                                                                                                                                                        
$3 = 7
(gdb) c                                                                                                                                                                                                                                                                          
Continuing.

Breakpoint 2, g_source_remove (tag=7) at gmain.c:2185
2185    {
(gdb) bt
#0  g_source_remove (tag=7) at gmain.c:2185
#1  0x000000000049d585 in GParted::PipeCapture::~PipeCapture (this=0x7fffffffd850, __in_chrg=<optimized out>) at PipeCapture.cc:104
#2  0x00000000004a6c3a in GParted::Utils::execute_command (command=..., output=..., error=..., use_C_locale=use_C_locale@entry=true) at Utils.cc:534
#3  0x00000000004c4cd3 in GParted::ext2::get_filesystem_support (this=0x8410d0) at ext2.cc:71
#4  0x000000000046e41b in GParted::GParted_Core::find_supported_filesystems (this=this@entry=0x7fffffffe838) at GParted_Core.cc:132
#5  0x0000000000475162 in GParted::GParted_Core::GParted_Core (this=0x7fffffffe838) at GParted_Core.cc:86
#6  0x00000000004b4b71 in GParted::Win_GParted::Win_GParted (this=0x7fffffffdc60, user_devices=..., __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at Win_GParted.cc:49
#7  0x0000000000418c64 in main (argc=1, argv=0x7fffffffea88) at main.cc:56
(gdb) p tag
$4 = 7
(gdb) c
Continuing.

(gpartedbin:8294): GLib-CRITICAL **: Source ID 7 was not found when attempting to remove it

Breakpoint 2, g_source_remove (tag=6) at gmain.c:2185
2185    {
(gdb) c
Continuing.

(gpartedbin:8294): GLib-CRITICAL **: Source ID 6 was not found when attempting to remove it

Breakpoint 2, g_source_remove (tag=2) at gmain.c:2185
2185    {
(gdb) q
A debugging session is active.

        Inferior 1 [process 8294] will be killed.

Quit anyway? (y or n) y
