View Issue Details

IDProjectCategoryView StatusLast Update
0019353LazarusIDEpublic2011-05-14 14:28
ReporterCyraxAssigned ToMaxim Ganetsky 
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
Product VersionProduct Build 
Target VersionFixed in Version0.9.31 (SVN) 
Summary0019353: Recent SVN revision 30721 crashes if menu option "Tools -> Options..." is selected.
DescriptionWhen I try change IDE options via "Tools -> Options...", I get access violation dialog.

This happens in both win32 and win64 version of Lazarus.

Attached file contains backtrace from GDB.

TagsNo tags attached.
Fixed in Revision30729
LazTarget0.99.0
Widgetset
Attached Files
  • lazarus-backtrace-gdb.txt (4,984 bytes)
    Starting program: H:\freepascal_and_lazarus\lazarus\build\x32/lazarus.exe --primary-config-path=..\\lazconf-32
    [New Thread 5980.0x100c]
    
    Program received signal SIGSEGV, Segmentation fault.
    0x007d163f in COMPARECOL (I=2, parentfp=0x8dbf758)
        at ./frames/editor_mouseaction_options_advanced.pas:162
    162	                - ord(TSynEditMouseAction(TStringGrid(Sender).Objects[0, BRow]).ClickCount);
    #0  0x007d163f in COMPARECOL (I=2, parentfp=0x8dbf758)
        at ./frames/editor_mouseaction_options_advanced.pas:162
    #1  0x007d14ee in TEDITORMOUSEOPTIONSADVFRAME__ACTIONGRIDCOMPARECELLS (
        SENDER=0xcc0bb80, ACOL=0, AROW=0, BCOL=1, BROW=0, RESULT=0, 
        this=<error reading variable>)
        at ./frames/editor_mouseaction_options_advanced.pas:182
    #2  0x005eac57 in TCUSTOMGRID__DOCOMPARECELLS (ACOL=0, AROW=6, BCOL=0, 
        BROW=1, this=<error reading variable>) at grids.pas:6043
    #3  0x005f6537 in TCUSTOMSTRINGGRID__DOCOMPARECELLS (ACOL=0, AROW=6, BCOL=0, 
        BROW=1, this=<error reading variable>) at grids.pas:9605
    #4  0x005e2b85 in QUICKSORT (L=1, R=12, parentfp=0x8dbf824) at grids.pas:2774
    #5  0x005e2af8 in TCUSTOMGRID__SORT (COLSORTING=true, INDEX=0, INDXFROM=1, 
        INDXTO=12, this=<error reading variable>) at grids.pas:2810
    #6  0x005f5155 in TCUSTOMDRAWGRID__SORTCOLROW (ISCOLUMN=true, INDEX=0, 
        this=<error reading variable>) at grids.pas:9216
    #7  0x007d17ae in TEDITORMOUSEOPTIONSADVFRAME__SORTGRID (
        this=<error reading variable>)
        at ./frames/editor_mouseaction_options_advanced.pas:193
    #8  0x007d2398 in TEDITORMOUSEOPTIONSADVFRAME__CONTEXTTREECHANGE (
        SENDER=0xcc15920, NODE=0xc2cea10, this=<error reading variable>)
        at ./frames/editor_mouseaction_options_advanced.pas:353
    #9  0x007d3f57 in TEDITORMOUSEOPTIONSADVFRAME__READSETTINGS (
        AOPTIONS=0x2669e8, this=<error reading variable>)
        at ./frames/editor_mouseaction_options_advanced.pas:721
    #10 0x0080fa4c in TRAVERSE (NODE=0xc2cecb0, parentfp=0x8dbf928)
        at ideoptionsdlg.pas:244
    #11 0x0080fa88 in TRAVERSE (NODE=0xc2cde10, parentfp=0x8dbf928)
        at ideoptionsdlg.pas:249
    #12 0x0080fa9a in TRAVERSE (NODE=0xc2cd450, parentfp=0x8dbf928)
        at ideoptionsdlg.pas:250
    #13 0x0080fa9a in TRAVERSE (NODE=0xc2cd270, parentfp=0x8dbf928)
        at ideoptionsdlg.pas:250
    #14 0x0080fa9a in TRAVERSE (NODE=0xc2cc070, parentfp=0x8dbf928)
        at ideoptionsdlg.pas:250
    #15 0x0080fa88 in TRAVERSE (NODE=0xc2cba10, parentfp=0x8dbf928)
        at ideoptionsdlg.pas:249
    #16 0x0080fa9a in TRAVERSE (NODE=0xc2c96d0, parentfp=0x8dbf928)
        at ideoptionsdlg.pas:250
    #17 0x0080f994 in TIDEOPTIONSDIALOG__TRAVERSESETTINGS (AOPTIONS=0x2669e8, 
        ANACTION=IODAREAD, this=<error reading variable>) at ideoptionsdlg.pas:261
    #18 0x0080fbaa in TIDEOPTIONSDIALOG__READALL (this=<error reading variable>)
        at ideoptionsdlg.pas:298
    #19 0x0044c240 in TMAINIDE__DOOPENIDEOPTIONS (AEDITOR=<incomplete type>, 
        ACAPTION=0x0, AOPTIONSFILTER=..., ASETTINGS=..., highAOPTIONSFILTER=-1, 
        this=<error reading variable>) at main.pp:4784
    #20 0x006c7390 in TLAZIDEINTERFACE__DOOPENIDEOPTIONS (
        AEDITOR=<incomplete type>, ACAPTION=0x0, this=<error reading variable>)
        at lazideintf.pas:447
    #21 0x0044bd5e in TMAINIDE__MNUENVGENERALOPTIONSCLICKED (SENDER=0xbc3a308, 
        this=<error reading variable>) at main.pp:4688
    #22 0x006c35c6 in TIDEMENUITEM__MENUITEMCLICK (SENDER=0xbc41e60, 
        this=<error reading variable>) at menuintf.pas:558
    #23 0x006c63d7 in TIDEMENUCOMMAND__MENUITEMCLICK (SENDER=0xbc41e60, 
        this=<error reading variable>) at menuintf.pas:1633
    #24 0x00556015 in TMENUITEM__CLICK (this=<error reading variable>)
        at ./include/menuitem.inc:75
    #25 0x00556618 in TMENUITEM__DOCLICKED (MSG=void, 
        this=<error reading variable>) at ./include/menuitem.inc:270
    #26 0x0040bbf6 in TOBJECT__DISPATCH (MESSAGE=
    Cannot access memory at address 0x0
    ) at H:/freepascal_and_lazarus/fpc/trunk_svn_exported/rtl/inc/objpas.inc:592
    #27 0x005565e0 in TMENUITEM__GETPARENTCOMPONENT (
        this=<error reading variable>) at ./include/menuitem.inc:259
    #28 0x0061bebf in CUSTOMFORMWNDPROC (WINDOW=134730, MSG=273, WPARAM=221, 
        LPARAM=0) at win32wsforms.pp:375
    #29 0x76376238 in USER32!IsDialogMessageW ()
       from C:\Windows\syswow64\user32.dll
    #30 0x00020e4a in ?? ()
    #31 0x763768ea in USER32!AllowForegroundActivation ()
       from C:\Windows\syswow64\user32.dll
    #32 0x0061be60 in ADJUSTFORMBOUNDS (AFORM=0x0, SIZERECT=
    Cannot access memory at address 0x13966d44
    ) at win32wsforms.pp:322
    #33 0x76377d31 in USER32!GetMessageExtraInfo ()
       from C:\Windows\syswow64\user32.dll
    #34 0x00000000 in ?? ()
    Continuing.
    
    Program received signal SIGSEGV, Segmentation fault.
    0x007d163f in COMPARECOL (I=2, parentfp=0x8dbf758)
        at ./frames/editor_mouseaction_options_advanced.pas:162
    162	                - ord(TSynEditMouseAction(TStringGrid(Sender).Objects[0, BRow]).ClickCount);
    Continuing.
    
    Program exited with code 030000000005.
    

