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

ERROR: AddressSanitizer: stack-use-after-return on address

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0
    • 3.0
    • iOS
    • Security Level: Public
    • None
    • 3

    Description

      xcodebuild test -project CouchbaseLite.xcodeproj -scheme "CBL_ObjC" -configuration Debug -sdk macosx -only-testing:CBL_ObjC_Tests/ArrayTest/testAddMethodsIndividually
      

      =================================================================
      ==71695==ERROR: AddressSanitizer: stack-use-after-return on address 0x00010fca4458 at pc 0x00010b785a7a bp 0x7ffee44ab440 sp 0x7ffee44aac00
      READ of size 62 at 0x00010fca4458 thread T0
          #0 0x10b785a79 in wrap_memmove+0x169 (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x1da79)
          #1 0x7fff6ce32c1f in std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__init(char const*, unsigned long)+0x61 (libc++.1.dylib:x86_64+0x37c1f)
          #2 0x11828bab6 in std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::basic_string<fleece::slice, void>(fleece::slice const&) string:1997
          #3 0x1182674dc in std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::basic_string<fleece::slice, void>(fleece::slice const&) string:1995
          #4 0x116bf7819 in ensureConfigDirExists(C4DatabaseConfig2 const*, C4Error*) c4Database.cc:69
          #5 0x116bf6fb6 in c4db_openNamed c4Database.cc:116
          #6 0x11678697f in -[CBLDatabase open:] CBLDatabase.mm:777
          #7 0x11676f545 in -[CBLDatabase initWithName:config:error:] CBLDatabase.mm:114
          #8 0x115d149b7 in -[CBLTestCase openDBNamed:error:] CBLTestCase.m:112
          #9 0x115d1507d in -[CBLTestCase openDB] CBLTestCase.m:118
          #10 0x115d122d9 in -[CBLTestCase setUp] CBLTestCase.m:55
      

      Full logs attached

      Attachments

        Issue Links

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

          Activity

            Jayahari.Vavachan Jay Vavachan added a comment -

            Fix is committed, since the Lithium build is breaking.
            Current Fix: https://github.com/couchbase/couchbase-lite-ios/commit/2aca607d56a17944d80b360c3db5e64d9bc36685

            Needs to clean the code, by doing the parent directory setting from inside the config creating function.

            Jayahari.Vavachan Jay Vavachan added a comment - Fix is committed, since the Lithium build is breaking. Current Fix: https://github.com/couchbase/couchbase-lite-ios/commit/2aca607d56a17944d80b360c3db5e64d9bc36685 Needs to clean the code, by doing the parent directory setting from inside the config creating function.
            Jayahari.Vavachan Jay Vavachan added a comment -

            Already fixed the issue, hence closing. 

            Jayahari.Vavachan Jay Vavachan added a comment - Already fixed the issue, hence closing. 

            People

              Jayahari.Vavachan Jay Vavachan
              Jayahari.Vavachan Jay Vavachan
              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