[ehopfha@host ~/src/gtkdialog2]$ gcc -v
Reading specs from /project/data/sim/linux/gcc-3.3/lib/gcc-lib/i686-pc-linux-gnu/3.3/specs
Configured with: ./configure --prefix=/project/data/sim/linux/gcc-3.3
Thread model: posix
gcc version 3.3
[ehopfha@host ~/src/gtkdialog2]$ c++ -o main `pkg-config gtkmm-2.0 --cflags --libs` main.cc
[ehopfha@host ~/src/gtkdialog2]$ valgrind --leak-check=yes --num-callers=20 main
==20922== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux.
==20922== Copyright (C) 2002, and GNU GPL'd, by Julian Seward.
==20922== Using valgrind-1.9.3, a program instrumentation system for x86-linux.
==20922== Copyright (C) 2000-2002, and GNU GPL'd, by Julian Seward.
==20922== Estimated CPU clock rate is 1403 MHz
==20922== For more details, rerun with: -v
==20922==
==20922== Syscall param write(buf) contains uninitialised or unaddressable byte(s)
==20922==    at 0x420CDB84: __GI___libc_write (in /lib/i686/libc-2.2.93.so)
==20922==    by 0x4080746E: _X11TransWrite (in /usr/X11R6/lib/libX11.so.6.2)
==20922==    by 0x407E7531: (within /usr/X11R6/lib/libX11.so.6.2)
==20922==    by 0x407E8B16: _XReply (in /usr/X11R6/lib/libX11.so.6.2)
==20922==    by 0x407D5F1B: XInternAtom (in /usr/X11R6/lib/libX11.so.6.2)
==20922==    by 0x40721B90: gdk_x11_atom_to_xatom (gdkproperty-x11.c:166)
==20922==    by 0x40721E5E: gdk_x11_get_xatom_by_name (gdkproperty-x11.c:291)
==20922==    by 0x40724CC7: gdk_window_new (gdkwindow-x11.c:545)
==20922==    by 0x405EFEFD: gtk_window_realize (gtkwindow.c:3293)
==20922==    by 0x4037AA32: Gtk::Widget::on_realize() (widget.cc:6075)
==20922==    by 0x40373A5D: Gtk::Widget_Class::realize_callback(_GtkWidget*) (widget.cc:3098)
==20922==    by 0x408E0AA0: g_cclosure_marshal_VOID__VOID (gmarshal.c:77)
==20922==    by 0x408CDF66: g_type_class_meta_marshal (gclosure.c:514)
==20922==    by 0x408CDC0F: g_closure_invoke (gclosure.c:437)
==20922==    by 0x408DFEEC: signal_emit_unlocked_R (gsignal.c:2187)
==20922==    by 0x408DF685: g_signal_emit_valist (gsignal.c:2085)
==20922==    by 0x4054CE7A: gtk_signal_emit (gtksignal.c:355)
==20922==    by 0x405E2AD1: gtk_widget_realize (gtkwidget.c:1896)
==20922==    by 0x405EFC51: gtk_window_show (gtkwindow.c:3108)
==20922==    by 0x4037A8B2: Gtk::Widget::on_show() (widget.cc:6035)
==20922==    Address 0x41C93A60 is 128 bytes inside a block of size 2048 alloc'd
==20922==    at 0x4015D978: calloc (vg_clientfuncs.c:242)
==20922==    by 0x407D952B: XOpenDisplay (in /usr/X11R6/lib/libX11.so.6.2)
==20922==    by 0x4071FEF7: _gdk_windowing_init_check (gdkmain-x11.c:199)
==20922==    by 0x406F2B9B: gdk_init_check (gdk.c:332)
==20922==    by 0x4050C23A: gtk_init_check (gtkmain.c:586)
==20922==    by 0x4050C685: gtk_init (gtkmain.c:777)
==20922==    by 0x4031B0BC: Gtk::Main::init(int*, char***, bool) (main.cc:375)
==20922==    by 0x4031AC69: Gtk::Main::Main(int*, char***, bool) (main.cc:329)
==20922==    by 0x804CF05: main (in /home/ehopfha/src/gtkdialog2/main)
==20922==    by 0x420158D3: __libc_start_main (in /lib/i686/libc-2.2.93.so)
==20922==    by 0x804CE30: (within /home/ehopfha/src/gtkdialog2/main)
==20922==
==20922== Syscall param write(buf) contains uninitialised or unaddressable byte(s)
==20922==    at 0x420CDB84: __GI___libc_write (in /lib/i686/libc-2.2.93.so)
==20922==    by 0x4080746E: _X11TransWrite (in /usr/X11R6/lib/libX11.so.6.2)
==20922==    by 0x407E7531: (within /usr/X11R6/lib/libX11.so.6.2)
==20922==    by 0x407E73B8: _XFlush (in /usr/X11R6/lib/libX11.so.6.2)
==20922==    by 0x407E7ABA: _XEventsQueued (in /usr/X11R6/lib/libX11.so.6.2)
==20922==    by 0x407DAD37: XPending (in /usr/X11R6/lib/libX11.so.6.2)
==20922==    by 0x40716F2C: _gdk_events_queue (gdkevents-x11.c:1688)
==20922==    by 0x40717193: gdk_event_dispatch (gdkevents-x11.c:1769)
==20922==    by 0x40923AE4: g_main_dispatch (gmain.c:1645)
==20922==    by 0x40924AB7: g_main_context_dispatch (gmain.c:2201)
==20922==    by 0x40924DCE: g_main_context_iterate (gmain.c:2241)
==20922==    by 0x4092556B: g_main_loop_run (gmain.c:2490)
==20922==    by 0x404C8B33: gtk_dialog_run (gtkdialog.c:958)
==20922==    by 0x40301DF7: Gtk::Dialog::run() (dialog.cc:334)
==20922==    by 0x804D616: MainWin::on_button_clicked() (in /home/ehopfha/src/gtkdialog2/main)
==20922==    by 0x804D69F: SigC::ObjectSlot0_<void, MainWin>::proxy(void*) (in /home/ehopfha/src/gtkdialog2/main)
==20922==    by 0x406C3F64: Glib::SignalProxyNormal::slot0_void_callback(_GObject*, void*) (signalproxy.cc:101)
==20922==    by 0x408E0AA0: g_cclosure_marshal_VOID__VOID (gmarshal.c:77)
==20922==    by 0x408CDC0F: g_closure_invoke (gclosure.c:437)
==20922==    by 0x408E04CB: signal_emit_unlocked_R (gsignal.c:2187)
==20922==    Address 0x41C93A38 is 88 bytes inside a block of size 2048 alloc'd
==20922==    at 0x4015D978: calloc (vg_clientfuncs.c:242)
==20922==    by 0x407D952B: XOpenDisplay (in /usr/X11R6/lib/libX11.so.6.2)
==20922==    by 0x4071FEF7: _gdk_windowing_init_check (gdkmain-x11.c:199)
==20922==    by 0x406F2B9B: gdk_init_check (gdk.c:332)
==20922==    by 0x4050C23A: gtk_init_check (gtkmain.c:586)
==20922==    by 0x4050C685: gtk_init (gtkmain.c:777)
==20922==    by 0x4031B0BC: Gtk::Main::init(int*, char***, bool) (main.cc:375)
==20922==    by 0x4031AC69: Gtk::Main::Main(int*, char***, bool) (main.cc:329)
==20922==    by 0x804CF05: main (in /home/ehopfha/src/gtkdialog2/main)
==20922==    by 0x420158D3: __libc_start_main (in /lib/i686/libc-2.2.93.so)
==20922==    by 0x804CE30: (within /home/ehopfha/src/gtkdialog2/main)
==20922==
==20922== ERROR SUMMARY: 22 errors from 2 contexts (suppressed: 20 from 2)
==20922== malloc/free: in use at exit: 398509 bytes in 5797 blocks.
==20922== malloc/free: 11020 allocs, 5223 frees, 857670 bytes allocated.
==20922== For counts of detected errors, rerun with: -v
==20922== searching for pointers to 5797 not-freed blocks.
==20922== checked 13407236 bytes.
==20922==
==20922== 37 bytes in 2 blocks are definitely lost in loss record 24 of 78
==20922==    at 0x4015D508: malloc (vg_clientfuncs.c:100)
==20922==    by 0x40828B45: (within /usr/X11R6/lib/libX11.so.6.2)
==20922==    by 0x40829266: _XlcLocaleDirName (in /usr/X11R6/lib/libX11.so.6.2)
==20922==    by 0x40822FE2: _XlcDynamicLoad (in /usr/X11R6/lib/libX11.so.6.2)
==20922==    by 0x40803718: _XOpenLC (in /usr/X11R6/lib/libX11.so.6.2)
==20922==    by 0x408038D2: _XlcCurrentLC (in /usr/X11R6/lib/libX11.so.6.2)
==20922==    by 0x408033D8: XSupportsLocale (in /usr/X11R6/lib/libX11.so.6.2)
==20922==    by 0x4071C2DA: _gdk_x11_initialize_locale (gdkim-x11.c:66)
==20922==    by 0x4071FECB: _gdk_windowing_init_check (gdkmain-x11.c:194)
==20922==    by 0x406F2B9B: gdk_init_check (gdk.c:332)
==20922==    by 0x4050C23A: gtk_init_check (gtkmain.c:586)
==20922==    by 0x4050C685: gtk_init (gtkmain.c:777)
==20922==    by 0x4031B0BC: Gtk::Main::init(int*, char***, bool) (main.cc:375)
==20922==    by 0x4031AC69: Gtk::Main::Main(int*, char***, bool) (main.cc:329)
==20922==    by 0x804CF05: main (in /home/ehopfha/src/gtkdialog2/main)
==20922==    by 0x420158D3: __libc_start_main (in /lib/i686/libc-2.2.93.so)
==20922==    by 0x804CE30: (within /home/ehopfha/src/gtkdialog2/main)
==20922==
==20922== 80 bytes in 2 blocks are possibly lost in loss record 29 of 78
==20922==    at 0x4015D5F2: __builtin_new (vg_clientfuncs.c:126)
==20922==    by 0x4015D62E: operator new(unsigned) (vg_clientfuncs.c:139)
==20922==    by 0x402EACB5: Gtk::VBox_Class::wrap_new(_GObject*) (box.cc:425)
==20922==    by 0x406CAAD8: (anonymous namespace)::create_new_wrapper(_GObject*) (wrap.cc:56)
==20922==    by 0x406CADB1: Glib::wrap_auto(_GObject*, bool) (wrap.cc:138)
==20922==    by 0x402EABD6: Glib::wrap(_GtkVBox*, bool) (box.cc:383)
==20922==    by 0x40301E35: Gtk::Dialog::get_vbox() (dialog.cc:339)
==20922==    by 0x804D98A: MyDialog::MyDialog() (in /home/ehopfha/src/gtkdialog2/main)
==20922==    by 0x804D60B: MainWin::on_button_clicked() (in /home/ehopfha/src/gtkdialog2/main)
==20922==    by 0x804D69F: SigC::ObjectSlot0_<void, MainWin>::proxy(void*) (in /home/ehopfha/src/gtkdialog2/main)
==20922==    by 0x406C3F64: Glib::SignalProxyNormal::slot0_void_callback(_GObject*, void*) (signalproxy.cc:101)
==20922==    by 0x408E0AA0: g_cclosure_marshal_VOID__VOID (gmarshal.c:77)
==20922==    by 0x408CDC0F: g_closure_invoke (gclosure.c:437)
==20922==    by 0x408E04CB: signal_emit_unlocked_R (gsignal.c:2187)
==20922==    by 0x408DF685: g_signal_emit_valist (gsignal.c:2085)
==20922==    by 0x4054CE7A: gtk_signal_emit (gtksignal.c:355)
==20922==    by 0x4048BD1E: gtk_button_clicked (gtkbutton.c:549)
==20922==    by 0x4048CCEA: gtk_real_button_released (gtkbutton.c:1038)
==20922==    by 0x402EC6F8: Gtk::Button_Class::released_callback(_GtkButton*) (button.cc:200)
==20922==    by 0x408E0AA0: g_cclosure_marshal_VOID__VOID (gmarshal.c:77)
==20922==
==20922== 800 bytes in 20 blocks are possibly lost in loss record 58 of 78
==20922==    at 0x4015D978: calloc (vg_clientfuncs.c:242)
==20922==    by 0x4092959E: g_malloc0 (gmem.c:154)
==20922==    by 0x408E2486: type_node_any_new_W (gtype.c:290)
==20922==    by 0x408E27F4: type_node_fundamental_new_W (gtype.c:367)
==20922==    by 0x408E956A: g_type_init_with_debug_flags (gtype.c:2926)
==20922==    by 0x408E96CF: g_type_init (gtype.c:2984)
==20922==    by 0x406F2B8C: gdk_init_check (gdk.c:330)
==20922==    by 0x4050C23A: gtk_init_check (gtkmain.c:586)
==20922==    by 0x4050C685: gtk_init (gtkmain.c:777)
==20922==    by 0x4031B0BC: Gtk::Main::init(int*, char***, bool) (main.cc:375)
==20922==    by 0x4031AC69: Gtk::Main::Main(int*, char***, bool) (main.cc:329)
==20922==    by 0x804CF05: main (in /home/ehopfha/src/gtkdialog2/main)
==20922==    by 0x420158D3: __libc_start_main (in /lib/i686/libc-2.2.93.so)
==20922==    by 0x804CE30: (within /home/ehopfha/src/gtkdialog2/main)
==20922==
==20922== LEAK SUMMARY:
==20922==    definitely lost: 37 bytes in 2 blocks.
==20922==    possibly lost:   880 bytes in 22 blocks.
==20922==    still reachable: 397592 bytes in 5773 blocks.
==20922==         suppressed: 0 bytes in 0 blocks.
==20922== Reachable blocks (those to which a pointer was found) are not shown.
==20922== To see them, rerun with: --show-reachable=yes
==20922==
