Bug 285074 - Memleak and infinity loop
Summary: Memleak and infinity loop
Status: RESOLVED UNMAINTAINED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-27 09:50 UTC by BRULE Herman
Modified: 2017-01-07 22:25 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
log (2 bytes, text/x-log)
2013-03-09 12:52 UTC, BRULE Herman
Details
log (19.90 KB, text/x-log)
2013-03-09 22:18 UTC, BRULE Herman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description BRULE Herman 2011-10-27 09:50:12 UTC
Version:           unspecified (using KDE 4.7.2) 
OS:                Linux

Hello, on my laptop (no my desktop with near configuration), 3 process of akonadi use 100% of cpu and eat 1GB of memory by minutes. After all crash.
I have attached it and do a backtrace:

#0  0x00007f3bf989555d in read () from /lib64/libpthread.so.0
#1  0x00007f3bf9be2d3f in read (this=0x152aee0, data=0x152f8a0 "\t\t/* S f", len=16384) at /usr/include/bits/unistd.h:45
#2  qt_safe_read (this=0x152aee0, data=0x152f8a0 "\t\t/* S f", len=16384) at ../../include/QtCore/private/../../../src/corelib/kernel/qcore_unix_p.h:253
#3  QFSFileEnginePrivate::readFdFh (this=0x152aee0, data=0x152f8a0 "\t\t/* S f", len=16384) at io/qfsfileengine.cpp:703
#4  0x00007f3bf9bea02e in QFSFileEnginePrivate::nativeRead (this=0x152aee0, data=0x152f8a0 "\t\t/* S f", len=16384) at io/qfsfileengine_unix.cpp:382
#5  0x00007f3bf9ba2cbb in QFile::readData (this=<value optimized out>, data=0x152f8a0 "\t\t/* S f", len=16384) at io/qfile.cpp:1542
#6  0x00007f3bf9ba9300 in QIODevice::read (this=<value optimized out>, data=0x7fff85e782ac "", maxSize=4) at io/qiodevice.cpp:829
#7  0x00007f3bf9b940dd in QDataStream::operator>> (this=0x7fff85e78200, i=@0x152f8a0) at io/qdatastream.cpp:713
#8  0x00007f3bedf979d0 in Akonadi::ChangeRecorderPrivate::loadFrom (this=<value optimized out>, device=<value optimized out>)
    at /var/portage/portage/kde-base/kdepimlibs-4.7.2/work/kdepimlibs-4.7.2/akonadi/changerecorder_p.h:140
#9  0x00007f3bedf996fe in Akonadi::ChangeRecorderPrivate::loadNotifications (this=0x151f080)
    at /var/portage/portage/kde-base/kdepimlibs-4.7.2/work/kdepimlibs-4.7.2/akonadi/changerecorder_p.h:118
#10 0x00007f3bedf7b9f7 in Akonadi::AgentBasePrivate::init (this=0x143e7c0) at /var/portage/portage/kde-base/kdepimlibs-4.7.2/work/kdepimlibs-4.7.2/akonadi/agentbase.cpp:214
#11 0x00007f3bedf7c542 in Akonadi::AgentBase::AgentBase (this=0x14aef50, d=0x143e7c0, id=...) at /var/portage/portage/kde-base/kdepimlibs-4.7.2/work/kdepimlibs-4.7.2/akonadi/agentbase.cpp:508
#12 0x00007f3bee040578 in Akonadi::ResourceBase::ResourceBase (this=0x14aef50, id=<value optimized out>)
    at /var/portage/portage/kde-base/kdepimlibs-4.7.2/work/kdepimlibs-4.7.2/akonadi/resourcebase.cpp:282
#13 0x00007f3bee329c18 in MaildirResource::MaildirResource (this=0xd, id=...)
    at /var/portage/portage/kde-base/kdepim-runtime-4.7.2-r1/work/kdepim-runtime-4.7.2/resources/maildir/maildirresource.cpp:90
