Dependency Graph

Dependency Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

IDProjectCategoryView StatusLast Update
0000616SOGoBackend Mailpublic2012-10-22 15:15
Reporterwezzy Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionunable to reproduce 
Product Version1.2.2 
Summary0000616: IMAP usage causes CPU spike
Description

This is similar to bug 0000403

Where in previous version(1.2.1) it would spike and the web interface would hang just by clicking on an IMAP folder. Now I can click on IMAP folders without CPU spike but SOGo has hanging threads on 100% when I click a message.

I've attached the backtrace...

TagsNo tags attached.

Relationships

related to 0000528 closed CPU 100 % Webmail crash 

Activities

2010-05-15 00:18

 

bt.txt (5,608 bytes)   
0x00002ae93e9c0cd1 in -[NGImap4ResponseParser parseResponseForTagId:exception:] (self=0x1a71fe00, _cmd=0x2ae93ec67950, _tag=10, ex_=0x7fff07ed23e0)
    at NGImap4ResponseParser.m:274
274	NGImap4ResponseParser.m: No such file or directory.
	in NGImap4ResponseParser.m
(gdb) bt
#0  0x00002ae93e9c0cd1 in -[NGImap4ResponseParser parseResponseForTagId:exception:] (self=0x1a71fe00, _cmd=0x2ae93ec67950, _tag=10, ex_=0x7fff07ed23e0) at NGImap4ResponseParser.m:274
#1  0x00002ae93e9d1552 in -[NGImap4Client processCommand:withTag:withNotification:logText:] (self=0x1a519c00, _cmd=0x2ae93ec68130, _command=0x1a695720, _tag=1 '\001', _notification=1 '\001', 
    _txt=0x1a695720) at NGImap4Client.m:1410
#2  0x00002ae93e9d1bc4 in -[NGImap4Client processCommand:] (self=0x1a519c00, _cmd=0x2ae93ec67b70, _command=0x1a695720) at NGImap4Client.m:1481
#3  0x00002ae93e9cd7f7 in -[NGImap4Client status:flags:] (self=0x1a519c00, _cmd=0x2ae93ec7c320, _folder=0x1a5e5b00, _flags=0x1a6c3720) at NGImap4Client.m:711
#4  0x00002ae93ea0299b in -[NGImap4Connection doesMailboxExistAtURL:] (self=0x1a6c7a30, _cmd=0x2ae9459815d0, _url=0x1a7fd060) at NGImap4Connection.m:802
#5  0x00002ae94575973e in -[SOGoMailFolder lookupName:inContext:acquire:] (self=0x1a74ce60, _cmd=0x2ae93e8e8e30, _key=0x1a4e10b0, _ctx=0x1a782a10, _acquire=0 '\000') at SOGoMailFolder.m:645
#6  0x00002ae93e5aa574 in -[NSObject(SoObjectLookup) traverseKey:inContext:] (self=0x1a74ce60, _cmd=0x2ae93e8e8e90, _key=0x1a4e10b0, _ctx=0x1a782a10) at SoObject+Traversal.m:56
#7  0x00002ae93e5aa834 in -[NSObject(SoObjectLookup) traverseKey:inContext:error:acquire:] (self=0x1a74ce60, _cmd=0x2ae93e8e8fb0, _name=0x1a4e10b0, _ctx=0x1a782a10, _error=0x7fff07ed2740, 
    _acquire=1 '\001') at SoObject+Traversal.m:98
#8  0x00002ae93e5ab194 in -[NSObject(SoObjectLookup) traversePathArray:inContext:error:acquire:] (self=0x19643c80, _cmd=0x2ae93e8ebdf0, traversalPath=0x1a5eac90, _ctx=0x1a782a10, 
    _error=0x7fff07ed2810, _acquire=1 '\001') at SoObject+Traversal.m:253
#9  0x00002ae93e5b0230 in -[SoObjectRequestHandler lookupObjectForRequest:inContext:] (self=0x196ae5c0, _cmd=0x2ae93e8ebfd0, _rq=0x1a694d70, _ctx=0x1a782a10) at SoObjectRequestHandler.m:356
#10 0x00002ae93e5b11ea in -[SoObjectRequestHandler handleRequest:inContext:session:application:] (self=0x196ae5c0, _cmd=0x2ae93e870510, _rq=0x1a694d70, _ctx=0x1a782a10, _sn=0x0, app=0x19643c80)
    at SoObjectRequestHandler.m:558
#11 0x00002ae93e5314c0 in -[WORequestHandler handleRequest:] (self=0x196ae5c0, _cmd=0x2ae93e837960, _request=0x1a694d70) at WORequestHandler.m:241
#12 0x00002ae93e4e4344 in -[WOCoreApplication dispatchRequest:usingHandler:] (self=0x19643c80, _cmd=0x2ae93e8379d0, _request=0x1a694d70, handler=0x196ae5c0) at WOCoreApplication.m:704
#13 0x00002ae93e4e46ea in -[WOCoreApplication dispatchRequest:] (self=0x19643c80, _cmd=0x60a160, _request=0x1a694d70) at WOCoreApplication.m:744
#14 0x0000000000402e18 in -[SOGo dispatchRequest:] ()
#15 0x00002ae93e59d35d in -[WOHttpTransaction _run] (self=0x1a7e57b0, _cmd=0x2ae93e8d3f70) at WOHttpTransaction.m:546
#16 0x00002ae93e59d7b9 in -[WOHttpTransaction run] (self=0x1a7e57b0, _cmd=0x2ae93e8d1d50) at WOHttpTransaction.m:599
#17 0x00002ae93e59881f in -[WOHttpAdaptor runConnection:] (self=0x1a4c3880, _cmd=0x2ae93e8d1df0, _socket=0x1a77ff30) at WOHttpAdaptor.m:404
#18 0x00002ae93e598b11 in -[WOHttpAdaptor _handleAcceptedConnection:] (self=0x1a4c3880, _cmd=0x2ae93e8d1e00, _connection=0x1a77ff30) at WOHttpAdaptor.m:438
#19 0x00002ae93e5993eb in -[WOHttpAdaptor _handleConnection:] (self=0x1a4c3880, _cmd=0x2ae93e8d1f00, connection=0x1a77ff30) at WOHttpAdaptor.m:549
#20 0x00002ae93e599677 in -[WOHttpAdaptor acceptControlMessage:] (self=0x1a4c3880, _cmd=0x2ae93e8d1c10, aNotification=0x1a7e8010) at WOHttpAdaptor.m:585
#21 0x00002ae93ff1b114 in ?? () from /usr/GNUstep/System/Library/Libraries/libgnustep-base.so.1.16
#22 0x00002ae93ff1ba93 in ?? () from /usr/GNUstep/System/Library/Libraries/libgnustep-base.so.1.16
#23 0x00002ae93ff1b927 in ?? () from /usr/GNUstep/System/Library/Libraries/libgnustep-base.so.1.16
#24 0x00002ae93f197a9f in -[NSObject(FileObjectWatcher) receivedEvent:type:extra:forMode:] (self=0x19633b00, _cmd=0x2ae940413810, _fdData=0x6, _type=ET_RDESC, _extra=0x6, _mode=0x2ae9403bae00)
    at NSRunLoop+FileObjects.m:57
#25 0x00002ae94002064f in ?? () from /usr/GNUstep/System/Library/Libraries/libgnustep-base.so.1.16
#26 0x00002ae93ff64d39 in ?? () from /usr/GNUstep/System/Library/Libraries/libgnustep-base.so.1.16
#27 0x00002ae93ff6518e in ?? () from /usr/GNUstep/System/Library/Libraries/libgnustep-base.so.1.16
#28 0x00002ae93e4e3a51 in -[WOCoreApplication run] (self=0x19643c80, _cmd=0x609f90) at WOCoreApplication.m:576
#29 0x000000000040251a in -[SOGo run] ()
#30 0x00002ae93e53be5a in -[WOWatchDog _runChildWithControlSocket:] (self=0x1960c7b0, _cmd=0x2ae93e878cc0, controlSocket=0x19633b00) at WOWatchDogApplicationMain.m:450
#31 0x00002ae93e53c1fe in -[WOWatchDog _spawnChild:] (self=0x1960c7b0, _cmd=0x2ae93e878d90, child=0x1962d960) at WOWatchDogApplicationMain.m:502
#32 0x00002ae93e53c9b7 in -[WOWatchDog _ensureChildren] (self=0x1960c7b0, _cmd=0x2ae93e879010) at WOWatchDogApplicationMain.m:589
#33 0x00002ae93e53e062 in -[WOWatchDog run:argc:argv:] (self=0x1960c7b0, _cmd=0x2ae93e8790d0, newAppName=0x608480, newArgC=7, newArgV=0x7fff07ed3ea8) at WOWatchDogApplicationMain.m:877
#34 0x00002ae93e53e8e4 in WOWatchDogApplicationMain (appName=0x608480, argc=7, argv=0x7fff07ed3ea8) at WOWatchDogApplicationMain.m:982
#35 0x0000000000401807 in main ()
Current language:  auto; currently objective-c
bt.txt (5,608 bytes)   
ludovic

ludovic

2010-05-15 01:46

reporter   ~0001017

Can you provide us with a tcpflow trace when that happens?

wezzy

wezzy

2010-05-15 11:49

reporter   ~0001018

I have found that it has to do with fetchmail_wakeup (http://github.com/marschap/fetchmail_wakeup). This is a plugin for dovecot which executes fetchmail when it receives a STATUS or IDLE. As soon as I disable the plugin in dovecot the webmail works as a charm!

Not sure what exactly you need and if you still need it. When I do a tcpflow I get loads of files. Im presuming you're only interested in the ones from port 143?

ludovic

ludovic

2010-05-15 11:50

reporter   ~0001019

Yes, tcpflow -i FOO -c tcp and port 143 > zot.out

2010-05-15 12:12

 

dump-withoutplugin.out (60,404 bytes)

2010-05-15 12:12

 

dump-withplugin.out (59,586 bytes)
wezzy

wezzy

2010-05-15 12:13

reporter   ~0001020

Ok, attached both a dump with the plugin enabled and one without.

wsourdeau

wsourdeau

2012-10-21 00:25

viewer   ~0004684

Does this bug still occur?

wezzy

wezzy

2012-10-21 10:33

reporter   ~0004687

Not sure. Because of the issues I disabled the Dovecot plugin. Didn't look back, I've put fetchmail on a crontab job.

wsourdeau

wsourdeau

2012-10-22 15:15

viewer   ~0004691

Due to the explanation above, I will close this bug. Reopen if needed.

Issue History

Date Modified Username Field Change
2010-05-15 00:18 wezzy New Issue
2010-05-15 00:18 wezzy File Added: bt.txt
2010-05-15 01:46 ludovic Note Added: 0001017
2010-05-15 11:49 wezzy Note Added: 0001018
2010-05-15 11:50 ludovic Note Added: 0001019
2010-05-15 12:12 wezzy File Added: dump-withoutplugin.out
2010-05-15 12:12 wezzy File Added: dump-withplugin.out
2010-05-15 12:13 wezzy Note Added: 0001020
2012-07-23 17:52 ludovic Relationship added related to 0000528
2012-10-21 00:25 wsourdeau Note Added: 0004684
2012-10-21 10:33 wezzy Note Added: 0004687
2012-10-22 15:15 wsourdeau Note Added: 0004691
2012-10-22 15:15 wsourdeau Status new => closed
2012-10-22 15:15 wsourdeau Resolution open => unable to reproduce