<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Crash on xLarge memory allocation using bmalloc on 32bit systems"
href="https://bugs.webkit.org/show_bug.cgi?id=146440#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Crash on xLarge memory allocation using bmalloc on 32bit systems"
href="https://bugs.webkit.org/show_bug.cgi?id=146440">bug 146440</a>
from <span class="vcard"><a class="email" href="mailto:mario@webkit.org" title="Mario Sanchez Prada <mario@webkit.org>"> <span class="fn">Mario Sanchez Prada</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=146440#c2">comment #2</a>)
<span class="quote">> [...]
> Also, should disabling this optimization could make sense as a reasonable
> workaround for 2.8.3 (similar to what it's done in <a class="bz_bug_link
bz_status_NEW "
title="NEW - [EFL][GTK][Windows] Fix the regression caused by the jsCStack branch merge"
href="show_bug.cgi?id=127777">bug 127777</a> with
> -fno-omit-frame-pointer and -fno-tree-dce), would it be ok to propose a
> patch for the CMake files for WebKitGTK+? (Adding Martin to CC)</span >
To be more precise, I was thinking perhaps of something like this:
diff --git a/Source/cmake/OptionsCommon.cmake b/Source/cmake/OptionsCommon.cmake
index 6691526..355d475 100644
--- a/Source/cmake/OptionsCommon.cmake
+++ b/Source/cmake/OptionsCommon.cmake
@@ -99,6 +99,12 @@ endif ()
string(TOLOWER ${CMAKE_HOST_SYSTEM_PROCESSOR} LOWERCASE_CMAKE_HOST_SYSTEM_PROCESSOR)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" AND "${LOWERCASE_CMAKE_HOST_SYSTEM_PROCESSOR}" MATCHES "(i[3-6]86|x86)")
+ # The -ftree-sra optimization (implicit with -O2) causes crashes when
+ # allocating large chunks of memory using bmalloc on Intel 32bit.
+ # See <a class="bz_bug_link
bz_status_NEW "
title="NEW - Crash on xLarge memory allocation using bmalloc on 32bit systems"
href="show_bug.cgi?id=146440">https://bugs.webkit.org/show_bug.cgi?id=146440</a>
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-tree-sra")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-tree-sra")
+
# To avoid out of memory when building with debug option in 32bit system.
# See <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [CMAKE] Fix build break because of memory exhausted."
href="show_bug.cgi?id=77327">https://bugs.webkit.org/show_bug.cgi?id=77327</a>
set(CMAKE_SHARED_LINKER_FLAGS_DEBUG "-Wl,--no-keep-memory ${CMAKE_SHARED_LINKER_FLAGS_DEBUG}")</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>