|
From: John R. <jr...@bi...> - 2011-01-28 15:09:41
|
> The assert in question seems to be this:
>
>
> static void add_mapping_callback(Addr addr, SizeT len, UInt prot,
> ULong dev, ULong ino, Off64T offset,
> const UChar *filename)
> {
> // derived from sync_check_mapping_callback()
>
> Int iLo, iHi, i;
>
> if (len == 0) return;
>
> /* The kernel should not give us wraparounds. */
> aspacem_assert(addr <= addr + len - 1);
The most likely candidate for triggering the assert()
is if 'len' is -1: MAP_FAILED, or the C library returning -1
when some bare system call returns -ENOMEM, -ENOSPC,
-EINTR, etc., and there was no prior check for that error.
--
|