Ticket #4053: tmpfixgcsegfault3.patch

File tmpfixgcsegfault3.patch, 2.5 KB (added by echotangoecho, 8 years ago)
  • libraries/source/spidermonkey/FixGCSegfault.diff

     
     1diff --git a/js/src/configure b/js/src/configure
     2--- a/js/src/configure
     3+++ b/js/src/configure
     4@@ -8776,11 +8776,11 @@ if test "$GNU_CC"; then
     5     if test -z "$DEVELOPER_OPTIONS"; then
     6         CFLAGS="$CFLAGS -ffunction-sections -fdata-sections"
     7         CXXFLAGS="$CXXFLAGS -ffunction-sections -fdata-sections"
     8     fi
     9     CFLAGS="$CFLAGS -fno-math-errno"
     10-    CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-math-errno"
     11+    CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-math-errno -fno-delete-null-pointer-checks"
     12 fi
     13 
     14 
     15 # Check whether --enable-icf or --disable-icf was given.
     16 if test "${enable_icf+set}" = set; then
  • libraries/source/spidermonkey/patch.sh

    patch -p1 < ../FixZLibMozBuild.diff  
    1414# This patch is a squashed version of several patches that were adapted
    1515# to fix failing hunks.
    1616#
    1717# Applied in the following order, they are:
    1818# * https://bugzilla.mozilla.org/show_bug.cgi?id=1223767
    19 #    Assertion failure: i < size_, at js/src/vm/TraceLoggingTypes.h:210 
     19#    Assertion failure: i < size_, at js/src/vm/TraceLoggingTypes.h:210
    2020#    Also fix stop-information to make reduce.py work correctly.
    2121# * https://bugzilla.mozilla.org/show_bug.cgi?id=1227914
    2222#    Limit the memory tracelogger can take.
    23 #    This causes tracelogger to flush data to the disk regularly and prevents out of 
     23#    This causes tracelogger to flush data to the disk regularly and prevents out of
    2424#    memory issues if a lot of data gets logged.
    2525# * https://bugzilla.mozilla.org/show_bug.cgi?id=1155618
    2626#    Fix tracelogger destructor that touches possibly uninitialised hash table.
    2727# * https://bugzilla.mozilla.org/show_bug.cgi?id=1223636
    2828#    Don't treat extraTextId as containing only extra ids.
    patch -p1 < ../FixZLibMozBuild.diff  
    4646# * https://bugzilla.mozilla.org/show_bug.cgi?id=1259403
    4747#    Only increase capacity by multiples of 2.
    4848#    Always make sure there are 3 free slots for events.
    4949# ===
    5050patch -p1  < ../FixTracelogger.diff
     51
     52# Temporary fix for segfault occurring in the GC when built with GCC 6
     53patch -p1 < ../FixGCSegfault.diff