Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UseAfterFreeError Attempted to use (or double-free) a freed libolm object #1890

Open
1 of 2 tasks
akvus opened this issue Jul 27, 2024 · 2 comments
Open
1 of 2 tasks
Labels
bug Something isn't working

Comments

@akvus
Copy link

akvus commented Jul 27, 2024

Checklist

  • I could not find a solution in the documentation, the existing issues or discussions.
  • I already asked for help in the chat

In which Project did the bug appear?

No response

If you selected "Other" as Project, please enter in which project the bug occurred.

No response

On which platform did the bug appear?

Android, iOS

SDK Version

flutter_olm 2.0.0

Describe the problem caused by this bug

We have recently udpated to flutter_olm 2.0.0. We are seeing in our monitoring tool the following reports coming in:

UseAfterFreeError Attempted to use (or double-free) a freed libolm object

native.dart in _NativeObject._inst at line 121 within olm
In App
native.dart in SAS.get_pubkey at line 598 within olm
In App
key_verification.dart in _KeyVerificationMethodSas.makeSas at line 1427 within matrix
In App
key_verification.dart in KeyVerification.sasNumbers at line 691 within matrix
In App
key_verification_service.dart in KeyVerificationService.getSasNumbers at line 109 within apo_app
In App
verify_with_numbers_dialog.dart in VerifyWithNumbersDialog.build at line 134 within apo_app
In App
consumer.dart in _ConsumerState.build at line 476 within flutter_riverpod
In App
Called from:
framework.dart in StatefulElement.build within flutter
System
consumer.dart in ConsumerStatefulElement.build at line 539 within flutter_riverpod
In App
Called from:
framework.dart in ComponentElement.performRebuild within flutter

This seems to happen after we log Key verification request accepted SAS.

Steps To Reproduce

No response

Screenshots or Logs

No response

Security related

No response

@akvus akvus added the bug Something isn't working label Jul 27, 2024
@krille-chan
Copy link
Contributor

I cannot reproduce this by starting a key verification on mobile. Don't see these logs there. Can you add steps to reproduce with a minimum code example?

@akvus
Copy link
Author

akvus commented Jul 29, 2024

The problem is we are not able to reproduce it yet, we only see the errors arriving at our monitoring system. Once we get it I will post an update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants