Lazarus 0.9.29 Svn debugger crash lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- Lazar · 2010-10-01 23:30 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 · 2010-10-02 01:49 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 · 2010-10-31 18:42 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? ---------------------------------------------------------------------- Martin_fr · 2010-10-31 19:17 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 · 2010-11-01 07:21 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 · 2010-11-01 11:11 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={wall clock="0.00024",user="0.00020",system="0.00004",start="1288604106.3528 54",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 · 2010-11-01 11:59 thanks again for your help the -gw3 option doesn't work am i the only 64bit mac user? ---------------------------------------------------------------------- Martin_fr · 2010-11-01 12:13 Quote from: senso on November 01, 2010, 12:59:44 pmam 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 · 2010-11-01 12:41 thanks, I'll try your suggestions. senso++ ---------------------------------------------------------------------- Martin_fr · 2010-11-01 13:26 @Lazar Also look here: http://www.lazarus.freepascal.org/index.php/topic,10977.0/topicseen.ht ml