Bug 461810 - Crash with malloc(): mismatching next->prev_size (unsorted)
Summary: Crash with malloc(): mismatching next->prev_size (unsorted)
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-14 09:48 UTC by Thomas Fischer
Modified: 2022-11-14 09:50 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Fischer 2022-11-14 09:48:27 UTC
Since an update on ArchLinux in late October, KMail crashes quite often when moving mails between folders, e.g. when sorting mails form Inbox to some other folder. According to the package manager, both kmail and Akonadi have the version number 22.08.3-1.

To collect information, I stopped Akonadi (akonadictl stop) and restarted it in a console to see any relevant debug output during a crash. Same with kmail. No special settings for extra debug output e.g. via kdebugsettings were made.

Akonadi made only some initial output but nothing later or during a crash. kmail, however, gave the following output. I think but are not sure that the output up to the last "DispatchModeAttribute" was before the crash.

Error loading text-to-speech plug-in "speechd"
org.kde.pim.mailtransportakonadi: Item doesn't have DispatchModeAttribute.
 d->folderTreeWidget->selectedCollection() Collection ID: 199    remote ID: "AAMkADdjYzdhYjJkLTBjNGItNDRhZS05NjZjLWIxNzY5OTI2MTllNwAuAAAAAAA5OWMvCOhAR7niCe/yxRIKAQCzEcl00IXvRLelEuHv21iGAAAAxUoQAAA=" 
    name: "Personal" 
    url: QUrl("akonadi:?collection=199") 
    parent: 38 "AAMkADdjYzdhYjJkLTBjNGItNDRhZS05NjZjLWIxNzY5OTI2MTllNwAuAAAAAAA5OWMvCOhAR7niCe/yxRIKAQCzEcl00IXvRLelEuHv21iGAAAAxTaMAAA=" 
    resource: "akonadi_ews_resource_0" 
    rights: QFlags<Akonadi::Collection::Right>(AllRights) 
    contents mime type: ("message/rfc822", "inode/directory") 
    isVirtual: false 
     CachePolicy: 
    inherit: true 
    interval: -1 
    timeout: -1 
    sync on demand: false 
    local parts: () 
     CollectionStatistics:
       count: 3620 
       unread count: 1 
       size: 561984064
org.kde.pim.mailtransportakonadi: Item doesn't have DispatchModeAttribute.
malloc(): mismatching next->prev_size (unsorted)
*** KMail got signal 6 (Exiting)
*** Dead letters dumped.
malloc(): unaligned fastbin chunk detected

Let me know if I should try to re-create the crash with some additional debug settings enabled.
Comment 1 Thomas Fischer 2022-11-14 09:50:57 UTC
Just restarted kmail. It crashed again when moving a mail (context menu to move mail to another folder). This time, the output was different:

malloc(): unaligned tcache chunk detected
*** KMail got signal 6 (Exiting)
*** Dead letters dumped.
malloc(): unaligned tcache chunk detected
malloc(): unaligned tcache chunk detected
Unable to start Dr. Konqi
Re-raising signal for core dump handling.