Hi Mattias,

Here is the backtrace you asked for. I can reproduce this crash on
demand. Simply open the IDE, change between compiler versions (2.2.5 ->
2.3.1) in the Environment options and close the dialog. I have no idea
why that affects things, but this help the crash. :)  Then in Project
Inspector, right click on the package and select the remove option. Now
the IDE crashes. After a restart of the IDE, I can remove the package
using the "-" (minus) button in the Project Inspector.

Below is the console output I get - without running in through GDB. I
have also attached the output when i do run it through the GDB debugger.
Make your pick. ;-)

I'm using Lazarus r22462 with FPC 2.3.1 (latest fixes_2.4 revision)
under Linux 64-bit Ubuntu. Lazarus IDE is compiled with GTK2 widgetset.


-----------------------------------
$ ./lazarus
[WARNING] Out of OEM specific VK codes, changing to unassigned
[WARNING] Out of unassigned VK codes, assigning $FF
TMainIDE.ParseCmdLineOptions:
  PrimaryConfigPath="/home/graemeg/.config/lazarus/"
  SecondaryConfigPath="/etc/lazarus"
TApplication.HandleException Access violation
  Stack trace:
  $00000000007072DC line 411 of ../inc/objpas.inc
  $00007F82E0BAC20A
[TMainIDE.Destroy] A
WARNING: TLCLComponent.Destroy with LCLRefCount>0. Hint: Maybe the
component is processing an event?
[TMainIDE.Destroy] B  -> inherited Destroy... TMainIDE
[TMainIDE.Destroy] END
[TGtkWidgetSet.Destroy] WARNING: There are 2 unreleased DCs, a detailed
dump follows:
[TGtkWidgetSet.Destroy]  DCs:   00007F82D9773E40 00007F82D97733C0
[TGtkWidgetSet.Destroy] WARNING: There are 25 unreleased GDIObjects, a
detailed dump follows:
[TGtkWidgetSet.Destroy]   GDIOs: 00007F82D9251840 00007F82D9251E40
00007F82D922B440 00007F82D9256CC0 00007F82D92517C0 00007F82D9251D40
00007F82D9248840
[TGtkWidgetSet.Destroy]   gdiBitmap: 22
[TGtkWidgetSet.Destroy]   gdiBrush: 1
[TGtkWidgetSet.Destroy]   gdiFont: 1
[TGtkWidgetSet.Destroy]   gdiPen: 1
lazarus(work) $

-----------------------------------



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/

$ gdb /opt/lazarus/lazarus
GNU gdb 6.8-debian
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-linux-gnu"...
b(gdb) break fpc_raiseexception
Breakpoint 1 at 0x708320: file ../inc/except.inc, line 191.
(gdb) run
Starting program: /opt/git/lazarus_argon/lazarus 
[Thread debugging using libthread_db enabled]
[New Thread 0x7fe7e90c3780 (LWP 18425)]
[WARNING] Out of OEM specific VK codes, changing to unassigned
[WARNING] Out of unassigned VK codes, assigning $FF
TMainIDE.ParseCmdLineOptions:
  PrimaryConfigPath="/home/graemeg/.config/lazarus/"
  SecondaryConfigPath="/etc/lazarus"

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fe7e90c3780 (LWP 18425)]
INHERITSFROM (this=0x7c380081, ACLASS=0x140ccb8) at ../inc/objpas.inc:412
warning: Source file is more recent than executable.
412                  vmt := vmt^.vParent;
(gdb) bt
#0  INHERITSFROM (this=0x7c380081, ACLASS=0x140ccb8) at ../inc/objpas.inc:412
#1  0x0000000000706aec in fpc_do_is (ACLASS=0x7c380081, AOBJECT=0x7c380081) at 
../inc/objpas.inc:38
#2  0x000000000323df00 in ?? ()
#3  0x00000000009b146c in GTKWSPOPUPDELAYEDCLOSE (DATA=0x7fe7e02eef40, 
WIDGETINFO=0x7fe7e02eef40)
    at ../gtk/gtkwsmenus.pp:380
