[haiku-bugs] Re: [Haiku] #16489: App_server crash when browsing URL with WebPositive

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Tue, 08 Sep 2020 11:45:26 -0000

#16489: App_server crash when browsing URL with WebPositive
---------------------------------+-------------------------
  Reporter:  vidrep              |      Owner:  PulkoMandy
      Type:  bug                 |     Status:  assigned
  Priority:  normal              |  Milestone:  Unscheduled
 Component:  Servers/app_server  |    Version:  R1/beta2
Resolution:                      |   Keywords:
Blocked By:                      |   Blocking:
  Platform:  All                 |
---------------------------------+-------------------------
Comment (by pulkomandy):

 The whole story is a bit more complex. But basically, the thing is, the
 limit is gone, but the memory allocator isn't aware of it yet. So, with
 malloc() you can only get about 2GB. But you can use mmap or create_area
 and then do your own things there, and for that, the limit is removed.

 We have at some point moved to rpmalloc which removes that limitation, but
 it turns out, it needs quite a lot of memory space (being designed for
 64bit systems where this isn't a problem) and on 32bit it would run out of
 memory even earlier. So we have reverted that for now. We will be testing
 other allocators at some point (possibly the musl one) for the default
 setting.

 But for debugging, we use yet another (intentionally simpler) allocator.
 We can maybe tweak its initial size reservation on 64bit?
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/16489#comment:12>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: