From owner-freebsd-threads@FreeBSD.ORG Mon Nov 21 11:02:58 2005 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8178616A427 for ; Mon, 21 Nov 2005 11:02:58 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C65F443D6B for ; Mon, 21 Nov 2005 11:02:46 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jALB2jvS090244 for ; Mon, 21 Nov 2005 11:02:45 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jALB2jMi090237 for freebsd-threads@freebsd.org; Mon, 21 Nov 2005 11:02:45 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 21 Nov 2005 11:02:45 GMT Message-Id: <200511211102.jALB2jMi090237@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-threads@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Nov 2005 11:02:58 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2005/01/26] threads/76690threads fork hang in child for (-lc_r & -lthr) 1 problem total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/07/18] kern/20016 threads pthreads: Cannot set scheduling timer/Can o [2000/08/26] kern/20861 threads libc_r does not honor socket timeouts o [2001/01/20] threads/24472threads libc_r does not honor SO_SNDTIMEO/SO_RCVT o [2001/01/25] threads/24632threads libc_r delicate deviation from libc in ha o [2001/01/25] kern/24641 threads pthread_rwlock_rdlock can deadlock o [2001/11/26] bin/32295 threads pthread dont dequeue signals o [2002/02/01] threads/34536threads accept() blocks other threads o [2002/05/25] kern/38549 threads the procces compiled whith pthread stoppe o [2002/06/27] threads/39922threads [threads] [patch] Threaded applications e o [2002/08/04] kern/41331 threads Pthread library open sets O_NONBLOCK flag o [2003/03/02] threads/48856threads Setting SIGCHLD to SIG_IGN still leaves z o [2003/03/10] threads/49087threads Signals lost in programs linked with libc s [2004/03/15] kern/64313 threads FreeBSD (OpenBSD) pthread implicit set/un o [2004/08/26] threads/70975threads unexpected and unreliable behaviour when o [2004/10/05] threads/72353threads Assertion fails in /usr/src/lib/libpthrea o [2004/10/07] threads/72429threads threads blocked in stdio (fgets, etc) are o [2004/10/21] threads/72953threads fork() unblocks blocked signals w/o PTHRE o [2004/12/19] threads/75273threads FBSD 5.3 libpthread (KSE) bug o [2004/12/21] threads/75374threads pthread_kill() ignores SA_SIGINFO flag o [2005/01/26] threads/76694threads fork cause hang in dup()/close() function o [2005/03/10] threads/78660threads Java hangs unkillably in STOP state after o [2005/04/08] threads/79683threads svctcp_create() fails if multiple threads o [2005/04/28] threads/80435threads panic on high loads o [2005/05/19] threads/81258threads Thread specific data is sometimes assigne o [2005/08/02] threads/84483threads problems with devel/nspr and -lc_r on 4.x s [2005/08/10] threads/84778threads libpthread busy loop/hang with Java when o [2005/08/20] threads/85160threads [libthr] [patch] libobjc + libpthread/lib o [2005/11/19] threads/89262threads [kernel] [patch] multi-threaded process h 28 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/06/13] kern/19247 threads uthread_sigaction.c does not do anything o [2000/10/21] kern/22190 threads A threaded read(2) from a socketpair(2) f o [2001/09/09] threads/30464threads pthread mutex attributes -- pshared o [2002/05/02] threads/37676threads libc_r: msgsnd(), msgrcv(), pread(), pwri s [2002/07/16] threads/40671threads pthread_cancel doesn't remove thread from o [2004/07/13] threads/69020threads pthreads library leaks _gc_mutex o [2004/09/21] threads/71966threads Mlnet Core Dumped : Fatal error '_pq_inse o [2004/11/21] threads/74180threads KSE problem. Applications those riched ma o [2005/04/13] threads/79887threads [patch] freopen() isn't thread-safe o [2005/05/13] threads/80992threads abort() sometimes not caught by gdb depen o [2005/05/26] threads/81534threads [libc_r] [patch] libc_r close() will fail 11 problems total. From owner-freebsd-threads@FreeBSD.ORG Tue Nov 22 13:53:59 2005 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B3F3416A41F for ; Tue, 22 Nov 2005 13:53:59 +0000 (GMT) (envelope-from kilogramo@clarinmail.com) Received: from smtp-01.arnet.com.ar (smtp-01.arnet.com.ar [200.45.191.24]) by mx1.FreeBSD.org (Postfix) with SMTP id 9FB0643D5E for ; Tue, 22 Nov 2005 13:53:48 +0000 (GMT) (envelope-from kilogramo@clarinmail.com) Received: (qmail 7819 invoked from network); 22 Nov 2005 10:52:54 -0000 Received: from unknown (HELO casa) (201.252.71.190) by smtp-01.arnet.com.ar with SMTP; 22 Nov 2005 10:52:54 -0000 Message-ID: <001401c5ef6c$28d548a0$6901a8c0@casa> From: "pablo" To: Date: Tue, 22 Nov 2005 10:53:46 -0300 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: connection closed X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Nov 2005 13:53:59 -0000 Hello, a friend and me had a project but we are having some trouble. We = built an eggdrop module which uses libxml2 http client and lpthreads. = This works fine in linux, but while tasting it on freebsd (we actually = have 5.4 stable) the connection closes down. It seems that on freebsd = the eggdrop lpthreads and libxml2 alltogether have a trouble, and i = wanted to know if ant of you knows what could be happening. Those things = used in twos work fine but the three together dont. Thanks From owner-freebsd-threads@FreeBSD.ORG Sat Nov 26 15:58:48 2005 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7AC9C16A41F for ; Sat, 26 Nov 2005 15:58:48 +0000 (GMT) (envelope-from nb_root@videotron.ca) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id B875743D77 for ; Sat, 26 Nov 2005 15:58:38 +0000 (GMT) (envelope-from nb_root@videotron.ca) Received: from clk01a ([66.130.198.54]) by VL-MO-MR001.ip.videotron.ca (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTP id <0IQK00M5QKDPKL30@VL-MO-MR001.ip.videotron.ca> for freebsd-threads@freebsd.org; Sat, 26 Nov 2005 10:58:37 -0500 (EST) Date: Sat, 26 Nov 2005 10:58:22 -0500 From: Nicolas Blais To: freebsd-threads@freebsd.org Message-id: <200511261058.36922.nb_root@videotron.ca> MIME-version: 1.0 Content-type: multipart/signed; boundary=nextPart1539227.jaYu3Q9KHh; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-transfer-encoding: 7bit User-Agent: KMail/1.8.3 Subject: commoncpp vs pthread (was: c++ with pthread?) X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Nov 2005 15:58:48 -0000 --nextPart1539227.jaYu3Q9KHh Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I finaly converted one of my c++ threading app from pthread alone to=20 commoncpp. I've subjectively compared the 'before' and 'after' to see whic= h=20 was more advantageous for me (as in good 'ol pthread or commoncpp library).= =20 The result is a disappointment. With commoncpp: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 1. Poorly documented. ->=20 http://www.gnu.org/software/commoncpp/docs/refman/html/class_posix_thread.h= tml=20 (yes it's a 404) 2. Thread::getThreadId(void) exists in the documentation, but does not=20 appently exists in cc++/thread.h, so a call to it fails build. =20 getPthreadId(void) is there. 3. SIGSEGV when calling delete->this in a thread's destructor. In fact,=20 commoncpp will SIGSEGV it's own simple test program, thread2.cpp. (gdb:=20 death @ ost::Thread::close ()). A bug report was sent to the developper 2= =20 weeks ago. Whether this is a FreeBSD problem or a commoncpp problem is=20 unknown. 4. From what I understand, Thread::join will unblock when a thread correctl= y=20 exits and clean, which will never happen because of #3. My app relies on=20 threads joining. From experience, if I remove delete->this from my thread'= s=20 =46inal() call, the thread will never unblock and the app forever waits. I= f I=20 leave delete->this (as recommended by the docs), it will SIGSEGV. 5. Coding with commoncpp is actual more simple that directly using -lpthrea= d. =20 Good. So I went back to faithful -lpthread with my C++ apps. I believe commoncpp= =20 can be a good threading library, but it is currently not at that state yet.= I=20 haven't tested the many other features of commoncpp. Nicolas. =2D-=20 =46reeBSD 7.0-CURRENT #1: Sat Nov 19 12:36:29 EST 2005 =20 root@clk01a:/usr/obj/usr/src/sys/CLK01A=20 PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc --nextPart1539227.jaYu3Q9KHh Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDiIYs4wTBlvcsbJURApEUAKCnxSse65SCY8Jf3O4qZ9WfMovn0QCguxyp x+biSek8AX+dms0Plv0BRlA= =MwvZ -----END PGP SIGNATURE----- --nextPart1539227.jaYu3Q9KHh--