Debugging a Program With dbx

Understanding the Memory Access Error Report

RTC prints the following information for memory access errors:

type 

Type of error. 

access 

Type of access attempted (read or write). 

size 

Size of attempted access. 

addr 

Address of attempted access. 

detail 

More detailed information about addr. For example, if addr is in the vicinity of the stack, then its position relative to the current stack pointer is given. If addr is in the heap, then the address, size, and relative position of the nearest heap block is given. 

stack 

Call stack at time of error (with batch mode). 

allocation 

If addr is in the heap, then the allocation trace of the nearest heap block is given.

location 

Where the error occurred. If line number information is available, this information includes line number and function. If line numbers are not available, RTC provides function and address.

The following example shows a typical access error:


Read from uninitialized (rui):
Attempting to read 4 bytes at address 0xefffee50
	which is 96 bytes above the current stack pointer
Variable is `j'
Current function is rui
   12           i = j;