Sun Studio 12: 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 *a = (char *)malloc(1);
a[1] = ”\0’;            /* Write to unallocated memory (wua) */