Re: cone crash - bt attached

Sam Varshavchik <[email protected]>
Newsgroups gmane.mail.cone
Message-ID <[email protected]>
Elisa Manara writes:

> Hi all,
> 
> since I have this problem for a long time, I was wondering if someone 
> else noticed it too. Something wicked happens when I attempt to read a 
> message and simultaneously Cone has to manage newly arrived e-mails.

See if you can reproduce the crash after applying the following patch.

diff -U3 -r1.2 mboxmultilock.C
--- libmail/mboxmultilock.C	14 Jun 2004 00:18:42 -0000	1.2
+++ libmail/mboxmultilock.C	30 Jun 2005 12:23:49 -0000
@@ -237,12 +237,13 @@
 	origCallback=NULL;
 
 	try {
-		p->fail(message);
-		delete p;
+		if (p)
+			p->fail(message);
+		delete this;
 	} catch (...) {
-		delete p;
+		delete this;
+		LIBMAIL_THROW();
 	}
-	delete this;
 }
 
 void mail::mbox::MultiLockRelease::messageEnvelopeCallback(size_t
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBCw+Ssx9p3GYHlUOIRAgFBAJ48Btjf5LVWS15tiandoVjUTucVIACePR88
Diy7L09ufojNWfYiV9LZXm4=
=5yFo
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.