You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The internal conversationsByTopic property can be accessed and mutated from various threads simultaneously due to concurrency. As access to this storage is not gated by a lock or other synchronization, this can lead to malformed memory and cause unavoidable crashes when the framework accesses that property.
See screenshot for an example of where Xcode caught the error in the debugger:
Expected behavior
The XMTP framework should not induce crashes.
Steps to reproduce the bug
Client code that invokes Conversations methods which internally mutate the conversationsByTopic storage will eventually trigger the crash. This was first observed due to app code that observed streamAllMessages() and then also invoked the list() method.
The text was updated successfully, but these errors were encountered:
Describe the bug
The internal
conversationsByTopic
property can be accessed and mutated from various threads simultaneously due to concurrency. As access to this storage is not gated by a lock or other synchronization, this can lead to malformed memory and cause unavoidable crashes when the framework accesses that property.See screenshot for an example of where Xcode caught the error in the debugger:
Expected behavior
The XMTP framework should not induce crashes.
Steps to reproduce the bug
Client code that invokes Conversations methods which internally mutate the
conversationsByTopic
storage will eventually trigger the crash. This was first observed due to app code that observedstreamAllMessages()
and then also invoked thelist()
method.The text was updated successfully, but these errors were encountered: