Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Problem of eclipse when interpreting debugger output
Problem of eclipse when interpreting debugger output [message #113827] Wed, 04 August 2004 09:30 Go to next message
Eclipse UserFriend
Originally posted by: e.egberts.tantec.de

Hello,

in my project there are breakpoints that didn't work proper - they stop
but eclipse failed in any debugging function, like showing informations
about local environment or stepping. Eclipse only reports "<Stack is not
available: Cannot access memory at address 0x1.>" (or other adresses).

Debugging the same breakpoints using GDB without eclipse shows this
error to be only the "root message" of backtrace info. All informations
are available and also stepping is possible.
The backtrace looks like this:

[...]
#16 0x00445355 in _Z7WndProcP&HWND__jjl@16 ()
#17 0x77e7124c in _libwsock32_a_iname ()
#18 0x00780039 in ?? ()
Cannot access memory at address 0x1

I think backtrace stops because of entering protected system area and
eclipse handles it as a general failure. Is this a known bug or does
anyone know a workaround to let eclipse jump over the error message?

Best regards,

Ed
Re: Problem of eclipse when interpreting debugger output [message #113855 is a reply to message #113827] Wed, 04 August 2004 09:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: e.egberts.tantec.de

Ups, I forgot to tell you, that I'm talking about Eclipse 3.0.0 and CDT
2.0.0.
Re: Problem of eclipse when interpreting debugger output [message #113907 is a reply to message #113827] Wed, 04 August 2004 13:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: e.egberts.tantec.de

Hello,

> I think backtrace stops because of entering protected system area and
> eclipse handles it as a general failure. Is this a known bug or does
> anyone know a workaround to let eclipse jump over the error message?

this problem is no fun - even workarounds don't help:

I tried to work directly with eclipse console giving in backtrace order.
"bt 3" should prevent the access error, but eclipse console doesn't
accept it and only repeats "bt 3" in red. "bt -3" is accepted to produce
the well known message of access error. Running in console GDB accepts
the "bt 3" order. Where to go on, should I start learning Eclipse source?

Best regards,

Ed
Re: Problem of eclipse when interpreting debugger output [message #113933 is a reply to message #113827] Wed, 04 August 2004 18:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

The CDT debugger uses the mi interface to communicate with gdb. If you want
to see the communication between CDT and gdb see CDT Debugger FAQ #5.

"Edzard Egberts" <e.egberts@tantec.de> wrote in message
news:ceqo5h$ku2$1@eclipse.org...
> Hello,
>
> in my project there are breakpoints that didn't work proper - they stop
> but eclipse failed in any debugging function, like showing informations
> about local environment or stepping. Eclipse only reports "<Stack is not
> available: Cannot access memory at address 0x1.>" (or other adresses).
>
> Debugging the same breakpoints using GDB without eclipse shows this
> error to be only the "root message" of backtrace info. All informations
> are available and also stepping is possible.
> The backtrace looks like this:
>
> [...]
> #16 0x00445355 in _Z7WndProcP&HWND__jjl@16 ()
> #17 0x77e7124c in _libwsock32_a_iname ()
> #18 0x00780039 in ?? ()
> Cannot access memory at address 0x1
>
> I think backtrace stops because of entering protected system area and
> eclipse handles it as a general failure. Is this a known bug or does
> anyone know a workaround to let eclipse jump over the error message?
>
> Best regards,
>
> Ed
Re: Problem of eclipse when interpreting debugger output [message #113960 is a reply to message #113933] Thu, 05 August 2004 08:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: e.egberts.tantec.de

Hello,

> The CDT debugger uses the mi interface to communicate with gdb. If you want
> to see the communication between CDT and gdb see CDT Debugger FAQ #5.

I failed. I see Eclipse loading the options file, but can't find a
resultig output. But I found the log file and it offers lots of
exceptions for debugging. This shows the problem most likely an
internal problem of CDT.

In between I learned how to use GDB directly and debugging is done.
In spite of this problem I think Eclipse/CDT is great and makes working
very comfortable. :o)

Best regards,

Ed
Re: Problem of eclipse when interpreting debugger output [message #114182 is a reply to message #113960] Thu, 05 August 2004 11:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

Unfortunately, if Eclipse fails to load the options file it doesn't report
an error. If the loading is succesful you will get the trace in the console
window.
And, please, post your log.

"Edzard Egberts" <e.egberts@tantec.de> wrote in message
news:cet9tf$his$1@eclipse.org...
> Hello,
>
> > The CDT debugger uses the mi interface to communicate with gdb. If you
want
> > to see the communication between CDT and gdb see CDT Debugger FAQ #5.
>
> I failed. I see Eclipse loading the options file, but can't find a
> resultig output. But I found the log file and it offers lots of
> exceptions for debugging. This shows the problem most likely an
> internal problem of CDT.
>
> In between I learned how to use GDB directly and debugging is done.
> In spite of this problem I think Eclipse/CDT is great and makes working
> very comfortable. :o)
>
> Best regards,
>
> Ed
Re: Problem of eclipse when interpreting debugger output [message #114211 is a reply to message #114182] Thu, 05 August 2004 11:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: e.egberts.tantec.de

> And, please, post your log.

Okay, thats it. Start, going directly to error and exit.
The output of GDB that leads to the problem is described in root message
of thread.

HTH,

Ed


!SESSION Aug 05, 2004 17:35:50.311
---------------------------------------------
eclipse.buildId=I200406251208
java.version=1.4.2_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE

!ENTRY org.eclipse.osgi Aug 05, 2004 17:36:33.463
!MESSAGE Error while stopping "org.eclipse.cdt.debug.ui_2.0.0".
!STACK 0
org.osgi.framework.BundleException: Exception in
org.eclipse.cdt.debug.ui.CDebugUIPlugin.stop() of bundle
org.eclipse.cdt.debug.ui.
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s top(BundleContextImpl.java:1010)
at
org.eclipse.osgi.framework.internal.core.BundleHost.stopWork er(BundleHost.java:502)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.stop (AbstractBundle.java:437)
at
org.eclipse.core.runtime.adaptor.BundleStopper.basicStopBund les(BundleStopper.java:75)
at
org.eclipse.core.runtime.adaptor.BundleStopper.stopBundles(B undleStopper.java:62)
at
org.eclipse.core.runtime.adaptor.EclipseAdaptor.frameworkSto pping(EclipseAdaptor.java:551)
at
org.eclipse.osgi.framework.internal.core.Framework.shutdown( Framework.java:457)
at
org.eclipse.osgi.framework.internal.core.SystemBundle$1.run( SystemBundle.java:182)
at java.lang.Thread.run(Unknown Source)
Caused by: org.eclipse.swt.SWTException: Device is disposed
at org.eclipse.swt.SWT.error(SWT.java:2691)
at org.eclipse.swt.SWT.error(SWT.java:2616)
at org.eclipse.swt.SWT.error(SWT.java:2587)
at org.eclipse.swt.widgets.Display.error(Display.java:736)
at org.eclipse.swt.widgets.Display.asyncExec(Display.java:525)
at
org.eclipse.cdt.debug.ui.CDebugUIPlugin.listenSelection(CDeb ugUIPlugin.java:345)
at org.eclipse.cdt.debug.ui.CDebugUIPlugin.stop(CDebugUIPlugin. java:325)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:994)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s top(BundleContextImpl.java:990)
... 8 more
Root exception:
org.eclipse.swt.SWTException: Device is disposed
at org.eclipse.swt.SWT.error(SWT.java:2691)
at org.eclipse.swt.SWT.error(SWT.java:2616)
at org.eclipse.swt.SWT.error(SWT.java:2587)
at org.eclipse.swt.widgets.Display.error(Display.java:736)
at org.eclipse.swt.widgets.Display.asyncExec(Display.java:525)
at
org.eclipse.cdt.debug.ui.CDebugUIPlugin.listenSelection(CDeb ugUIPlugin.java:345)
at org.eclipse.cdt.debug.ui.CDebugUIPlugin.stop(CDebugUIPlugin. java:325)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:994)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s top(BundleContextImpl.java:990)
at
org.eclipse.osgi.framework.internal.core.BundleHost.stopWork er(BundleHost.java:502)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.stop (AbstractBundle.java:437)
at
org.eclipse.core.runtime.adaptor.BundleStopper.basicStopBund les(BundleStopper.java:75)
at
org.eclipse.core.runtime.adaptor.BundleStopper.stopBundles(B undleStopper.java:62)
at
org.eclipse.core.runtime.adaptor.EclipseAdaptor.frameworkSto pping(EclipseAdaptor.java:551)
at
org.eclipse.osgi.framework.internal.core.Framework.shutdown( Framework.java:457)
at
org.eclipse.osgi.framework.internal.core.SystemBundle$1.run( SystemBundle.java:182)
at java.lang.Thread.run(Unknown Source)
Re: Problem of eclipse when interpreting debugger output [message #114215 is a reply to message #114211] Thu, 05 August 2004 12:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

This is a known problem, it doesn't affect debugging at all and has nothing
to do with your problems. It happens when Eclipse shuts down one of the CDT
debugger plugins..

"Edzard Egberts" <e.egberts@tantec.de> wrote in message
news:cetk9g$5ur$1@eclipse.org...
>
> > And, please, post your log.
>
> Okay, thats it. Start, going directly to error and exit.
> The output of GDB that leads to the problem is described in root message
> of thread.
>
> HTH,
>
> Ed
>
>
> !SESSION Aug 05, 2004 17:35:50.311
> ---------------------------------------------
> eclipse.buildId=I200406251208
> java.version=1.4.2_04
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
>
> !ENTRY org.eclipse.osgi Aug 05, 2004 17:36:33.463
> !MESSAGE Error while stopping "org.eclipse.cdt.debug.ui_2.0.0".
> !STACK 0
> org.osgi.framework.BundleException: Exception in
> org.eclipse.cdt.debug.ui.CDebugUIPlugin.stop() of bundle
> org.eclipse.cdt.debug.ui.
> at
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s top(BundleContex
tImpl.java:1010)
> at
>
org.eclipse.osgi.framework.internal.core.BundleHost.stopWork er(BundleHost.ja
va:502)
> at
>
org.eclipse.osgi.framework.internal.core.AbstractBundle.stop (AbstractBundle.
java:437)
> at
>
org.eclipse.core.runtime.adaptor.BundleStopper.basicStopBund les(BundleStoppe
r.java:75)
> at
>
org.eclipse.core.runtime.adaptor.BundleStopper.stopBundles(B undleStopper.jav
a:62)
> at
>
org.eclipse.core.runtime.adaptor.EclipseAdaptor.frameworkSto pping(EclipseAda
ptor.java:551)
> at
>
org.eclipse.osgi.framework.internal.core.Framework.shutdown( Framework.java:4
57)
> at
>
org.eclipse.osgi.framework.internal.core.SystemBundle$1.run( SystemBundle.jav
a:182)
> at java.lang.Thread.run(Unknown Source)
> Caused by: org.eclipse.swt.SWTException: Device is disposed
> at org.eclipse.swt.SWT.error(SWT.java:2691)
> at org.eclipse.swt.SWT.error(SWT.java:2616)
> at org.eclipse.swt.SWT.error(SWT.java:2587)
> at org.eclipse.swt.widgets.Display.error(Display.java:736)
> at org.eclipse.swt.widgets.Display.asyncExec(Display.java:525)
> at
>
org.eclipse.cdt.debug.ui.CDebugUIPlugin.listenSelection(CDeb ugUIPlugin.java:
345)
> at org.eclipse.cdt.debug.ui.CDebugUIPlugin.stop(CDebugUIPlugin. java:325)
> at
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleConte
xtImpl.java:994)
> at java.security.AccessController.doPrivileged(Native Method)
> at
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s top(BundleContex
tImpl.java:990)
> ... 8 more
> Root exception:
> org.eclipse.swt.SWTException: Device is disposed
> at org.eclipse.swt.SWT.error(SWT.java:2691)
> at org.eclipse.swt.SWT.error(SWT.java:2616)
> at org.eclipse.swt.SWT.error(SWT.java:2587)
> at org.eclipse.swt.widgets.Display.error(Display.java:736)
> at org.eclipse.swt.widgets.Display.asyncExec(Display.java:525)
> at
>
org.eclipse.cdt.debug.ui.CDebugUIPlugin.listenSelection(CDeb ugUIPlugin.java:
345)
> at org.eclipse.cdt.debug.ui.CDebugUIPlugin.stop(CDebugUIPlugin. java:325)
> at
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleConte
xtImpl.java:994)
> at java.security.AccessController.doPrivileged(Native Method)
> at
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s top(BundleContex
tImpl.java:990)
> at
>
org.eclipse.osgi.framework.internal.core.BundleHost.stopWork er(BundleHost.ja
va:502)
> at
>
org.eclipse.osgi.framework.internal.core.AbstractBundle.stop (AbstractBundle.
java:437)
> at
>
org.eclipse.core.runtime.adaptor.BundleStopper.basicStopBund les(BundleStoppe
r.java:75)
> at
>
org.eclipse.core.runtime.adaptor.BundleStopper.stopBundles(B undleStopper.jav
a:62)
> at
>
org.eclipse.core.runtime.adaptor.EclipseAdaptor.frameworkSto pping(EclipseAda
ptor.java:551)
> at
>
org.eclipse.osgi.framework.internal.core.Framework.shutdown( Framework.java:4
57)
> at
>
org.eclipse.osgi.framework.internal.core.SystemBundle$1.run( SystemBundle.jav
a:182)
> at java.lang.Thread.run(Unknown Source)
Re: Problem of eclipse when interpreting debugger output [message #114294 is a reply to message #114215] Thu, 05 August 2004 13:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: e.egberts.tantec.de

Hello,

> This is a known problem, it doesn't affect debugging at all

ups, I'm sorry.

But now I succeded in debugging window. It was a stupid problem of
filename starting with "." :o/

Cutting out the successful parts, the problem is shown below.
"info threads" is the last order working without problems.
"17-stack-info-depth" seems to be "info stack 17" and finishes with
"Cannot access memory...".

"Bt" tells me, frames are ending at #5:
(gdb) bt
#0 cb_Close(Fl_Widget*, void*) (w=0x910920, o=0x0) at ../Main.cpp:18
#1 0x0040601a in Fl::handle(int, Fl_Window*) ()
#2 0x00405ee6 in Fl::handle(int, Fl_Window*) ()
#3 0x0040acdf in _Z7WndProcP6HWND__jjl@16 ()
#4 0x77e7124c in _libwsock32_a_iname ()
#5 0x00010001 in ?? () Cannot access memory at address 0x1b

The Output of Eclipse:

[1.091.726.138.622] 16 info threads
[1.091.726.138.632] &"info threads\n"
[1.091.726.138.642] ~" 2 thread 244.0x102 "
[1.091.726.138.652] ~"* 1 thread 244.0x93 "
[1.091.726.138.692]
16^done,frame={addr="0x77f77fa7",func="??",args=[]},frame={f
unc="cb_Close(Fl_Wid\
get*,
void*)",args=[{name="w",value="0x910920"},{name="o",value= "0x0"}],file="..
/Main.cpp",line="18"\
}
[1.091.726.138.742] (gdb)
[1.091.726.138.762] 17-stack-info-depth
[1.091.726.138.772] &"Cannot access memory at address 0x1b\n"
[1.091.726.138.782] 17^error,msg="Cannot access memory at address 0x1b"
[1.091.726.138.792] (gdb)
[1.091.726.138.802] 17-stack-info-depth
[1.091.726.138.842] &"Cannot access memory at address 0x1b\n"
[1.091.726.138.842] 17^error,msg="Cannot access memory at address 0x1b"
[1.091.726.138.852] (gdb)
[1.091.726.138.882] 18-stack-info-depth
[1.091.726.138.892] &"Cannot access memory at address 0x1b\n"
[1.091.726.138.902] 18^error,msg="Cannot access memory at address 0x1b"
[1.091.726.138.912] 18-stack-info-depth
[1.091.726.138.932] (gdb)
[1.091.726.139.323] &"Cannot access memory at address 0x1b\n"
[1.091.726.139.323] 18^error,msg="Cannot access memory at address 0x1b"
[1.091.726.139.333] (gdb)

It seems to me looking for frames in the wrong direction? ;o)
This causes a kind of error status, and the debugger is not able to step
or watch something, but can continue or suspend.

Also a known Problem?

Ed
Re: Problem of eclipse when interpreting debugger output [message #114318 is a reply to message #114294] Thu, 05 August 2004 14:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

Well, your program stops in gdb for some reason and gdb reports an error.
What are you expecting in this situation?
And what do you mean by "It seems to me looking for frames in the wrong
direction"? "stack-info-depth" is supposed to return the number of frames,
which is 5 according to backtrace result. Maybe, it's a known problem in
gdb.

"Edzard Egberts" <e.egberts@tantec.de> wrote in message
news:cetrc7$iju$1@eclipse.org...
> Hello,
>
> > This is a known problem, it doesn't affect debugging at all
>
> ups, I'm sorry.
>
> But now I succeded in debugging window. It was a stupid problem of
> filename starting with "." :o/
>
> Cutting out the successful parts, the problem is shown below.
> "info threads" is the last order working without problems.
> "17-stack-info-depth" seems to be "info stack 17" and finishes with
> "Cannot access memory...".
>
> "Bt" tells me, frames are ending at #5:
> (gdb) bt
> #0 cb_Close(Fl_Widget*, void*) (w=0x910920, o=0x0) at ../Main.cpp:18
> #1 0x0040601a in Fl::handle(int, Fl_Window*) ()
> #2 0x00405ee6 in Fl::handle(int, Fl_Window*) ()
> #3 0x0040acdf in _Z7WndProcP6HWND__jjl@16 ()
> #4 0x77e7124c in _libwsock32_a_iname ()
> #5 0x00010001 in ?? () Cannot access memory at address 0x1b
>
> The Output of Eclipse:
>
> [1.091.726.138.622] 16 info threads
> [1.091.726.138.632] &"info threads\n"
> [1.091.726.138.642] ~" 2 thread 244.0x102 "
> [1.091.726.138.652] ~"* 1 thread 244.0x93 "
> [1.091.726.138.692]
> 16^done,frame={addr="0x77f77fa7",func="??",args=[]},frame={f
> unc="cb_Close(Fl_Wid\
> get*,
> void*)",args=[{name="w",value="0x910920"},{name="o",value= "0x0"}],file="..
> /Main.cpp",line="18"\
> }
> [1.091.726.138.742] (gdb)
> [1.091.726.138.762] 17-stack-info-depth
> [1.091.726.138.772] &"Cannot access memory at address 0x1b\n"
> [1.091.726.138.782] 17^error,msg="Cannot access memory at address 0x1b"
> [1.091.726.138.792] (gdb)
> [1.091.726.138.802] 17-stack-info-depth
> [1.091.726.138.842] &"Cannot access memory at address 0x1b\n"
> [1.091.726.138.842] 17^error,msg="Cannot access memory at address 0x1b"
> [1.091.726.138.852] (gdb)
> [1.091.726.138.882] 18-stack-info-depth
> [1.091.726.138.892] &"Cannot access memory at address 0x1b\n"
> [1.091.726.138.902] 18^error,msg="Cannot access memory at address 0x1b"
> [1.091.726.138.912] 18-stack-info-depth
> [1.091.726.138.932] (gdb)
> [1.091.726.139.323] &"Cannot access memory at address 0x1b\n"
> [1.091.726.139.323] 18^error,msg="Cannot access memory at address 0x1b"
> [1.091.726.139.333] (gdb)
>
> It seems to me looking for frames in the wrong direction? ;o)
> This causes a kind of error status, and the debugger is not able to step
> or watch something, but can continue or suspend.
>
> Also a known Problem?
>
> Ed
Re: Problem of eclipse when interpreting debugger output [message #114359 is a reply to message #114318] Thu, 05 August 2004 15:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: e.egberts.tantec.de

Hello Mikhail,

> And what do you mean by "It seems to me looking for frames in the wrong
> direction"? "stack-info-depth" is supposed to return the number of frames,
> which is 5 according to backtrace result. Maybe, it's a known problem in
> gdb.

it seems to be an unknown order in GDB 5.2.1. I only found "info frame
ADDR" and thougth this to be the order eclipse is giving to GDB. But
"ADDR" was only the line number. 5.2.1 is minimum requirement and I will
try again using a later version.

This is a place I never would have thought to be the reason, because GDB
without eclipse was good to do my debugging job. :o(

Thank you,

Ed
Re: Problem of eclipse when interpreting debugger output [message #114382 is a reply to message #114359] Thu, 05 August 2004 15:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

Can you post the trace fragment from the latest "stopped" to the end? If gdb
doesn't crash you still should be able to continue.

"Edzard Egberts" <e.egberts@tantec.de> wrote in message
news:ceu196$s24$1@eclipse.org...
> Hello Mikhail,
>
> > And what do you mean by "It seems to me looking for frames in the wrong
> > direction"? "stack-info-depth" is supposed to return the number of
frames,
> > which is 5 according to backtrace result. Maybe, it's a known problem in
> > gdb.
>
> it seems to be an unknown order in GDB 5.2.1. I only found "info frame
> ADDR" and thougth this to be the order eclipse is giving to GDB. But
> "ADDR" was only the line number. 5.2.1 is minimum requirement and I will
> try again using a later version.
>
> This is a place I never would have thought to be the reason, because GDB
> without eclipse was good to do my debugging job. :o(
>
> Thank you,
>
> Ed
Re: Problem of eclipse when interpreting debugger output [message #114417 is a reply to message #114382] Thu, 05 August 2004 17:23 Go to previous message
Eclipse UserFriend
Originally posted by: e.egberts.tantec.de

Hello Mikhail,

you are right, using GDB 6 the problem doesn't appear.

Best regards,

Ed
Previous Topic:Debugger not working in Eclipse
Next Topic:Receiving SIGTRAP when starting debugger with a breakpoint
Goto Forum:
  


Current Time: Sat May 24 07:43:20 EDT 2025

Powered by FUDForum. Page generated in 0.07954 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top