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

Bug#214387: Removing -lpthread from link line avoids the problem



Hi,

At Fri, 31 Oct 2003 15:11:47 +0100,
Raphael Manfredi wrote:
> I've noticed that the problem disappears (did not manifest itself
> in 6 hours) if I remove the unneeded "-lpthread" in the link
> line.
> 
> The "-lpthread" comes via the "pkg-config --libs libxml-2.0" call
> but is otherwise unneeded by gtk-gnutella.
> 
> This should narrow the scope of your investigation considerably...

The difference to use pthread is small - when multiple threads are
used, __libc_writev adds cancellation processing.  If a thread which
sent cancellation signal, writev may be interrupted.

BTW, I guess this problem is already fixed in linux kernel 2.6 + glibc
2.3.5.  Please check the problem again.  If you notice the problem is
already fixed, please let us know.

Regards,
-- gotom





Reply to: