#11506 closed Bug report (fixed)

filezilla server can't stop services

Reported by: thegfw Owned by: Tim Kosse
Priority: normal Component: FileZilla Server
Keywords: Cc:
Component version: 0.9.60.0 Operating system type: Windows
Operating system version: windows 7

Description

filezilla server can't stop services.
wait for hash threading "infinite waitting dead lock"
==================================
see hash_thread.cpp
void CHashThread::Loop()
{

fz::scoped_lock lock(mutex_);
while (!m_quit) {

cond_.wait(lock); dead lock here
DoHash(lock);

}

}
==================================
temp code:
void CHashThread::Loop()
{

fz::scoped_lock lock(mutex_);
while (!m_quit) {

fz::duration duration_time;
duration_time.from_milliseconds(100);
cond_.wait(lock, duration_time);
lock.unlock();
DoHash(lock);
lock.lock();

}

}

Change History (2)

comment:1 Changed 19 months ago by Tim Kosse

Owner: set to Tim Kosse
Status: newassigned

Thank you for reporting this bug.

Unfortunately the suggested patch isn't good, it causes a wake-up every 100ms.

Incidentally, the bug was introduced when getting rid of such sources of wake-ups in FileZilla Server.

comment:2 Changed 19 months ago by Tim Kosse

Resolution: fixed
Status: assignedclosed

A different fix has been committed to the repository.

Note: See TracTickets for help on using tickets.