#14 0x00007f3bee33464e in Akonadi::AgentFactory<MaildirResource>::createInstance (this=<value optimized out>, identifier=...) at /usr/include/akonadi/agentfactory.h:90
#15 0x00007f3bedf7d2d2 in Akonadi::AgentFactoryBase::qt_metacall (this=0x1453d70, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff85e78c70)
    at /var/portage/portage/kde-base/kdepimlibs-4.7.2/work/kdepimlibs-4.7.2_build/akonadi/agentfactory.moc:73
#16 0x00007f3bf9c1adcc in QMetaMethod::invoke (this=0x7fff85e79140, object=0x1453d70, connectionType=<value optimized out>, returnValue=..., val0=..., val1=..., val2=..., val3=..., val4=..., 
    val5=..., val6=..., val7=..., val8=..., val9=...) at kernel/qmetaobject.cpp:1597
#17 0x00007f3bf9c1c45d in QMetaObject::invokeMethod (obj=0x1453d70, member=<value optimized out>, type=<value optimized out>, ret=..., val0=..., val1=..., val2=..., val3=..., val4=..., 
    val5=..., val6=..., val7=..., val8=..., val9=...) at kernel/qmetaobject.cpp:1151
#18 0x000000000040e2e5 in main (argc=3, argv=<value optimized out>) at /var/portage/portage/app-office/akonadi-server-1.6.2/work/akonadi-1.6.2/agentserver/agentlauncher.cpp:49

#0  0x00007f57d4dbb0a0 in read () from /lib64/libc.so.6
#1  0x00007f57d7aaad3f in read (this=0x1dbd0c0, data=0x7fff10f2eee8 "", len=4) at /usr/include/bits/unistd.h:45
#2  qt_safe_read (this=0x1dbd0c0, data=0x7fff10f2eee8 "", len=4) at ../../include/QtCore/private/../../../src/corelib/kernel/qcore_unix_p.h:253
#3  QFSFileEnginePrivate::readFdFh (this=0x1dbd0c0, data=0x7fff10f2eee8 "", len=4) at io/qfsfileengine.cpp:703
#4  0x00007f57d7ab202e in QFSFileEnginePrivate::nativeRead (this=0x1dbd0c0, data=0x7fff10f2eee8 "", len=4) at io/qfsfileengine_unix.cpp:382
#5  0x00007f57d7a6acbb in QFile::readData (this=<value optimized out>, data=0x7fff10f2eee8 "", len=4) at io/qfile.cpp:1542
#6  0x00007f57d7a71094 in QIODevice::read (this=<value optimized out>, data=0x7fff10f2eee8 "", maxSize=4) at io/qiodevice.cpp:858
#7  0x00007f57d7a5c0dd in QDataStream::operator>> (this=0x7fff10f2ee40, i=@0x7fff10f2eee8) at io/qdatastream.cpp:713
#8  0x00007f57d80f79dd in Akonadi::ChangeRecorderPrivate::loadFrom (this=<value optimized out>, device=<value optimized out>)
    at /var/portage/portage/kde-base/kdepimlibs-4.7.2/work/kdepimlibs-4.7.2/akonadi/changerecorder_p.h:141
#9  0x00007f57d80f96fe in Akonadi::ChangeRecorderPrivate::loadNotifications (this=0x1dd1960)
    at /var/portage/portage/kde-base/kdepimlibs-4.7.2/work/kdepimlibs-4.7.2/akonadi/changerecorder_p.h:118
