Bug 51756

Summary: kmail crashes on exit
Product: [Unmaintained] kmail Reporter: Giampaolo Gallo <gp>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Giampaolo Gallo 2002-12-11 10:28:16 UTC
Version:           1.5 (using KDE KDE 3.0.99)
Installed from:    Compiled From Sources
Compiler:          gcc 3.2.1 
OS:          Linux

I'm using kde 3.1rc5 compiled with gcc 3.2.1. I'm using qt-3.1.0 glibc 2.3.1 on linux 2.4.19.
May be this is related with the bug # 48980. I am kmail with an imap account on a laptop. When I move from an office to another, the ip address of my machine changes. I must close and reopen kmail because (I think) of active processes related to kmail/imap that maintain the old route to the server. Kmail takes a lot of time to close (3/4 minutes). Then issues the following backtrace

 [New Thread 16384 (LWP 8709)]
0x4170fc09 in __wait4 () at __wait4:-1
	in __wait4
#0  0x4170fc09 in __wait4 () at __wait4:-1
#1  0x41790494 in __DTOR_END__ () from /lib/libc.so.6
#2  0x41536cd3 in waitpid (pid=-512, stat_loc=0xfffffe00, options=-512)
    at wrapsyscall.c:181
#3  0x40c8f7b0 in KCrash::defaultCrashHandler(int) ()
   from /usr/kde3/lib/libkdecore.so.4
#4  <signal handler called>
#5  0x084e637f in ?? ()
#6  0x080fd34e in KMFolderTree::writeConfig() ()
#7  0x0809524e in KMMainWin::writeConfig() ()
#8  0x08093a53 in KMMainWin::~KMMainWin() ()
#9  0x081f22df in KMKernel::~KMKernel() ()
#10 0x081fa186 in main ()
#11 0x41676fa4 in __libc_start_main (main=0x81f95d0 <main>, argc=7, 
    ubp_av=0xbffff4b4, init=0x8073f30 <_init>, fini=0x8295488, rtld_fini=0, 
    stack_end=0x0) at ../sysdeps/generic/libc-start.c:144
Comment 1 Ingo Klöcker 2002-12-11 11:33:35 UTC
The backtrace you provided doesn't contain any useful information. Please recompile KMail with 
full debug information (i. e. use the --enable-debug=full option when configuring kdenetwork). 
 
Comment 2 Giampaolo Gallo 2002-12-11 16:25:48 UTC
I recompiled kdenetwork and got this (the same as before, statement numbers 
apart).Moreover I noticed that kmail/imap keeps the connection to the imap server constantly 
open. If the network configuration is changed and the user closes kmail after the change the 
kmail child process that talks with the imap server does not die (at least not immediately), and 
I must kill it. If not kmail is not able to read from the remote imap mailbox. 
 
[New Thread 16384 (LWP 15120)] 
0x41719c09 in __wait4 () at __wait4:-1 
	in __wait4 
#0  0x41719c09 in __wait4 () at __wait4:-1 
#1  0x4179a494 in __DTOR_END__ () from /lib/libc.so.6 
#2  0x41540cd3 in waitpid (pid=-512, stat_loc=0xfffffe00, options=-512) 
    at wrapsyscall.c:181 
#3  0x40c997b0 in KCrash::defaultCrashHandler(int) () 
   from /usr/kde3/lib/libkdecore.so.4 
#4  <signal handler called> 
#5  0x00000009 in ?? () 
#6  0x080fa7e8 in KMFolderTree::writeConfig() (this=0x83b6d00) 
    at kmfoldertree.cpp:301 
#7  0x080971cf in KMMainWin::writeConfig() (this=0x8427b70) 
    at kmmainwin.cpp:387 
#8  0x08095eb3 in ~KMMainWin (this=0x8427b70) at kmmainwin.cpp:149 
#9  0x081cb5d9 in ~KMKernel (this=0xbffff170) at kmkernel.cpp:122 
#10 0x081d38be in main (argc=7, argv=0xbffff4b4) at main.cpp:355 
#11 0x41680fa4 in __libc_start_main (main=0x81d2a6a <main>, argc=7,  
    ubp_av=0xbffff4b4, init=0x80784a4 <_init>, fini=0x40015640 <_rtld_local>,  
    rtld_fini=0, stack_end=0x0) at ../sysdeps/generic/libc-start.c:144 
 
Comment 3 Stephan Kulow 2003-04-13 22:16:14 UTC

*** This bug has been marked as a duplicate of 53000 ***