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

Changeset 245232 in webkit


Ignore:
Timestamp:
May 12, 2019, 11:51:25 PM (7 years ago)
Author:
bshafiei@apple.com
Message:

Cherry-pick r245197. rdar://problem/50628434

Downgrade RELEASE_ASSERT TO RELEASE_LOG_FAULT for SQLite Class A files
https://bugs.webkit.org/show_bug.cgi?id=197760

Reviewed by Jer Noble.

We have all the data we need, and this crash is happening more than
expected.

  • platform/sql/SQLiteDatabase.cpp: (WebCore::SQLiteDatabase::open):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245197 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-608.1.24-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-608.1.24-branch/Source/WebCore/ChangeLog

    r245230 r245232  
     12019-05-12  Babak Shafiei  <bshafiei@apple.com>
     2
     3        Cherry-pick r245197. rdar://problem/50628434
     4
     5    Downgrade RELEASE_ASSERT TO RELEASE_LOG_FAULT for SQLite Class A files
     6    https://bugs.webkit.org/show_bug.cgi?id=197760
     7   
     8    Reviewed by Jer Noble.
     9   
     10    We have all the data we need, and this crash is happening more than
     11    expected.
     12   
     13    * platform/sql/SQLiteDatabase.cpp:
     14    (WebCore::SQLiteDatabase::open):
     15   
     16   
     17    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245197 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     18
     19    2019-05-09  Geoffrey Garen  <ggaren@apple.com>
     20
     21            Downgrade RELEASE_ASSERT TO RELEASE_LOG_FAULT for SQLite Class A files
     22            https://bugs.webkit.org/show_bug.cgi?id=197760
     23
     24            Reviewed by Jer Noble.
     25
     26            We have all the data we need, and this crash is happening more than
     27            expected.
     28
     29            * platform/sql/SQLiteDatabase.cpp:
     30            (WebCore::SQLiteDatabase::open):
     31
    1322019-05-12  Babak Shafiei  <bshafiei@apple.com>
    233
  • branches/safari-608.1.24-branch/Source/WebCore/platform/sql/SQLiteDatabase.cpp

    r244921 r245232  
    151151
    152152    String shmFileName = makeString(filename, "-shm"_s);
    153     if (FileSystem::fileExists(shmFileName))
    154         RELEASE_ASSERT(FileSystem::isSafeToUseMemoryMapForPath(shmFileName));
     153    if (FileSystem::fileExists(shmFileName)) {
     154        if (!FileSystem::isSafeToUseMemoryMapForPath(shmFileName))
     155            RELEASE_LOG_FAULT(SQLDatabase, "Opened an SQLite database with a Class A -shm file. This may trigger a crash when the user locks the device. (%s)", shmFileName.latin1().data());
     156            FileSystem::makeSafeToUseMemoryMapForPath(shmFileName);
     157    }
    155158
    156159    return isOpen();
Note: See TracChangeset for help on using the changeset viewer.