Uploaded image for project: 'Realm Core'
  1. Realm Core
  2. RCORE-2202

ASAN failure in "Client reset during schema migration" test

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Sync
    • None

      An ASAN use-after-free error was thrown for a stack variable during a run of the "Client reset during schema migration" test, where an UPLOAD message was being processed while the test was being torn down.
      https://spruce.mongodb.com/task/realm_core_stable_macos_asan_baas_integration_tests_patch_e019c79e4eae148e58fe45d63f6020fd6ba346d2_6697c13f89647b000709de06_24_07_17_13_04_01/logs?execution=0&sortBy=STATUS&sortDir=ASC

      It appears the ASAN failure was likely due to one of the captures is being used in the beginning of the SyncClientEventHook function, but this hasn't been verified:
      https://github.com/realm/realm-core/blob/master/test/object-store/sync/flx_schema_migration.cpp#L772-L773

      As far as I know, this has only been seen once.

            Assignee:
            daniel.tabacaru@mongodb.com Daniel Tabacaru
            Reporter:
            michael.wilkersonbarker@mongodb.com Michael Wilkerson-Barker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: