[haiku-bugs] Re: [Haiku] #16898: WebKit rebased consistently crashes on Amazon.ca [WASM memory allocation error]

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Tue, 07 Sep 2021 21:17:33 -0000

#16898: WebKit rebased consistently crashes on Amazon.ca [WASM memory allocation
error]
---------------------------+-------------------------
  Reporter:  vidrep        |      Owner:  pulkomandy
      Type:  bug           |     Status:  new
  Priority:  normal        |  Milestone:  Unscheduled
 Component:  Kits/Web Kit  |    Version:  R1/beta2
Resolution:                |   Keywords:
Blocked By:                |   Blocking:  16957
  Platform:  x86-64        |
---------------------------+-------------------------
Comment (by waddlesplash):

 Indeed, WebKit is assuming it can allocate way more than the system
 actually has:
 
https://github.com/haiku/haikuwebkit/blob/haiku/Source/JavaScriptCore/wasm/WasmMemory.cpp#L190

 Now, where this is invoking mmap, I haven't yet traced. We have OS(HAIKU)
 in OSAllocatorPOSIX for reserveUncommitted that uses MAP_NORESERVE anyway.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/16898#comment:26>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: