Cannot access memory at address?
I observed a strange behaviour from gdb. Please assist me to identify this.
Below is affected snippet. Note: Below for loop should not execute more than two times as max value of totNumEntries is 2. Code:
totNumEntries = callLegPtr->activeSpContextPtr->directMediaPtr->numEntries; Code:
Type of totNumEntries is unsigned short (Max value is 65535). My concern is what exactly the meaning of "Cannot access memory at address 0x53369955". When 0x53369955 is not accessible how come "totNumEntries" taking large value which maximum range for unsigned int type. It is very important for me to understand, please let me know if you need any further information. Regards, Shahid Hussain |
You can print out the address and contents of callLegPtr, then do so for activeSpContextPtr, and once again for directMediaPtr. Something is wrong with one of those structures or pointers. 65535 is 0xFFFF, perhaps that came from somewhere if not nowhere. You can do a couple of things:
|
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
|
All times are GMT -5. The time now is 02:54 AM. |