Date: Thu, 10 Oct 2013 21:37:39 +0200 From: Maciej Suszko <maciej@suszko.eu> To: Fabian Keil <freebsd-listen@fabiankeil.de> Cc: FreeBSD Current <freebsd-current@freebsd.org> Subject: Re: claws-mail deadlocking in iconv Message-ID: <20131010213739.19272554@arsenic> In-Reply-To: <73d40037.635a97ef@fabiankeil.de> References: <73d40037.635a97ef@fabiankeil.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/=f7XmLIyPcMGNb83o0DAfL3 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Fabian Keil <freebsd-listen@fabiankeil.de> wrote: > After the iconv import claws-mail started to deadlock in iconv every > now and then on my system, which prevented claws-mail from rendering > windows or reacting to input. >=20 > So far I haven't been able to reproduce this intentionally and various > rebuilds of ports, kernel and userland (mainly for other reasons) had > no effect. >=20 > When the problem occurs, trying to attach to the process causes > gdb and gdb76 to crash which also crashes claws-mail, but sending > SIGABRT causes a proper core dump that can be analysed with gdb. >=20 > The backtraces always show that there is only one thread running and > it's trying to lock cm_lock in _citrus_mapper_close(), which > apparently is already locked due to a _citrus_mapper_close() > recursion. Examples: [...] > This patch: > http://www.fabiankeil.de/sourcecode/freebsd/iconv-Let-_citrus_mapper_clos= e-unlock-cm_lock-before-calli.diff > seems to prevent the deadlock, but I'm not 100% sure that it's > correct and I'm also a bit surprised by the lack of reports from > other claws-mail users. >=20 > Did anyone else run into this or can comment on the patch or > the backtraces? In my case Claws Mail was hanging everytime I tried to access one of my bigger IMAP folders (50k+ messages). It was 100% reproducible. The patch seems to solve the problem for me - Claws is running now smooth, without any locks. --=20 regards, Maciej Suszko. --Sig_/=f7XmLIyPcMGNb83o0DAfL3 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (FreeBSD) iEYEARECAAYFAlJXAgcACgkQCikUk0l7iGrGCQCdGKNj7YMGqLuNKmB65RXaA8FA 7LwAn1SgDZgmNcE0QOjAxYDqBc0EsSt+ =fg2I -----END PGP SIGNATURE----- --Sig_/=f7XmLIyPcMGNb83o0DAfL3--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131010213739.19272554>