Sun Studio 12 Update 1: Debugging a Program With dbx

Read From Unallocated Memory (rua) Error

Problem: Attempt to read from nonexistent, unallocated, or unmapped memory.

Possible causes: A stray pointer, overflowing the bounds of a heap block or accessing a heap block that has already been freed.

Example:

char *cp = malloc (10);
free (cp);
cp[0] = 0;