On Tuesday 18 of January 2011 16:31:32 Mattias Gaertner wrote: > On Tue, 18 Jan 2011 16:15:42 +0100 > > Andrea Mauri <andrea.mauri...@gmail.com> wrote: > > Il 18/01/2011 15:43, Mattias Gaertner ha scritto: > > > Maybe you have a library mismatch. Can you try to build on the target > > > machine? > > > > What do you mean? > > What I have to build? > > Lazarus? The libraries? > > I installed fpc 2.4.2 from rpm then downlaoded lazarus from svn and make > > clean all > > gdb is warning that some addresses mismatch. I never saw these errors, > but googling gave some causes. > > > after that I get more or less the same bt as before and lazarus crashes > > (it does not crash if run lazarus outside gdb): > > > > [giacca@centos lazarus_svn]$ gdb lazarus > > GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-23.el5_5.2) > > Copyright (C) 2009 Free Software Foundation, Inc. > > > >[...] > > > > (gdb) break fpc_raiseexception > > Breakpoint 1 at 0x806cf06 > > (gdb) run > > Starting program: /home/giacca/lazarus_svn/lazarus > > warning: .dynamic section for "/usr/lib/libcairo.so.2" is not at the > > expected address > > warning: difference appears to be caused by prelink, adjusting > > expectations > > I never saw that gdb warning, but it may be the cause of your > strange crashes. > > >[...] > > > > Program received signal SIGSEGV, Segmentation fault. > > 0x00b55e49 in gtk_object_get_data () from /usr/lib/libgtk-x11-2.0.so.0 > > (gdb) bt > > #0 0x00b55e49 in gtk_object_get_data () from > > /usr/lib/libgtk-x11-2.0.so.0 #1 0x08285990 in GETMAINWIDGET > > (WIDGET=0xff3b3b3b) at gtk2proc.inc:3591 #2 0x0828638d in GETWIDGETINFO > > (AWIDGET=0xff3b3b3b, ACREATE=false) > > > > at gtk2proc.inc:3939 > > > > #3 0x08286363 in GETWIDGETINFO (AWIDGET=0xff3b3b3b) at gtk2proc.inc:3929 > > #4 0x082fc723 in GTK2WSDELAYEDWINDOWSTATECHANGE (DATA=0x94a050) > > > > at gtk2wsforms.pp:139 > > > > #5 0x006d6451 in ?? () from /lib/libglib-2.0.so.0 > > #6 0x006d81a2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0 > > #7 0x006db196 in ?? () from /lib/libglib-2.0.so.0 > > #8 0x006db6ee in g_main_context_iteration () from /lib/libglib-2.0.so.0 > > #9 0x081fec75 in TGTK2WIDGETSET__APPPROCESSMESSAGES ( > > > > this=<error reading variable>) at gtk2widgetset.inc:2395 > > > > #10 0x0809e539 in TAPPLICATION__PROCESSMESSAGES (this=<error reading > > variable>) > > > > at ./include/application.inc:351 > > > > #11 0x082fc976 in GTK2FORMEVENT (WIDGET=0x8e389f8, EVENT=0x8e1c2e0, > > > > DATA=0x22e0990) at gtk2wsforms.pp:224 > > > > #12 0x00b36130 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 > > #13 0x00779f81 in g_closure_invoke () from /lib/libgobject-2.0.so.0 > > #14 0x0078adab in ?? () from /lib/libgobject-2.0.so.0 > > #15 0x0078c0af in g_signal_emit_valist () from /lib/libgobject-2.0.so.0 > > #16 0x0078c4a9 in g_signal_emit () from /lib/libgobject-2.0.so.0 > > #17 0x00c4a55a in ?? () from /usr/lib/libgtk-x11-2.0.so.0 > > ---Type <return> to continue, or q <return> to quit--- > > #18 0x00b308c9 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0 > > #19 0x001422ca in ?? () from /usr/lib/libgdk-x11-2.0.so.0 > > #20 0x006d81a2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0 > > #21 0x006db196 in ?? () from /lib/libglib-2.0.so.0 > > #22 0x006db6ee in g_main_context_iteration () from /lib/libglib-2.0.so.0 > > #23 0x081fec75 in TGTK2WIDGETSET__APPPROCESSMESSAGES ( > > > > this=<error reading variable>) at gtk2widgetset.inc:2395 > > > > #24 0x0809e539 in TAPPLICATION__PROCESSMESSAGES (this=<error reading > > variable>) > > > > at ./include/application.inc:351 > > > > #25 0x082fc976 in GTK2FORMEVENT (WIDGET=0x8fce738, EVENT=0x910f9f8, > > > > DATA=0x1143450) at gtk2wsforms.pp:224 > > > > #26 0x00b36130 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 > > #27 0x00779f81 in g_closure_invoke () from /lib/libgobject-2.0.so.0 > > #28 0x0078adab in ?? () from /lib/libgobject-2.0.so.0 > > #29 0x0078c0af in g_signal_emit_valist () from /lib/libgobject-2.0.so.0 > > #30 0x0078c4a9 in g_signal_emit () from /lib/libgobject-2.0.so.0 > > #31 0x00c4a55a in ?? () from /usr/lib/libgtk-x11-2.0.so.0 > > #32 0x00b308c9 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0 > > #33 0x001422ca in ?? () from /usr/lib/libgdk-x11-2.0.so.0 > > #34 0x006d81a2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0 > > #35 0x006db196 in ?? () from /lib/libglib-2.0.so.0 > > #36 0x006db6ee in g_main_context_iteration () from /lib/libglib-2.0.so.0 > > #37 0x081fec75 in TGTK2WIDGETSET__APPPROCESSMESSAGES ( > > ---Type <return> to continue, or q <return> to quit--- > > > > this=<error reading variable>) at gtk2widgetset.inc:2395 > > > > #38 0x0809e539 in TAPPLICATION__PROCESSMESSAGES (this=<error reading > > variable>) > > > > at ./include/application.inc:351 > > > > #39 0x082fc976 in GTK2FORMEVENT (WIDGET=0x8fce5e8, EVENT=0x90d4778, > > > > DATA=0x23a3c0) at gtk2wsforms.pp:224 > > Please create a bug report. > The code in gtk2wsforms.pp:224 looks strange to me and there is no > comment why this is needed. > > Zeljko?
gtk2WSDelayedWindowStateChange is there to avoid recursions during hide/show and it works ok. (just re-tested with gtk2-2.12 (fedora 3) and Gtk2-2.22 Fedora 14). Let him open an issue WITH EXAMPLE and I'll take a look into. zeljko -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus