Project will not run when no debug symbols
Original Reporter info from Mantis: shaun.simpson@crsltd.com
-
Reporter name: Shaun Simpson
Original Reporter info from Mantis: shaun.simpson@crsltd.com
- Reporter name: Shaun Simpson
Description:
Hi,
I have had looked around, but can not find a similar issue. If it is a duplicate bug I apologise.
The problem is that if the application does not have debug symbols, it does not run.
-
Create a new application.
-
Compiler Options -> Linking
Uncheck "Display Line Numbers in Run-time Error Backtraces (-gl)"
-
Run the application.
-
It compiles and then starts debugging but no application starts.
The debug log has the errors:
[Debugger] Log output: &"Warning:\n"
[Debugger] Log output: &"Cannot insert breakpoint 1.\n"
[Debugger] Log output: &"Error accessing memory address 0x0: Input/output error.\n"
[Debugger] Log output: &"\n"
[WARNING] Debugger: unexpected result-record: ^error,msg="Warning:\nCannot insert breakpoint 1.\nError accessing memory address 0x0: Input/output error.\n"
[Debugger] Log output: &"info program\n"
[Debugger] Target PID: 824
[Debugger] Log output: &"Warning:\n"
[Debugger] Log output: &"Cannot insert breakpoint 1.\n"
[Debugger] Log output: &"Error accessing memory address 0x0: Input/output error.\n"
[Debugger] Log output: &"\n"
[WARNING] Debugger: unexpected result-record: ^error,msg="Warning:\nCannot insert breakpoint 1.\nError accessing memory address 0x0: Input/output error.\n"
[TMainIDE.DoRunProject] END
Thanks,
Shaun
Additional information:
OS: Windows XP SP2
FPC 2.2.2
Lazarus: SVN 19160
FULL DEBUG LOG
TMainIDE.ParseCmdLineOptions:
PrimaryConfigPath="C:\Documents and Settings\Administrator\Local Settings\Application Data\lazarus"
SecondaryConfigPath="C:\lazarus"
NOTE: miscellaneous options file not found - using defaults
NOTE: help options config file not found - using defaults
TMainIDE.DoLoadLFM A C:\Temp\Project1\unit1.pas IsPartOfProject=True
QuickCheckLFMBuffer LFMBuffer=C:\Temp\Project1\unit1.lfm
TJITComponentList.AddJITComponentFromStream.ReadStream Reading: FCurReadJITComponent=:TForm1 StreamClass=TForm1
[TMainIDE.DoRunProject] A
TMainIDE.DoInitProjectRun A True 0
TMainIDE.DoInitProjectRun B
TCompiler.Compile WorkingDir="C:\Temp\Project1" CompilerFilename="C:\lazarus\fpc\2.2.2\bin\i386-win32\fpc.exe" CompilerParams=" -MObjFPC -Sgi -O1 -XX -WG -vewnhi -l -FiC:\Temp\Project1\ -FuC:\lazarus\lcl\units\i386-win32\ -FuC:\lazarus\lcl\units\i386-win32\win32\ -FuC:\lazarus\packager\units\i386-win32\ -FuC:\Temp\Project1\ -Fu. -oC:\Temp\Project1\project1.exe -dLCL -dLCLwin32 project1.lpr"
[TCompiler.Compile] CmdLine="C:\lazarus\fpc\2.2.2\bin\i386-win32\fpc.exe -MObjFPC -Sgi -O1 -XX -WG -vewnhi -l -FiC:\Temp\Project1\ -FuC:\lazarus\lcl\units\i386-win32\ -FuC:\lazarus\lcl\units\i386-win32\win32\ -FuC:\lazarus\packager\units\i386-win32\ -FuC:\Temp\Project1\ -Fu. -oC:\Temp\Project1\project1.exe -dLCL -dLCLwin32 project1.lpr"
Hint: Start of reading config file C:\lazarus\fpc\2.2.2\bin\i386-win32\fpc.cfg
Hint: End of reading config file C:\lazarus\fpc\2.2.2\bin\i386-win32\fpc.cfg
Free Pascal Compiler version 2.2.2 [2009/03/31] for i386
Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Win32 for i386
Compiling project1.lpr
Compiling resource project1.rc
Compiling resource C:\Temp\Project1\fpc-res.res
Linking C:\Temp\Project1\project1.exe
5244 lines compiled, 1.5 sec , 1225200 bytes code, 476040 bytes data
2 hint(s) issued
[TCompiler.Compile] end
[TCmdLineDebugger] Debug PID: 1892
[Debugger] Running GDB version: C
[TDebugger.SetFileName] "C:\Temp\Project1\project1.exe"
[WARNING] Debugger: File 'C:\Temp\Project1\project1.exe' has no debug symbols
[TMainIDE.DoRunProject] B TGDBMIDebugger
TGDBMIDebugger.StartDebugging WorkingDir="C:\Temp\Project1"
[Debugger] Log output: &"No symbol table is loaded. Use the "file" command.\n"
TGDBMIDebugger.ProcessResult Error: ,msg="No symbol table is loaded. Use the "file" command."
[Debugger] Log output: &"info functions FPC_CPUINIT\n"
[Debugger] Log output: &"info functions $_RUNERROR
\n"
[Debugger] Log output: &"info address main\n"
[Debugger] Log output: &"No symbol "main" in current context.\n"
TGDBMIDebugger.ProcessResult Error: ,msg="No symbol "main" in current context."
[Debugger] Log output: &"Function "main" not defined in loaded symbols.\n"
TGDBMIDebugger.ProcessResult Error: ,msg="Function "main" not defined in loaded symbols."
[Debugger] Log output: &"Function "FPC_RAISEEXCEPTION" not defined in loaded symbols.\n"
TGDBMIDebugger.ProcessResult Error: ,msg="Function "FPC_RAISEEXCEPTION" not defined in loaded symbols."
[Debugger] Log output: &"Function "FPC_BREAK_ERROR" not defined in loaded symbols.\n"
TGDBMIDebugger.ProcessResult Error: ,msg="Function "FPC_BREAK_ERROR" not defined in loaded symbols."
[Debugger] Log output: &"Function "FPC_RUNERROR" not defined in loaded symbols.\n"
TGDBMIDebugger.ProcessResult Error: ,msg="Function "FPC_RUNERROR" not defined in loaded symbols."
[Debugger] Log output: &"info file\n"
[Debugger] File type: pei-i386
[Debugger] Entry point: 0x52c1d0\t0x00401000 - 0x0052c1f0 is .text
[Debugger] Console output: ~"[New thread 824.0xda8]\n"
[Debugger] Console output: ~"(no debugging symbols found)\n"
[Debugger] Log output: &"Warning:\n"
[Debugger] Log output: &"Cannot insert breakpoint 1.\n"
[Debugger] Log output: &"Error accessing memory address 0x0: Input/output error.\n"
[Debugger] Log output: &"\n"
[WARNING] Debugger: unexpected result-record: ^error,msg="Warning:\nCannot insert breakpoint 1.\nError accessing memory address 0x0: Input/output error.\n"
[Debugger] Log output: &"info program\n"
[Debugger] Target PID: 824
[Debugger] Log output: &"Warning:\n"
[Debugger] Log output: &"Cannot insert breakpoint 1.\n"
[Debugger] Log output: &"Error accessing memory address 0x0: Input/output error.\n"
[Debugger] Log output: &"\n"
[WARNING] Debugger: unexpected result-record: ^error,msg="Warning:\nCannot insert breakpoint 1.\nError accessing memory address 0x0: Input/output error.\n"
[TMainIDE.DoRunProject] END
[Debugger] Log output: &"info program\n"
TMainIDE.CloseUnitComponent C:\Temp\Project1\unit1.pas Form1:TForm1
TProject.UpdateUnitComponentDependencies checking properties ...
Search UnitComponent=Form1:TForm1 AComponent=Button1:TButton ReferenceUnit=False
TProject.UpdateUnitComponentDependencies checking designers ...
TProject.UpdateUnitComponentDependencies used by designer: C:\Temp\Project1\unit1.pas
TMainIDE.CloseUnitComponent freeing component and designer: C:\Temp\Project1\unit1.pas Form1:TForm1
TProject.UpdateUnitComponentDependencies checking designers ...
LAZARUS END - cleaning up ...
[TMainIDE.Destroy] A
[TMainIDE.Destroy] B -> inherited Destroy... TMainIDE
[TMainIDE.Destroy] END
Mantis conversion info:
- Mantis ID: 13441
- Version: 0.9.26.3 (SVN)
- Fixed in version: 0.9.27 (SVN)