<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><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> changed
<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>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>mrobinson@webkit.org
</td>
</tr></table>
<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#c2">Comment # 2</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>I found the optimization that was messing up with bmalloc here: -ftree-sra
According to the documentation [1]
"""
Perform scalar replacement of aggregates. This pass replaces
structure references with scalars to prevent committing
structures to memory too early.
This flag is enabled by default at -O and higher.
"""
We are normally building with -g1 (for the debug package only) and with -O2 for optimizations, so simply passing -fno-free-sra while building on top would avoid the crash from happen.
Geoffrey, any idea why this could be the case?
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)
[1] <a href="https://gcc.gnu.org/onlinedocs/gcc-4.9.0/gcc/Optimize-Options.html">https://gcc.gnu.org/onlinedocs/gcc-4.9.0/gcc/Optimize-Options.html</a></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>