Home » Language IDEs » C / C++ IDE (CDT) » Cannot access memory at address 0x0
| | | | | |
Re: Cannot access memory at address 0x0 [message #658968 is a reply to message #658868] |
Thu, 10 March 2011 15:21 |
hefeweizen Messages: 32 Registered: July 2009 |
Member |
|
|
Ok, when the error occurrs, these are the last lines shown in the console gdb traces:
........
314,327 478-stack-info-depth --thread 1
314,328 478^done,depth="1"
314,328 (gdb)
314,329 479-var-update 1 var6
314,329 480-var-update 1 var7
314,329 481-var-update 1 var5
314,331 479^done,changelist=[]
314,331 (gdb)
314,331 480^done,changelist=[]
314,331 (gdb)
314,331 481^done,changelist=[]
314,331 (gdb)
326,530 482-exec-next --thread 1 1
does it give any hint?
where can I find more info about what these numbers mean?
|
|
| |
Re: Cannot access memory at address 0x0 [message #659004 is a reply to message #658968] |
Thu, 10 March 2011 16:33 |
Axel Mueller Messages: 1973 Registered: July 2009 |
Senior Member |
|
|
hefeweizen wrote on Thu, 10 March 2011 16:21 | Ok, when the error occurrs, these are the last lines shown in the console gdb traces:
........
314,327 478-stack-info-depth --thread 1
314,328 478^done,depth="1"
314,328 (gdb)
314,329 479-var-update 1 var6
314,329 480-var-update 1 var7
314,329 481-var-update 1 var5
314,331 479^done,changelist=[]
314,331 (gdb)
314,331 480^done,changelist=[]
314,331 (gdb)
314,331 481^done,changelist=[]
314,331 (gdb)
326,530 482-exec-next --thread 1 1
does it give any hint?
where can I find more info about what these numbers mean?
|
Did you set a breakpoint when the error occurred? Or did you hit a breakpoint?
I once got this error when I set a breakpoint on a static inlined function. But in my case I also got this error on the command line gdb.
Quote: | /build/buildd/gdb-7.0/gdb/inferior.c:43: internal-error: current_inferior: Assertion `inf' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
|
Might be a bug in gdb see http://server1.sourceware.org/ml/gdb-patches/2010-12/msg0003 1.html
Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
|
|
|
Re: Cannot access memory at address 0x0 [message #659011 is a reply to message #659004] |
Thu, 10 March 2011 16:54 |
hefeweizen Messages: 32 Registered: July 2009 |
Member |
|
|
It happened two lines after a breakpoint was hit.
If I run directly gdb on the shell, I do not get this problem, independetly of static inlined function or not. So it means to me that this is an error in how eclipse "calls" gdb.
This happens under internal DSF/GDB, as I selected this option and the error talks about
/build/buildd/gdb-7.0/gdb/inferior.c
You give a link with some patch for gdb. I am not going to try this. I found problems in mac and thought "ok, this is because nobody uses eclipse on mac", and then tried linux version. Now I find this error. I means to me that a default installation of eclipse helios in ubuntu linux 9.1 (widely used distribution), does not allow to debug in normal conditions (the program I am working with is very simple).
Can you suggest a solution here? (i.e. not patching internal's eclipse gdb)
Otherwise I am giving up for eclipse, this is too much.
What I find amazing the most, is that nobody found this errors or it seems that nobody is using debugging. The same code can be perfecly debugged in Visual Studio, which I want to forget about.
|
|
| | |
Goto Forum:
Current Time: Wed Sep 18 23:32:24 GMT 2024
Powered by FUDForum. Page generated in 0.04830 seconds
|