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

Changeset 245197 in webkit


Ignore:
Timestamp:
May 10, 2019, 2:36:45 PM (7 years ago)
Author:
ggaren@apple.com
Message:

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):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r245191 r245197  
     12019-05-09  Geoffrey Garen  <ggaren@apple.com>
     2
     3        Downgrade RELEASE_ASSERT TO RELEASE_LOG_FAULT for SQLite Class A files
     4        https://bugs.webkit.org/show_bug.cgi?id=197760
     5
     6        Reviewed by Jer Noble.
     7
     8        We have all the data we need, and this crash is happening more than
     9        expected.
     10
     11        * platform/sql/SQLiteDatabase.cpp:
     12        (WebCore::SQLiteDatabase::open):
     13
    1142019-05-10  Zalan Bujtas  <zalan@apple.com>
    215
  • trunk/Source/WebCore/platform/sql/SQLiteDatabase.cpp

    r244921 r245197  
    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.