Ticket #4053: tmpfixgcsegfault2.patch

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

     
     1diff --git a/js/src/configure b/js/src/configure
     2index 933e53d..afd7147 100755
     3--- a/js/src/configure
     4+++ b/js/src/configure
     5@@ -8776,11 +8776,11 @@ if test "$GNU_CC"; then
     6     if test -z "$DEVELOPER_OPTIONS"; then
     7         CFLAGS="$CFLAGS -ffunction-sections -fdata-sections"
     8         CXXFLAGS="$CXXFLAGS -ffunction-sections -fdata-sections"
     9     fi
     10     CFLAGS="$CFLAGS -fno-math-errno"
     11-    CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-math-errno"
     12+    CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-math-errno -fno-delete-null-pointer-checks"
     13 fi
     14 
     15 
     16 # Check whether --enable-icf or --disable-icf was given.
     17 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