Recent

Author Topic: Lazarus 0.9.29 Svn debugger crash  (Read 11136 times)

Lazar

  • Newbie
  • Posts: 1
Lazarus 0.9.29 Svn debugger crash
« on: October 02, 2010, 01:30:35 am »
Hi

First of all, this is my VERY first experience with programming or lazarus.

So, i've managed to install lazarus 0.9.29 SVN and the FPC 2.4.0. Lazarus opens fine and i can type in some codes. But when i want to compile something i get the following error:

'oops, debugger is crashed'

Terminal is showing up this code:

Code: [Select]
46 lines compiled, 4.6 sec
2 hint(s) issued
[TCompiler.Compile] end
TMainIDE.DoInitProjectRun ProgramFilename=/tmp/project1
[TCmdLineDebugger] Debug PID: 26997
TGDBMIDebugger.ProcessResult Error: ,msg="No symbol table is loaded.  Use the \"file\" command."
[Debugger] Running GDB version: 6.3.50-20050815 (Apple version gdb-768)
[TDebugger.SetFileName] "/tmp/project1.app"
[WARNING] Debugger: Unknown record: unable to read unknown load command 0x80000022
[WARNING] Debugger: Unknown record: unable to read unknown load command 0x80000022
[WARNING] Debugger: Unknown record: unable to read unk

Can someone help me out? I dont want to install a dualboot with windows just to run lazarus.

thx !

99Percent

  • Full Member
  • ***
  • Posts: 160
Re: Lazarus 0.9.29 Svn debugger crash
« Reply #1 on: October 02, 2010, 03:49:54 am »
try compiling with debug info and linking with debuggin info. You set this  in Project>Project Options>Code Generation Optimization level 1 and Linking>Generate Debugging Info for GDB (slows compiling).

Please note that the GDB is very limited for debugging FPC. Hopefully a Lazarus specific debugger will be worked once a stable final release is out. (pretty soon now).

senso

  • Newbie
  • Posts: 6
Re: Lazarus 0.9.29 Svn debugger crash
« Reply #2 on: October 31, 2010, 07:42:43 pm »

I try to compile the simplest application: just an empty main form and I have the same issue.
The "project/compilation options" tip doesn't solve the pb.

any other idea?

« Last Edit: October 31, 2010, 07:45:16 pm by senso »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9855
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus 0.9.29 Svn debugger crash
« Reply #3 on: October 31, 2010, 08:17:40 pm »
Well the line

TGDBMIDebugger.ProcessResult Error: ,msg="No symbol table is loaded.  Use the \"file\" command."

suggests that you don't. Unless, after recompiling that line is gone, and another fault took over.

About switching on debug-info:
- it must either be -g or -gw
- "-gl" alone may not be enough
- you must *not* select "strip" (-Xs)
- do *not* use an external symbol file -Xg

The resulting exe file should have 10 MB or more (even just for an empty form.

senso

  • Newbie
  • Posts: 6
Re: Lazarus 0.9.29 Svn debugger crash
« Reply #4 on: November 01, 2010, 08:21:12 am »
hello Martin,
Thanks for your help.

Your last tip doesn't solve my problem.

I think that I have to be more precise.

1) It's a new mac with OSX 10.6.3 with nothing else installed except Lazarus and all required packages.
2) I start Lazarus and it opens a new 'almost' blank project with only an empty form. I compile/execute the project.
3) a debugger error appears as a popup window.
"Oups the debugger has crashed"
4) I've tried all possible settings in the compilation options and linking options. without  success.
here is the debugger trace output (sorry it's a very long file).
 
http://www.sensomusic.com/forums/uploads.php?file=text.txt

Is it specific to my platform?

any help welcome.
thanks


Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9855
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus 0.9.29 Svn debugger crash
« Reply #5 on: November 01, 2010, 12:11:00 pm »
I can't test with Mac 64bit. (don't have)
It works on earlier Mac with 32 bit, same gdb version 6.3.50

And yes, you do have debug info.

But it looks as if it may be corrupted (I am no expert on this, I could be wrong)

Quote
~"Symbol \"main\" is at 0x255f in a file compiled without debugging.\n"

^done

(gdb)

<-break-insert -t *9567>
^done,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x0000255f",file="customtimer.pas",line="75",shlib="/Users/oliviersens/Documents/project1.app/Contents/MacOS/project1",times="0"},time={wallclock="0.00024",user="0.00020",system="0.00004",start="1288604106.352854",end="1288604106.353097"}

main does not belong in customtimer.pas

IIRC there was some talk about fpc and 64bit debug info on some platform, and depending on debug format or maybe linker....

Just to be save, but not sure if it will help (only random suggestions).
- you tried stabs and dwarf? (stabs is just -g / dwarf is -gw)
- you can go to custom options and insert -gw3 for testing...


senso

  • Newbie
  • Posts: 6
Re: Lazarus 0.9.29 Svn debugger crash
« Reply #6 on: November 01, 2010, 12:59:44 pm »
thanks again for your help
the -gw3 option doesn't work :'(

am i the only 64bit mac user?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9855
  • Debugger - SynEdit - and more
    • wiki
Mac Os 64 bit [Re: Lazarus 0.9.29 Svn debugger crash]
« Reply #7 on: November 01, 2010, 01:13:26 pm »
am i the only 64bit mac user?
I don't know about that... ;)

But it may help putting it in the subject, to attract the right readers.

----
In the meantime, you can try if you can start the app in gdb without Lazarus.
It will require some gdb knowledge, but a lot of the commands you can find in the log you attached.

If the app works when you run gdb without Lazarus, and you can set and stop at a breakpoint in your own code, then it may be an issue with Lazarus.

If not you may want to check on the fpc mailing list.

In any case you can ask on the fpc list, how good the support of your OS with 64 bits is (for either stabs or dwarf)

senso

  • Newbie
  • Posts: 6
Re: Lazarus 0.9.29 Svn debugger crash
« Reply #8 on: November 01, 2010, 01:41:09 pm »
thanks,
I'll try your suggestions.
senso++

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9855
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus 0.9.29 Svn debugger crash
« Reply #9 on: November 01, 2010, 02:26:24 pm »

 

TinyPortal © 2005-2018