Author Topic: i get Cannot access memory at address 0xffffffef when i try to use the debugger  (Read 3314 times)

Offline codinglexernewbie

  • Multiple posting newcomer
  • *
  • Posts: 12
I get Cannot access memory at address 0xffffffef when i try to use the debugger on a stack<int>.top(), is it impossible or just an error with my compiler setup?

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Operating system? GDB version?

Does GDB/Codeblocks crash, or is this a valid error message from gdb?

What are you trying to debug?
Is the stack filled? Because if there are no items, top() will return an invalid reference, probably undefined behavior....