View Issue Details

IDProjectCategoryView StatusLast Update
0023889LazarusIDEpublic2013-06-10 12:38
ReporterCyraxAssigned ToMartin Friebe 
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product Version1.1 (SVN)Product Buildr40322 
Target Version1.2.0Fixed in Version1.1 (SVN) 
Summary0023889: Exception "List index (1) out of bounds" occurs when trying to get access text editor context menu.
DescriptionWindows.

win32: Free Pascal trunk 2.7.1-r23621, Lazarus trunk 1.1-r40322

FPC built with these options:
---
all
install
sourceinstall
UPXPROG=echo
OPT="-gw2 -godwarfsets -gl -O- -OoNO -Xs-"
COMPILER_OPTIONS="-gw2 -godwarfsets -gl -O- -OoNO -Xs-"
INSTALL_PREFIX=I:\free_pascal_and_lazarus\free_pascal_and_lazarus\fpc\trunk\build\trunk_x32
REVSTR=23621
IDE=1
---

Development Lazarus version built with these options:
---
-gw2
-godwarfsets
-gl
-gh
-gt
-Co
-Cr
-Ci
-Sa
-O-
-OoNO
-Xs-
-dHEAPTRC_WINDOW
-olazarus-debug-new.exe
-dVerboseOnPropHookCreateMethod
---

Excerpt from debug log:
---
TApplication.HandleException List index (1) out of bounds
  Stack trace:
  $0049D30F line 48 of ../objpas/classes/lists.inc
  $0049D34E line 54 of ../objpas/classes/lists.inc
  $00732E41 line 468 of syneditmarks.pp
  $0073381C line 702 of syneditmarks.pp
  $00734451 line 975 of syneditmarks.pp
  $00A75CF9 line 6920 of synedit.pp
  $008839A5 line 5950 of sourceeditor.pp
  $00606DE8 line 43 of include/popupmenu.inc
  $006070A3 line 80 of include/popupmenu.inc
  $00607012 line 72 of include/popupmenu.inc
  $0087DFBB line 4799 of sourceeditor.pp
  $00A6300A line 2189 of synedit.pp
  $00A636E1 line 2278 of synedit.pp
  $004DD0D3 line 163 of lazmethodlist.pas
  $00AC7AE0 line 1447 of synedittextbuffer.pp
  $00AC5BF3 line 1216 of synedittextbuffer.pp
  $00B448E4 line 962 of lazsynedittext.pas
TApplication.HandleException List index (1) out of bounds
  Stack trace:
  $0049D30F line 48 of ../objpas/classes/lists.inc
  $0049D34E line 54 of ../objpas/classes/lists.inc
  $00732E41 line 468 of syneditmarks.pp
  $0073381C line 702 of syneditmarks.pp
  $00734451 line 975 of syneditmarks.pp
  $00A75CF9 line 6920 of synedit.pp
  $008839A5 line 5950 of sourceeditor.pp
  $00606DE8 line 43 of include/popupmenu.inc
  $006070A3 line 80 of include/popupmenu.inc
  $00607012 line 72 of include/popupmenu.inc
  $0087E07D line 4820 of sourceeditor.pp
  $00AB38EA line 905 of syneditmousecmds.pp
  $00A65561 line 2959 of synedit.pp
  $00A66539 line 3221 of synedit.pp
  $00A67DD8 line 3524 of synedit.pp
  $005D536C line 2168 of include/control.inc
  $005D6088 line 2637 of include/control.inc
---

This happens after when finishing debugging a project and trying to invoke text editors popupmenu.

Attached (project.zip) test case.
Steps To Reproduce1. Add breakpoint inside TForm1.Button1Click.
2. Start debugging project.
3. When debugger breaks, continue program execution.
4. Close program.
5. Try to invoke context menu.

You may need to do steps 2,3,4 and 5 again to trigger this bug.
TagsNo tags attached.
Fixed in Revision40325
LazTarget1.2
WidgetsetWin32/Win64
Attached Files

Activities

Cyrax

2013-02-15 11:06

reporter  

project.zip (2,040 bytes)

Martin Friebe

2013-02-15 20:54

manager   ~0065703

There is a better way to reproduce:

Set Breakpoint on line 36 (in buttonclick)
Set Bookmark 1 on line 31 (empty line)
Set Bookmark 2 on line 36

Martin Friebe

2013-02-15 23:39

manager   ~0065709

Please test and close if ok

Issue History

Date Modified Username Field Change
2013-02-15 11:06 Cyrax New Issue
2013-02-15 11:06 Cyrax File Added: project.zip
2013-02-15 20:54 Martin Friebe LazTarget => -
2013-02-15 20:54 Martin Friebe Note Added: 0065703
2013-02-15 20:54 Martin Friebe Assigned To => Martin Friebe
2013-02-15 20:54 Martin Friebe Status new => assigned
2013-02-15 23:39 Martin Friebe Fixed in Revision => 40325
2013-02-15 23:39 Martin Friebe LazTarget - => 1.2
2013-02-15 23:39 Martin Friebe Note Added: 0065709
2013-02-15 23:39 Martin Friebe Status assigned => resolved
2013-02-15 23:39 Martin Friebe Fixed in Version => 1.1 (SVN)
2013-02-15 23:39 Martin Friebe Resolution open => fixed
2013-02-15 23:39 Martin Friebe Target Version => 1.2.0
2013-06-10 12:38 Cyrax Status resolved => closed