#10 0x00007f57d80db9f7 in Akonadi::AgentBasePrivate::init (this=0x1dde900) at /var/portage/portage/kde-base/kdepimlibs-4.7.2/work/kdepimlibs-4.7.2/akonadi/agentbase.cpp:214
#11 0x00007f57d80dc6b7 in Akonadi::AgentBase::AgentBase (this=0x1da1d20, id=...) at /var/portage/portage/kde-base/kdepimlibs-4.7.2/work/kdepimlibs-4.7.2/akonadi/agentbase.cpp:500
#12 0x000000000040a3a7 in MailDispatcherAgent::MailDispatcherAgent (this=0xc, id=...)
    at /var/portage/portage/kde-base/kdepim-runtime-4.7.2-r1/work/kdepim-runtime-4.7.2/agents/maildispatcher/maildispatcheragent.cpp:188
#13 0x000000000040a85f in init<MailDispatcherAgent> (argc=<value optimized out>, argv=<value optimized out>) at /usr/include/KDE/Akonadi/../../akonadi/agentbase.h:335
#14 main (argc=<value optimized out>, argv=<value optimized out>)
    at /var/portage/portage/kde-base/kdepim-runtime-4.7.2-r1/work/kdepim-runtime-4.7.2/agents/maildispatcher/maildispatcheragent.cpp:376

#0  0x00007fee7ca52540 in __read_nocancel () from /lib64/libpthread.so.0
#1  0x00007fee7cd9fd3f in read (this=0x1a412a0, data=0x1a6c030 "#include\357\357\360\377\356\356\357\377\356\356\356\377\355\355\357\377\353\353\356\377\377\377\377\377", len=16384)
    at /usr/include/bits/unistd.h:45
#2  qt_safe_read (this=0x1a412a0, data=0x1a6c030 "#include\357\357\360\377\356\356\357\377\356\356\356\377\355\355\357\377\353\353\356\377\377\377\377\377", len=16384)
    at ../../include/QtCore/private/../../../src/corelib/kernel/qcore_unix_p.h:253
#3  QFSFileEnginePrivate::readFdFh (this=0x1a412a0, data=0x1a6c030 "#include\357\357\360\377\356\356\357\377\356\356\356\377\355\355\357\377\353\353\356\377\377\377\377\377", len=16384)
    at io/qfsfileengine.cpp:703
#4  0x00007fee7cda702e in QFSFileEnginePrivate::nativeRead (this=0x1a412a0, 
    data=0x1a6c030 "#include\357\357\360\377\356\356\357\377\356\356\356\377\355\355\357\377\353\353\356\377\377\377\377\377", len=16384) at io/qfsfileengine_unix.cpp:382
#5  0x00007fee7cd5fcbb in QFile::readData (this=<value optimized out>, 
    data=0x1a6c030 "#include\357\357\360\377\356\356\357\377\356\356\356\377\355\355\357\377\353\353\356\377\377\377\377\377", len=16384) at io/qfile.cpp:1542
#6  0x00007fee7cd66300 in QIODevice::read (this=<value optimized out>, data=0x7fffe273ce4c "", maxSize=4) at io/qiodevice.cpp:829
#7  0x00007fee7cd510dd in QDataStream::operator>> (this=0x7fffe273cda0, i=@0x1a6c030) at io/qdatastream.cpp:713
#8  0x00007fee7d1a39d0 in Akonadi::ChangeRecorderPrivate::loadFrom (this=<value optimized out>, device=<value optimized out>)
    at /var/portage/portage/kde-base/kdepimlibs-4.7.2/work/kdepimlibs-4.7.2/akonadi/changerecorder_p.h:140
#9  0x00007fee7d1a56fe in Akonadi::ChangeRecorderPrivate::loadNotifications (this=0x1a3f5d0)
    at /var/portage/portage/kde-base/kdepimlibs-4.7.2/work/kdepimlibs-4.7.2/akonadi/changerecorder_p.h:118
