[Webkit-unassigned] [Bug 203956] [GTK] WebKitGTK 2.26.x fails to build with ENABLE_WEBGL=OFF

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 17 09:25:59 PST 2019


https://bugs.webkit.org/show_bug.cgi?id=203956

--- Comment #4 from Michael Catanzaro <mcatanzaro at gnome.org> ---
(In reply to Haelwenn (lanodan) Monnier from comment #3)
> IIRC I have -DUSE_SYSTEM_MALLOC=ON because otherwise would be very prone to
> calling abort() (ouch! librairies shouldn't do that) when memory allocation
> would fail with `vm.overcommit_memory = 2` (ended up going back to
> `vm.overcommit_memory = 0`).

Hm, nobody has reported this before.

Memory allocation failure is fatal by necessity. Consider that WebKit depends on GLib, and g_malloc() crashes the application on allocation failure. (GLib's g_malloc() just wraps glibc's malloc with a check to see if allocation failed, and a crash if so.) So no library or application that uses GLib can avoid crash on allocation failure.

I suppose it could be more likely to occur with bmalloc if bmalloc allocations memory in larger chunks than glibc does. If the difference is significant enough to encourage you to disable bmalloc, that would certainly be worth a separate bug report.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191217/9f09af96/attachment.htm>


More information about the webkit-unassigned mailing list