#4  0x00007fe7e7c4420a in g_main_context_dispatch () from 
/usr/lib/libglib-2.0.so.0
#5  0x00007fe7e7c478e0 in ?? () from /usr/lib/libglib-2.0.so.0
#6  0x00007fe7e7c47a7c in g_main_context_iteration () from 
/usr/lib/libglib-2.0.so.0
#7  0x00007fe7e84eca0d in gtk_main_iteration_do () from 
/usr/lib/libgtk-x11-2.0.so.0
#8  0x000000000090a50e in APPPROCESSMESSAGES (this=0x7fe7e8f29040) at 
../gtk/gtkwidgetset.inc:1225
#9  0x0000000000723199 in SHOWMODAL (this=0x7fe7df844c10) at 
include/customform.inc:2326
#10 0x00000000009817a9 in SHOWPROMPTDIALOG (DIALOGCAPTION=0x1567948 'Confirm 
deleting dependency', 
    DIALOGMESSAGE=0x7fe7df6eb310 'Delete dependency for fpgui_toolkit?', 
DIALOGTYPE=259, 
    BUTTONS=0x7fe7e0052520, BUTTONCOUNT=2, DEFAULTINDEX=0, ESCAPERESULT=5, 
USEDEFAULTPOS=true, X=0, 
    Y=0) at include/promptdialog.inc:545
#11 0x00000000007b6c0b in PROMPTUSER (this=0x7fe7e8f29040, 
    DIALOGCAPTION=0x1567948 'Confirm deleting dependency', 
    DIALOGMESSAGE=0x7fe7df6eb310 'Delete dependency for fpgui_toolkit?', 
DIALOGTYPE=259, 
    BUTTONS=0x7fe7e0052520, BUTTONCOUNT=2, DEFAULTINDEX=0, ESCAPERESULT=5)
    at include/intfbaselcl.inc:585
#12 0x00000000008060e2 in PROMPTUSER (DIALOGCAPTION=0x1567948 'Confirm deleting 
dependency', 
    DIALOGMESSAGE=0x7fe7df6eb310 'Delete dependency for fpgui_toolkit?', 
DIALOGTYPE=259, 
    BUTTONS=0x7fe7e0052520, BUTTONCOUNT=2, DEFAULTINDEX=0, ESCAPERESULT=5) at 
include/lclintf.inc:386
#13 0x000000000097f957 in MESSAGEDLG (ACAPTION=0x1567948 'Confirm deleting 
dependency', 
    AMSG=0x7fe7df6eb310 'Delete dependency for fpgui_toolkit?', 
DLGTYPE=MTCONFIRMATION, BUTTONS=3, 
    HELPCTX=0) at include/messagedialogs.inc:177
#14 0x0000000000c2a3ce in REMOVEBITBTNCLICK (this=0x7fe7df959b50, 
SENDER=0x7fe7e025c260)
---Type <return> to continue, or q <return> to quit---
---Type <return> to continue, or q <return> to quit---
    at projectinspector.pas:381
#15 0x00000000008bc00c in CLICK (this=0x7fe7e025c260) at include/menuitem.inc:75
#16 0x00000000008bc7fa in DOCLICKED (this=0x7fe7e025c260, m...@0x7ffff10f4578)
    at include/menuitem.inc:269
#17 0x00000000007073cd in DISPATCH (this=0x7c380081, messa...@0x7c380081) at 
../inc/objpas.inc:465
#18 0x00000000008bc7b8 in ?? ()
#19 0x00007fe7e025c260 in ?? ()
#20 0x000000000140c618 in _$MENUS$_Ld45 ()
#21 0x0000000000000001 in ?? ()
#22 0x0000000000000006 in ?? ()
#23 0x00007ffff10f4578 in ?? ()
#24 0x00007fe7e025c260 in ?? ()
#25 0x000000000350dd50 in ?? ()
#26 0x00007fe7e7ee8d30 in ?? () from /usr/lib/libgobject-2.0.so.0
#27 0x0000000000000000 in ?? ()

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to