Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-47

Intermittent SQLITE_MISUSE error during normal testing

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6.0
    • 2.6.0
    • LiteCore
    • Security Level: Public
    • None

    Description

      Unclear what circumstances cause this but it happened in this case during the TestBlobAccessInFilter in the .NET automated testing.  A seemingly innocuous call generated a SQLITE_MISUSE error several times in many runs.  Here is the stack trace

      LiteCore.dll!SQLite::Statement::check(const int aRet) Line 592 LiteCore.dll!SQLite::Statement::bindNoCopy(const int aIndex, const char * apValue, const int aSize) Line 145
      LiteCore.dll!litecore::SQLiteKeyStore::read(litecore::Record & rec, litecore::ContentOption content) Line 217
      LiteCore.dll!litecore::KeyStore::get(fleece::slice key, litecore::ContentOption option) Line 40
      LiteCore.dll!litecore::DocumentKeys::read() Line 39
      LiteCore.dll!fleece::impl::PersistentSharedKeys::refresh() Line 199
      LiteCore.dll!fleece::impl::SharedKeys::decodeUnknown(int key) Line 131
      LiteCore.dll!fleece::impl::SharedKeys::decode(int key) Line 93
      LiteCore.dll!fleece::impl::Dict::iterator::keyString() Line 428
      LiteCore.dll!fleece::impl::JSONEncoder::writeDict(const fleece::impl::Dict * dict) Line 118
      LiteCore.dll!fleece::impl::JSONEncoder::writeValue(const fleece::impl::Value * v) Line 175
      LiteCore.dll!FLEncoder_WriteValue(fleece::impl::FLEncoderImpl * e, const fleece::impl::Value * v) Line 573
      LiteCore.dll!fleece::Encoder::writeValue(fleece::Value v) Line 652
      LiteCore.dll!litecore::repl::Pusher::sendRevision(litecore::repl::RevToSend * request, std::function<void __cdecl(litecore::blip::MessageProgress const &)> onProgress) Line 288
      LiteCore.dll!litecore::repl::Pusher::sendRevision(fleece::Retained<litecore::repl::RevToSend> rev) Line 389
      LiteCore.dll!litecore::repl::Pusher::maybeSendMoreRevs() Line 373
      LiteCore.dll!litecore::repl::Pusher::sendChanges::__l2::<lambda>(litecore::blip::MessageProgress progress) Line 358
      LiteCore.dll!litecore::repl::Worker::sendRequest::__l5::<lambda>(litecore::blip::MessageProgress progress) Line 125
      LiteCore.dll!litecore::actor::ThreadedMailbox::safelyCall(const std::function<void __cdecl(void)> & f) Line 176
      LiteCore.dll!litecore::actor::ThreadedMailbox::enqueue::__l2::<lambda>() Line 140
      LiteCore.dll!litecore::actor::ThreadedMailbox::performNextMessage() Line 207
      LiteCore.dll!litecore::actor::Scheduler::task(unsigned int taskID) Line 103
      LiteCore.dll!litecore::actor::Scheduler::start::__l14::<lambda>() Line 70

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          Build couchbase-lite-ios-2.6.0-118 contains couchbase-lite-core commit 5f3c488 with commit message:
          Alternative fix for CBL-47

          build-team Couchbase Build Team added a comment - Build couchbase-lite-ios-2.6.0-118 contains couchbase-lite-core commit 5f3c488 with commit message: Alternative fix for CBL-47

          Build couchbase-lite-android-2.6.0-120 contains couchbase-lite-core commit 5f3c488 with commit message:
          Alternative fix for CBL-47

          build-team Couchbase Build Team added a comment - Build couchbase-lite-android-2.6.0-120 contains couchbase-lite-core commit 5f3c488 with commit message: Alternative fix for CBL-47

          Build couchbase-lite-android-2.6.0-120 contains couchbase-lite-core commit 92b24bd with commit message:
          Undo part of the cbl_c merge

          build-team Couchbase Build Team added a comment - Build couchbase-lite-android-2.6.0-120 contains couchbase-lite-core commit 92b24bd with commit message: Undo part of the cbl_c merge

          Build couchbase-lite-log-2.7.0-79 contains couchbase-lite-core commit 5f3c488 with commit message:
          Alternative fix for CBL-47

          build-team Couchbase Build Team added a comment - Build couchbase-lite-log-2.7.0-79 contains couchbase-lite-core commit 5f3c488 with commit message: Alternative fix for CBL-47

          Build couchbase-lite-cblite-2.7.0-5 contains couchbase-lite-core commit 5f3c488 with commit message:
          Alternative fix for CBL-47

          build-team Couchbase Build Team added a comment - Build couchbase-lite-cblite-2.7.0-5 contains couchbase-lite-core commit 5f3c488 with commit message: Alternative fix for CBL-47

          People

            jimb Jim Borden
            jimb Jim Borden
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty