Debug Crashes Lazarus lazarus / 12-Debugger ---------------------------------------------------------------------- criageek · 2007-02-28 13:26 Hi all - New to Lazarus, very experienced with Delphi.  When I set the debugger to gdb in the Debugger Options dialog and try to run my application, Lazarus dies.  I mean it completely goes away.  Any ideas why this happens?  I'm using Ubuntu 6.10 in Linux kernel 2.6.19.3. Thanks, Rich ---------------------------------------------------------------------- Vincent Snijders · 2007-02-28 13:55 Hard to tell. Can you start Lazarus in a console and show the console output here? ---------------------------------------------------------------------- criageek · 2007-02-28 14:48 OK...I'll try tonight...I'm at work now. Thanks, Rich ---------------------------------------------------------------------- criageek · 2007-02-28 23:36 OK...here's what it looks like.  This is from the time I clicked "Run". Rich [TMainIDE.DoRunProject] A TMainIDE.DoInitProjectRun A True 0 TMainIDE.DoInitProjectRun B TMainIDE.DoSaveAll TMainIDE.DoSaveProject End TPkgManager.GetWritablePkgOutputDirectory APackage=SQLDBLaz 1.0 AnOutDirectory="/home/mythtv/.lazarus/lib/SQLDBLaz/i386-linux" TCompiler.Compile WorkingDir="/home/mythtv/tmp/" CompilerFilename="/usr/bin/ppc386" CompilerParams=" -S2cgi -OG1 -gl -WG -vewnhi -l -Fu../.lazarus/lib/SQLDBLaz/i386-linux/ -Fu/usr/share/lazarus/lcl/units/i386-linux/ -Fu/usr/share/lazarus/lcl/units/i386-linux/gtk/ -Fu/usr/share/lazarus/packager/units/i386-linux/ -Fu. -optrymysql -dLCL -dLCLgtk ptrymysql.lpr" [TCompiler.Compile] CmdLine="/usr/bin/ppc386  -S2cgi -OG1 -gl -WG -vewnhi -l -Fu../.lazarus/lib/SQLDBLaz/i386-linux/ -Fu/usr/share/lazarus/lcl/units/i386-linux/ -Fu/usr/share/lazarus/lcl/units/i386-linux/gtk/ -Fu/usr/share/lazarus/packager/units/i386-linux/ -Fu. -optrymysql -dLCL -dLCLgtk ptrymysql.lpr" Hint: Start of reading config file /etc/fpc.cfg Hint: End of reading config file /etc/fpc.cfg Free Pascal Compiler version 2.0.4 [2006/08/22] for i386 Copyright (c) 1993-2006 by Florian Klaempfl Target OS: Linux for i386 Compiling ptrymysql.lpr Linking ptrymysql 15 Lines compiled, 2.1 sec [TCompiler.Compile] end [TDebugManager.DoInitDebugger] A [TCmdLineDebugger] Debug PID: 4417 Xlib: unexpected async reply (sequence 0xbc6c)! Xlib: unexpected async reply (sequence 0xbc6d)! Gdk-CRITICAL **: file gdkwindow.c: line 1717 (gdk_window_get_toplevel): assertion `window != NULL' failed. Gdk-WARNING **: GdkWindow 0x2400203 unexpectedly destroyed Gdk-ERROR **: BadIDChoice (invalid resource ID chosen for this connection)   serial 48296 error_code 14 request_code 55 minor_code 0 ---------------------------------------------------------------------- Vincent Snijders · 2007-03-01 09:05 That is a difficult error. :-( Does the compiled executable run without debugger outside Lazarus? ---------------------------------------------------------------------- criageek · 2007-03-01 13:44 I'll try it tonight...thanks for the input Vincent!  By the way, could you move to the states so we would be in the same time zone?  LOL Rich ---------------------------------------------------------------------- Vincent Snijders · 2007-03-01 13:48 Quote from: "rdfrahm"By the way, could you move to the states so we would be in the same time zone? No, but you could try to get up earlier. ;-) ---------------------------------------------------------------------- criageek · 2007-03-02 00:03 Quote from: "Vincent"That is a difficult error. :-( Does the compiled executable run without debugger outside Lazarus? Yes, it executes exactly as is does in the IDE. Rich ---------------------------------------------------------------------- Vincent Snijders · 2007-03-02 08:18 I am sorry, this is going to be an dead end for me. I don't know what causes the Lazarus crash. ---------------------------------------------------------------------- criageek · 2007-03-02 15:48 Quote from: "Vincent"I am sorry, this is going to be an dead end for me. I don't know what causes the Lazarus crash. OK...thanks for trying Vincent. Rich ---------------------------------------------------------------------- bmhm · 2007-03-03 21:34 I got it!! some notes: * got Ubuntu 6.10 amd64 (shouldn't matter) * built fpc 2.0.4 myself * built lazarus myself ... blah that's it. solution: * Go to "Environment" -> Debugger Options * Choose "GNU debugger (gdb)" * Path *should* be: /usr/bin/gdb Now try to execute your programs - worked for me! Also check your programme's paths and so on. Wow my first post and I solved a big prob like this Regards! ---------------------------------------------------------------------- criageek · 2007-03-03 23:09 Quote from: "bmhm"I got it!! some notes: * got Ubuntu 6.10 amd64 (shouldn't matter) * built fpc 2.0.4 myself * built lazarus myself ... blah that's it. solution: * Go to "Environment" -> Debugger Options * Choose "GNU debugger (gdb)" * Path *should* be: /usr/bin/gdb Now try to execute your programs - worked for me! Also check your programme's paths and so on. Wow my first post and I solved a big prob like this Regards! Outstanding!  A very easy fix...thanks bmhm!  All I had to do was set the path to /usr/bin/gdb...I had it set to usr/bin before. Thanks! Rich ---------------------------------------------------------------------- bmhm · 2007-03-04 10:20 Well yeah, the most annoying thing is still that the debian packages are not suitable for amd64 systems Anyway, glad to be able to help. PS: I'm German, Vincent is from NL... the person being in the "wrong" time zone is YOU ;-) *just kiddin* PS: Another thing I'd like to mention: People won't think it's a debugger's error. I just pressed F9 and wondered why lazarus crashed. I'd never thought of this until I "accidentally" read this thread ;-) ---------------------------------------------------------------------- Vincent Snijders · 2007-03-04 10:31 Can one of you create a bug report. I think a check is missing on an existing debugger executable. ---------------------------------------------------------------------- criageek · 2007-03-04 15:12 Quote from: "bmhm"PS: I'm German, Vincent is from NL... the person being in the "wrong" time zone is YOU ;-) *just kiddin* I had a chance to go to Germany last year when our company installed SAP software in our German facility, but I'm not much of a traveller, so I didn't go.  It would have been nice to see my grandfather's birthplace, which was near our facility. Quote from: "Vincent"Can one of you create a bug report. I think a check is missing on an existing debugger executable. Done! Rich