Activities

2011-05-13 22:14

 

lazarus-backtrace-gdb.txt (4,984 bytes)
Starting program: H:\freepascal_and_lazarus\lazarus\build\x32/lazarus.exe --primary-config-path=..\\lazconf-32
[New Thread 5980.0x100c]

Program received signal SIGSEGV, Segmentation fault.
0x007d163f in COMPARECOL (I=2, parentfp=0x8dbf758)
    at ./frames/editor_mouseaction_options_advanced.pas:162
162	                - ord(TSynEditMouseAction(TStringGrid(Sender).Objects[0, BRow]).ClickCount);
#0  0x007d163f in COMPARECOL (I=2, parentfp=0x8dbf758)
    at ./frames/editor_mouseaction_options_advanced.pas:162
#1  0x007d14ee in TEDITORMOUSEOPTIONSADVFRAME__ACTIONGRIDCOMPARECELLS (
    SENDER=0xcc0bb80, ACOL=0, AROW=0, BCOL=1, BROW=0, RESULT=0, 
    this=<error reading variable>)
    at ./frames/editor_mouseaction_options_advanced.pas:182
#2  0x005eac57 in TCUSTOMGRID__DOCOMPARECELLS (ACOL=0, AROW=6, BCOL=0, 
    BROW=1, this=<error reading variable>) at grids.pas:6043
