Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • chatty chatty
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 247
    • Issues 247
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 17
    • Merge requests 17
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Librem5
  • chattychatty
  • Issues
  • #465

Closed
Open
Created Feb 03, 2021 by Chris Talbot@kop316Contributor

SEGV on Matrix encryption keys

Steps to recreate this SEGV:

  1. Sign into Matrix with Chatty
  2. Sign into Element (I used Linux Desktop, but I don't think this matters) AFTER signing into Chatty
  3. Quit Element completely
  4. Open Element again
  5. Get greeted with this error:
(sm.puri.Chatty:10815): chatty-matrix-enc-WARNING **: 11:22:27.725: Error removing key: BAD_MESSAGE_KEY_ID
AddressSanitizer:DEADLYSIGNAL
=================================================================
==10815==ERROR: AddressSanitizer: SEGV on unknown address 0x306b75626e5739 (pc 0x007fb6744834 bp 0x007ffe25add0 sp 0x007ffe25add0 T0)
==10815==The signal is caused by a READ memory access.
    #0 0x7fb6744834 in olm::Ratchet::decrypt_max_plaintext_length(unsigned char const*, unsigned long) (/lib/aarch64-linux-gnu/libolm.so.3+0xb834)
    #1 0x7fb6745840 in olm::Session::decrypt_max_plaintext_length(olm::MessageType, unsigned char const*, unsigned long) (/lib/aarch64-linux-gnu/libolm.so.3+0xc840)
    #2 0x556ec83368 in matrix_enc_handle_room_encrypted ../src/matrix/matrix-enc.c:960
    #3 0x556ec1f31c in matrix_parse_device_data ../src/matrix/chatty-ma-account.c:125
    #4 0x556ec20dcc in handle_red_pill ../src/matrix/chatty-ma-account.c:387
    #5 0x556ec21344 in matrix_account_sync_cb ../src/matrix/chatty-ma-account.c:443
    #6 0x556ec72610 in matrix_take_red_pill_cb ../src/matrix/matrix-api.c:734
    #7 0x7fb7c3fe78  (/lib/aarch64-linux-gnu/libgio-2.0.so.0+0xbfe78)
    #8 0x7fb7c40d70  (/lib/aarch64-linux-gnu/libgio-2.0.so.0+0xc0d70)
    #9 0x556ec72c50 in api_load_from_stream_cb ../src/matrix/matrix-api.c:781
    #10 0x7fb7c3fe78  (/lib/aarch64-linux-gnu/libgio-2.0.so.0+0xbfe78)
    #11 0x7fb7c3fec4  (/lib/aarch64-linux-gnu/libgio-2.0.so.0+0xbfec4)
    #12 0x7fb7a22970 in g_main_context_dispatch (/lib/aarch64-linux-gnu/libglib-2.0.so.0+0x53970)
    #13 0x7fb7a22d18  (/lib/aarch64-linux-gnu/libglib-2.0.so.0+0x53d18)
    #14 0x7fb7a22de0 in g_main_context_iteration (/lib/aarch64-linux-gnu/libglib-2.0.so.0+0x53de0)
    #15 0x7fb7c72974 in g_application_run (/lib/aarch64-linux-gnu/libgio-2.0.so.0+0xf2974)
    #16 0x556ebcc510 in main ../src/main.c:31
    #17 0x7fb6269214 in __libc_start_main ../csu/libc-start.c:308
    #18 0x556ebcc190  (/home/mobian/Test-MMS/matrix/chatty/build/src/chatty+0x6c190)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/aarch64-linux-gnu/libolm.so.3+0xb834) in olm::Ratchet::decrypt_max_plaintext_length(unsigned char const*, unsigned long)
==10815==ABORTING
``1
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking