aspell-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [aspell-devel] 0.60 hangs at pthread_mutex_lock


From: Kevin Atkinson
Subject: Re: [aspell-devel] 0.60 hangs at pthread_mutex_lock
Date: Tue, 27 Apr 2004 12:26:07 -0400 (EDT)

On Tue, 27 Apr 2004, James Lee wrote:

> On 26/04/04, 22:35:28, Kevin Atkinson <address@hidden> wrote regarding Re: 
> [aspell-devel] 0.60 hangs at pthread_mutex_lock :
> 
> > > Both get_cache_data methods in cache_t.hpp call the mutex lock
> > > a second time without unlocking. The first lock is on entry and
> > > the second from copy. This happens when the lock of n is the
> > > same as that of cache. The mutex will not unlock as the thread
> > > locked it itself, hence the thread thread blocks on the second
> > > lock.
> 
> > Could I have a test cast that will trigger the problem?
> 
> A case. Pan via gtkspell as mentioned above - fails every time.

So I should Pan so I can find the problem?  Can I at least have a 
backtrace?

> The key to the problem is the lock of the cache is the same as that
> of n, n being the object return from the cache by find. I can't
> tell if this is the error or what is intended.
> 
> An avoidance tactic is to unlock the mutex explicitly, then it can
> be unlock after the find and before the copy.

I'm still not exactly sure where the problem is.  A patch to fix the 
problem will be most welcome.

-- 
http://kevin.atkinson.dhs.org





reply via email to

[Prev in Thread] Current Thread [Next in Thread]