Recent

Author Topic: Debug Crashes Lazarus  (Read 17468 times)

criageek

  • Jr. Member
  • **
  • Posts: 79
Debug Crashes Lazarus
« on: February 28, 2007, 02:26:26 pm »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
RE: Debug Crashes Lazarus
« Reply #1 on: February 28, 2007, 02:55:17 pm »
Hard to tell.

Can you start Lazarus in a console and show the console output here?

criageek

  • Jr. Member
  • **
  • Posts: 79
RE: Debug Crashes Lazarus
« Reply #2 on: February 28, 2007, 03:48:03 pm »
OK...I'll try tonight...I'm at work now.

Thanks,
Rich

criageek

  • Jr. Member
  • **
  • Posts: 79
Debug Crashes Lazarus
« Reply #3 on: March 01, 2007, 12:36:54 am »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Debug Crashes Lazarus
« Reply #4 on: March 01, 2007, 10:05:32 am »
That is a difficult error. :-(

Does the compiled executable run without debugger outside Lazarus?

criageek

  • Jr. Member
  • **
  • Posts: 79
Debug Crashes Lazarus
« Reply #5 on: March 01, 2007, 02:44:03 pm »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Debug Crashes Lazarus
« Reply #6 on: March 01, 2007, 02:48:01 pm »
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

  • Jr. Member
  • **
  • Posts: 79
Debug Crashes Lazarus
« Reply #7 on: March 02, 2007, 01:03:46 am »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Debug Crashes Lazarus
« Reply #8 on: March 02, 2007, 09:18:05 am »
I am sorry, this is going to be an dead end for me. I don't know what causes the Lazarus crash.

criageek

  • Jr. Member
  • **
  • Posts: 79
Debug Crashes Lazarus
« Reply #9 on: March 02, 2007, 04:48:54 pm »
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

  • Guest
Debug Crashes Lazarus
« Reply #10 on: March 03, 2007, 10:34:48 pm »
I got it!! :D

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 :D

Regards!

criageek

  • Jr. Member
  • **
  • Posts: 79
Debug Crashes Lazarus
« Reply #11 on: March 04, 2007, 12:09:45 am »
Quote from: "bmhm"
I got it!! :D

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 :D

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

  • Guest
Debug Crashes Lazarus
« Reply #12 on: March 04, 2007, 11:20:53 am »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Debug Crashes Lazarus
« Reply #13 on: March 04, 2007, 11:31:05 am »
Can one of you create a bug report. I think a check is missing on an existing debugger executable.

criageek

  • Jr. Member
  • **
  • Posts: 79
Debug Crashes Lazarus
« Reply #14 on: March 04, 2007, 04:12:19 pm »
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

 

TinyPortal © 2005-2018