[gentoo-user] Best way to build a debugging binary

2005-09-05 Thread Alex Bennee
Hi,

I keep getting crashes when exiting evolution so I thought I'd have a go
at generating a decent debugging build so I can submit a bug report.

I thought the best thing to do would be re-emerge evolution with
debugging enabled:

CFLAGS=-g3 -O0 USE=debug emerge -v evolution

However this doesn't seem to be having the desired effect. For one
emerge cleans up the build so there is no reference source tree. The
other is the debugging symbols don't seem to be fully there. e.g:

(gdb) bt
#0  0x0001 in ?? ()
#1  0x2aaab0ca61fd in camel_object_trigger_event ()
from /usr/lib/libcamel-1.2.so.0
#2  0x2aaab1f6be78 in camel_vee_folder_get_location ()
from /usr/lib/libcamel-provider-1.2.so.3
#3  0x2aaab1f69226 in camel_vee_folder_remove_folder ()
from /usr/lib/libcamel-provider-1.2.so.3
#4  0x2aaab1f6c59b in camel_vee_folder_get_location ()
from /usr/lib/libcamel-provider-1.2.so.3
#5  0x2aaab0ca5edb in camel_object_unref ()
from /usr/lib/libcamel-1.2.so.0
#6  0x2aaab1f6c59b in camel_vee_folder_get_location ()
from /usr/lib/libcamel-provider-1.2.so.3
#7  0x2aaab0ca5edb in camel_object_unref ()
from /usr/lib/libcamel-1.2.so.0
#8  0x2aaab1f6c59b in camel_vee_folder_get_location ()
from /usr/lib/libcamel-provider-1.2.so.3
#9  0x2aaab0ca5edb in camel_object_unref ()
from /usr/lib/libcamel-1.2.so.0
#10 0x2aaab211c7a1 in vfolder_gui_add_from_address ()
   from /usr/lib/evolution/2.2/components/libevolution-mail.so
#11 0x2e4bcccd in g_hash_table_foreach ()
from /usr/lib/libglib-2.0.so.0
#12 0x2aaab211c7d2 in mail_vfolder_shutdown ()
   from /usr/lib/evolution/2.2/components/libevolution-mail.so
#13 0x2aaab2109865 in mail_filter_delete_uri ()
   from /usr/lib/evolution/2.2/components/libevolution-mail.so
#14 0x2abc98ae in
_ORBIT_skel_small_GNOME_Evolution_Component_quit ()
   from /usr/lib/evolution/2.2/libeshell.so.0
#15 0x2c8fdc26 in ORBit_c_stub_invoke ()
from /usr/lib/libORBit-2.so.0
#16 0x2abcb3aa in GNOME_Evolution_Component_quit ()
from /usr/lib/evolution/2.2/libeshell.so.0
#17 0x0041d1eb in e_shell_construct_result_to_string ()
#18 0x0041d422 in e_shell_quit ()
#19 0x00417f0e in e_shell_startup_wizard_create ()
#20 0x2e16914a in g_closure_invoke ()
from /usr/lib/libgobject-2.0.so.0
#21 0x2c52b433 in bonobo_closure_invoke_va_list ()
from /usr/lib/libbonobo-2.so.0
#22 0x2c52b60e in bonobo_closure_invoke ()
from /usr/lib/libbonobo-2.so.0
#23 0x2c0263e3 in bonobo_ui_component_get_type ()
from /usr/lib/libbonoboui-2.so.0
#24 0x2c8fdc26 in ORBit_c_stub_invoke ()
from /usr/lib/libORBit-2.so.0
#25 0x2c52ed39 in Bonobo_UIComponent_execVerb ()
from /usr/lib/libbonobo-2.so.0
#26 0x2c02d9b7 in bonobo_ui_engine_dump ()
from /usr/lib/libbonoboui-2.so.0
#27 0x2e16914a in g_closure_invoke ()
from /usr/lib/libgobject-2.0.so.0
#28 0x2e17c60f in g_signal_has_handler_pending ()
from /usr/lib/libgobject-2.0.so.0
#29 0x2e17d99e in g_signal_emit_valist ()
from /usr/lib/libgobject-2.0.so.0
#30 0x2e17dd03 in g_signal_emit ()
from /usr/lib/libgobject-2.0.so.0
#31 0x2c031bff in bonobo_ui_sync_wrap_widget ()
from /usr/lib/libbonoboui-2.so.0
#32 0x2e16914a in g_closure_invoke ()
from /usr/lib/libgobject-2.0.so.0
#33 0x2e17caaa in g_signal_has_handler_pending ()
from /usr/lib/libgobject-2.0.so.0
#34 0x2e17d99e in g_signal_emit_valist ()
from /usr/lib/libgobject-2.0.so.0
#35 0x2e17dd03 in g_signal_emit ()
from /usr/lib/libgobject-2.0.so.0
#36 0x2d209d92 in gtk_widget_activate ()
from /usr/lib/libgtk-x11-2.0.so.0
#37 0x2d13ad51 in gtk_menu_shell_activate_item ()
from /usr/lib/libgtk-x11-2.0.so.0
#38 0x2d13b06b in gtk_menu_shell_activate_item ()
from /usr/lib/libgtk-x11-2.0.so.0
#39 0x2d12c6e6 in gtk_marshal_VOID__UINT_STRING ()
from /usr/lib/libgtk-x11-2.0.so.0
#40 0x2e16914a in g_closure_invoke ()
from /usr/lib/libgobject-2.0.so.0
---Type return to continue, or q return to quit---
#41 0x2e17c60f in g_signal_has_handler_pending ()
from /usr/lib/libgobject-2.0.so.0
#42 0x2e17d703 in g_signal_emit_valist ()
from /usr/lib/libgobject-2.0.so.0
#43 0x2e17dd03 in g_signal_emit ()
from /usr/lib/libgobject-2.0.so.0
#44 0x2d209ef0 in gtk_widget_activate ()
from /usr/lib/libgtk-x11-2.0.so.0
#45 0x2d12aac1 in gtk_propagate_event ()
from /usr/lib/libgtk-x11-2.0.so.0
#46 0x2d12ae0c in gtk_main_do_event ()
from /usr/lib/libgtk-x11-2.0.so.0
#47 0x2d900e80 in gdk_event_get_graphics_expose ()
from /usr/lib/libgdk-x11-2.0.so.0
#48 0x2e4c9076 in g_main_context_dispatch ()
from /usr/lib/libglib-2.0.so.0
#49 0x2e4caa98 in g_main_context_acquire ()
from /usr/lib/libglib-2.0.so.0
#50 0x2e4cadfa in g_main_loop_run ()
from /usr/lib/libglib-2.0.so.0
#51 0x2c5193eb in bonobo_main () from 

Re: [gentoo-user] Best way to build a debugging binary

2005-09-05 Thread John Myers
On Monday 05 September 2005 15:32, Alex Bennee wrote:
 Hi,

 I keep getting crashes when exiting evolution so I thought I'd have a go
 at generating a decent debugging build so I can submit a bug report.

 I thought the best thing to do would be re-emerge evolution with
 debugging enabled:

 CFLAGS=-g3 -O0 USE=debug emerge -v evolution

 However this doesn't seem to be having the desired effect. For one
 emerge cleans up the build so there is no reference source tree. The
 other is the debugging symbols don't seem to be fully there. e.g:

[snip]
 Whats the proper gentoo way to build something with symbols for
 getting decent backtraces from?


try FEATURES=nostrip keepwork as well


pgpnMaIXrgC5Z.pgp
Description: PGP signature