Skip to content
~/ dnim.dev
▸ Writing ▸ About
All writing

~/writing/tags

#dovecot

1 post

Systems debugging
May 28, 2026 6 min

A Dovecot optimization the compiler had been deleting all along

An IMAP THREAD command was panicking inside Dovecot's array code. The crash was real, but the comment above it described an optimization that hadn't run in any -O2 build ever shipped. ATTR_PURE turned it into dead code, and the same annotation decided which line showed up in the backtrace.

#dovecot#c#imap#debugging

dnim.dev · built and broken by JR

Writing GitHub RSS Email
esc

    Keyboard shortcuts

    • Open the command palette ⌘K / Ctrl K
    • Show this help ?
    • Go home g then h
    • Go to writing g then w
    • Close any dialog Esc

    Press ? anytime to see this.