#3  0x005f6537 in TCUSTOMSTRINGGRID__DOCOMPARECELLS (ACOL=0, AROW=6, BCOL=0, 
    BROW=1, this=<error reading variable>) at grids.pas:9605
#4  0x005e2b85 in QUICKSORT (L=1, R=12, parentfp=0x8dbf824) at grids.pas:2774
#5  0x005e2af8 in TCUSTOMGRID__SORT (COLSORTING=true, INDEX=0, INDXFROM=1, 
    INDXTO=12, this=<error reading variable>) at grids.pas:2810
#6  0x005f5155 in TCUSTOMDRAWGRID__SORTCOLROW (ISCOLUMN=true, INDEX=0, 
    this=<error reading variable>) at grids.pas:9216
#7  0x007d17ae in TEDITORMOUSEOPTIONSADVFRAME__SORTGRID (
    this=<error reading variable>)
    at ./frames/editor_mouseaction_options_advanced.pas:193
#8  0x007d2398 in TEDITORMOUSEOPTIONSADVFRAME__CONTEXTTREECHANGE (
    SENDER=0xcc15920, NODE=0xc2cea10, this=<error reading variable>)
    at ./frames/editor_mouseaction_options_advanced.pas:353
#9  0x007d3f57 in TEDITORMOUSEOPTIONSADVFRAME__READSETTINGS (
    AOPTIONS=0x2669e8, this=<error reading variable>)
    at ./frames/editor_mouseaction_options_advanced.pas:721
#10 0x0080fa4c in TRAVERSE (NODE=0xc2cecb0, parentfp=0x8dbf928)
    at ideoptionsdlg.pas:244
#11 0x0080fa88 in TRAVERSE (NODE=0xc2cde10, parentfp=0x8dbf928)
    at ideoptionsdlg.pas:249
#12 0x0080fa9a in TRAVERSE (NODE=0xc2cd450, parentfp=0x8dbf928)
    at ideoptionsdlg.pas:250
#13 0x0080fa9a in TRAVERSE (NODE=0xc2cd270, parentfp=0x8dbf928)
    at ideoptionsdlg.pas:250
#14 0x0080fa9a in TRAVERSE (NODE=0xc2cc070, parentfp=0x8dbf928)
    at ideoptionsdlg.pas:250
#15 0x0080fa88 in TRAVERSE (NODE=0xc2cba10, parentfp=0x8dbf928)
    at ideoptionsdlg.pas:249
#16 0x0080fa9a in TRAVERSE (NODE=0xc2c96d0, parentfp=0x8dbf928)
    at ideoptionsdlg.pas:250
#17 0x0080f994 in TIDEOPTIONSDIALOG__TRAVERSESETTINGS (AOPTIONS=0x2669e8, 
    ANACTION=IODAREAD, this=<error reading variable>) at ideoptionsdlg.pas:261
#18 0x0080fbaa in TIDEOPTIONSDIALOG__READALL (this=<error reading variable>)
    at ideoptionsdlg.pas:298
#19 0x0044c240 in TMAINIDE__DOOPENIDEOPTIONS (AEDITOR=<incomplete type>, 
    ACAPTION=0x0, AOPTIONSFILTER=..., ASETTINGS=..., highAOPTIONSFILTER=-1, 
    this=<error reading variable>) at main.pp:4784
