On Wed, Feb 22, 2006 at 01:49:12PM +0100, Enrico Zini wrote:
> This one is caused by an exception being raised and not caught, and
> unfortunately it's a bit hard to use a plain stacktrace in these cases.

/me gotta love debugging C++ with gdb

> 
> However, you could do this:

(gdb) break __cxa_throw
Breakpoint 1 at 0x1006bddc
(gdb) run
Starting program: /tmp/buffy-0.11/src/buffy 
Breakpoint 1 at 0xef6f084

(buffy:24146): Gtk-CRITICAL **: gtk_list_store_get_path: assertion `iter->stamp 
== GTK_LIST_STORE (tree_model)->stamp' failed

(buffy:24146): Gtk-CRITICAL **: gtk_tree_path_get_depth: assertion `path != 
NULL' failed

Breakpoint 1, 0x0ef6f084 in __cxa_throw () from /usr/lib/libstdc++.so.6
(gdb) bt
#0  0x0ef6f084 in __cxa_throw () from /usr/lib/libstdc++.so.6
#1  0x10030f98 in isMaildir ()
#2  0x10032158 in enumerateSubfolders ()
#3  0x10032208 in enumerateSubfolders ()
#4  0x1003240c in buffy::MaildirMailFolder::enumerateFolders ()
#5  0x1002bc64 in buffy::MailFolder::enumerateFolders ()
#6  0x1000f500 in Environment::enumerateFolders (this=<value optimized out>, 
[EMAIL PROTECTED])
    at Environment.cc:85
#7  0x1002060c in BuffyWindow::rescanFolders (this=0x7fa55ff8) at 
BuffyWindow.cc:143
#8  0x100260c8 in BuffyWindow::on_show (this=0x7fa55ff8) at BuffyWindow.cc:183
#9  0x0ff131d4 in Gtk::Widget_Class::show_callback () from 
/usr/lib/libgtkmm-2.4.so.1
#10 0x0f0f7f14 in g_cclosure_marshal_VOID__VOID () from 
/usr/lib/libgobject-2.0.so.0
#11 0x0f0e79cc in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#12 0x0f0e82b0 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#13 0x0f0fbb74 in g_signal_stop_emission () from /usr/lib/libgobject-2.0.so.0
#14 0x0f0fd558 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#15 0x0f0fd99c in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#16 0x0fb1cf2c in gtk_widget_show () from /usr/lib/libgtk-x11-2.0.so.0
#17 0x0ff18200 in Gtk::Widget::show () from /usr/lib/libgtkmm-2.4.so.1
#18 0x0fea1b70 in Gtk::Main::run () from /usr/lib/libgtkmm-2.4.so.1
#19 0x100291f8 in main (argc=1, argv=0x7fa56514) at buffy.cc:81
(gdb)

I think your guess was right :)
How do I get gdb to load libbuffy I built myself thus with debug symbols?

thanks,
filippo

--
Filippo Giunchedi
PGP key: 0x6B79D401
random quote follows:

UNIX IS user friendly, it is just selective who his friends are.

Attachment: signature.asc
Description: Digital signature

Reply via email to