Code::Blocks Forums

User forums => Help => Topic started by: codinglexernewbie on December 27, 2021, 03:12:09 am

Title: i get Cannot access memory at address 0xffffffef when i try to use the debugger
Post by: codinglexernewbie on December 27, 2021, 03:12:09 am
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?
Title: Re: i get Cannot access memory at address 0xffffffef when i try to use the debugger
Post by: BlueHazzard on December 27, 2021, 11:04:43 am
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....