Sun Studio 12 Update 1: Debugging a Program With dbx

Write to Unallocated Memory (wua) Error

Problem: Attempt to write to 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;