public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/13276] New: assertation failure in realloc when running out of virtual mappings
@ 2011-10-08 16:24 andi-bz at firstfloor dot org
  2011-10-08 18:40 ` [Bug libc/13276] " bugdal at aerifal dot cx
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: andi-bz at firstfloor dot org @ 2011-10-08 16:24 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13276

             Bug #: 13276
           Summary: assertation failure in realloc when running out of
                    virtual mappings
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: andi-bz@firstfloor.org
    Classification: Unclassified


When a process runs out of virtual mappings on Linux
(more mmaps than vm.max_map_count) then munmap can fail because it may 
need to split a mapping.

In this case when there is a realloc() it will get an assertation 
failure because it doesn't expect munmap to fail.

Seen with gcc with a specific input file that fragments memory badly:

lto1: malloc.c:3551: munmap_chunk: Assertion `ret == 0' failed.

realloc should return NULL in this case, not assert. free should cleanly 
return.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-06-27 11:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-08 16:24 [Bug libc/13276] New: assertation failure in realloc when running out of virtual mappings andi-bz at firstfloor dot org
2011-10-08 18:40 ` [Bug libc/13276] " bugdal at aerifal dot cx
2011-10-08 19:05 ` andi-bz at firstfloor dot org
2011-10-08 20:01 ` bugdal at aerifal dot cx
2011-10-08 20:01 ` bugdal at aerifal dot cx
2011-10-10  3:23 ` [Bug libc/13276] assertion " ppluzhnikov at google dot com
2011-10-29 20:40 ` drepper.fsp at gmail dot com
2014-06-27 11:53 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).