Bug 318093 - kmail 4.10.2 hangs on startup
Summary: kmail 4.10.2 hangs on startup
Status: RESOLVED NOT A BUG
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.10.2
Platform: Gentoo Packages Linux
: NOR grave
Target Milestone: ---
Assignee: kdepim bugs
URL: https://bugs.gentoo.org/show_bug.cgi?...
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-09 15:23 UTC by Fabio Coatti
Modified: 2013-05-18 02:44 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Coatti 2013-04-09 15:23:31 UTC
I recently upgraded kde 4.10.1 to 4.10.2 on gentoo. on 4.10.1 kmail was working, not perfectly due to html parsing bug, but worked.
Since the update, kmail is not working at all, basically it does not starts up.
starting from command line, kmail does not even asks for kdewallet unlock.
strace reveals the following behaviour:
[pid 10521] sched_getaffinity(10521, 32, {f}) = 8
[pid 10521] write(3, "\1\0\0\0\0\0\0\0", 8) = 8
[pid 10521] mmap(NULL, 8392704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f2a50532000
[pid 10521] mprotect(0x7f2a50532000, 4096, PROT_NONE) = 0
[pid 10521] clone(child_stack=0x7f2a50d31f70, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f2a50d329d0, tls=0x7f2a50d32700, child_tidptr=0x7f2a50d329d0) = 15434
[pid 10521] stat("/home/cova/.config/Trolltech.conf", {st_mode=S_IFREG|0644, st_size=61804, ...}) = 0
[pid 10521] stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2652, ...}) = 0
[pid 10521] lstat("/etc/qt4/Trolltech.conf", 0x7fffc5a05e30) = -1 ENOENT (No such file or directory)
[pid 10521] open("/etc/qt4/Trolltech.conf", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10521] stat("/etc/qt4/Trolltech.conf", 0x7fffc5a05ea0) = -1 ENOENT (No such file or directory)
[pid 10521] stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2652, ...}) = 0
[pid 10521] stat("/usr/lib64/qt4/plugins/bearer/.", Process 15434 attached
0x7fffc5a05dc0) = -1 ENOENT (No such file or directory)
[pid 10521] stat("/usr/lib64/kde4/plugins/bearer/.", 0x7fffc5a05dc0) = -1 ENOENT (No such file or directory)
[pid 10521] stat("/usr/bin/bearer/.", 0x7fffc5a05dc0) = -1 ENOENT (No such file or directory)
[pid 15434] set_robust_list(0x7f2a50d329e0, 24) = 0
[pid 15434] mmap(NULL, 134217728, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x7f2a48532000
[pid 15434] munmap(0x7f2a48532000, 61661184) = 0
[pid 15434] munmap(0x7f2a50000000, 5447680) = 0
[pid 15434] mprotect(0x7f2a4c000000, 135168, PROT_READ|PROT_WRITE) = 0
[pid 15434] eventfd2(0, O_NONBLOCK|O_CLOEXEC) = 12
[pid 15434] write(12, "\1\0\0\0\0\0\0\0", 8) = 8
[pid 15434] prctl(PR_SET_NAME, 0x7f2a6d4eb820, 0, 0, 0) = 0
[pid 15434] poll([{fd=12, events=POLLIN}], 1, 0) = 1 ([{fd=12, revents=POLLIN}])
[pid 15434] poll([{fd=12, events=POLLIN}], 1, 4294967295) = 1 ([{fd=12, revents=POLLIN}])
[pid 15434] read(12, "\1\0\0\0\0\0\0\0", 16) = 8
[pid 15434] poll([{fd=12, events=POLLIN}], 1, 4294967295
(**LOCKED HERE**)

ls -la /proc/15434/fd/12
/proc/15434/fd/12 -> anon_inode:[eventfd]

and kmail remains locked here eating 100% cpu, nothing appears on screen or in system dock.

launching kmail with 
dbus-launch kmail

the situation is a bit different, as kmail asks for kdewallet unlock, but after that no kmail windows shows up.

console output for dbus-launch:

kmail2(29371)/libakonadi Akonadi::AgentManagerPrivate::createDBusInterface: AgentManager failed to get a valid AgentManager DBus interface. Error is: 1 "org.freedesktop.DBus.Error.NameHasNoOwner" "Could not get owner of name 'org.freedesktop.Akonadi.Control': no such name" 
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
search paths:  ("/opt/android-sdk-update-manager/platform-tools/", "/usr/local/bin", "/usr/bin", "/bin", "/opt/bin", "/usr/x86_64-pc-linux-gnu/gcc-bin/4.7.2", "/opt/android-sdk-update-manager/tools", "/opt/android-sdk-update-manager/platform-tools", "/usr/games/bin", "/home/cova/bin", "/usr/sbin", "/usr/local/sbin", "/usr/local/libexec", "/usr/libexec", "/opt/mysql/libexec", "/opt/local/lib/mysql5/bin", "/opt/mysql/sbin") 
QSqlDatabasePrivate::removeDatabase: connection 'initConnection' is still in use, all queries will cease to work.
kdeinit4: Shutting down running client.
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kbuildsycoca4 running...
X Error: BadAccess (attempt to access private resource denied) 10
  Major opcode: 33 (X_GrabKey)
  Resource id:  0xb4
X Error: BadAccess (attempt to access private resource denied) 10
  Major opcode: 33 (X_GrabKey)
  Resource id:  0xb4
X Error: BadAccess (attempt to access private resource denied) 10
  Major opcode: 33 (X_GrabKey)
  Resource id:  0xb4
QDBusConnection: name 'org.kde.kwalletd' had owner '' but we thought it was ':1.11'
kwalletd(29439)/kdeui (Wallet) KWalletD::setupDialog: Application ' "KMail" ' using kwallet without parent window! 
QDBusConnection: name 'org.kde.kglobalaccel' had owner '' but we thought it was ':1.9'
Module  "resources" is registered 
"/org/freedesktop/UDisks2/drives/MTFDDAK256MAM_1K12_124203513FF1" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/MTFDDAK256MAM_1K12_124203513FF1" : property "DeviceNumber" does not exist 
"/org/freedesktop/UDisks2/drives/MTFDDAK256MAM_1K12_124203513FF1" : property "Device" does not exist 
kded(29408)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
Module  "activities" is registered 
Module  "features" is registered 
This is the current thread id for Activities 140477584246528 QThread(0xa135e0) 
These are the disabled plugins: ("activitymanager_plugin_dummy", "activitymanager_plugin_nepomuk") 
Initializing plugin: "activitymanager_plugin_globalshortcuts" 
This is the current thread id for Activities 140477898913664 QThread(0x8a3120) 
Initializing plugin: "activitymanager_plugin_slc" 
Initializing plugin: "activitymanager_plugin_virtualdesktopswitch" 
VirtualDesktopSwitch::init 
Module  "org.kde.ActivityManager.VirtualDesktopSwitch" is registered 
Initializing plugin: "activitymanager_plugin_activityranking" 
running in thread ActivityRanking 
Initializing plugin: "activitymanager_plugin_sqlite" 
Module  "org.kde.ActivityManager.Resources.Scoring" is registered 
Nepomuk Query Server not available
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
search paths:  ("/opt/android-sdk-update-manager/platform-tools/", "/usr/local/bin", "/usr/bin", "/bin", "/opt/bin", "/usr/x86_64-pc-linux-gnu/gcc-bin/4.7.2", "/opt/android-sdk-update-manager/tools", "/opt/android-sdk-update-manager/platform-tools", "/usr/games/bin", "/home/cova/bin") 
search paths:  ("/usr/lib64/kde4/plugins", "/home/cova/.kde4/lib64/kde4/plugins/", "/usr/lib64/kde4/plugins/", "/usr/lib64/qt4/plugins", "/usr/bin", "/home/cova/.kde4/lib64/kde4/", "/usr/lib64/kde4/") 
search paths:  ("/usr/lib64/kde4/plugins", "/home/cova/.kde4/lib64/kde4/plugins/", "/usr/lib64/kde4/plugins/", "/usr/lib64/qt4/plugins", "/usr/bin", "/home/cova/.kde4/lib64/kde4/", "/usr/lib64/kde4/") 
search paths:  ("/usr/lib64/kde4/plugins", "/home/cova/.kde4/lib64/kde4/plugins/", "/usr/lib64/kde4/plugins/", "/usr/lib64/qt4/plugins", "/usr/bin", "/home/cova/.kde4/lib64/kde4/", "/usr/lib64/kde4/") 
search paths:  ("/usr/lib64/kde4/plugins", "/home/cova/.kde4/lib64/kde4/plugins/", "/usr/lib64/kde4/plugins/", "/usr/lib64/qt4/plugins", "/usr/bin", "/home/cova/.kde4/lib64/kde4/", "/usr/lib64/kde4/") 
search paths:  ("/usr/lib64/kde4/plugins", "/home/cova/.kde4/lib64/kde4/plugins/", "/usr/lib64/kde4/plugins/", "/usr/lib64/qt4/plugins", "/usr/bin", "/home/cova/.kde4/lib64/kde4/", "/usr/lib64/kde4/") 
kio_ldap(29541)/kio (kioslave) KIO::KPasswdServer::checkAuthInfo: kioslave is not a QCoreApplication! 
kio_ldap(29541)/kio (kioslave) KIO::KPasswdServer::legacyCheckAuthInfo: Querying old kded_kpasswdserver. 
kio_ldap(29541)/kio (kioslave) KIO::SlaveBase::finished: finished() called after error()! Please fix the KIO slave. 
akonadi_kabc_resource_3(29485): Loading error:  "Impossibile connettersi all'host ldaps://XXXX
Informazioni aggiuntive: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed (unable to get local issuer certificate)." 
klauncher: Exiting on signal 15

and kmail is eating 100% cpu without doing nothing, not even appearing on screen.

maybe it is not related, but even launching akonadiconsole from console yelds no results.

it makes no difference having nepomuk active or turned off.








Reproducible: Always




cova@calvin ~ $ gcc --version
gcc (Gentoo 4.7.2-r1 p1.5, pie-0.5.5) 4.7.2

CFLAGS="-march=native -mtune=native -O2 -pipe "
CXXFLAGS="${CFLAGS}"

calvin ~ # ldd --version
ldd (Gentoo 2.17 p4) 2.17

Linux 3.8.6 X86_64

QT 4.8.4
Comment 1 Fabio Coatti 2013-04-15 20:10:38 UTC
Gentoo bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=465052
Comment 2 Fabio Coatti 2013-04-17 07:40:18 UTC
Update: downgraded to kmail 4.10.1, still not working. So it seems something related to other pieces of kde environment.
running kmail with dbus-launch, same situation described above.

Some interesting messages, possibly unrelated:

akonadi_nepomuk_feeder(22132) ItemQueue::batchJobResult: "The name org.kde.nepomuk.DataManagement was not provided by any .service files" 
akonadi_nepomuk_feeder(22132) ItemQueue::removeDataResult: "The name org.kde.nepomuk.DataManagement was not provided by any .service files" 
akonadi_nepomuk_feeder(22132) ItemQueue::batchJobResult: Error while storing graph
Comment 3 Fabio Coatti 2013-05-08 08:48:52 UTC
Same issue kde 4.10.3. kmail does not shows up when lauched, no feedback at all and 100% cpu eaten.
(launching kmail from commandline)

If I use dbus-launch kmail, I get the kwallet password prompt (that does not happens launching kmail from command line) but after that kmail does not shows up either, starts to burn cpu and nothing happens.

Can someone give me any advice about where to look?

dbus-launch kmail output:
kmail2(6614)/libakonadi Akonadi::AgentManagerPrivate::createDBusInterface: AgentManager failed to get a valid AgentManager DBus interface. Error is: 1 "org.freedesktop.DBus.Error.NameHasNoOwner" "Could not get owner of name 'org.freedesktop.Akonadi.Control': no such name" 
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
search paths:  ("/opt/android-sdk-update-manager/platform-tools/", "/usr/local/bin", "/usr/bin", "/bin", "/opt/bin", "/usr/x86_64-pc-linux-gnu/gcc-bin/4.7.2", "/opt/android-sdk-update-manager/tools", "/opt/android-sdk-update-manager/platform-tools", "/usr/games/bin", "/home/cova/bin", "/usr/sbin", "/usr/local/sbin", "/usr/local/libexec", "/usr/libexec", "/opt/mysql/libexec", "/opt/local/lib/mysql5/bin", "/opt/mysql/sbin") 
QSqlDatabasePrivate::removeDatabase: connection 'initConnection' is still in use, all queries will cease to work.
kdeinit4: Shutting down running client.
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kbuildsycoca4 running...
X Error: BadAccess (attempt to access private resource denied) 10
  Major opcode: 33 (X_GrabKey)
  Resource id:  0xb4
X Error: BadAccess (attempt to access private resource denied) 10
  Major opcode: 33 (X_GrabKey)
  Resource id:  0xb4
X Error: BadAccess (attempt to access private resource denied) 10
  Major opcode: 33 (X_GrabKey)
  Resource id:  0xb4
QDBusConnection: name 'org.kde.kwalletd' had owner '' but we thought it was ':1.11'
kwalletd(6645)/kdeui (Wallet) KWalletD::setupDialog: Application ' "KMail" ' using kwallet without parent window! 
QDBusConnection: name 'org.kde.kglobalaccel' had owner '' but we thought it was ':1.9'
Module  "resources" is registered 
"/org/freedesktop/UDisks2/drives/MTFDDAK256MAM_1K12_124203513FF1" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/MTFDDAK256MAM_1K12_124203513FF1" : property "DeviceNumber" does not exist 
"/org/freedesktop/UDisks2/drives/MTFDDAK256MAM_1K12_124203513FF1" : property "Device" does not exist 
kded(6630)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
Module  "activities" is registered 
Module  "features" is registered 
This is the current thread id for Activities 139709488363264 QThread(0x1cd7680) 
These are the disabled plugins: ("activitymanager_plugin_dummy", "activitymanager_plugin_nepomuk") 
Initializing plugin: "activitymanager_plugin_globalshortcuts" 
This is the current thread id for Activities 139709803173760 QThread(0x1b69120) 
Initializing plugin: "activitymanager_plugin_slc" 
Initializing plugin: "activitymanager_plugin_virtualdesktopswitch" 
VirtualDesktopSwitch::init 
Module  "org.kde.ActivityManager.VirtualDesktopSwitch" is registered 
Initializing plugin: "activitymanager_plugin_activityranking" 
running in thread ActivityRanking 
Initializing plugin: "activitymanager_plugin_sqlite" 
Module  "org.kde.ActivityManager.Resources.Scoring" is registered 
Nepomuk Query Server not available
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)


akonadi_nepomuk_feeder(6221) ItemQueue::removeDataResult: "The name org.kde.nepomuk.DataManagement was not provided by any .service files" 
akonadi_nepomuk_feeder(6221) ItemQueue::batchJobResult: Error while storing graph:  "The name org.kde.nepomuk.DataManagement was not provided by any .service files" 
akonadi_nepomuk_feeder(6221) ItemQueue::removeDataResult: "The name org.kde.nepomuk.DataManagement was not provided by any .service files" 
akonadi_nepomuk_feeder(6221) ItemQueue::batchJobResult: Error while storing graph:  "The name org.kde.nepomuk.DataManagement was not provided by any .service files" 
akonadi_nepomuk_feeder(6221) ItemQueue::removeDataResult: "The name org.kde.nepomuk.DataManagement was not provided by any .service files" 
akonadi_nepomuk_feeder(6221) ItemQueue::batchJobResult: Error while storing graph:  "The name org.kde.nepomuk.DataManagement was not provided by any .service files" 
akonadi_nepomuk_feeder(6221) ItemQueue::removeDataResult: "The name org.kde.nepomuk.DataManagement was not provided by any .service files" 
akonadi_nepomuk_feeder(6221) ItemQueue::batchJobResult: Error while storing graph:  "The name org.kde.nepomuk.DataManagement was not provided by any .service files"
Comment 4 Fabio Coatti 2013-05-08 08:52:22 UTC
Basically, it seems that kmail (or other objects, like kwallet ) can't open windows or interact with users when launched in some way.
Comment 5 Fabio Coatti 2013-05-18 02:44:54 UTC
The problem turned out to be a clash with glibc. I moved from glibc 2.16 to 2.17 and this broke in some way qtwebkit, used by many apps.
Here the gdb thread status:
The problem turned out to be a clash with glibc. I moved from glibc 2.16 to 2.17 and this broke in some way qtwebkit, used by many apps.
Here the gdb thread status:

 Id   Target Id         Frame 
  3    Thread 0x7f909cd1a700 (LWP 9511) "kmail" 0x00007f90b63efcfc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
  2    Thread 0x7f909c519700 (LWP 9512) "QThread" 0x00007f90b85e369d in poll () from /lib64/libc.so.6
* 1    Thread 0x7f90bb273780 (LWP 5766) "kmail" 0x00007f90ab78a1b9 in ?? () from /usr/lib64/qt4/libQtWebKit.so.4

recompiling qtwebkit solved the issue