Subject: Re: [Greg Troxel] Re: threading bug in mail-notification?
To: None <tech-userlevel@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: tech-userlevel
Date: 04/20/2007 22:11:21
In article <rmi7is72dwb.fsf@fnord.ir.bbn.com>,
Greg Troxel <gdt@ir.bbn.com> wrote:
>-=-=-=-=-=-
>
>mail-notification is crashing on post-newlock2 current, and works on
>netbsd-4. I think the problem is a lack of locking and openssl being
>called on the same context in two threads. But, I was asked about
>whether openssl declares OPENSSL_THREADS, and it seems that it does not.
>
>I had meant to send the following here instead of pkgsrc-users:
>
>
>-=-=-=-=-=-
>
>Greg Troxel <gdt@ir.bbn.com> writes:
>
>> I've been using gnome mail notification applet mail/mail-notification
>> under NetBSD for a while, and it works on uniprocessors under netbsd-4
>> and used to work on current under MP (T60, Core Duo). I monitor 2
>> mailboxes, both IMAP/SSL.
>>
>> On the T60 (4.99.17), it hits an assertion at startup:
>>
>> assertion "md_c[1] == md_count[1]" failed: file
>> "/usr/home/gdt/NetBSD-current/src/crypto/dist/openssl/crypto/rand/md_rand.c",
>> line 312, function "ssleay_rand_add"
>>
>> It seems this is about openssl operations being invoked on a single
>> context in more than one thread at once.
>
>I've filed a bug with mail-notification about this, and was asked about
>whether our openssl is built with thread support.
>
> https://savannah.nongnu.org/bugs/index.php?19643
>
>Should our openssl be compiled with thread support?
>Is mail-notification doing something wrong?
Yes, we should do that.
christos