Recent

Author Topic: Run command doesn't works.  (Read 5874 times)

miroslav_11070

  • Newbie
  • Posts: 4
Run command doesn't works.
« on: November 26, 2015, 09:51:51 pm »
I try to teach my students to make programs in Lazarus. So, I gave them few task to do at home. Few of them report me error which I cannot understand:
They complie program with no error, debugger create exe file, but it can not be run with F9 (or Run command), but when they run application from Windows it works.
I take one code from a student, and try to compile it. No error, but not run in lazarus. Create exe file, and it works in Windows. Now, I can not execute any program in Lazarus. Exe files can be create and work in Windows. I uninstal Lazarus and instal it again, but there is no help. What can I do? What they can do to make Lazarus not to run executable code from designer, but work from Windows? How can I help them?

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11452
  • FPC developer.
Re: Run command doesn't works.
« Reply #1 on: November 26, 2015, 09:53:09 pm »
Exclude any programming directories from your antivirus.

Antiviruses work on the principle that what they know is good, and everything else is bad.

miroslav_11070

  • Newbie
  • Posts: 4
Re: Run command doesn't works.
« Reply #2 on: November 26, 2015, 10:13:34 pm »
I think it is not antivirus problem. That day, I worked three hours with a lot of code I wrote and my students wrote. But when I start that one everything went bad. So, now I can not execute any programm from lazarus, but I can run same exe file from windows.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11452
  • FPC developer.
Re: Run command doesn't works.
« Reply #3 on: November 26, 2015, 10:16:23 pm »
I think it is not antivirus problem. That day, I worked three hours with a lot of code I wrote and my students wrote. But when I start that one everything went bad. So, now I can not execute any programm from lazarus, but I can run same exe file from windows.

Well. It has all signs of an antivirus problem. Somehow antivirusses are afraid of

1) linkers, scary EXEs that create other EXEs
2) debuggers, scary EXEs that open other EXEs.

Starting a process in Lazarus involves both.

The only realistic other solution I can think of is that you installed with admin rights into c:\program files and now the permission problem got really complicated. Solution: don't install into c:\program files.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9867
  • Debugger - SynEdit - and more
    • wiki
Re: Run command doesn't works.
« Reply #4 on: November 27, 2015, 03:55:15 am »
Windows, which version?

You used the official Lazarus installer?

In menu "Tools" > Options, on page "Debugger" is there an entry with a path to gdb, does it point an existing gdb.exe?

Alternatively, start lazarus with option --setup (edit properties of desktop shortcut)

If you can: http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Log_info_for_debug_session

Alternatively go to menu "View" > "Debug Windows" > "Debug Output"
this opens an new window. Keep it open, and now select "Run" from menu.
The window will fill with lots of text. Copy it and paste it here.


miroslav_11070

  • Newbie
  • Posts: 4
Re: Run command doesn't works.
« Reply #5 on: November 27, 2015, 09:12:51 pm »
Lazarus 1.4.4. from official Lazarus page and Windows 10 (and Win 7 professional). I cannot try what you wrote until Monday. My home computer also have Windows 10, but Lazarus work correct. I can run programs from it. In Monday morning when I go to school I shell try that, so we'll know if it helps. Thank you, anyway.

miroslav_11070

  • Newbie
  • Posts: 4