#10 0x00007fee7d1879f7 in Akonadi::AgentBasePrivate::init (this=0x1a58e50) at /var/portage/portage/kde-base/kdepimlibs-4.7.2/work/kdepimlibs-4.7.2/akonadi/agentbase.cpp:214
#11 0x00007fee7d1886b7 in Akonadi::AgentBase::AgentBase (this=0x1a57b30, id=...) at /var/portage/portage/kde-base/kdepimlibs-4.7.2/work/kdepimlibs-4.7.2/akonadi/agentbase.cpp:500
#12 0x0000000000413346 in NepomukFeederAgentBase::NepomukFeederAgentBase (this=0xc, id=...)
    at /var/portage/portage/kde-base/kdepim-runtime-4.7.2-r1/work/kdepim-runtime-4.7.2/agents/nepomukfeeder/nepomukfeederagentbase.cpp:99
#13 0x000000000040a9a0 in NepomukFeederAgent (this=0xc, id=...) at /var/portage/portage/kde-base/kdepim-runtime-4.7.2-r1/work/kdepim-runtime-4.7.2/agents/nepomukfeeder/nepomukfeederagent.h:37
#14 Akonadi::NepomukContactFeeder::NepomukContactFeeder (this=0xc, id=...)
    at /var/portage/portage/kde-base/kdepim-runtime-4.7.2-r1/work/kdepim-runtime-4.7.2/agents/nepomuk_contact_feeder/nepomukcontactfeeder.cpp:57
#15 0x000000000040ab3f in init<Akonadi::NepomukContactFeeder> (argc=<value optimized out>, argv=<value optimized out>) at /usr/include/akonadi/agentbase.h:335
#16 main (argc=<value optimized out>, argv=<value optimized out>)
    at /var/portage/portage/kde-base/kdepim-runtime-4.7.2-r1/work/kdepim-runtime-4.7.2/agents/nepomuk_contact_feeder/nepomukcontactfeeder.cpp:265
 

 


Reproducible: Always

Steps to Reproduce:
na


Expected Results:  
No crash.
Comment 1 Daniel Vrátil 2013-03-02 21:09:32 UTC
Are you able to reproduce this problem in recent versions of Akonadi and KDE?
Comment 2 BRULE Herman 2013-03-03 19:31:46 UTC
Hello
The memory leak remain into lot of part of akonadi (see https://bugs.launchpad.net/ubuntu/+source/akonadi/+bug/975266).
With normal use is a mess (rss, mail, ...), and use GB of memory.
Cheer,
Comment 3 Christophe Marin 2013-03-03 20:44:12 UTC
which akonadi backend ? version ? 
which KDE version ?
Comment 4 BRULE Herman 2013-03-03 20:53:03 UTC
KDE 4.9.5
Akonadi mysql storage backend.
Just after boot:
- akonadi_nepomuk_feeder: 250MB of memory
- akonadi_mailfilter_agent: 74MB of memory
- akonadi_agent_launcher: 16MB of memory
Comment 5 Christophe Marin 2013-03-09 11:55:53 UTC
and where is the leak, exactly ? did you run akonadi in valgrind ?

Please read http://techbase.kde.org/Projects/PIM/Akonadi/Development_Tools#Debugging_Akonadi_Agents
Comment 6 Christophe Marin 2013-03-09 11:57:57 UTC
Note: please update to -at least- 4.10 before following these steps
Comment 7 BRULE Herman 2013-03-09 12:52:36 UTC
Created attachment 77889 [details]
log

I have only KDE 4.9. I'm not sure to use correctly the valgrind + akonadi (seam have only the first error).
Comment 8 Laurent Montel 2013-03-09 21:58:35 UTC
log == 2 bytes
please reupload it
Comment 9 BRULE Herman 2013-03-09 22:18:13 UTC
Created attachment 77895 [details]
log
Comment 10 BRULE Herman 2013-03-09 22:23:37 UTC
170MB of memory at the startup.
Comment 11 Denis Kurz 2016-09-24 20:43:58 UTC
This bug has only been reported for versions older than KDEPIM 4.14 (at most akonadi-1.3). Can anyone tell if this bug still present?

If noone confirms this bug for a recent version of akonadi (part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 12 Denis Kurz 2017-01-07 22:25:36 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.