IDE crashes when you click button "Change Build Mode" and then click "Cancel" in the Dialog.
Original Reporter info from Mantis: theo @theo222
-
Reporter name:
Original Reporter info from Mantis: theo @theo222
- Reporter name:
Description:
IDE crashes when you click the button "Change Build Mode" and then click "Cancel" in the Dialog.
See attached image for context.
Lazarus 1.7 r51085M FPC 3.1.1 x8
Additional information:
TApplication.HandleException List index (0) out of bounds
Stack trace:
$0000000000516650
$0000000000A33530 line 3420 of project.pp
$00000000004C933E line 6781 of main.pp
$0000000000A38DD0 line 4739 of project.pp
$0000000000A4393B line 6770 of project.pp
$00000000004A24E7 line 971 of ideoptionsintf.pas
$0000000000C9E102 line 435 of ideoptionsdlg.pas
$00000000004BE58F line 4643 of main.pp
$00000000004BB03A line 4050 of main.pp
$00000000004BB1F3 line 4065 of main.pp
$00000000009BE06B line 1599 of idecommands.pas
$00000000009BE0B8 line 1604 of idecommands.pas
$00000000009F9A99 line 499 of toolbarintf.pas
$0000000000733E1B line 171 of include/toolbutton.inc
$00000000006D67D8 line 2181 of include/control.inc
$00000000006D75CD line 2625 of include/control.inc
$000000000043354E
Program received signal SIGSEGV, Segmentation fault.
0x0000000000a40dc6 in UPDATESOURCEDIRECTORIES (this=0x7fffdd864dc0) at project.pp:6287
6287 CurUnitPath:=Owner.BaseCompilerOptions.ParsedOpts.GetParsedValue(pcosUnitPath);
Missing separate debuginfos, use: zypper install....
(gdb) bt
#0 0x0000000000a40dc6 in UPDATESOURCEDIRECTORIES (this=0x7fffdd864dc0) at project.pp:6287
#1 0x000000000113347b in SOURCEDIRECTORIESCHANGED (this=0x7fffdd864dc0) at ../packager/projpackbase.pas:182
#2 0x0000000000a41911 in ALLCHANGED (this=0x7fffdd864dc0) at project.pp:6400
#3 0x00000000004d4c1a in CODETOOLBOSSPREPARETREE (this=0x7fffeda64ad0, SENDER=0x7fffeee730c0) at main.pp:9139
#4 0x000000000089b046 in DOPREPARETREE (this=0x7fffeee730c0) at definetemplates.pas:4414
#5 0x000000000089ac17 in GETDIRDEFINESFORVIRTUALDIRECTORY (this=0x7fffeee730c0) at definetemplates.pas:4346
#6 0x000000000089b455 in GETDEFINESFORVIRTUALDIRECTORY (this=0x7fffeee730c0) at definetemplates.pas:4524
#7 0x000000000094e92a in DOONSCANNERGETINITVALUES (this=0x7ffff7fb0890, SCANNER=0x7fffd12630f0, CODE=0x7fffdd92aa00, ACHANGESTEP=4) at codetoolmanager.pas:5690
#8 0x00000000008f3020 in UPDATENEEDED (this=0x7fffd12630f0, RANGE=LSREND, CHECKFILESONDISK=false) at linkscanner.pas:2493
#9 0x00000000008f0155 in SCAN (this=0x7fffd12630f0, RANGE=LSREND, CHECKFILESONDISK=false) at linkscanner.pas:1983
#10 0x0000000000b737bc in GETMAINLINKSCANNER (this=0x7fffdeb94fc0, SCAN=true) at sourceeditor.pp:3126
#11 0x0000000000b81884 in UPDATEIFDEFNODESTATES (this=0x7fffdd9ab6e0, FORCE=false) at sourceeditor.pp:5999
#12 0x0000000000b9a223 in CODETOOLSTOSRCEDITTIMERTIMER (this=0x7fffeda3c550, SENDER=0x7fffe4e0df00) at sourceeditor.pp:10742
#13 0x00000000007b5996 in DOONTIMER (this=0x7fffe4e0df00) at customtimer.pas:175
#14 0x00000000007b58a8 in TIMER (this=0x7fffe4e0df00) at customtimer.pas:150
#15 0x00000000007a1906 in GTKTIMERCB (DATA=0x7fffd1117400) at gtk2/gtk2callback.inc:2891
#16 0x00007ffff6656303 in () at /usr/lib64/libglib-2.0.so.0
#17 0x00007ffff66558e5 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#18 0x00007ffff6655c48 in () at /usr/lib64/libglib-2.0.so.0
#19 0x00007ffff6655f0a in g_main_loop_run () at /usr/lib64/libglib-2.0.so.0
#20 0x00007ffff6c2a632 in gtk_dialog_run () at /usr/lib64/libgtk-x11-2.0.so.0
#21 0x000000000067d93f in PROMPTUSER (this=0x7ffff7f71a70, DIALOGCAPTION=0x7fffd1491a98 'Lazarus IDE v1.7 - project1', DIALOGMESSAGE=
0x7fffd12e6b98 'List index (0) out of bounds.'#10#10'Ok übergeht und riskiert Dateninkonsistenz.'#10'Mit Abbrechen wird das Programm abgebrochen.', DIALOGTYPE=257, BUTTONS=
0x7fffdef723e0, BUTTONCOUNT=2, DEFAULTINDEX=0, ESCAPERESULT=2) at gtk2/gtk2lclintf.inc:1285
#22 0x00000000005ee932 in PROMPTUSER (DIALOGCAPTION=0x7fffd1491a98 'Lazarus IDE v1.7 - project1', DIALOGMESSAGE=
0x7fffd12e6b98 'List index (0) out of bounds.'#10#10'Ok übergeht und riskiert Dateninkonsistenz.'#10'Mit Abbrechen wird das Programm abgebrochen.', DIALOGTYPE=257, BUTTONS=
0x7fffdef723e0, BUTTONCOUNT=2, DEFAULTINDEX=0, ESCAPERESULT=2) at include/lclintf.inc:371
#23 0x00000000006a20c7 in MESSAGEDLG (ACAPTION=0x7fffd1491a98 'Lazarus IDE v1.7 - project1', AMSG=
0x7fffd12e6b98 'List index (0) out of bounds.'#10#10'Ok übergeht und riskiert Dateninkonsistenz.'#10'Mit Abbrechen wird das Programm abgebrochen.', DLGTYPE=MTERROR, BUTTONS=
..., HELPCTX=0, DEFAULTBUTTON=MBOK) at include/messagedialogs.inc:162
#24 0x00000000006967b4 in DEFAULTMESSAGEBOX (TEXT=
0x7fffd12e6a58 'List index (0) out of bounds.'#10#10'Ok übergeht und riskiert Dateninkonsistenz.'#10'Mit Abbrechen wird das Programm abgebrochen.', CAPTION=
0x7fffddc0e198 'Lazarus IDE v1.7 - project1', FLAGS=17) at dialogs.pp:700
#25 0x000000000048834a in MESSAGEBOX (this=0x7ffff7f71350, TEXT=
0x7fffd12e6a58 'List index (0) out of bounds.'#10#10'Ok übergeht und riskiert Dateninkonsistenz.'#10'Mit Abbrechen wird das Programm abgebrochen.', CAPTION=
0x7fffddc0e198 'Lazarus IDE v1.7 - project1', FLAGS=17) at include/application.inc:234
#26 0x000000000048cf34 in SHOWEXCEPTION (this=0x7ffff7f71350, E=0x7fffdf151280) at include/application.inc:1554
#27 0x000000000048bc28 in HANDLEEXCEPTION (this=0x7ffff7f71350, SENDER=0x0) at include/application.inc:1241
#28 0x00000000007e45f4 in DELIVERMESSAGE (TARGET=0x7ffff7f735f0, AMESSAGE=0) at lclmessageglue.pas:116
#29 0x000000000078c111 in DELIVERMESSAGE (TARGET=0x7ffff7f735f0, AMESSAGE=0) at gtk2/gtk2proc.inc:3628
#30 0x00000000007a0352 in DELIVERMOUSEUPMESSAGE (WIDGET=0x283cd40, EVENT=0x299ac00, AWINCONTROL=0x7ffff7f735f0) at gtk2/gtk2callback.inc:2361
---Type <return> to continue, or q <return> to quit---
#31 0x00000000007a0528 in GTKMOUSEBTNRELEASE (WIDGET=0x283cd40, EVENT=0x299ac00, DATA=0x7ffff7f735f0) at gtk2/gtk2callback.inc:2436
#32 0x00007ffff6ca0355 in () at /usr/lib64/libgtk-x11-2.0.so.0
#33 0x00007ffff6928e78 in g_closure_invoke () at /usr/lib64/libgobject-2.0.so.0
#34 0x00007ffff693a09d in () at /usr/lib64/libgobject-2.0.so.0
#35 0x00007ffff6941a38 in g_signal_emit_valist () at /usr/lib64/libgobject-2.0.so.0
#36 0x00007ffff6942022 in g_signal_emit () at /usr/lib64/libgobject-2.0.so.0
#37 0x00007ffff6db0024 in () at /usr/lib64/libgtk-x11-2.0.so.0
#38 0x00007ffff6c9eb04 in gtk_propagate_event () at /usr/lib64/libgtk-x11-2.0.so.0
#39 0x00007ffff6c9eebb in gtk_main_do_event () at /usr/lib64/libgtk-x11-2.0.so.0
#40 0x00007ffff7761bfc in () at /usr/lib64/libgdk-x11-2.0.so.0
#41 0x00007ffff6655a04 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#42 0x00007ffff6655c48 in () at /usr/lib64/libglib-2.0.so.0
#43 0x00007ffff6655cec in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#44 0x00000000006549c3 in APPWAITMESSAGE (this=0x7ffff7f71a70) at gtk2/gtk2widgetset.inc:2428
#45 0x0000000000488e2c in IDLE (this=0x7ffff7f71350, WAIT=true) at include/application.inc:405
#46 0x000000000048bd01 in HANDLEMESSAGE (this=0x7ffff7f71350) at include/application.inc:1261
#47 0x000000000048c458 in RUNLOOP (this=0x7ffff7f71350) at include/application.inc:1395
#48 0x0000000000501c28 in APPRUN (this=0x7ffff7f71a70, ALOOP=...) at include/interfacebase.inc:54
#49 0x000000000048c3d3 in RUN (this=0x7ffff7f71350) at include/application.inc:1383
#50 0x0000000000420e91 in main () at lazarus.pp:140
(gdb)
Mantis conversion info:
- Mantis ID: 29292
- Build: Lazarus 1.7 r51085M FPC 3.1.1 x8
- Version: 1.5 (SVN)
- Fixed in revision: r51087 (#181b2052)