<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#c4">Comment # 4</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:clopez&#64;igalia.com" title="Carlos Alberto Lopez Perez &lt;clopez&#64;igalia.com&gt;"> <span class="fn">Carlos Alberto Lopez Perez</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=146440#c3">comment #3</a>)
<span class="quote">&gt; (In reply to <a href="show_bug.cgi?id=146440#c2">comment #2</a>)
&gt; &gt; [...]
&gt; &gt; Also, should disabling this optimization could make sense as a reasonable
&gt; &gt; 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
&gt; &gt; -fno-omit-frame-pointer and -fno-tree-dce), would it be ok to propose a
&gt; &gt; patch for the CMake files for WebKitGTK+? (Adding Martin to CC)
&gt; 
&gt; To be more precise, I was thinking perhaps of something like this:
&gt; 
&gt; diff --git a/Source/cmake/OptionsCommon.cmake
&gt; b/Source/cmake/OptionsCommon.cmake
&gt; index 6691526..355d475 100644
&gt; --- a/Source/cmake/OptionsCommon.cmake
&gt; +++ b/Source/cmake/OptionsCommon.cmake
&gt; &#64;&#64; -99,6 +99,12 &#64;&#64; endif ()
&gt;  
&gt;  string(TOLOWER ${CMAKE_HOST_SYSTEM_PROCESSOR}
&gt; LOWERCASE_CMAKE_HOST_SYSTEM_PROCESSOR)
&gt;  if (&quot;${CMAKE_CXX_COMPILER_ID}&quot; STREQUAL &quot;GNU&quot; AND
&gt; &quot;${LOWERCASE_CMAKE_HOST_SYSTEM_PROCESSOR}&quot; MATCHES &quot;(i[3-6]86|x86)&quot;)
&gt; +    # The -ftree-sra optimization (implicit with -O2) causes crashes when
&gt; +    # allocating large chunks of memory using bmalloc on Intel 32bit.
&gt; +    # 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>
&gt; +    set(CMAKE_C_FLAGS &quot;${CMAKE_C_FLAGS} -fno-tree-sra&quot;)
&gt; +    set(CMAKE_CXX_FLAGS &quot;${CMAKE_CXX_FLAGS} -fno-tree-sra&quot;)
&gt; +
&gt;      # To avoid out of memory when building with debug option in 32bit
&gt; system.
&gt;      # 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>
&gt;      set(CMAKE_SHARED_LINKER_FLAGS_DEBUG &quot;-Wl,--no-keep-memory
&gt; ${CMAKE_SHARED_LINKER_FLAGS_DEBUG}&quot;)</span >

What about setting this flag only for the bmalloc source files at Source/bmalloc/CMakeLists.txt . Would it be enough?</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>