debugger fails after single stepping
Original Reporter info from Mantis: BeniBela @benibela
-
Reporter name: Benito van der Zander
Original Reporter info from Mantis: BeniBela @benibela
- Reporter name: Benito van der Zander
Description:
Since a while the debugger frequently fails after single stepping, shows a strange error message and afterwards it is impossible to run/debug the program again.
If I then call "run\reset debugger" the entire Lazarus freezes and needs to be killed
Steps to reproduce:
- Make a test program:
program Project1;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Classes
{ you can add units after this };
begin
writeln('wtf');
end.
-
Put a break point at the writeln line
-
Single step (F7) until the program and debugging ends.
-
Start the program again (F9)
Additional information:
Strange error message:
Press "Ignore" to continue debugging. This may NOT be safe. Press "Abort" to stop the debugger.
Exception: EListError with message "List index (1) out of bounds"
Context: TGDBMIDebuggerCommandStartDebugging. State: Init
Log:
TMainIDE.ParseCmdLineOptions:
PrimaryConfigPath="/home/benito/.lazarus"
SecondaryConfigPath="/etc/lazarus"
Open: /opt/lazarus/packager/registration/fcl.lpk
Open: /opt/lazarus/components/lazutils/lazutils.lpk
Open: /opt/lazarus/lcl/lclbase.lpk
Open: /opt/lazarus/lcl/interfaces/lcl.lpk
Open: /opt/lazarus/ideintf/ideintf.lpk
Open: /opt/lazarus/components/lazcontrols/lazcontrols.lpk
Open: /opt/lazarus/components/synedit/synedit.lpk
Open: /opt/lazarus/components/codetools/codetools.lpk
Open: /home/benito/hg/components/pascal/data/treelistviewpackage.lpk
Open: /home/benito/hg/components/pascal/data/searchbarpackage.lpk
Open: /opt/lazarus/lazarusccr/uniqueinstance/uniqueinstance_package.lpk
(lazarus:17607): Gdk-CRITICAL **: IA__gdk_drawable_get_size: assertion `GDK_IS_DRAWABLE (drawable)' failed
Open: /home/benito/hg/components/pascal/data/examples/htmlparserExample.lpr
Open: /home/benito/opt/fpc-2.6.0/rtl/objpas/objpas.pp
Open: /home/benito/hg/components/pascal/data/bbutils.pas
Open: /home/benito/hg/components/pascal/internet/simpleinternet.pas
Open: /home/benito/hg/components/pascal/internet/synapseinternetaccess.pas
Open: /home/benito/hg/components/pascal/internet/internetaccess.pas
Open: /home/benito/opt/fpc-2.4.4/rtl/objpas/sysutils/sysinth.inc
Open: /home/benito/hg/components/pascal/data/extendedhtmlparser.pas
Open: /home/benito/opt/fpc-2.4.4/rtl/objpas/sysutils/sysstrh.inc
Open: /home/benito/opt/fpc-2.4.4/rtl/objpas/sysutils/sysstr.inc
Open: /home/benito/hg/components/pascal/data/simplehtmltreeparser.pas
Open: /home/benito/opt/fpc-2.4.4/rtl/objpas/strutils.pp
Open: /home/benito/opt/fpc-2.6.0/rtl/objpas/strutils.pp
Open: /home/benito/hg/components/pascal/data/simplehtmlparser.pas
Open: /home/benito/hg/components/pascal/data/pseudoxpath.pas
Open: /home/benito/opt/fpc-2.4.4/rtl/inc/compproc.inc
Open: /home/benito/opt/fpc-2.4.4/rtl/inc/astrings.inc
Open: /home/benito/hg/components/pascal/data/bbutils_template.pas
Open: /home/benito/hg/components/pascal/system/rcmdline.pas
Open: /home/benito/opt/fpc-2.6.0/rtl/linux/system.pp
----------------
TMainIDE.DoNewProject A
[TMainIDE.DoRunProject] INIT
TMainIDE.DoInitProjectRun Check if project can run: True 0
TMainIDE.DoInitProjectRun Check build ...
TProject.DoLoadStateFile Statefile not found: /tmp/project1.compiled
TBuildManager.CheckIfPackageNeedsCompilation No state file for Project
TCompiler.Compile WorkingDir="/tmp/" CompilerFilename="/usr/bin/fpc" CompilerParams=" -MObjFPC -Scgi -O1 -g -gl -vewnhi -l -Filib/x86_64-linux -Fu/home/benito/hg/components/pascal/import/synapse -Fu/home/benito/hg/components/pascal/import/regexpr/Source -Fu/home/benito/hg/components/pascal/internet -Fu. -Fu../../../components/pascal/import/bigint -FUlib/x86_64-linux/ -FElib/x86_64-linux/ /tmp/project1.lpr"
[TCompiler.Compile] CmdLine="/usr/bin/fpc -B -MObjFPC -Scgi -O1 -g -gl -vewnhi -l -Filib/x86_64-linux -Fu/home/benito/hg/components/pascal/import/synapse -Fu/home/benito/hg/components/pascal/import/regexpr/Source -Fu/home/benito/hg/components/pascal/internet -Fu. -Fu../../../components/pascal/import/bigint -FUlib/x86_64-linux/ -FElib/x86_64-linux/ /tmp/project1.lpr"
Hint: Start of reading config file /etc/fpc.cfg
Hint: End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 2.6.0-4 [2012/07/06] for x86_64
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling /tmp/project1.lpr
Linking lib/x86_64-linux/project1
/usr/bin/ld: warning: lib/x86_64-linux/link.res contains output sections; did you forget -T?
15 lines compiled, 0.2 sec
2 hint(s) issued
[TCompiler.Compile] end
TMainIDE.DoInitProjectRun ProgramFilename=/tmp/lib/x86_64-linux/project1
[TCmdLineDebugger] Debug PID: 17629
[TMainIDE.DoRunProject] Debugger=TGDBMIDebugger
[TMainIDE.DoRunProject] END
TGDBMIDebugger.StartDebugging WorkingDir="/tmp/lib/x86_64-linux/"
[TMainIDE.DoRunProject] INIT
TMainIDE.DoInitProjectRun Check if project can run: True 0
TMainIDE.DoInitProjectRun Check build ...
TBuildManager.CheckIfProjectNeedsCompilation SrcFile outdated Project
TCompiler.Compile WorkingDir="/tmp/" CompilerFilename="/usr/bin/fpc" CompilerParams=" -MObjFPC -Scgi -O1 -g -gl -vewnhi -l -Filib/x86_64-linux -Fu/home/benito/hg/components/pascal/import/synapse -Fu/home/benito/hg/components/pascal/import/regexpr/Source -Fu/home/benito/hg/components/pascal/internet -Fu. -Fu../../../components/pascal/import/bigint -FUlib/x86_64-linux/ -FElib/x86_64-linux/ /tmp/project1.lpr"
[TCompiler.Compile] CmdLine="/usr/bin/fpc -MObjFPC -Scgi -O1 -g -gl -vewnhi -l -Filib/x86_64-linux -Fu/home/benito/hg/components/pascal/import/synapse -Fu/home/benito/hg/components/pascal/import/regexpr/Source -Fu/home/benito/hg/components/pascal/internet -Fu. -Fu../../../components/pascal/import/bigint -FUlib/x86_64-linux/ -FElib/x86_64-linux/ /tmp/project1.lpr"
Hint: Start of reading config file /etc/fpc.cfg
Hint: End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 2.6.0-4 [2012/07/06] for x86_64
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling /tmp/project1.lpr
Linking lib/x86_64-linux/project1
/usr/bin/ld: warning: lib/x86_64-linux/link.res contains output sections; did you forget -T?
15 lines compiled, 0.1 sec
2 hint(s) issued
[TCompiler.Compile] end
TMainIDE.DoInitProjectRun ProgramFilename=/tmp/lib/x86_64-linux/project1
[TMainIDE.DoRunProject] Debugger=TGDBMIDebugger
[TMainIDE.DoRunProject] END
TGDBMIDebugger.StartDebugging WorkingDir="/tmp/lib/x86_64-linux/"
ERROR: Exception occured in TGDBMIDebuggerCommandStartDebugging.DoExecute EListError Msg="List index (1) out of bounds" Addr=00000000006B94EC Dbg.State=Init
$00000000006B94EC
Mantis conversion info:
- Mantis ID: 22541
- OS: Debian
- OS Build: sid
- Build: r38091M FPC 2.6.0 x86_64-linux-g
- Platform: amd64
- Version: 1.1 (SVN)