Double delete in CAPITimer causing Kotlin SDK to crash

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintableJSON

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

      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 Wilkerson-Barker (Inactive)
            Reporter:
            Nabil Hachicha
            Archiver:
            Marc Greenfield

              Created:
              Updated:
              Archived: