⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 236962 in webkit


Ignore:
Timestamp:
Oct 9, 2018, 8:31:31 AM (8 years ago)
Author:
mark.lam@apple.com
Message:

Revert temporary asserts for debugging a mysterious ASAN bot crash.
https://bugs.webkit.org/show_bug.cgi?id=190396

Reviewed by Yusuke Suzuki.

  • wtf/StackBounds.cpp:

(WTF::StackBounds::newThreadStackBounds):

  • wtf/StackBounds.h:

(WTF::StackBounds::checkConsistency const):

Location:
trunk/Source/WTF
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r236942 r236962  
     12018-10-09  Mark Lam  <mark.lam@apple.com>
     2
     3        Revert temporary asserts for debugging a mysterious ASAN bot crash.
     4        https://bugs.webkit.org/show_bug.cgi?id=190396
     5
     6        Reviewed by Yusuke Suzuki.
     7
     8        * wtf/StackBounds.cpp:
     9        (WTF::StackBounds::newThreadStackBounds):
     10        * wtf/StackBounds.h:
     11        (WTF::StackBounds::checkConsistency const):
     12
    1132018-10-08  Aditya Keerthi  <akeerthi@apple.com>
    214
  • trunk/Source/WTF/wtf/StackBounds.cpp

    r236909 r236962  
    145145    if (stackDirection() == StackDirection::Upward)
    146146        std::swap(origin, bound);
    147 
    148     // The following set of assertions are only needed for debugging a
    149     // mysterious crash on an ASAN bot that is not reproducible otherwise.
    150     // Will remove after the needed data has been collected.
    151 #if OS(LINUX)
    152     else {
    153         ASSERT(stackDirection() == StackDirection::Downward);
    154         void* currentPosition = &currentPosition;
    155         ASSERT_WITH_MESSAGE_UNUSED(currentPosition, (currentPosition < origin && currentPosition > bound), "newThreadStackBounds: currentPosition %p origin %p bound %p stackSize %zu", currentPosition, origin, bound, stackSize);
    156     }
    157 #endif
    158     // End of ASAN bot debugging assertions.
    159147
    160148    return StackBounds { origin, bound };
  • trunk/Source/WTF/wtf/StackBounds.h

    r236909 r236962  
    148148#if !ASSERT_DISABLED
    149149        void* currentPosition = &currentPosition;
    150 
    151         // The following set of assertions are only needed for debugging a
    152         // mysterious crash on an ASAN bot that is not reproducible otherwise.
    153         // Will remove after the needed data has been collected.
    154 #if OS(LINUX)
    155         if (isGrowingDownward())
    156             ASSERT_WITH_MESSAGE((currentPosition < m_origin && currentPosition > m_bound), "checkConsistency: currentPosition %p m_origin %p m_bound %p stackSize %zu", currentPosition, m_origin, m_bound, (reinterpret_cast<uint8_t*>(m_origin) - reinterpret_cast<uint8_t*>(m_bound)));
    157         else
    158             ASSERT_WITH_MESSAGE((currentPosition > m_origin && currentPosition < m_bound), "checkConsistency: currentPosition %p m_origin %p m_bound %p stackSize %zu", currentPosition, m_origin, m_bound, (reinterpret_cast<uint8_t*>(m_bound) - reinterpret_cast<uint8_t*>(m_origin)));
    159 #endif // OS(LINUX)
    160         // End of ASAN bot debugging assertions.
    161 
    162150        ASSERT(m_origin != m_bound);
    163151        ASSERT(isGrowingDownward()
Note: See TracChangeset for help on using the changeset viewer.