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

Double delete in CAPITimer causing Kotlin SDK to crash

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      As part of implementing the new platform networking for the Kotlin SDK, I encountered a crash in JNI which might be related to a double delete of the realm_sync_socket_callback_t

      1- When the timer execute we release (delete via realm_release) the heap allocated realm_sync_socket_callback_t containing the shared pointer to FunctionHandler
      2- In the CAPITimer destructor we also release the heap allocated m_handler (i.e realm_sync_socket_callback_t*) that contains the FunctionHandler as a shared pointer

            Assignee:
            michael.wilkersonbarker@mongodb.com Michael Wilkerson-Barker
            Reporter:
            nabil.hachicha@mongodb.com Nabil Hachicha
            AD Core
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: