View Issue Details

IDProjectCategoryView StatusLast Update
0001380SOGoBackend Mailpublic2012-02-08 20:43
Reportergeepie Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.3.7a 
Summary0001380: WOWatchDogApplicationMain 100% CPU
Description

On OpenBSD 4.9 current, with Sogo 1.3.7a

Sometimes, the main process uses 100% of the CPU running inside WOWatchDogApplicationMain
and never goes down.

I got this behavior each time I display the content of many folders in mail, one after one quickly.

The Web client stays usable, but slow down as the main process use 100% of CPU.

If I add to sogod the flag "-WOUseWatchDog NO", no more problem. But only one process.

Additional Information

Typical backtrace once gdb is attached to the main process (17383)

gdb /usr/local/sbin/sogod 17383
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-unknown-openbsd4.9"...
Attaching to program: /usr/local/sbin/sogod, process 17383
Reading symbols from /usr/lib/libpthread.so.13.1...done.
Loaded symbols for /usr/lib/libpthread.so.13.1
Reading symbols from /usr/local/lib/libSOGo.so.1.0...done.
Loaded symbols for /usr/local/lib/libSOGo.so.1.0
Reading symbols from /usr/local/lib/libOGoContentStore.so.1.0...done.
Loaded symbols for /usr/local/lib/libOGoContentStore.so.1.0
Reading symbols from /usr/local/lib/libGDLContentStore.so.1.0...done.
Loaded symbols for /usr/local/lib/libGDLContentStore.so.1.0
Reading symbols from /usr/local/lib/libGDLAccess.so.0.1...done.
Loaded symbols for /usr/local/lib/libGDLAccess.so.0.1
Reading symbols from /usr/local/lib/libWEExtensions.so.0.1...done.
Loaded symbols for /usr/local/lib/libWEExtensions.so.0.1
Reading symbols from /usr/local/lib/libNGCards.so.1.0...done.
Loaded symbols for /usr/local/lib/libNGCards.so.1.0
Reading symbols from /usr/local/lib/libNGObjWeb.so.0.1...done.
Loaded symbols for /usr/local/lib/libNGObjWeb.so.0.1
Reading symbols from /usr/local/lib/libNGMime.so.0.1...done.
Loaded symbols for /usr/local/lib/libNGMime.so.0.1
Reading symbols from /usr/local/lib/libNGLdap.so.0.1...done.
Loaded symbols for /usr/local/lib/libNGLdap.so.0.1
Reading symbols from /usr/local/lib/libNGStreams.so.0.1...done.
Loaded symbols for /usr/local/lib/libNGStreams.so.0.1
Reading symbols from /usr/local/lib/libNGExtensions.so.0.1...done.
Loaded symbols for /usr/local/lib/libNGExtensions.so.0.1
Reading symbols from /usr/local/lib/libEOControl.so.0.1...done.
Loaded symbols for /usr/local/lib/libEOControl.so.0.1
Reading symbols from /usr/local/lib/libDOM.so.0.1...done.
Loaded symbols for /usr/local/lib/libDOM.so.0.1
Reading symbols from /usr/local/lib/libXmlRpc.so.0.1...done.
Loaded symbols for /usr/local/lib/libXmlRpc.so.0.1
Reading symbols from /usr/local/lib/libSaxObjC.so.0.1...done.
Loaded symbols for /usr/local/lib/libSaxObjC.so.0.1
Reading symbols from /usr/local/lib/libgnustep-base.so.4.0...done.
Loaded symbols for /usr/local/lib/libgnustep-base.so.4.0
Reading symbols from /usr/lib/libobjc.so.5.0...done.
Loaded symbols for /usr/lib/libobjc.so.5.0
Reading symbols from /usr/lib/libm.so.5.3...done.
Loaded symbols for /usr/lib/libm.so.5.3
Symbols already loaded for /usr/lib/libpthread.so.13.1
Reading symbols from /usr/lib/libc.so.58.3...done.
Loaded symbols for /usr/lib/libc.so.58.3
Reading symbols from /usr/local/lib/libmemcached.so.0.0...done.
Loaded symbols for /usr/local/lib/libmemcached.so.0.0
Reading symbols from /usr/local/lib/libSBJson.so.0.1...done.
Loaded symbols for /usr/local/lib/libSBJson.so.0.1
Reading symbols from /usr/lib/libcrypto.so.19.0...done.
Loaded symbols for /usr/lib/libcrypto.so.19.0
Reading symbols from /usr/local/lib/libldap.so.11.0...done.
Loaded symbols for /usr/local/lib/libldap.so.11.0
Reading symbols from /usr/local/lib/liblber.so.11.0...done.
Loaded symbols for /usr/local/lib/liblber.so.11.0
Reading symbols from /usr/lib/libssl.so.16.0...done.
Loaded symbols for /usr/lib/libssl.so.16.0
Reading symbols from /usr/lib/libz.so.4.1...done.
Loaded symbols for /usr/lib/libz.so.4.1
Reading symbols from /usr/local/lib/libgmp.so.9.0...done.
Loaded symbols for /usr/local/lib/libgmp.so.9.0
Reading symbols from /usr/local/lib/libavahi-common.so.0.0...done.
Loaded symbols for /usr/local/lib/libavahi-common.so.0.0
Reading symbols from /usr/local/lib/libavahi-client.so.0.0...done.
Loaded symbols for /usr/local/lib/libavahi-client.so.0.0
Reading symbols from /usr/local/lib/libgnutls.so.17.1...done.
Loaded symbols for /usr/local/lib/libgnutls.so.17.1
Reading symbols from /usr/local/lib/libgcrypt.so.15.0...done.
Loaded symbols for /usr/local/lib/libgcrypt.so.15.0
Reading symbols from /usr/local/lib/libxslt.so.3.8...done.
Loaded symbols for /usr/local/lib/libxslt.so.3.8
Reading symbols from /usr/local/lib/libxml2.so.12.0...done.
Loaded symbols for /usr/local/lib/libxml2.so.12.0
Reading symbols from /usr/local/lib/libiconv.so.6.0...done.
Loaded symbols for /usr/local/lib/libiconv.so.6.0
Reading symbols from /usr/local/lib/libffi.so.0.0...done.
Loaded symbols for /usr/local/lib/libffi.so.0.0
Reading symbols from /usr/local/lib/libicui18n.so.4.0...done.
Loaded symbols for /usr/local/lib/libicui18n.so.4.0
Reading symbols from /usr/local/lib/libicuuc.so.4.0...done.
Loaded symbols for /usr/local/lib/libicuuc.so.4.0
Reading symbols from /usr/local/lib/libicudata.so.4.0...done.
Loaded symbols for /usr/local/lib/libicudata.so.4.0
Reading symbols from /usr/local/lib/libsasl2.so.2.22...done.
Loaded symbols for /usr/local/lib/libsasl2.so.2.22
Reading symbols from /usr/lib/libgssapi.so.5.0...done.
Loaded symbols for /usr/lib/libgssapi.so.5.0
Reading symbols from /usr/lib/libkrb5.so.18.0...done.
Loaded symbols for /usr/lib/libkrb5.so.18.0
Reading symbols from /usr/lib/libasn1.so.18.0...done.
Loaded symbols for /usr/lib/libasn1.so.18.0
Reading symbols from /usr/lib/libcom_err.so.18.0...done.
Loaded symbols for /usr/lib/libcom_err.so.18.0
Reading symbols from /usr/local/lib/libintl.so.5.0...done.
Loaded symbols for /usr/local/lib/libintl.so.5.0
Reading symbols from /usr/local/lib/libdbus-1.so.9.1...done.
Loaded symbols for /usr/local/lib/libdbus-1.so.9.1
Reading symbols from /usr/local/lib/libtasn1.so.2.0...done.
Loaded symbols for /usr/local/lib/libtasn1.so.2.0
Reading symbols from /usr/local/lib/libhogweed.so.0.0...done.
Loaded symbols for /usr/local/lib/libhogweed.so.0.0
Reading symbols from /usr/local/lib/libnettle.so.0.0...done.
Loaded symbols for /usr/local/lib/libnettle.so.0.0
Reading symbols from /usr/local/lib/libgpg-error.so.3.1...done.
Loaded symbols for /usr/local/lib/libgpg-error.so.3.1
Reading symbols from /usr/lib/libstdc++.so.51.0...done.
Loaded symbols for /usr/lib/libstdc++.so.51.0
Reading symbols from /usr/libexec/ld.so...done.
Loaded symbols for /usr/libexec/ld.so
Reading symbols from /usr/local/lib/GNUstep/SOGo/Appointments.SOGo/Appointments...done.
Loaded symbols for /usr/local/lib/GNUstep/SOGo/Appointments.SOGo/./Appointments
Reading symbols from /usr/local/lib/GNUstep/SOGo/Mailer.SOGo/Mailer...done.
Loaded symbols for /usr/local/lib/GNUstep/SOGo/Mailer.SOGo/./Mailer
Reading symbols from /usr/local/lib/GNUstep/SOGo/CommonUI.SOGo/CommonUI...done.
Loaded symbols for /usr/local/lib/GNUstep/SOGo/CommonUI.SOGo/./CommonUI
Reading symbols from /usr/local/lib/libSOGoUI.so.1.0...done.
Loaded symbols for /usr/local/lib/libSOGoUI.so.1.0
Reading symbols from /usr/local/lib/libWOExtensions.so.0.1...done.
Loaded symbols for /usr/local/lib/libWOExtensions.so.0.1
Reading symbols from /usr/local/lib/GNUstep/SOGo/MainUI.SOGo/MainUI...done.
Loaded symbols for /usr/local/lib/GNUstep/SOGo/MainUI.SOGo/./MainUI
Reading symbols from /usr/local/lib/GNUstep/SOGo/AdministrationUI.SOGo/AdministrationUI...done.
Loaded symbols for /usr/local/lib/GNUstep/SOGo/AdministrationUI.SOGo/./AdministrationUI
Reading symbols from /usr/local/lib/sope-4.9/products/SoCore.sxp/SoCore...done.
Loaded symbols for /usr/local/lib/sope-4.9/products/SoCore.sxp/./SoCore
Reading symbols from /usr/local/lib/GNUstep/SOGo/Contacts.SOGo/Contacts...done.
Loaded symbols for /usr/local/lib/GNUstep/SOGo/Contacts.SOGo/./Contacts
Reading symbols from /usr/local/lib/GNUstep/SOGo/MailPartViewers.SOGo/MailPartViewers...done.
Loaded symbols for /usr/local/lib/GNUstep/SOGo/MailPartViewers.SOGo/./MailPartViewers
Reading symbols from /usr/local/lib/GNUstep/SOGo/MailerUI.SOGo/MailerUI...done.
Loaded symbols for /usr/local/lib/GNUstep/SOGo/MailerUI.SOGo/./MailerUI
Reading symbols from /usr/local/lib/GNUstep/SOGo/PreferencesUI.SOGo/PreferencesUI...done.
Loaded symbols for /usr/local/lib/GNUstep/SOGo/PreferencesUI.SOGo/./PreferencesUI
Reading symbols from /usr/local/lib/GNUstep/SOGo/ContactsUI.SOGo/ContactsUI...done.
Loaded symbols for /usr/local/lib/GNUstep/SOGo/ContactsUI.SOGo/./ContactsUI
Reading symbols from /usr/local/lib/GNUstep/SOGo/SchedulerUI.SOGo/SchedulerUI...done.
Loaded symbols for /usr/local/lib/GNUstep/SOGo/SchedulerUI.SOGo/./SchedulerUI
Reading symbols from /usr/local/lib/sope-4.9/products/SoOFS.sxp/SoOFS...done.
Loaded symbols for /usr/local/lib/sope-4.9/products/SoOFS.sxp/./SoOFS
Reading symbols from /usr/local/lib/libSoOFS.so.0.1...done.
Loaded symbols for /usr/local/lib/libSoOFS.so.0.1
0x0ac541e1 in gettimeofday () from /usr/lib/libc.so.58.3
(gdb) bt
#0 0x0ac541e1 in gettimeofday () from /usr/lib/libc.so.58.3
0000001 0x08a50006 in _thread_kern_set_timeout (timeout=0xcfbcdcb4)
at /usr/src/lib/libpthread/uthread/uthread_kern.c:973
0000002 0x08a445b4 in poll (fds=0x8bf27600, nfds=6, timeout=272)
at /usr/src/lib/libpthread/uthread/uthread_poll.c:72
0000003 0x0ed369cf in GSFromUnicode () from /usr/local/lib/libgnustep-base.so.4.0
0000004 0x0ec6ad22 in NSRegularExpressionOptionsToURegexpFlags ()
from /usr/local/lib/libgnustep-base.so.4.0
0000005 0x0ec68e43 in NSRegularExpressionOptionsToURegexpFlags ()
from /usr/local/lib/libgnustep-base.so.4.0
0000006 0x04c2ad80 in -[WOWatchDog run:argc:argv:] (self=0x8887d308, _cmd=0x24bb7d28,
newAppName=0x3c0018ac, newArgC=1, newArgV=0xcfbce304)
at WOWatchDogApplicationMain.m:930
0000007 0x04c2b9ec in WOWatchDogApplicationMain (appName=0x3c0018ac, argc=1,
argv=0xcfbce304) at WOWatchDogApplicationMain.m:1036
0000008 0x1c0016af in gnustep_base_user_main (argc=1, argv=0xcfbce304, env=0xcfbce30c)
at sogod.m:53
0000009 0x0ec5815e in main () from /usr/local/lib/libgnustep-base.so.4.0
0000010 0x00000001 in ?? ()
0000011 0xcfbce304 in ?? ()
0000012 0xcfbce30c in ?? ()
0000013 0x3c005dc0 in environ ()
0000014 0x3c005ebf in progname_storage ()
0000015 0x00000001 in ?? ()
0000016 0xcfbce2c8 in ?? ()
0000017 0x3c004cc0 in ?? ()
0000018 0x3c005ebf in prognamestorage ()
0000019 0x3c005dc0 in environ ()
0000020 0xcfbce2e0 in ?? ()
0000021 0x1c0013c7 in
start ()
0000022 0x1c0013c7 in _
start ()
0000023 0x1c001347 in _start ()
0000024 0x00000000 in ?? ()

TagsNo tags attached.

Activities

geepie

geepie

2011-07-17 18:17

reporter   ~0002719

Same thing with 1.3.8 on OpenBSD 4.9 current.

ludovic

ludovic

2011-12-30 16:58

administrator   ~0003232

This might happen if the child process is stuck on something.

Attach to the child process when that happens and produce a stack trace.

ludovic

ludovic

2012-02-08 20:43

administrator   ~0003400

No feedback provided in months, closing.

Issue History

Date Modified Username Field Change
2011-07-17 15:18 geepie New Issue
2011-07-17 18:17 geepie Note Added: 0002719
2011-12-30 16:58 ludovic Note Added: 0003232
2012-02-08 20:43 ludovic Note Added: 0003400
2012-02-08 20:43 ludovic Status new => closed
2012-02-08 20:43 ludovic Resolution open => fixed