Phillip Susi wrote, on 22/05/14 23:55:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 5/22/2014 10:08 AM, Arthur Marsh wrote:
Is there any way to pinpoint where in the program the error is
occuring?

Yes, if you can run it under gdb and set a breakpoint in g_log, that
is where these messages are printed.  If you can capture a stack trace
at that point, it should show where the program is.

gdb gpartedbin
break g_log
run

When it hits the breakpoint, issue the finish command and you should
see the message printed on the screen.  There will probably be a
number of other messages that come up first, and for those, issue the
continue command.  When the g_convert error message comes up, issue
the bt command to get a backtrace and let's have a look at that.

OK, done:

gparted-0.15.0/src# gdb ./gpartedbin
GNU gdb (GDB) 7.6.2 (Debian 7.6.2-1.1)
Copyright (C) 2013 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 "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/src/sound/gparted-0.15.0/src/gpartedbin...done.
(gdb) break g_log
Function "g_log" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y

Breakpoint 1 (g_log) pending.
(gdb) run
Starting program: /usr/src/sound/gparted-0.15.0/src/./gpartedbin
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/i686/cmov/libthread_db.so.1".
======================
libparted : 2.3
======================
[New Thread 0xb7e45b40 (LWP 14811)]
[New Thread 0xafa77b40 (LWP 14812)]
[New Thread 0xaf0ffb40 (LWP 14813)]

Breakpoint 1, g_log (log_domain=0x43214e77 "glibmm",
    log_level=G_LOG_LEVEL_CRITICAL,
format=0x43216168 "\nunhandled exception (type Glib::Error) in signal handler:\ndomain: %s\ncode : %d\nwhat : %s\n")
    at /build/glib2.0-f_gKLq/glib2.0-2.40.0/./glib/gmessages.c:1067
1067 /build/glib2.0-f_gKLq/glib2.0-2.40.0/./glib/gmessages.c: No such file or directory.
(gdb) finish
Run till exit from #0  g_log (log_domain=0x43214e77 "glibmm",
    log_level=G_LOG_LEVEL_CRITICAL,
format=0x43216168 "\nunhandled exception (type Glib::Error) in signal handler:\ndomain: %s\ncode : %d\nwhat : %s\n")
    at /build/glib2.0-f_gKLq/glib2.0-2.40.0/./glib/gmessages.c:1067

(gpartedbin:14805): glibmm-CRITICAL **:
unhandled exception (type Glib::Error) in signal handler:
domain: g_convert_error
code  : 1
what  : Invalid byte sequence in conversion input

0x4320591d in Glib::exception_handlers_invoke() ()
   from /usr/lib/i386-linux-gnu/libglibmm-2.4.so.1
(gdb) bt
#0  0x4320591d in Glib::exception_handlers_invoke() ()
   from /usr/lib/i386-linux-gnu/libglibmm-2.4.so.1
#1 0x43206b15 in Glib::Source::dispatch_vfunc(_GSource*, int (*)(void*), void*) () from /usr/lib/i386-linux-gnu/libglibmm-2.4.so.1 #2 0x413881d7 in g_main_dispatch (context=0x819b890, context@entry=0xae704aa8)
    at /build/glib2.0-f_gKLq/glib2.0-2.40.0/./glib/gmain.c:3064
#3  g_main_context_dispatch (context=context@entry=0x819b890)
    at /build/glib2.0-f_gKLq/glib2.0-2.40.0/./glib/gmain.c:3663
#4  0x41388598 in g_main_context_iterate (context=0x819b890,
    block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at /build/glib2.0-f_gKLq/glib2.0-2.40.0/./glib/gmain.c:3734
#5  0x4138889b in g_main_loop_run (loop=loop@entry=0x81ebfc0)
    at /build/glib2.0-f_gKLq/glib2.0-2.40.0/./glib/gmain.c:3928
#6  0x422a3e30 in IA__gtk_main ()
    at /build/gtk+2.0-GomcuM/gtk+2.0-2.24.23/gtk/gtkmain.c:1257
#7  0x4396eed4 in Gtk::Main::run_impl (this=0xbfffebfc) at main.cc:534
#8  0x4396f60f in Gtk::Main::run () at main.cc:477
#9  0x080b0822 in GParted::GParted_Core::set_devices (
    this=this@entry=0xbffff298,
devices=std::vector of length 2, capacity 2 = {...}) at GParted_Core.cc:145
#10 0x080fd04b in GParted::Win_GParted::menu_gparted_refresh_devices (
    this=0xbfffec10) at Win_GParted.cc:1247
#11 0x439e86cf in Gtk::Widget_Class::show_callback (self=0x819aa70)
    at widget.cc:3855
---Type <return> to continue, or q <return> to quit---
#12 0x41509709 in g_cclosure_marshal_VOID__VOIDv (closure=0x81c5a50,
    return_value=0x0, instance=0x819aa70, args=0xbfffeb4c "\005",
marshal_data=0x439e8670 <Gtk::Widget_Class::show_callback(_GtkWidget*)>,
    n_params=0, param_types=0x0)
    at /build/glib2.0-f_gKLq/glib2.0-2.40.0/./gobject/gmarshal.c:115
#13 0x41506457 in g_type_class_meta_marshalv (closure=0x81c5a50,
    return_value=0x0, instance=0x819aa70, args=0xbfffeb4c "\005",
    marshal_data=0x5c, n_params=0, param_types=0x0)
    at /build/glib2.0-f_gKLq/glib2.0-2.40.0/./gobject/gclosure.c:988
#14 0x41507cce in _g_closure_invoke_va (closure=closure@entry=0x81c5a50,
    return_value=return_value@entry=0x0, instance=instance@entry=0x819aa70,
    args=args@entry=0xbfffeb4c "\005", n_params=0, param_types=0x0)
    at /build/glib2.0-f_gKLq/glib2.0-2.40.0/./gobject/gclosure.c:831
#15 0x4152112c in g_signal_emit_valist (instance=instance@entry=0x819aa70,
    signal_id=signal_id@entry=12, detail=detail@entry=0,
    var_args=var_args@entry=0xbfffeb4c "\005")
    at /build/glib2.0-f_gKLq/glib2.0-2.40.0/./gobject/gsignal.c:3215
#16 0x41521c83 in g_signal_emit (instance=instance@entry=0x819aa70,
    signal_id=12, detail=detail@entry=0)
    at /build/glib2.0-f_gKLq/glib2.0-2.40.0/./gobject/gsignal.c:3363
#17 0x423da0fa in IA__gtk_widget_show (widget=0x819aa70)
    at /build/gtk+2.0-GomcuM/gtk+2.0-2.24.23/gtk/gtkwidget.c:3236
#18 0x439efa74 in Gtk::Widget::show (this=this@entry=0xbfffec10)
    at widget.cc:6129
---Type <return> to continue, or q <return> to quit---
#19 0x4396f63f in Gtk::Main::run (window=...) at main.cc:482
#20 0x0805d1d4 in main (argc=1, argv=0xbffff3f4) at main.cc:55
(gdb)


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to