Bug 123080 - kmail hangs when trying to send mail
Summary: kmail hangs when trying to send mail
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail
Classification: Unmaintained
Component: general (show other bugs)
Version: 1.9.1
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-04 16:17 UTC by Imre Péntek
Modified: 2009-12-25 18:36 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
my terminal output (24.67 KB, text/plain)
2006-03-20 22:31 UTC, Imre Péntek
Details
kmail output when started in an xterm in an IceWM session (7.62 KB, text/plain)
2006-07-27 14:09 UTC, Imre Péntek
Details
file hierarchy in several states of kmail. (98.50 KB, text/plain)
2006-07-28 05:27 UTC, Imre Péntek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Imre Péntek 2006-03-04 16:17:14 UTC
Version:           1.9.1 (using KDE KDE 3.5.1)
Installed from:    Unlisted Binary Package
Compiler:          gcc version 3.4.5 Configured with: /var/uhubuild/work/compile/configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --enable-languages=c,c++ --enable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --host=i586-uhu-linux;Thread model: posix
OS:                Linux

trying to send kmail disabes all controls, and not even refreshes the window.
Comment 1 Imre Péntek 2006-03-04 16:18:10 UTC
also hangs when trying to sen queued messages out from outbox.
Comment 2 Till Adam 2006-03-04 22:08:46 UTC
Hi Imre, thanks for taking the time to report this. From the info you gave we can't really tell what could be wrong. Are you using pgp, by any chance? In that case the dialog asking for the passphrase might be hidden behind the main window and blocking it. Any more info you could give us?
Comment 3 Imre Péntek 2006-03-05 23:09:29 UTC
Well, I don't use pgp keys. But anyways I suppose that the main window would be updated even if the control was taken by a modal dialog box. At this time sending mail works correctly. Anyways I not suppose to just close this issue as resolved, becouse this wasn't the first time I met this bug. I am using IceWM, ext3fs, what other info should I give?
Comment 4 Ismail Onur Filiz 2006-03-06 08:38:11 UTC
Steps to reproduce this behaviour would help. Since this happens while sending emails, maybe some more information about the outgoing mail server? Maybe this happens with particular type of emails, so you might try re-sending the one that caused problems and see whether it happens again. Or some more information about how and from where you installed kmail. Unless one can reproduce the bug, you can appreciate that all one can do is shoot in the dark.
Comment 5 Imre Péntek 2006-03-06 13:38:34 UTC
When I tried to send queued messages from outbox it also hung, but since I succeeded to send the same messages with the same settings. I use smtp over ssl.
I cannot reproduce the bug by intention. I hope I will remember to strace kmail when it does the same again. Thanks for supporting me.
Comment 6 Imre Péntek 2006-03-20 22:29:58 UTC
Now this bug 'happened' again, I straced kmail by starting strace kmail, kmail forks a background process, so the straced one will terminate even before the 'starving' will happen.
I will attach some output though.
Comment 7 Imre Péntek 2006-03-20 22:31:49 UTC
Created attachment 15226 [details]
my terminal output

xterm strace kmail
trying to send queued messages kmail hangs
copypasting
Hope it helped.
Comment 8 Imre Péntek 2006-03-20 22:47:44 UTC
Maybe irrelevant, but I compiled kernel at this time.
Comment 9 Ismail Onur Filiz 2006-03-20 23:23:46 UTC
I'm not sure if the info will be helpful but how about doing this: Start with "kmail --nofork" . When the hang happens, kill KMail with "kill -s SIGSEGV <pid of kmail>". You should be able to get a backtrace, could you paste it here? (This of course assumes the hang is easily reproducible)
Comment 10 Imre Péntek 2006-07-27 14:08:09 UTC
Still present in 1.9.3 kde 3.5.3. Trying to attach some output...
Comment 11 Imre Péntek 2006-07-27 14:09:29 UTC
Created attachment 17138 [details]
kmail output when started in an xterm in an IceWM session
Comment 12 Imre Péntek 2006-07-28 05:27:24 UTC
Created attachment 17147 [details]
file hierarchy in several states of kmail.
Comment 13 Imre Péntek 2006-07-28 05:32:14 UTC
Additionally, these bugs can be related:
https://bugs.kde.org/show_bug.cgi?id=124295
https://bugs.kde.org/show_bug.cgi?id=118819
https://bugs.kde.org/show_bug.cgi?id=118970

kmail worked fine yesterday, now I killed the first-attmpt-to-start-of-kmail (118819)
at the second attempt gui showed up correctly, but wasn't able to fetch imap mails (118970), and also wasn't able to sedn mails.
Comment 14 Imre Péntek 2006-07-29 12:53:49 UTC
killall kmail && kmail doesn't help either.
Comment 15 Imre Péntek 2006-07-29 13:00:49 UTC
killall kmail && sleep 30 && kmail doesn't help either.
starting kmail stopping proberly before any attempt to send a mail, and running again doesn't help either.
I suppose that the same deadlock is present in the imap-fetching subprocess.
Comment 16 Imre Péntek 2006-07-29 13:09:04 UTC
the imap fetching supprosess (however hangs) doesn't participiate in this particular deadlock. the deadlock is present when imap-fetch is cancelled with (X)
I'm not sure if all locks are released when exiting kmail
Comment 17 Björn Ruberg 2009-12-25 18:36:05 UTC
Cannot confirm anymore in KDE 4.3. Please report back if you can.