[Debian GNUstep maintainers] Bug#659489: [gnumail.app] Can't neither read nor send messages and crashes when setup SMTP

Yavor Doganov yavor at gnu.org
Mon Jun 2 15:37:14 UTC 2014


tags 659489 + patch
clone 659489 -1
reassign -1 libpantomime1.2
retitle -1 CWConnection instance may get deallocated while CWService handles the runloop event
severity -1 serious
affects -1 gnumail.app
tags -1 + patch
block 659489 with -1
thanks

Sorry for not being able to reply earlier.

On Sat, Feb 11, 2012 at 03:29:43PM +0100, Csányi Pál wrote:
> when I edit my account and want to setup smtp server on the Send tab I
> have the followings settings:
> Transport: SMTP
> Server name: smtp.gmail.com
> Server port: 587
> Use secure: TLS
> yes, Use SMTP authentication
> Mechanism: None   Check supported
> 
>  Note 1: when I clicked on this button to check supported mechanism,
>  nothing happen.

That's because TLS is not implemented.  In the attached patch I
disabled it in the UI to avoid confusion.  Only SSL is available.

> Now when I hit on the OK button, GNUMail crashes.

Yes, that's fairly easy to reproduce.  It looks like a CWSMTP object
gets allocated, but it's never released.  Worse, GNUMail doesn't keep
track of the SMTP connection and doesn't close it properly so when the
account window is closed (no matter how), you get a crash.

Fixing this exposes another bug in the Pantomime library -- the object
may get deallocated during -updateRead/-updateWrite in which case
_delegate is invalid and you get a crash as well.

Could you (or someone else) please try the attached patches?  I am
able to add/delete/edit accounts, check supported authentication
mechanisms and actually send mail.  Reading messages with IMAP and
replying also works for me.


More information about the pkg-GNUstep-maintainers mailing list