https://bugs.kde.org/show_bug.cgi?id=391727

--- Comment #3 from Pali Rohár <pali.ro...@gmail.com> ---
Created attachment 111632
  --> https://bugs.kde.org/attachment.cgi?id=111632&action=edit
Output from massif

In attachment is output from massif. I killed trojita when it consumed more
then 1GB of memory. Output on stdout was:

$ valgrind --tool=massif trojita
==14521== Massif, a heap profiler
==14521== Copyright (C) 2003-2015, and GNU GPL'd, by Nicholas Nethercote
==14521== Using Valgrind-3.12.0.SVN and LibVEX; rerun with -h for copyright
info
==14521== Command: trojita
==14521== 
^C==14521== 
==14521== Process terminating with default action of signal 2 (SIGINT)
==14521==    at 0x995A96B: __dynamic_cast (in
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22)
==14521==    by 0x2F00B6: void
Imap::Mailbox::ThreadingMsgListModel::threadForeach<void>(unsigned int const&,
std::function<void (Imap::Mailbox::TreeItemMessage const&)>) const
(ThreadingMsgListModel.cpp:1246)
==14521==    by 0x2E4FCA:
Imap::Mailbox::ThreadingMsgListModel::threadAggregatedFlags(unsigned int) const
(ThreadingMsgListModel.cpp:1271)
==14521==    by 0x2EE78B:
Imap::Mailbox::ThreadingMsgListModel::data(QModelIndex const&, int) const
(ThreadingMsgListModel.cpp:307)
==14521==    by 0x9640BA8: QSortFilterProxyModel::data(QModelIndex const&, int)
const (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
==14521==    by 0x2D7D38: Imap::Mailbox::PrettyMsgListModel::data(QModelIndex
const&, int) const (PrettyMsgListModel.cpp:175)
==14521==    by 0x1DB86E: Gui::MsgItemDelegate::itemColor(QModelIndex const&)
const (qabstractitemmodel.h:426)
==14521==    by 0x1DBB5C: Gui::MsgItemDelegate::paint(QPainter*,
QStyleOptionViewItem const&, QModelIndex const&) const (MsgItemDelegate.cpp:89)
==14521==    by 0x8C46B0F: QTreeView::drawRow(QPainter*, QStyleOptionViewItem
const&, QModelIndex const&) const (in
/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.7.1)
==14521==    by 0x8C4C596: QTreeView::drawTree(QPainter*, QRegion const&) const
(in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.7.1)
==14521==    by 0x8C510B5: QTreeView::paintEvent(QPaintEvent*) (in
/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.7.1)
==14521==    by 0x8A03277: QWidget::event(QEvent*) (in
/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.7.1)
==14521== 
Zabitý

Memory leak probably occured in snapshot=46 which contains trace:

n2: 1103927816 (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
 n2: 1074037664 0x950CC6F: QListData::realloc_grow(int) (in
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
  n2: 1074029280 0x950CD0D: QListData::append(int) (in
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
   n1: 1073741824 0x20887E: QList<QString>::operator+=(QList<QString> const&)
(qlist.h:942)
    n1: 1073741824 0x2F0102: void
Imap::Mailbox::ThreadingMsgListModel::threadForeach<void>(unsigned int const&,
std::function<void (Imap::Mailbox::TreeItemMessage const&)>) const
(functional:2127)
     n1: 1073741824 0x2E4FC9:
Imap::Mailbox::ThreadingMsgListModel::threadAggregatedFlags(unsigned int) const
(ThreadingMsgListModel.cpp:1271)
      n1: 1073741824 0x2EE78A:
Imap::Mailbox::ThreadingMsgListModel::data(QModelIndex const&, int) const
(ThreadingMsgListModel.cpp:307)
       n1: 1073741824 0x9640BA7: QSortFilterProxyModel::data(QModelIndex
const&, int) const (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.7.1)
        n1: 1073741824 0x2D7D37:
Imap::Mailbox::PrettyMsgListModel::data(QModelIndex const&, int) const
(PrettyMsgListModel.cpp:175)
         n1: 1073741824 0x1DB86D: Gui::MsgItemDelegate::itemColor(QModelIndex
const&) const (qabstractitemmodel.h:426)
          n1: 1073741824 0x1DBB5B: Gui::MsgItemDelegate::paint(QPainter*,
QStyleOptionViewItem const&, QModelIndex const&) const (MsgItemDelegate.cpp:89)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to