[Lazarus] Help on Exception Handling Problem

David B Copeland david.copeland at jsidata.ca
Tue Oct 6 13:39:36 CEST 2009


On Mon, 2009-10-05 at 23:27 +0200, Mattias Gaertner wrote:
> On Mon, 05 Oct 2009 10:35:21 -0400
> Run your program in the debugger and pass the program the parameter
> --g-fatal-warnings.
> 
> Reproduce the bug. The program will halt on the gtk criticals.
> Create a backtrace with 'backtrace'.
> 
> 
> Mattias
> 

Here is the backtrace. I'm going to attempt to reproduce the problem in
a small test application.

Dave.

-------------- next part --------------
david.copeland at dbc:~/projects/tracker/bin> gdb ./tracker
GNU gdb (GDB; openSUSE 11.1) 6.8.50.20081120-cvs
Copyright (C) 2008 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-suse-linux".
For bug reporting instructions, please see:
<http://bugs.opensuse.org/>...
(gdb) run --g-fatal-warnings
Starting program: /home/david.copeland/projects/tracker/bin/tracker --g-fatal-wa
rnings
[Thread debugging using libthread_db enabled]

GLib-GObject-CRITICAL **: g_object_ref: assertion `object->ref_count > 0' failed
aborting...

Program received signal SIGABRT, Aborted.
0x00007ffff5b3f645 in raise () from /lib64/libc.so.6
(gdb) backtrace
#0  0x00007ffff5b3f645 in raise () from /lib64/libc.so.6
#1  0x00007ffff5b40c33 in abort () from /lib64/libc.so.6
#2  0x00007ffff6b3e1fe in g_logv () from /usr/lib64/libglib-2.0.so.0
#3  0x00007ffff6b3e293 in g_log () from /usr/lib64/libglib-2.0.so.0
#4  0x00007ffff6dcd4fa in g_object_ref () from /usr/lib64/libgobject-2.0.so.0
#5  0x00007ffff6dcf788 in ?? () from /usr/lib64/libgobject-2.0.so.0
#6  0x00007ffff6dedfc3 in g_value_set_instance ()
   from /usr/lib64/libgobject-2.0.so.0
#7  0x00007ffff6de254f in g_signal_emit_valist ()
   from /usr/lib64/libgobject-2.0.so.0
#8  0x00007ffff6de2c63 in g_signal_emit () from /usr/lib64/libgobject-2.0.so.0
#9  0x00007ffff74e908e in gtk_widget_unparent ()
   from /usr/lib64/libgtk-x11-2.0.so.0
#10 0x00007ffff734f3de in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#11 0x00007ffff7353c4e in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#12 0x00007ffff6dcd368 in g_object_unref () from /usr/lib64/libgobject-2.0.so.0
#13 0x00007ffff7358ab9 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#14 0x00007ffff6dcb37d in g_closure_invoke ()
   from /usr/lib64/libgobject-2.0.so.0
#15 0x00007ffff6de1463 in ?? () from /usr/lib64/libgobject-2.0.so.0
#16 0x00007ffff6de2738 in g_signal_emit_valist ()
   from /usr/lib64/libgobject-2.0.so.0
#17 0x00007ffff6de2c63 in g_signal_emit () from /usr/lib64/libgobject-2.0.so.0
#18 0x00007ffff73f9460 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#19 0x00007ffff6dcd790 in g_object_run_dispose ()
   from /usr/lib64/libgobject-2.0.so.0
#20 0x0000000000615de9 in DESTROYWIDGET (WIDGET=0x13b7b30)
    at ../gtk/gtkproc.inc:4205
#21 0x00000000005f07e3 in DESTROYCONNECTEDWIDGET (WIDGET=0x13b7b30,
    CHECKIFDESTROYING=false, this=0x7ffff7e03020)
    at ../gtk/gtkwidgetset.inc:3973
#22 0x00000000005f0476 in DESTROYLCLCOMPONENT (SENDER=0x7ffff1523010,
    this=0x7ffff7e03020) at ../gtk/gtkwidgetset.inc:3852
#23 0x000000000067d001 in DESTROYHANDLE (AWINCONTROL=0x7ffff1523010,
    this=0xc696c0) at ../gtk/gtkwscontrols.pp:251
#24 0x00000000006c2476 in DESTROYHANDLE (AWINCONTROL=0x7ffff1523010,
    this=0x7ffff1534cd0) at gtk2wsstdctrls.pp:1702
#25 0x00000000005a52c8 in DESTROYWND (this=0x7ffff1523010)
    at include/wincontrol.inc:7236
#26 0x00000000005d16c7 in DESTROYWND (this=0x7ffff1523010)
    at include/customcombobox.inc:86
#27 0x00000000005a06b5 in DESTROYHANDLE (this=0x7ffff1523010)
    at include/wincontrol.inc:4938
#28 0x00000000005a069f in DESTROYHANDLE (this=0x7ffff1522ad0)
    at include/wincontrol.inc:4934
#29 0x00000000005a069f in DESTROYHANDLE (this=0x7ffff15191f0)
    at include/wincontrol.inc:4934
#30 0x00000000005008d1 in SHOWMODAL (SHOWMODAL=2, this=0x7ffff15191f0)
    at include/customform.inc:2355
#31 0x00000000007ea01f in UNITPROJDETAILS_TFORMPROJDETAILS_$__BUTTONPRICEJOBCLIC                               K$TOBJECT ()
#32 0x00000000005ac18d in CLICK (this=0x7ffff0572ab0)
    at include/control.inc:2275
#33 0x00000000005dc4de in CLICK (this=0x7ffff0572ab0)
    at include/buttoncontrol.inc:72
#34 0x00000000005dcbf8 in CLICK (this=0x7ffff0572ab0)
    at include/buttons.inc:164
---Type <return> to continue, or q <return> to quit---
#35 0x00000000005dd205 in CLICK (this=0x7ffff0572ab0)
    at include/buttons.inc:331
#36 0x00000000005dc341 in WMDEFAULTCLICKED (MESSAGE=@0x7fffffffa978,
    this=0x7ffff0572ab0) at include/buttoncontrol.inc:26
#37 0x000000000079c278 in SYSTEM_TOBJECT_$__DISPATCH$formal ()
#38 0x00007fffffffa978 in ?? ()
#39 0x00007ffff0572ab0 in ?? ()
#40 0x0000000200010407 in ?? ()
#41 0x0000000000000001 in ?? ()
#42 0x0000000000bb636c in _$STDCTRLS$_Ld71 ()
#43 0x00000000005dc320 in ?? ()
#44 0x0000000000bb6388 in _$STDCTRLS$_Ld71 ()
#45 0x00000000005dc320 in ?? ()
#46 0x00007ffff0572ab0 in ?? ()
#47 0x0000000000bb7580 in _$STDCTRLS$_Ld79 ()
#48 0x0000000000bb7580 in _$STDCTRLS$_Ld79 ()
#49 0x00000000010c6390 in ?? ()
#50 0x0000000000e28240 in ?? ()
#51 0x00000000005ab0de in WNDPROC (THEMESSAGE=@0x7fffffffa978,
    this=0x7ffff0572ab0) at include/control.inc:1641
#52 0x00000000005a0ac1 in WNDPROC (MESSAGE=@0x7fffffffa978,
    this=0x7ffff0572ab0) at include/wincontrol.inc:5035
#53 0x0000000000625105 in DELIVERMESSAGE (DELIVERMESSAGE=20349984,
    TARGET=0x7ffff0572ab0, AMESSAGE=@0x7fffffffa978) at lclmessageglue.pas:111
#54 0x00000000006c2afe in GTK2WSBUTTON_CLICKED (GTK2WSBUTTON_CLICKED=false,
    AWIDGET=0x1060a30, AINFO=0x7ffff7e12aa0) at gtk2wsstdctrls.pp:1853
#55 0x00007ffff6dcb37d in g_closure_invoke ()
   from /usr/lib64/libgobject-2.0.so.0
#56 0x00007ffff6de107d in ?? () from /usr/lib64/libgobject-2.0.so.0
#57 0x00007ffff6de2738 in g_signal_emit_valist ()
   from /usr/lib64/libgobject-2.0.so.0
#58 0x00007ffff6de2c63 in g_signal_emit () from /usr/lib64/libgobject-2.0.so.0
#59 0x00007ffff733235d in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#60 0x00007ffff6dcb2cf in g_closure_invoke ()
   from /usr/lib64/libgobject-2.0.so.0
#61 0x00007ffff6de0998 in ?? () from /usr/lib64/libgobject-2.0.so.0
#62 0x00007ffff6de2738 in g_signal_emit_valist ()
   from /usr/lib64/libgobject-2.0.so.0
#63 0x00007ffff6de2c63 in g_signal_emit () from /usr/lib64/libgobject-2.0.so.0
#64 0x00007ffff73315ad in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#65 0x00007ffff73d7b78 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#66 0x00007ffff6dcb2cf in g_closure_invoke ()
   from /usr/lib64/libgobject-2.0.so.0
#67 0x00007ffff6de0d5b in ?? () from /usr/lib64/libgobject-2.0.so.0
#68 0x00007ffff6de25af in g_signal_emit_valist ()
   from /usr/lib64/libgobject-2.0.so.0
#69 0x00007ffff6de2c63 in g_signal_emit () from /usr/lib64/libgobject-2.0.so.0
#70 0x00007ffff74db05e in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#71 0x00007ffff73d04e3 in gtk_propagate_event ()
   from /usr/lib64/libgtk-x11-2.0.so.0
#72 0x00007ffff73d1603 in gtk_main_do_event ()
   from /usr/lib64/libgtk-x11-2.0.so.0
#73 0x00007ffff705420c in ?? () from /usr/lib64/libgdk-x11-2.0.so.0
#74 0x00007ffff6b340fb in g_main_context_dispatch ()
   from /usr/lib64/libglib-2.0.so.0
#75 0x00007ffff6b378cd in ?? () from /usr/lib64/libglib-2.0.so.0
#76 0x00007ffff6b37a8b in g_main_context_iteration ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib64/libglib-2.0.so.0
#77 0x00007ffff73d185d in gtk_main_iteration_do ()
   from /usr/lib64/libgtk-x11-2.0.so.0
#78 0x00000000005eb09e in APPWAITMESSAGE (this=0x7ffff7e03020)
    at ../gtk/gtkwidgetset.inc:1291
#79 0x00000000005054e8 in IDLE (WAIT=true, this=0x7ffff7e653f0)
    at include/application.inc:338
#80 0x0000000000500846 in SHOWMODAL (SHOWMODAL=0, this=0x7ffff153db30)
    at include/customform.inc:2340
#81 0x00000000007ca3b4 in UNITOPENCURRENT_TFORMOPENCURRENT_$__BUTTONOPENCLICK$TOBJECT ()
#82 0x00000000005ac18d in CLICK (this=0x7ffff0697810)
    at include/control.inc:2275
#83 0x00000000005dc4de in CLICK (this=0x7ffff0697810)
    at include/buttoncontrol.inc:72
#84 0x00000000005dcbf8 in CLICK (this=0x7ffff0697810)
    at include/buttons.inc:164
#85 0x00000000005dd205 in CLICK (this=0x7ffff0697810)
    at include/buttons.inc:331
#86 0x00000000005dc341 in WMDEFAULTCLICKED (MESSAGE=@0x7fffffffbe28,
    this=0x7ffff0697810) at include/buttoncontrol.inc:26
#87 0x000000000079c278 in SYSTEM_TOBJECT_$__DISPATCH$formal ()
#88 0x00007fffffffbe28 in ?? ()
#89 0x00007ffff0697810 in ?? ()
#90 0x0000000200010407 in ?? ()
#91 0x0000000000000001 in ?? ()
#92 0x0000000000bb636c in _$STDCTRLS$_Ld71 ()
#93 0x00000000005dc320 in ?? ()
#94 0x0000000000bb6388 in _$STDCTRLS$_Ld71 ()
#95 0x00000000005dc320 in ?? ()
#96 0x00007ffff0697810 in ?? ()
#97 0x0000000000bb7580 in _$STDCTRLS$_Ld79 ()
#98 0x0000000000bb7580 in _$STDCTRLS$_Ld79 ()
#99 0x000000000105cb20 in ?? ()
#100 0x0000000000e28240 in ?? ()
#101 0x00000000005ab0de in WNDPROC (THEMESSAGE=@0x7fffffffbe28,
    this=0x7ffff0697810) at include/control.inc:1641
#102 0x00000000005a0ac1 in WNDPROC (MESSAGE=@0x7fffffffbe28,
    this=0x7ffff0697810) at include/wincontrol.inc:5035
#103 0x0000000000625105 in DELIVERMESSAGE (DELIVERMESSAGE=17410432,
    TARGET=0x7ffff0697810, AMESSAGE=@0x7fffffffbe28) at lclmessageglue.pas:111
#104 0x00000000006c2afe in GTK2WSBUTTON_CLICKED (GTK2WSBUTTON_CLICKED=false,
    AWIDGET=0xe9cc30, AINFO=0x7ffff7e0ef20) at gtk2wsstdctrls.pp:1853
#105 0x00007ffff6dcb37d in g_closure_invoke ()
   from /usr/lib64/libgobject-2.0.so.0
#106 0x00007ffff6de107d in ?? () from /usr/lib64/libgobject-2.0.so.0
#107 0x00007ffff6de2738 in g_signal_emit_valist ()
   from /usr/lib64/libgobject-2.0.so.0
#108 0x00007ffff6de2c63 in g_signal_emit () from /usr/lib64/libgobject-2.0.so.0
#109 0x00007ffff733235d in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#110 0x00007ffff6dcb37d in g_closure_invoke ()
   from /usr/lib64/libgobject-2.0.so.0
#111 0x00007ffff6de0998 in ?? () from /usr/lib64/libgobject-2.0.so.0
#112 0x00007ffff6de2738 in g_signal_emit_valist ()
   from /usr/lib64/libgobject-2.0.so.0
#113 0x00007ffff6de2c63 in g_signal_emit () from /usr/lib64/libgobject-2.0.so.0
#114 0x00007ffff73315ad in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#115 0x00007ffff73d7b78 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#116 0x00007ffff6dcb37d in g_closure_invoke ()
   from /usr/lib64/libgobject-2.0.so.0
#117 0x00007ffff6de0d5b in ?? () from /usr/lib64/libgobject-2.0.so.0
#118 0x00007ffff6de25af in g_signal_emit_valist ()
   from /usr/lib64/libgobject-2.0.so.0
#119 0x00007ffff6de2c63 in g_signal_emit () from /usr/lib64/libgobject-2.0.so.0
#120 0x00007ffff74db05e in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#121 0x00007ffff73d04e3 in gtk_propagate_event ()
   from /usr/lib64/libgtk-x11-2.0.so.0
#122 0x00007ffff73d1603 in gtk_main_do_event ()
   from /usr/lib64/libgtk-x11-2.0.so.0
#123 0x00007ffff705420c in ?? () from /usr/lib64/libgdk-x11-2.0.so.0
#124 0x00007ffff6b340fb in g_main_context_dispatch ()
   from /usr/lib64/libglib-2.0.so.0
#125 0x00007ffff6b378cd in ?? () from /usr/lib64/libglib-2.0.so.0
#126 0x00007ffff6b37a8b in g_main_context_iteration ()
   from /usr/lib64/libglib-2.0.so.0
#127 0x00007ffff73d185d in gtk_main_iteration_do ()
   from /usr/lib64/libgtk-x11-2.0.so.0
#128 0x00000000005eb09e in APPWAITMESSAGE (this=0x7ffff7e03020)
    at ../gtk/gtkwidgetset.inc:1291
#129 0x00000000005054e8 in IDLE (WAIT=true, this=0x7ffff7e653f0)
    at include/application.inc:338
#130 0x0000000000500846 in SHOWMODAL (SHOWMODAL=0, this=0x7ffff0683830)
    at include/customform.inc:2340
#131 0x00000000007a68ab in UNIT1_TFORMMAIN_$__MENUPROJECTOPENCLICK$TOBJECT ()
#132 0x00000000005ac18d in CLICK (this=0x7ffff1507370)
    at include/control.inc:2275
#133 0x000000000066dc75 in CLICK (this=0x7ffff1507370)
    at include/speedbutton.inc:114
#134 0x000000000066f7b2 in WMLBUTTONUP (MESSAGE=@0x7fffffffd078,
    this=0x7ffff1507370) at include/speedbutton.inc:791
#135 0x000000000079c278 in SYSTEM_TOBJECT_$__DISPATCH$formal ()
#136 0x00007fffffffd078 in ?? ()
#137 0x00007ffff1507370 in ?? ()
#138 0x0000000500000202 in ?? ()
#139 0x0000000c00000001 in ?? ()
#140 0x0000000000c133ec in _$BUTTONS$_Ld96 ()
#141 0x000000000066f5a8 in ?? ()
#142 0x0000000000c13428 in _$BUTTONS$_Ld96 ()
#143 0x000000000066f5a8 in ?? ()
#144 0x00007ffff1507370 in ?? ()
#145 0x0000000000c13a60 in _$BUTTONS$_Ld97 ()
#146 0x0000000000c13a60 in _$BUTTONS$_Ld97 ()
#147 0x0000000000000002 in ?? ()
#148 0x0000000000000000 in ?? ()


More information about the Lazarus mailing list