mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
Avoid assertion in processes with VM in bad shape
This commit is contained in:
@@ -2855,10 +2855,10 @@ munmap_chunk(mchunkptr p)
|
||||
mp_.n_mmaps--;
|
||||
mp_.mmapped_mem -= total_size;
|
||||
|
||||
int ret __attribute__ ((unused)) = munmap((char *)block, total_size);
|
||||
|
||||
/* munmap returns non-zero on failure */
|
||||
assert(ret == 0);
|
||||
/* If munmap failed the process virtual memory address space is in a
|
||||
bad shape. Just leave the block hanging around, the process will
|
||||
terminate shortly anyway since not much can be done. */
|
||||
munmap((char *)block, total_size);
|
||||
}
|
||||
|
||||
#if HAVE_MREMAP
|
||||
|
Reference in New Issue
Block a user