#20 0x006c7390 in TLAZIDEINTERFACE__DOOPENIDEOPTIONS (
    AEDITOR=<incomplete type>, ACAPTION=0x0, this=<error reading variable>)
    at lazideintf.pas:447
#21 0x0044bd5e in TMAINIDE__MNUENVGENERALOPTIONSCLICKED (SENDER=0xbc3a308, 
    this=<error reading variable>) at main.pp:4688
#22 0x006c35c6 in TIDEMENUITEM__MENUITEMCLICK (SENDER=0xbc41e60, 
    this=<error reading variable>) at menuintf.pas:558
#23 0x006c63d7 in TIDEMENUCOMMAND__MENUITEMCLICK (SENDER=0xbc41e60, 
    this=<error reading variable>) at menuintf.pas:1633
#24 0x00556015 in TMENUITEM__CLICK (this=<error reading variable>)
    at ./include/menuitem.inc:75
#25 0x00556618 in TMENUITEM__DOCLICKED (MSG=void, 
    this=<error reading variable>) at ./include/menuitem.inc:270
#26 0x0040bbf6 in TOBJECT__DISPATCH (MESSAGE=
Cannot access memory at address 0x0
) at H:/freepascal_and_lazarus/fpc/trunk_svn_exported/rtl/inc/objpas.inc:592
#27 0x005565e0 in TMENUITEM__GETPARENTCOMPONENT (
    this=<error reading variable>) at ./include/menuitem.inc:259
#28 0x0061bebf in CUSTOMFORMWNDPROC (WINDOW=134730, MSG=273, WPARAM=221, 
    LPARAM=0) at win32wsforms.pp:375
#29 0x76376238 in USER32!IsDialogMessageW ()
   from C:\Windows\syswow64\user32.dll
#30 0x00020e4a in ?? ()
#31 0x763768ea in USER32!AllowForegroundActivation ()
   from C:\Windows\syswow64\user32.dll
#32 0x0061be60 in ADJUSTFORMBOUNDS (AFORM=0x0, SIZERECT=
Cannot access memory at address 0x13966d44
) at win32wsforms.pp:322
#33 0x76377d31 in USER32!GetMessageExtraInfo ()
   from C:\Windows\syswow64\user32.dll
#34 0x00000000 in ?? ()
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x007d163f in COMPARECOL (I=2, parentfp=0x8dbf758)
    at ./frames/editor_mouseaction_options_advanced.pas:162
162	                - ord(TSynEditMouseAction(TStringGrid(Sender).Objects[0, BRow]).ClickCount);
Continuing.

Program exited with code 030000000005.

Cyrax

2011-05-13 22:42

reporter   ~0048265

Last edited: 2011-05-13 22:44

Also with SVN revision 30696, I can access IDE Options-dialog.

EDIT: SVN revision 30717 works, too.

Maxim Ganetsky

2011-05-13 23:50

developer   ~0048267

Please test and close if ok.

Cyrax

2011-05-14 14:28

reporter   ~0048281

It works now, thanks.

Issue History

Date Modified Username Field Change
2011-05-13 22:14 Cyrax New Issue
2011-05-13 22:14 Cyrax File Added: lazarus-backtrace-gdb.txt
2011-05-13 22:14 Cyrax Widgetset => Win32/Win64
2011-05-13 22:42 Cyrax Note Added: 0048265
2011-05-13 22:44 Cyrax Note Edited: 0048265
2011-05-13 23:04 Martin Friebe LazTarget => 0.99.0
2011-05-13 23:04 Martin Friebe Status new => acknowledged
2011-05-13 23:50 Maxim Ganetsky Fixed in Revision => 30724
2011-05-13 23:50 Maxim Ganetsky Widgetset Win32/Win64 =>
2011-05-13 23:50 Maxim Ganetsky Status acknowledged => resolved
2011-05-13 23:50 Maxim Ganetsky Fixed in Version => 0.9.31 (SVN)
2011-05-13 23:50 Maxim Ganetsky Resolution open => fixed
2011-05-13 23:50 Maxim Ganetsky Assigned To => Maxim Ganetsky
2011-05-13 23:50 Maxim Ganetsky Note Added: 0048267
2011-05-14 01:08 Maxim Ganetsky Fixed in Revision 30724 => 30729
2011-05-14 14:28 Cyrax Status resolved => closed
2011-05-14 14:28 Cyrax Note Added: 0048281