[haiku-bugs] Re: [Haiku] #15258: memory allocator do not handle out of memory correctly

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Sat, 17 Aug 2019 06:22:31 -0000

#15258: memory allocator do not handle out of memory correctly
---------------------------------+----------------------------
   Reporter:  X512               |      Owner:  nobody
       Type:  bug                |     Status:  new
   Priority:  normal             |  Milestone:  Unscheduled
  Component:  System/libroot.so  |    Version:  R1/Development
 Resolution:                     |   Keywords:
 Blocked By:                     |   Blocking:
Has a Patch:  0                  |   Platform:  All
---------------------------------+----------------------------

Comment (by X512):

 It look like rpmalloc bug, not Haiku.
 I investigate rpmalloc souces a bit and found that if virtual memory
 allocation fail "_memory_heap_extract_new_span" in
 "_memory_allocate_from_heap_fallback" function returns NULL and null span
 is passed in _memory_span_set_new_active that do not support null span and
 crash by null pointer dereference.

-- 
Ticket URL: <https://dev.haiku-os.org/ticket/15258#comment:1>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: