bug: fatal allocator error: sized deallocation mismatch on hardened_malloc #2419

Closed
opened 2026-10-27 17:52:08 +00:00 by annaaurora · 1 comment

What is the bug?

I'm getting

fatal allocator error: sized deallocation mismatch (small)

from continuwuity when using GrapheneOS's hardened memory allocator (hardened_malloc). The program crashes following the message. Note that this only is occuring now, not when I set up the matrix server.

Steps to reproduce

  1. Set up continuwuity
  2. Accumulate some data??
  3. allocation error!

Server name and version

foxinsi.de using continuwuity v26.9.1

Additional context

With the default memory allocator on NixOS, the program does not run into this error. The error is a known issue that occurs when programs allocate memory wrong with hardened_malloc.

### What is the bug? I'm getting ```console fatal allocator error: sized deallocation mismatch (small) ``` from continuwuity when using GrapheneOS's hardened memory allocator (hardened_malloc). The program crashes following the message. Note that this only is occuring now, not when I set up the matrix server. ### Steps to reproduce 1. Set up continuwuity 2. Accumulate some data?? 3. allocation error! ### Server name and version foxinsi.de using continuwuity v26.9.1 ### Additional context With the default memory allocator on NixOS, the program does not run into this error. The error is a known issue that occurs when programs allocate memory wrong with hardened_malloc.
Owner

hardened_malloc has been removed now (and replaced with mimalloc + a fixed up jemalloc binding) so I'm going to close this issue as resolved

hardened_malloc has been removed now (and replaced with mimalloc + a fixed up jemalloc binding) so I'm going to close this issue as resolved
nex closed this issue 2026-11-23 15:40:35 +00:00
Sign in to join this conversation.
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
continuwuation/continuwuity#2419
No description provided.