Re: Run command doesn't works.
« Reply #6 on: December 02, 2015, 02:00:28 pm »
I looked in menu "Tools" > Options, on page "Debugger" on two computer, one where all works, and one where it don't. Everything is the same. So, I open empty window and "Debug Output" window, then click on run command, lazarus didn't start exe file, and this is the result in "Debug Output":
=thread-group-added,id="i1"
(gdb)
<-gdb-set confirm off>
^done
(gdb)
<-gdb-set new-console off>
^done
(gdb)
<set width 50000>
&"set width 50000\n"
^done
(gdb)
<-gdb-version>
~"GNU gdb (GDB) 7.2\n"
~"Copyright (C) 2010 Free Software Foundation, Inc.\n"
~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\nand \"show warranty\" for details.\n"
~"This GDB was configured as \"mingw32\".\nFor bug reporting instructions, please see:\n"
~"<http://www.gnu.org/software/gdb/bugs/>.\n"
^done
(gdb)
<-gdb-set env ALLUSERSPROFILE=C:\ProgramData>
^done
(gdb)
<-gdb-set env APPDATA=C:\Users\Miroslav\AppData\Roaming>
^done
(gdb)
<-gdb-set env CommonProgramFiles=C:\Program Files\Common Files>
^done
(gdb)
<-gdb-set env COMPUTERNAME=MIROSLAV-20>
^done
(gdb)
<-gdb-set env ComSpec=C:\WINDOWS\system32\cmd.exe>
^done
(gdb)
<-gdb-set env FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer>
^done
(gdb)
<-gdb-set env FPS_BROWSER_USER_PROFILE_STRING=Default>
^done
(gdb)
<-gdb-set env FP_NO_HOST_CHECK=NO>
^done
(gdb)
<-gdb-set env HOMEDRIVE=C:>
^done
(gdb)
<-gdb-set env HOMEPATH=\Users\Miroslav>
^done
(gdb)
<-gdb-set env LOCALAPPDATA=C:\Users\Miroslav\AppData\Local>
^done
(gdb)
<-gdb-set env LOGONSERVER=\\MIROSLAV-20>
^done
(gdb)
<-gdb-set env NUMBER_OF_PROCESSORS=2>
^done
(gdb)
<-gdb-set env OS=Windows_NT>
^done
(gdb)
<-gdb-set env Path=C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files\Borland\Delphi7\Bin;C:\Program Files\Borland\Delphi7\Projects\Bpl\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Gemalto\Classic Client\BIN;C:\Program Files\Windows Live\Shared;C:\Program Files\Common Files\Ahead\Lib\;C:\Program Files\Common Files\Ahead\Lib\;C:\Program Files\Common Files\Ahead\Lib\>
^done
(gdb)
<-gdb-set env PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC>
^done
(gdb)
<-gdb-set env PROCESSOR_ARCHITECTURE=x86>
^done
(gdb)
<-gdb-set env PROCESSOR_IDENTIFIER=x86 Family 6 Model 58 Stepping 9, GenuineIntel>
^done
(gdb)
<-gdb-set env PROCESSOR_LEVEL=6>
^done
(gdb)
<-gdb-set env PROCESSOR_REVISION=3a09>
^done
(gdb)
<-gdb-set env ProgramData=C:\ProgramData>
^done
(gdb)
<-gdb-set env ProgramFiles=C:\Program Files>
^done
(gdb)
<-gdb-set env PSModulePath=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\>
^done
(gdb)
<-gdb-set env PUBLIC=C:\Users\Public>
^done
(gdb)
<-gdb-set env RNLOG_BASEKEY=Software\RealNetworks\Downloader2\logging>
^done
(gdb)
<-gdb-set env SESSIONNAME=Console>
^done
(gdb)
<-gdb-set env SystemDrive=C:>
^done
(gdb)
<-gdb-set env SystemRoot=C:\WINDOWS>
^done
(gdb)
<-gdb-set env TEMP=C:\Users\Miroslav\AppData\Local\Temp>
^done
(gdb)
<-gdb-set env TMP=C:\Users\Miroslav\AppData\Local\Temp>
^done
(gdb)
<-gdb-set env USERDOMAIN=Miroslav-20>
^done
(gdb)
<-gdb-set env USERDOMAIN_ROAMINGPROFILE=Miroslav-20>
^done
(gdb)
<-gdb-set env USERNAME=Miroslav>
^done
(gdb)
<-gdb-set env USERPROFILE=C:\Users\Miroslav>
^done
(gdb)
<-gdb-set env windir=C:\WINDOWS>
^done
(gdb)
<-file-exec-and-symbols "D:/Proba/project1.exe">
^done
(gdb)
<-gdb-set language pascal>
^done
(gdb)
<-environment-cd .>
^done
(gdb)
<-environment-cd "D:/Proba/">
^done
(gdb)
<-data-evaluate-expression FPC_THREADVAR_RELOCATE_PROC>
^error,msg="No symbol \"FPC_THREADVAR_RELOCATE_PROC\" in current context."
(gdb)
<info functions FPC_CPUINIT>
&"info functions FPC_CPUINIT\n"
~"All functions matching regular expression \"FPC_CPUINIT\":\n"
~"\nNon-debugging symbols:\n"
~"0x00403620  SYSTEM_FPC_CPUINIT\n"
^done
(gdb)
<-exec-arguments >
^done
(gdb)
<-gdb-set language pascal>
^done
(gdb)
<ptype TObject>
&"ptype TObject\n"
~"type = TOBJECT = class \n"
~"  public\n"
~"    constructor CREATE (TOBJECT, POINTER) : ^TOBJECT;\n"
~"    destructor  ~DESTROY (TOBJECT, POINTER); virtual;\n"
~"    function  NEWINSTANCE (unnamedtype) : ^TOBJECT; virtual;\n"
~"    procedure FREEINSTANCE (TOBJECT); virtual;\n"
~"    function  SAFECALLEXCEPTION (TOBJECT, TOBJECT, POINTER) : HRESULT; virtual;\n"
~"    procedure DEFAULTHANDLER (TOBJECT, var); virtual;\n"
~"    procedure FREE (TOBJECT);\n"
~"    function  INITINSTANCE (unnamedtype, OINTER, ) : ^TOBJECT;\n"
~"    procedure CLEANUPINSTANCE (TOBJECT);\n"
~"    function  CLASSTYPE (unnamedtype) : record <unknown>;\n"
~"    function  CLASSINFO (unnamedtype) : POINTER;\n"
~"    function  CLASSNAME (unnamedtype, SHORTSTRING) : SHORTSTRING;\n"
~"    function  CLASSNAMEIS (unnamedtype, SHORTSTRING) : BOOLEAN;\n"
~"    function  CLASSPARENT (unnamedtype) : record <unknown>;\n"
~"    function  INSTANCESIZE (unnamedtype) : LONGINT;\n"
~"    function  INHERITSFROM (unnamedtype, CLASS, ) : BOOLEAN;\n"
~"    function  STRINGMESSAGETABLE (unnamedtype) : PSTRINGMESSAGETABLE;\n"
~"    function  METHODADDRESS (unnamedtype, SHORTSTRING) : POINTER;\n"
~"    function  METHODNAME (unnamedtype, OINTER1, H, ) : SHORTSTRING;\n"
~"    function  FIELDADDRESS (TOBJECT, SHORTSTRING) : POINTER;\n"
~"    procedure AFTERCONSTRUCTION (TOBJECT); virtual;\n"
~"    procedure BEFOREDESTRUCTION (TOBJECT); virtual;\n"
~"    procedure DEFAULTHANDLERSTR (TOBJECT, var); virtual;\n"
~"    procedure DISPATCH (TOBJECT, var); virtual;\n"
~"    procedure DISPATCHSTR (TOBJECT, var); virtual;\n"
~"    function  GETINTERFACE (TOBJECT, TGUID, out) : BOOLEAN;\n"
~"    function  GETINTERFACEBYSTR (TOBJECT, SHORTSTRING, ut, ) : BOOLEAN;\n"
~"    function  GETINTERFACEWEAK (TOBJECT, TGUID, out) : BOOLEAN;\n"
~"    function  GETINTERFACEENTRY (unnamedtype, GUID, ) : PINTERFACEENTRY;\n"
~"    function  GETINTERFACEENTRYBYSTR (unnamedtype, SHORTSTRING) : PINTERFACEENTRY;\n"
~"    function  GETINTERFACETABLE (unnamedtype) : PINTERFACETABLE;\n"
~"    function  UNITNAME (unnamedtype, ANSISTRING) : ANSISTRING;\n"
~"    function  EQUALS (TOBJECT, TOBJECT) : BOOLEAN; virtual;\n"
~"    function  GETHASHCODE (TOBJECT) : LONGINT; virtual;\n"
~"    function  TOSTRING (TOBJECT, ANSISTRING) : ANSISTRING; virtual;\n"
~"end\n"
^done
(gdb)
<ptype Exception>
&"ptype Exception\n"
~"type = EXCEPTION = class : public TOBJECT \n"
~"  private\n"
~"    FMESSAGE : ANSISTRING;\n"
~"    FHELPCONTEXT : LONGINT;\n"
~"\n"
~"  public\n"
~"    constructor CREATE (EXCEPTION, POINTER, ANSISTRING) : ^EXCEPTION;\n"
~"    constructor CREATEFMT (EXCEPTION, POINTER, ANSISTRING, unnamedtype, ONGINT) : ^EXCEPTION;\n"
~"    constructor CREATERES (EXCEPTION, POINTER, PSTRING) : ^EXCEPTION;\n"
~"    constructor CREATERESFMT (EXCEPTION, POINTER, PSTRING, unnamedtype, ONGINT, ) : ^EXCEPTION;\n"
~"    constructor CREATEHELP (EXCEPTION, POINTER, ANSISTRING, ONGINT) : ^EXCEPTION;\n"
~"    constructor CREATEFMTHELP (EXCEPTION, POINTER, ANSISTRING, unnamedtype, ONGINT7, ) : ^EXCEPTION;\n"
~"    constructor CREATERESHELP (EXCEPTION, POINTER, PSTRING, LONGINT) : ^EXCEPTION;\n"
~"    constructor CREATERESFMTHELP (EXCEPTION, POINTER, PSTRING, unnamedtype, ONGINT7, ) : ^EXCEPTION;\n"
~"end\n"
^done
(gdb)
<ptype Shortstring>
&"ptype Shortstring\n"
~"type = SHORTSTRING = record \n"
~"    length : BYTE;\n"
~"    st : array [1..255] of CHAR;\n"
~"end\n"
^done
(gdb)
<ptype pointer>
&"ptype pointer\n"
~"type = ^POINTER\n"
^done
(gdb)
<ptype byte>
&"ptype byte\n"
~"type = BYTE\n"
^done
(gdb)
<set print elements 2500>
&"set print elements 2500\n"
^done
(gdb)
<info file>
&"info file\n"
~"Symbols from \"D:/Proba/project1.exe\".\n"
~"Local exec file:\n"
~"\t`D:/Proba/project1.exe', file type pei-i386.\n"
~"\tEntry point: 0x553eb0\n"
~"\t0x00401000 - 0x00553ee0 is .text\n"
~"\t0x00554000 - 0x005a41ec is .data\n"
~"\t0x005a5000 - 0x005abfc4 is .bss\n"
~"\t0x005ad000 - 0x005aff9c is .idata\n"
~"\t0x005b0000 - 0x005d861c is .rsrc\n"
^done
(gdb)
<-data-evaluate-expression sizeof(POINTER)>
^done,value="4"
(gdb)
<-break-insert -f foo>
&"Function \"foo\" not defined.\n"
^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="foo",times="0",original-location="foo"}
(gdb)
<-break-delete 1>
^done
(gdb)
<-break-insert main>
^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00402c28",func="main",file="D:/Proba/project1.lpr",fullname="D:/Proba/project1.lpr",line="16",times="0",original-location="main"}
(gdb)
<-break-insert +0>
^done,bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="0x00402c28",func="main",file="D:/Proba/project1.lpr",fullname="D:/Proba/project1.lpr",line="7",times="0",original-location="D:/Proba/project1.lpr:7"}
(gdb)
<-break-insert *5586608>
^done,bkpt={number="4",type="breakpoint",disp="keep",enabled="y",addr="0x00553eb0",at="<WinMainCRTStartup>",times="0",original-location="*5586608"}
(gdb)
<-exec-run>
=thread-group-started,id="i1",pid="2784"
=thread-created,id="1",group-id="i1"
~"[New Thread 2784.0x504]\n"
^running
*running,thread-id="all"
(gdb)
=library-loaded,id="C:\\WINDOWS\\system32\\kernel32.dll",target-name="C:\\WINDOWS\\system32\\kernel32.dll",host-name="C:\\WINDOWS\\system32\\kernel32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\KernelBase.dll",target-name="C:\\WINDOWS\\system32\\KernelBase.dll",host-name="C:\\WINDOWS\\system32\\KernelBase.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\gdi32.dll",target-name="C:\\WINDOWS\\system32\\gdi32.dll",host-name="C:\\WINDOWS\\system32\\gdi32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\user32.dll",target-name="C:\\WINDOWS\\system32\\user32.dll",host-name="C:\\WINDOWS\\system32\\user32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\ole32.dll",target-name="C:\\WINDOWS\\system32\\ole32.dll",host-name="C:\\WINDOWS\\system32\\ole32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\combase.dll",target-name="C:\\WINDOWS\\system32\\combase.dll",host-name="C:\\WINDOWS\\system32\\combase.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\msvcrt.dll",target-name="C:\\WINDOWS\\system32\\msvcrt.dll",host-name="C:\\WINDOWS\\system32\\msvcrt.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\rpcrt4.dll",target-name="C:\\WINDOWS\\system32\\rpcrt4.dll",host-name="C:\\WINDOWS\\system32\\rpcrt4.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\sechost.dll",target-name="C:\\WINDOWS\\system32\\sechost.dll",host-name="C:\\WINDOWS\\system32\\sechost.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\oleaut32.dll",target-name="C:\\WINDOWS\\system32\\oleaut32.dll",host-name="C:\\WINDOWS\\system32\\oleaut32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\shell32.dll",target-name="C:\\WINDOWS\\system32\\shell32.dll",host-name="C:\\WINDOWS\\system32\\shell32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\windows.storage.dll",target-name="C:\\WINDOWS\\system32\\windows.storage.dll",host-name="C:\\WINDOWS\\system32\\windows.storage.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\advapi32.dll",target-name="C:\\WINDOWS\\system32\\advapi32.dll",host-name="C:\\WINDOWS\\system32\\advapi32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\shlwapi.dll",target-name="C:\\WINDOWS\\system32\\shlwapi.dll",host-name="C:\\WINDOWS\\system32\\shlwapi.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\kernel.appcore.dll",target-name="C:\\WINDOWS\\system32\\kernel.appcore.dll",host-name="C:\\WINDOWS\\system32\\kernel.appcore.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\SHCore.dll",target-name="C:\\WINDOWS\\system32\\SHCore.dll",host-name="C:\\WINDOWS\\system32\\SHCore.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\powrprof.dll",target-name="C:\\WINDOWS\\system32\\powrprof.dll",host-name="C:\\WINDOWS\\system32\\powrprof.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\profapi.dll",target-name="C:\\WINDOWS\\system32\\profapi.dll",host-name="C:\\WINDOWS\\system32\\profapi.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\WinSxS\\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.10240.16384_none_3bccb1ff6bcd1849\\comctl32.dll",target-name="C:\\WINDOWS\\WinSxS\\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.10240.16384_none_3bccb1ff6bcd1849\\comctl32.dll",host-name="C:\\WINDOWS\\WinSxS\\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.10240.16384_none_3bccb1ff6bcd1849\\comctl32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SYSTEM32\\version.dll",target-name="C:\\WINDOWS\\SYSTEM32\\version.dll",host-name="C:\\WINDOWS\\SYSTEM32\\version.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\imm32.dll",target-name="C:\\WINDOWS\\system32\\imm32.dll",host-name="C:\\WINDOWS\\system32\\imm32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\msctf.dll",target-name="C:\\WINDOWS\\system32\\msctf.dll",host-name="C:\\WINDOWS\\system32\\msctf.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Program Files\\AVG\\Av\\avghookx.dll",target-name="C:\\Program Files\\AVG\\Av\\avghookx.dll",host-name="C:\\Program Files\\AVG\\Av\\avghookx.dll",symbols-loaded="0",thread-group="i1"
~"gdb: unknown target exception 0xc0000008 at 0x778546c7\n"
*stopped,reason="signal-received",signal-name="?",signal-meaning="Unknown signal",frame={addr="0x778546c7",func="??",args=[]},thread-id="1",stopped-threads="all"
(gdb)
<-break-delete 2>
^done
(gdb)
<-break-delete 4>
^done
(gdb)
<-break-delete 3>
^done
(gdb)
<info address FPC_RAISEEXCEPTION>
&"info address FPC_RAISEEXCEPTION\n"
~"Symbol \"FPC_RAISEEXCEPTION\" is at 0x40b910 in a file compiled without debugging.\n"
^done
(gdb)
<-break-insert *4241680>
^done,bkpt={number="5",type="breakpoint",disp="keep",enabled="y",addr="0x0040b910",at="<fpc_raiseexception>",times="0",original-location="*4241680"}
(gdb)
<info address FPC_BREAK_ERROR>
&"info address FPC_BREAK_ERROR\n"
~"Symbol \"FPC_BREAK_ERROR\" is at 0x40d270 in a file compiled without debugging.\n"
^done
(gdb)
<-break-insert *4248176>
^done,bkpt={number="6",type="breakpoint",disp="keep",enabled="y",addr="0x0040d270",at="<SYSTEM_HANDLEERRORADDRFRAME$LONGINT$POINTER$POINTER>",times="0",original-location="*4248176"}
(gdb)
<info address FPC_RUNERROR>
&"info address FPC_RUNERROR\n"
~"Symbol \"FPC_RUNERROR\" is at 0x40d350 in a file compiled without debugging.\n"
^done
(gdb)
<-break-insert *4248400>
^done,bkpt={number="7",type="breakpoint",disp="keep",enabled="y",addr="0x0040d350",at="<SYSTEM_RUNERROR$WORD>",times="0",original-location="*4248400"}
(gdb)
<-symbol-list-lines "unit1.pas">
^done,lines=[]
(gdb)
<-exec-continue>
^running
*running,thread-id="all"
(gdb)
=thread-created,id="2",group-id="i1"
~"[New Thread 2784.0x1754]\n"
*running,thread-id="all"
=thread-exited,id="2",group-id="i1"
=thread-exited,id="1",group-id="i1"
=thread-group-exited,id="i1"
*stopped,reason="exited",exit-code="030000000010"
(gdb)
* Then I stop program:
<kill>
<-gdb-exit>

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9867
  • Debugger - SynEdit - and more
    • wiki
Re: Run command doesn't works.
« Reply #7 on: December 02, 2015, 03:04:49 pm »
There is an exceptions while dll are loaded at start up
Quote
*stopped,reason="signal-received",signal-name="?",signal-meaning="Unknown signal",frame=

This is NOT a problem in your app...

Last dll loaded is C:\\Program Files\\AVG\\Av\\avghookx.dll.
It does not necessarily have to be that one. I use AVG myself without any issues, so not sure why it fails here.

The IDE does not currently detect that there was an error, so thats why it just does nothing.

Please try http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#gdb.exe_has_stopped_working

it usually helps.

If you installed 32 bit Lazarus, you can also try the alternate gdb from our sourceforge site.

 

TinyPortal © 2005-2018