From owner-freebsd-threads@FreeBSD.ORG Mon Apr 24 11:03:07 2006 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 2211A16A401 for ; Mon, 24 Apr 2006 11:03:07 +0000 (UTC) (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 1867743D5E for ; Mon, 24 Apr 2006 11:03:02 +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.4/8.13.4) with ESMTP id k3OB31uR035688 for ; Mon, 24 Apr 2006 11:03:01 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3OB30IJ035680 for freebsd-threads@freebsd.org; Mon, 24 Apr 2006 11:03:00 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 24 Apr 2006 11:03:00 GMT Message-Id: <200604241103.k3OB30IJ035680@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, 24 Apr 2006 11:03:07 -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 [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 p [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/07/22] threads/83914threads [libc] popen() doesn't work in static thr o [2005/08/02] threads/84483threads problems with devel/nspr and -lc_r on 4.x o [2005/08/20] threads/85160threads [libthr] [patch] libobjc + libpthread/lib p [2005/11/19] threads/89262threads [kernel] [patch] multi-threaded process h o [2005/12/12] threads/90278threads libthr, ULE and -current produces >100% W o [2006/01/03] kern/91266 threads [threads] Trying sleep, but thread marked o [2006/03/07] threads/94176threads KSE: sigwait doesn't recieve SIGWINCH sen o [2006/03/15] threads/94467threads send(), sendto() and sendmsg() are not co 31 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 Mon Apr 24 19:26:53 2006 Return-Path: X-Original-To: freebsd-threads@hub.freebsd.org Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 088CB16A407; Mon, 24 Apr 2006 19:26:53 +0000 (UTC) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 443B643D6B; Mon, 24 Apr 2006 19:26:50 +0000 (GMT) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (maxim@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3OJQoKU071620; Mon, 24 Apr 2006 19:26:50 GMT (envelope-from maxim@freefall.freebsd.org) Received: (from maxim@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3OJQnoD071616; Mon, 24 Apr 2006 19:26:49 GMT (envelope-from maxim) Date: Mon, 24 Apr 2006 19:26:49 GMT From: Maxim Konovalov Message-Id: <200604241926.k3OJQnoD071616@freefall.freebsd.org> To: lse@CryptoPro.ru, maxim@FreeBSD.org, freebsd-threads@FreeBSD.org Cc: Subject: Re: threads/76690: fork hang in child for (-lc_r & -lthr) 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, 24 Apr 2006 19:26:53 -0000 Synopsis: fork hang in child for (-lc_r & -lthr) State-Changed-From-To: open->suspended State-Changed-By: maxim State-Changed-When: Mon Apr 24 19:26:18 UTC 2006 State-Changed-Why: In RELENG_5,6 and HEAD libc_r is deprecated in favour of libpthread and libthr. Nobody is working on libc_r bugs so mark this PR as suspended. http://www.freebsd.org/cgi/query-pr.cgi?pr=76690 From owner-freebsd-threads@FreeBSD.ORG Mon Apr 24 19:27:28 2006 Return-Path: X-Original-To: freebsd-threads@hub.freebsd.org Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 49CB116A414; Mon, 24 Apr 2006 19:27:28 +0000 (UTC) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 893D243D5C; Mon, 24 Apr 2006 19:27:27 +0000 (GMT) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (maxim@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3OJRRMX071681; Mon, 24 Apr 2006 19:27:27 GMT (envelope-from maxim@freefall.freebsd.org) Received: (from maxim@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3OJRQPV071676; Mon, 24 Apr 2006 19:27:26 GMT (envelope-from maxim) Date: Mon, 24 Apr 2006 19:27:26 GMT From: Maxim Konovalov Message-Id: <200604241927.k3OJRQPV071676@freefall.freebsd.org> To: mikko@dynas.se, maxim@FreeBSD.org, freebsd-threads@FreeBSD.org Cc: Subject: Re: threads/24472: libc_r does not honor SO_SNDTIMEO/SO_RCVTIMEO socket options 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, 24 Apr 2006 19:27:28 -0000 Synopsis: libc_r does not honor SO_SNDTIMEO/SO_RCVTIMEO socket options State-Changed-From-To: open->suspended State-Changed-By: maxim State-Changed-When: Mon Apr 24 19:26:53 UTC 2006 State-Changed-Why: In RELENG_5,6 and HEAD libc_r is deprecated in favour of libpthread and libthr. Nobody is working on libc_r bugs so mark this PR as suspended. http://www.freebsd.org/cgi/query-pr.cgi?pr=24472 From owner-freebsd-threads@FreeBSD.ORG Mon Apr 24 19:27:47 2006 Return-Path: X-Original-To: freebsd-threads@hub.freebsd.org Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D0E9216A432; Mon, 24 Apr 2006 19:27:47 +0000 (UTC) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B07D43D46; Mon, 24 Apr 2006 19:27:47 +0000 (GMT) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (maxim@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3OJRlQh071743; Mon, 24 Apr 2006 19:27:47 GMT (envelope-from maxim@freefall.freebsd.org) Received: (from maxim@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3OJRkRt071739; Mon, 24 Apr 2006 19:27:46 GMT (envelope-from maxim) Date: Mon, 24 Apr 2006 19:27:46 GMT From: Maxim Konovalov Message-Id: <200604241927.k3OJRkRt071739@freefall.freebsd.org> To: barak@cwnt.com, maxim@FreeBSD.org, freebsd-threads@FreeBSD.org Cc: Subject: Re: threads/24632: libc_r delicate deviation from libc in handling SIGCHLD 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, 24 Apr 2006 19:27:47 -0000 Synopsis: libc_r delicate deviation from libc in handling SIGCHLD State-Changed-From-To: open->suspended State-Changed-By: maxim State-Changed-When: Mon Apr 24 19:27:30 UTC 2006 State-Changed-Why: In RELENG_5,6 and HEAD libc_r is deprecated in favour of libpthread and libthr. Nobody is working on libc_r bugs so mark this PR as suspended. http://www.freebsd.org/cgi/query-pr.cgi?pr=24632 From owner-freebsd-threads@FreeBSD.ORG Mon Apr 24 19:28:05 2006 Return-Path: X-Original-To: freebsd-threads@hub.freebsd.org Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2C1816A401; Mon, 24 Apr 2006 19:28:05 +0000 (UTC) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5959743D48; Mon, 24 Apr 2006 19:28:05 +0000 (GMT) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (maxim@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3OJS5vV071797; Mon, 24 Apr 2006 19:28:05 GMT (envelope-from maxim@freefall.freebsd.org) Received: (from maxim@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3OJS5V0071793; Mon, 24 Apr 2006 19:28:05 GMT (envelope-from maxim) Date: Mon, 24 Apr 2006 19:28:05 GMT From: Maxim Konovalov Message-Id: <200604241928.k3OJS5V0071793@freefall.freebsd.org> To: yxpan@yahoo.com, maxim@FreeBSD.org, freebsd-threads@FreeBSD.org Cc: Subject: Re: threads/34536: accept() blocks other threads 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, 24 Apr 2006 19:28:05 -0000 Synopsis: accept() blocks other threads State-Changed-From-To: open->suspended State-Changed-By: maxim State-Changed-When: Mon Apr 24 19:27:50 UTC 2006 State-Changed-Why: In RELENG_5,6 and HEAD libc_r is deprecated in favour of libpthread and libthr. Nobody is working on libc_r bugs so mark this PR as suspended. http://www.freebsd.org/cgi/query-pr.cgi?pr=34536 From owner-freebsd-threads@FreeBSD.ORG Mon Apr 24 19:28:34 2006 Return-Path: X-Original-To: freebsd-threads@hub.freebsd.org Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 96A7116A403; Mon, 24 Apr 2006 19:28:34 +0000 (UTC) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C14643D49; Mon, 24 Apr 2006 19:28:34 +0000 (GMT) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (maxim@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3OJSYB3071847; Mon, 24 Apr 2006 19:28:34 GMT (envelope-from maxim@freefall.freebsd.org) Received: (from maxim@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3OJSXWm071843; Mon, 24 Apr 2006 19:28:33 GMT (envelope-from maxim) Date: Mon, 24 Apr 2006 19:28:33 GMT From: Maxim Konovalov Message-Id: <200604241928.k3OJSXWm071843@freefall.freebsd.org> To: cejkar@fit.vutbr.cz, maxim@FreeBSD.org, freebsd-threads@FreeBSD.org Cc: Subject: Re: threads/39922: [threads] [patch] Threaded applications executed with closed std file descr. could not use redirections 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, 24 Apr 2006 19:28:34 -0000 Synopsis: [threads] [patch] Threaded applications executed with closed std file descr. could not use redirections State-Changed-From-To: open->suspended State-Changed-By: maxim State-Changed-When: Mon Apr 24 19:28:08 UTC 2006 State-Changed-Why: In RELENG_5,6 and HEAD libc_r is deprecated in favour of libpthread and libthr. Nobody is working on libc_r bugs so mark this PR as suspended. http://www.freebsd.org/cgi/query-pr.cgi?pr=39922 From owner-freebsd-threads@FreeBSD.ORG Mon Apr 24 19:29:02 2006 Return-Path: X-Original-To: freebsd-threads@hub.freebsd.org Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF5C716A406; Mon, 24 Apr 2006 19:29:02 +0000 (UTC) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A96E143D46; Mon, 24 Apr 2006 19:29:02 +0000 (GMT) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (maxim@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3OJT2hh071896; Mon, 24 Apr 2006 19:29:02 GMT (envelope-from maxim@freefall.freebsd.org) Received: (from maxim@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3OJT28m071892; Mon, 24 Apr 2006 19:29:02 GMT (envelope-from maxim) Date: Mon, 24 Apr 2006 19:29:02 GMT From: Maxim Konovalov Message-Id: <200604241929.k3OJT28m071892@freefall.freebsd.org> To: joelh@piqnet.org, maxim@FreeBSD.org, freebsd-threads@FreeBSD.org Cc: Subject: Re: threads/48856: Setting SIGCHLD to SIG_IGN still leaves zombies under threads 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, 24 Apr 2006 19:29:03 -0000 Synopsis: Setting SIGCHLD to SIG_IGN still leaves zombies under threads State-Changed-From-To: open->suspended State-Changed-By: maxim State-Changed-When: Mon Apr 24 19:28:37 UTC 2006 State-Changed-Why: In RELENG_5,6 and HEAD libc_r is deprecated in favour of libpthread and libthr. Nobody is working on libc_r bugs so mark this PR as suspended. http://www.freebsd.org/cgi/query-pr.cgi?pr=48856 From owner-freebsd-threads@FreeBSD.ORG Mon Apr 24 19:29:27 2006 Return-Path: X-Original-To: freebsd-threads@hub.freebsd.org Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 57C2016A404; Mon, 24 Apr 2006 19:29:27 +0000 (UTC) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1384143D46; Mon, 24 Apr 2006 19:29:27 +0000 (GMT) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (maxim@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3OJTQ34071946; Mon, 24 Apr 2006 19:29:26 GMT (envelope-from maxim@freefall.freebsd.org) Received: (from maxim@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3OJTQlI071942; Mon, 24 Apr 2006 19:29:26 GMT (envelope-from maxim) Date: Mon, 24 Apr 2006 19:29:26 GMT From: Maxim Konovalov Message-Id: <200604241929.k3OJTQlI071942@freefall.freebsd.org> To: enache@rdslink.ro, maxim@FreeBSD.org, freebsd-threads@FreeBSD.org Cc: Subject: Re: threads/49087: Signals lost in programs linked with libc_r 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, 24 Apr 2006 19:29:27 -0000 Synopsis: Signals lost in programs linked with libc_r State-Changed-From-To: open->suspended State-Changed-By: maxim State-Changed-When: Mon Apr 24 19:29:08 UTC 2006 State-Changed-Why: In RELENG_5,6 and HEAD libc_r is deprecated in favour of libpthread and libthr. Nobody is working on libc_r bugs so mark this PR as suspended. http://www.freebsd.org/cgi/query-pr.cgi?pr=49087 From owner-freebsd-threads@FreeBSD.ORG Mon Apr 24 19:29:45 2006 Return-Path: X-Original-To: freebsd-threads@hub.freebsd.org Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F50616A403; Mon, 24 Apr 2006 19:29:45 +0000 (UTC) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A412E43D55; Mon, 24 Apr 2006 19:29:44 +0000 (GMT) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (maxim@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3OJTiUl072000; Mon, 24 Apr 2006 19:29:44 GMT (envelope-from maxim@freefall.freebsd.org) Received: (from maxim@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3OJTilB071996; Mon, 24 Apr 2006 19:29:44 GMT (envelope-from maxim) Date: Mon, 24 Apr 2006 19:29:44 GMT From: Maxim Konovalov Message-Id: <200604241929.k3OJTilB071996@freefall.freebsd.org> To: lse@CryptoPro.ru, maxim@FreeBSD.org, freebsd-threads@FreeBSD.org Cc: Subject: Re: threads/76694: fork cause hang in dup()/close() function in child (-lc_r) 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, 24 Apr 2006 19:29:45 -0000 Synopsis: fork cause hang in dup()/close() function in child (-lc_r) State-Changed-From-To: open->suspended State-Changed-By: maxim State-Changed-When: Mon Apr 24 19:29:29 UTC 2006 State-Changed-Why: In RELENG_5,6 and HEAD libc_r is deprecated in favour of libpthread and libthr. Nobody is working on libc_r bugs so mark this PR as suspended. http://www.freebsd.org/cgi/query-pr.cgi?pr=76694 From owner-freebsd-threads@FreeBSD.ORG Mon Apr 24 19:30:13 2006 Return-Path: X-Original-To: freebsd-threads@hub.freebsd.org Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9670C16A404; Mon, 24 Apr 2006 19:30:13 +0000 (UTC) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4EA3943D48; Mon, 24 Apr 2006 19:30:13 +0000 (GMT) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (maxim@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3OJUDTK072079; Mon, 24 Apr 2006 19:30:13 GMT (envelope-from maxim@freefall.freebsd.org) Received: (from maxim@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3OJUClT072063; Mon, 24 Apr 2006 19:30:12 GMT (envelope-from maxim) Date: Mon, 24 Apr 2006 19:30:12 GMT From: Maxim Konovalov Message-Id: <200604241930.k3OJUClT072063@freefall.freebsd.org> To: mi@aldan.algebra.com, maxim@FreeBSD.org, freebsd-threads@FreeBSD.org Cc: Subject: Re: threads/84483: problems with devel/nspr and -lc_r on 4.x 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, 24 Apr 2006 19:30:13 -0000 Synopsis: problems with devel/nspr and -lc_r on 4.x State-Changed-From-To: open->suspended State-Changed-By: maxim State-Changed-When: Mon Apr 24 19:29:47 UTC 2006 State-Changed-Why: In RELENG_5,6 and HEAD libc_r is deprecated in favour of libpthread and libthr. Nobody is working on libc_r bugs so mark this PR as suspended. http://www.freebsd.org/cgi/query-pr.cgi?pr=84483 From owner-freebsd-threads@FreeBSD.ORG Mon Apr 24 19:30:44 2006 Return-Path: X-Original-To: freebsd-threads@hub.freebsd.org Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9483316A401; Mon, 24 Apr 2006 19:30:44 +0000 (UTC) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FC7C43D48; Mon, 24 Apr 2006 19:30:44 +0000 (GMT) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (maxim@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3OJUh8f073180; Mon, 24 Apr 2006 19:30:43 GMT (envelope-from maxim@freefall.freebsd.org) Received: (from maxim@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3OJUgPF073176; Mon, 24 Apr 2006 19:30:42 GMT (envelope-from maxim) Date: Mon, 24 Apr 2006 19:30:42 GMT From: Maxim Konovalov Message-Id: <200604241930.k3OJUgPF073176@freefall.freebsd.org> To: sven@ilse.net, maxim@FreeBSD.org, freebsd-threads@FreeBSD.org Cc: Subject: Re: threads/94467: send(), sendto() and sendmsg() are not correct in libc_r 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, 24 Apr 2006 19:30:44 -0000 Synopsis: send(), sendto() and sendmsg() are not correct in libc_r State-Changed-From-To: open->suspended State-Changed-By: maxim State-Changed-When: Mon Apr 24 19:30:26 UTC 2006 State-Changed-Why: In RELENG_5,6 and HEAD libc_r is deprecated in favour of libpthread and libthr. Nobody is working on libc_r bugs so mark this PR as suspended. http://www.freebsd.org/cgi/query-pr.cgi?pr=94467 From owner-freebsd-threads@FreeBSD.ORG Mon Apr 24 19:31:46 2006 Return-Path: X-Original-To: freebsd-threads@hub.freebsd.org Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3EF9916A405; Mon, 24 Apr 2006 19:31:46 +0000 (UTC) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE0FF43D46; Mon, 24 Apr 2006 19:31:45 +0000 (GMT) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (maxim@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3OJVjr4073301; Mon, 24 Apr 2006 19:31:45 GMT (envelope-from maxim@freefall.freebsd.org) Received: (from maxim@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3OJVjPC073297; Mon, 24 Apr 2006 19:31:45 GMT (envelope-from maxim) Date: Mon, 24 Apr 2006 19:31:45 GMT From: Maxim Konovalov Message-Id: <200604241931.k3OJVjPC073297@freefall.freebsd.org> To: steve@Watt.COM, maxim@FreeBSD.org, freebsd-threads@FreeBSD.org Cc: Subject: Re: threads/30464: pthread mutex attributes -- pshared 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, 24 Apr 2006 19:31:46 -0000 Synopsis: pthread mutex attributes -- pshared State-Changed-From-To: open->suspended State-Changed-By: maxim State-Changed-When: Mon Apr 24 19:30:48 UTC 2006 State-Changed-Why: Awaiting patches. http://www.freebsd.org/cgi/query-pr.cgi?pr=30464 From owner-freebsd-threads@FreeBSD.ORG Mon Apr 24 19:32:06 2006 Return-Path: X-Original-To: freebsd-threads@hub.freebsd.org Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 239B716A403; Mon, 24 Apr 2006 19:32:06 +0000 (UTC) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D2D9643D46; Mon, 24 Apr 2006 19:32:05 +0000 (GMT) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (maxim@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3OJW55l073351; Mon, 24 Apr 2006 19:32:05 GMT (envelope-from maxim@freefall.freebsd.org) Received: (from maxim@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3OJW57P073347; Mon, 24 Apr 2006 19:32:05 GMT (envelope-from maxim) Date: Mon, 24 Apr 2006 19:32:05 GMT From: Maxim Konovalov Message-Id: <200604241932.k3OJW57P073347@freefall.freebsd.org> To: archie@packetdesign.com, maxim@FreeBSD.org, freebsd-threads@FreeBSD.org Cc: Subject: Re: threads/37676: libc_r: msgsnd(), msgrcv(), pread(), pwrite() need wrappers 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, 24 Apr 2006 19:32:06 -0000 Synopsis: libc_r: msgsnd(), msgrcv(), pread(), pwrite() need wrappers State-Changed-From-To: open->suspended State-Changed-By: maxim State-Changed-When: Mon Apr 24 19:31:49 UTC 2006 State-Changed-Why: In RELENG_5,6 and HEAD libc_r is deprecated in favour of libpthread and libthr. Nobody is working on libc_r bugs so mark this PR as suspended. http://www.freebsd.org/cgi/query-pr.cgi?pr=37676 From owner-freebsd-threads@FreeBSD.ORG Mon Apr 24 19:32:47 2006 Return-Path: X-Original-To: freebsd-threads@hub.freebsd.org Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 89FE416A408; Mon, 24 Apr 2006 19:32:47 +0000 (UTC) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4452843D46; Mon, 24 Apr 2006 19:32:47 +0000 (GMT) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (maxim@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3OJWlPh073423; Mon, 24 Apr 2006 19:32:47 GMT (envelope-from maxim@freefall.freebsd.org) Received: (from maxim@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3OJWliN073419; Mon, 24 Apr 2006 19:32:47 GMT (envelope-from maxim) Date: Mon, 24 Apr 2006 19:32:47 GMT From: Maxim Konovalov Message-Id: <200604241932.k3OJWliN073419@freefall.freebsd.org> To: joe@mistachkin.com, maxim@FreeBSD.org, freebsd-threads@FreeBSD.org Cc: Subject: Re: threads/69020: pthreads library leaks _gc_mutex 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, 24 Apr 2006 19:32:47 -0000 Synopsis: pthreads library leaks _gc_mutex State-Changed-From-To: open->suspended State-Changed-By: maxim State-Changed-When: Mon Apr 24 19:32:20 UTC 2006 State-Changed-Why: In RELENG_5,6 and HEAD libc_r is deprecated in favour of libpthread and libthr. Nobody is working on libc_r bugs so mark this PR as suspended. http://www.freebsd.org/cgi/query-pr.cgi?pr=69020 From owner-freebsd-threads@FreeBSD.ORG Mon Apr 24 19:33:11 2006 Return-Path: X-Original-To: freebsd-threads@hub.freebsd.org Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F241616A403; Mon, 24 Apr 2006 19:33:11 +0000 (UTC) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACE6443D46; Mon, 24 Apr 2006 19:33:11 +0000 (GMT) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (maxim@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3OJXBbc073505; Mon, 24 Apr 2006 19:33:11 GMT (envelope-from maxim@freefall.freebsd.org) Received: (from maxim@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3OJXBct073501; Mon, 24 Apr 2006 19:33:11 GMT (envelope-from maxim) Date: Mon, 24 Apr 2006 19:33:11 GMT From: Maxim Konovalov Message-Id: <200604241933.k3OJXBct073501@freefall.freebsd.org> To: shh@ricochet.net, maxim@FreeBSD.org, freebsd-threads@FreeBSD.org Cc: Subject: Re: kern/19247: uthread_sigaction.c does not do anything wrt SA_NOCLDWAIT 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, 24 Apr 2006 19:33:12 -0000 Synopsis: uthread_sigaction.c does not do anything wrt SA_NOCLDWAIT State-Changed-From-To: open->suspended State-Changed-By: maxim State-Changed-When: Mon Apr 24 19:32:55 UTC 2006 State-Changed-Why: In RELENG_5,6 and HEAD libc_r is deprecated in favour of libpthread and libthr. Nobody is working on libc_r bugs so mark this PR as suspended. http://www.freebsd.org/cgi/query-pr.cgi?pr=19247 From owner-freebsd-threads@FreeBSD.ORG Mon Apr 24 19:33:30 2006 Return-Path: X-Original-To: freebsd-threads@hub.freebsd.org Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D678016A405; Mon, 24 Apr 2006 19:33:30 +0000 (UTC) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8303743D58; Mon, 24 Apr 2006 19:33:30 +0000 (GMT) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (maxim@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3OJXU9I073562; Mon, 24 Apr 2006 19:33:30 GMT (envelope-from maxim@freefall.freebsd.org) Received: (from maxim@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3OJXThd073558; Mon, 24 Apr 2006 19:33:30 GMT (envelope-from maxim) Date: Mon, 24 Apr 2006 19:33:30 GMT From: Maxim Konovalov Message-Id: <200604241933.k3OJXThd073558@freefall.freebsd.org> To: grubba@roxen.com, maxim@FreeBSD.org, freebsd-threads@FreeBSD.org Cc: Subject: Re: kern/22190: A threaded read(2) from a socketpair(2) fd can sometimes fail with errno 19 (ENODEV) 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, 24 Apr 2006 19:33:30 -0000 Synopsis: A threaded read(2) from a socketpair(2) fd can sometimes fail with errno 19 (ENODEV) State-Changed-From-To: open->suspended State-Changed-By: maxim State-Changed-When: Mon Apr 24 19:33:14 UTC 2006 State-Changed-Why: In RELENG_5,6 and HEAD libc_r is deprecated in favour of libpthread and libthr. Nobody is working on libc_r bugs so mark this PR as suspended. http://www.freebsd.org/cgi/query-pr.cgi?pr=22190 From owner-freebsd-threads@FreeBSD.ORG Thu Apr 27 04:28:08 2006 Return-Path: X-Original-To: freebsd-threads@hub.freebsd.org Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FCCF16A402; Thu, 27 Apr 2006 04:28:08 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EEE4543D45; Thu, 27 Apr 2006 04:28:07 +0000 (GMT) (envelope-from davidxu@FreeBSD.org) Received: from freefall.freebsd.org (davidxu@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3R4S7J0010564; Thu, 27 Apr 2006 04:28:07 GMT (envelope-from davidxu@freefall.freebsd.org) Received: (from davidxu@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3R4S7X1010560; Thu, 27 Apr 2006 04:28:07 GMT (envelope-from davidxu) Date: Thu, 27 Apr 2006 04:28:07 GMT From: David Xu Message-Id: <200604270428.k3R4S7X1010560@freefall.freebsd.org> To: john@kak-sam.to, davidxu@FreeBSD.org, freebsd-threads@FreeBSD.org Cc: Subject: Re: threads/94176: KSE: sigwait doesn't recieve SIGWINCH sent by pthread_kill() or kill -WINCH 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: Thu, 27 Apr 2006 04:28:08 -0000 Synopsis: KSE: sigwait doesn't recieve SIGWINCH sent by pthread_kill() or kill -WINCH State-Changed-From-To: open->closed State-Changed-By: davidxu State-Changed-When: Thu Apr 27 04:23:42 UTC 2006 State-Changed-Why: The current behavior is traditional and conforms to POSIX, I don't intend to change it. http://www.freebsd.org/cgi/query-pr.cgi?pr=94176 From owner-freebsd-threads@FreeBSD.ORG Thu Apr 27 14:20:10 2006 Return-Path: X-Original-To: freebsd-threads@hub.freebsd.org Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A579516A403 for ; Thu, 27 Apr 2006 14:20:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id F02E543D48 for ; Thu, 27 Apr 2006 14:20:09 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3REK9DD054719 for ; Thu, 27 Apr 2006 14:20:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3REK9Mk054718; Thu, 27 Apr 2006 14:20:09 GMT (envelope-from gnats) Date: Thu, 27 Apr 2006 14:20:09 GMT Message-Id: <200604271420.k3REK9Mk054718@freefall.freebsd.org> To: freebsd-threads@FreeBSD.org From: Andriy Gapon Cc: Subject: Re: threads/94176: KSE: sigwait doesn't recieve SIGWINCH sent by pthread_kill() or kill -WINCH X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andriy Gapon List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 14:20:10 -0000 The following reply was made to PR threads/94176; it has been noted by GNATS. From: Andriy Gapon To: bug-followup@FreeBSD.org, john@kak-sam.to, David Xu Cc: Subject: Re: threads/94176: KSE: sigwait doesn't recieve SIGWINCH sent by pthread_kill() or kill -WINCH Date: Thu, 27 Apr 2006 17:12:27 +0300 David, John, maybe it would be beneficial to the general programmer public to add something similar to the NOTES section of the following man page to our man page for sigwait: http://condor.wesleyan.edu/cgi-bin/man.cgi?section=2&topic=sigwait Using the original example, it would mean adding something like the following code to get the desired behavior: void dummy_handler(int signum) { return; } void *thread(void* unused) { struct sigaction sa; sa.sa_handler = dummy_handler; sigemptyset(&sa.sa_mask); sa.sa_flags = 0; sigaction(SIGWINCH, &sa, NULL); . . . -- Andriy Gapon From owner-freebsd-threads@FreeBSD.ORG Thu Apr 27 16:36:46 2006 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 2FD0316A401 for ; Thu, 27 Apr 2006 16:36:46 +0000 (UTC) (envelope-from bmah@freebsd.org) Received: from a.mail.sonic.net (a.mail.sonic.net [64.142.16.245]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE06F43D45 for ; Thu, 27 Apr 2006 16:36:45 +0000 (GMT) (envelope-from bmah@freebsd.org) Received: from [192.168.40.183] (64-84-9-2-sf-gw.ncircle.com [64.84.9.2]) (authenticated bits=0) by a.mail.sonic.net (8.13.6/8.13.3) with ESMTP id k3RGajcp002632 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 27 Apr 2006 09:36:45 -0700 Message-ID: <4450F31D.8060607@freebsd.org> Date: Thu, 27 Apr 2006 09:36:45 -0700 From: "Bruce A. Mah" User-Agent: Thunderbird 1.5.0.2 (X11/20060424) MIME-Version: 1.0 To: freebsd-threads@freebsd.org X-Enigmail-Version: 0.94.0.0 OpenPGP: id=5ba052c3 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig4CB4658F20E4BFD68349EEEF" Subject: GDB and libc_r-using programs 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: Thu, 27 Apr 2006 16:36:46 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4CB4658F20E4BFD68349EEEF Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi folks-- I ran into a problem yesterday at ${ORKPLACE} using GDB to debug a multi-threaded program linked with libc_r. The environment is FreeBSD 6.0-RELEASE/i386, although I see the same results on recent RELENG_6/i386= =2E If the program is linked against libpthread or libthr, GDB properly detects the threading library in use (presumably there's some autodetection logic around libthread_db?). When I say "properly", I mean that, for example, "info threads" gives reasonable and expected information. If I link the same program with libc_r, however, GDB seems to have some problems, like this example with a silly little test program (ignore the output): localhost:threads% gdb thread-test-user GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you = are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for detail= s. This GDB was configured as "i386-marcel-freebsd"... (gdb) run Starting program: /home/bmah/nCircle/threads/thread-test-user warning: Unable to get location for thread creation breakpoint: generic error [New LWP 100169] begin main: gCounter=3D1 didiCannot find thread, Thread ID=3D1, generic error (gdb) info threads Cannot find thread, Thread ID=3D5, generic error My questions are: Should I expect this to work? Do I need to tell GDB (somehow?) explicitly that I'm using libc_r, as opposed to the other two libraries? A combination of Googling, UTSL, and browsing this year's postings to the threads@ list didn't yield an answer to this. Thanks for any insights! Bruce. PS. Yes, I know that libc_r will be going away, and the real solution to this is to link against libpthread or libthr. That is indeed the direction we want to take, but for the extremely short term, being able to have GDB do something useful with this program would be very nice. --------------enig4CB4658F20E4BFD68349EEEF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEUPMd2MoxcVugUsMRApWIAKCNcOpXPBe6zwEi3J9mzGR8dsZ1qQCfVejV Wo4UhoafHIQKk88nhnPUhvk= =Yh8i -----END PGP SIGNATURE----- --------------enig4CB4658F20E4BFD68349EEEF-- From owner-freebsd-threads@FreeBSD.ORG Thu Apr 27 17:00:35 2006 Return-Path: X-Original-To: freebsd-threads@hub.freebsd.org Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8B46216A403 for ; Thu, 27 Apr 2006 17:00:35 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1870B43D4C for ; Thu, 27 Apr 2006 17:00:35 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3RH0Yem063768 for ; Thu, 27 Apr 2006 17:00:34 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3RH0Yp2063767; Thu, 27 Apr 2006 17:00:34 GMT (envelope-from gnats) Date: Thu, 27 Apr 2006 17:00:34 GMT Message-Id: <200604271700.k3RH0Yp2063767@freefall.freebsd.org> To: freebsd-threads@FreeBSD.org From: eugeny gladkih Cc: Subject: Re: threads/94176: KSE: sigwait doesn't recieve SIGWINCH sent by pthread_kill() or kill -WINCH X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: eugeny gladkih List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 17:00:35 -0000 The following reply was made to PR threads/94176; it has been noted by GNATS. From: eugeny gladkih To: Andriy Gapon Cc: bug-followup@FreeBSD.org, David Xu Subject: Re: threads/94176: KSE: sigwait doesn't recieve SIGWINCH sent by pthread_kill() or kill -WINCH Date: Thu, 27 Apr 2006 20:50:59 +0400 >>>>> "AG" == Andriy Gapon writes: AG> David, John, AG> maybe it would be beneficial to the general programmer public to add AG> something similar to the NOTES section of the following man page to our AG> man page for sigwait: AG> http://condor.wesleyan.edu/cgi-bin/man.cgi?section=2&topic=sigwait AG> Using the original example, it would mean adding something like the AG> following code to get the desired behavior: AG> void dummy_handler(int signum) AG> { AG> return; AG> } AG> void *thread(void* unused) { AG> struct sigaction sa; AG> sa.sa_handler = dummy_handler; AG> sigemptyset(&sa.sa_mask); AG> sa.sa_flags = 0; AG> sigaction(SIGWINCH, &sa, NULL); AG> . AG> . AG> . why so stupid code should be presented in all software wanted just to wait the signal? :( sigwait'ed signal is not ignored one! we DON'T ignore it we DO wait for it. I'm afraid there is another problem with SIGTERM which will terminate process. am I right, yeah? -- Yours sincerely, Eugeny. Doctor Web, Ltd. http://www.drweb.com From owner-freebsd-threads@FreeBSD.ORG Thu Apr 27 18:29:36 2006 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 9751416A47E for ; Thu, 27 Apr 2006 18:29:36 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 163D643D4C for ; Thu, 27 Apr 2006 18:29:35 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.ntplx.net (8.13.6/8.13.6/NETPLEX) with ESMTP id k3RITMMr017415; Thu, 27 Apr 2006 14:29:23 -0400 (EDT) Date: Thu, 27 Apr 2006 14:29:22 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: eugeny gladkih In-Reply-To: <200604271700.k3RH0Yp2063767@freefall.freebsd.org> Message-ID: References: <200604271700.k3RH0Yp2063767@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) Cc: freebsd-threads@freebsd.org Subject: Re: threads/94176: KSE: sigwait doesn't recieve SIGWINCH sent by pthread_kill() or kill -WINCH X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 18:29:36 -0000 On Thu, 27 Apr 2006, eugeny gladkih wrote: > The following reply was made to PR threads/94176; it has been noted by GNATS. > > From: eugeny gladkih > To: Andriy Gapon > Cc: bug-followup@FreeBSD.org, David Xu > Subject: Re: threads/94176: KSE: sigwait doesn't recieve SIGWINCH sent by pthread_kill() or kill -WINCH > Date: Thu, 27 Apr 2006 20:50:59 +0400 > > >>>>> "AG" == Andriy Gapon writes: > > AG> David, John, > > AG> maybe it would be beneficial to the general programmer public to add > AG> something similar to the NOTES section of the following man page to our > AG> man page for sigwait: > AG> http://condor.wesleyan.edu/cgi-bin/man.cgi?section=2&topic=sigwait > > AG> Using the original example, it would mean adding something like the > AG> following code to get the desired behavior: > > AG> void dummy_handler(int signum) > AG> { > AG> return; > AG> } > > AG> void *thread(void* unused) { > AG> struct sigaction sa; > AG> sa.sa_handler = dummy_handler; > AG> sigemptyset(&sa.sa_mask); > AG> sa.sa_flags = 0; > AG> sigaction(SIGWINCH, &sa, NULL); > AG> . > AG> . > AG> . > > > why so stupid code should be presented in all software wanted > just to wait the signal? :( Why so stupid programs be written to expect non-portable and non-POSIX behavior? Seriously, go read the POSIX spec. Then try your assumptions on Solaris where it exhibits the same behavior as FreeBSD with regard to SIGWINCH (or any other ignored signal). -- DE From owner-freebsd-threads@FreeBSD.ORG Thu Apr 27 18:48:14 2006 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 90B2E16A402; Thu, 27 Apr 2006 18:48:14 +0000 (UTC) (envelope-from john@drweb.com) Received: from mail.kak-sam.to (kak-sam.to [81.211.95.190]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B63E43D70; Thu, 27 Apr 2006 18:48:09 +0000 (GMT) (envelope-from john@drweb.com) Received: by mail.kak-sam.to (Postfix, from userid 1002) id 85E5D59A3; Fri, 28 Apr 2006 07:48:08 +1300 (TOT) Received: from hq.kak-sam.to (unknown [84.242.6.177]) by mail.kak-sam.to (Postfix) with ESMTP id 350985994; Fri, 28 Apr 2006 07:48:07 +1300 (TOT) Received: from amd64.home (amd64.home [192.168.0.222]) by hq.kak-sam.to (Postfix) with ESMTP id AF9CF15227; Thu, 27 Apr 2006 22:48:06 +0400 (MSD) Received: by amd64.home (Postfix, from userid 1000) id 9F6B04029FE0; Thu, 27 Apr 2006 22:48:06 +0400 (MSD) From: eugeny gladkih To: Daniel Eischen Organization: Doctor Web, Ltd. References: <200604271700.k3RH0Yp2063767@freefall.freebsd.org> X-Comment-To: Daniel Eischen Date: Thu, 27 Apr 2006 22:48:06 +0400 In-Reply-To: (Daniel Eischen's message of "Thu, 27 Apr 2006 14:29:22 -0400 (EDT)") Message-ID: <8764kusvmh.fsf@amd64.home> User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on kak-sam.to X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-threads@freebsd.org Subject: Re: threads/94176: KSE: sigwait doesn't recieve SIGWINCH sent by pthread_kill() or kill -WINCH 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: Thu, 27 Apr 2006 18:48:14 -0000 >>>>> "DE" == Daniel Eischen writes: AG> maybe it would be beneficial to the general programmer public to add AG> something similar to the NOTES section of the following man page to our AG> man page for sigwait: AG> http://condor.wesleyan.edu/cgi-bin/man.cgi?section=2&topic=sigwait >> AG> Using the original example, it would mean adding something like the AG> following code to get the desired behavior: >> AG> void dummy_handler(int signum) AG> { AG> return; AG> } >> AG> void *thread(void* unused) { AG> struct sigaction sa; AG> sa.sa_handler = dummy_handler; AG> sigemptyset(&sa.sa_mask); AG> sa.sa_flags = 0; AG> sigaction(SIGWINCH, &sa, NULL); AG> . AG> . AG> . >> >> >> why so stupid code should be presented in all software wanted >> just to wait the signal? :( DE> Why so stupid programs be written to expect non-portable and DE> non-POSIX behavior? DE> Seriously, go read the POSIX spec. Then try your assumptions DE> on Solaris where it exhibits the same behavior as FreeBSD DE> with regard to SIGWINCH (or any other ignored signal). no, Solaris & Linux go the right way, this code are used on them both, and AIX, too. and even FreeBSD 4.x and 5.X with libc_r. your comments? -- Yours sincerely, Eugeny. Doctor Web, Ltd. http://www.drweb.com From owner-freebsd-threads@FreeBSD.ORG Thu Apr 27 18:57:45 2006 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 0C58316A400 for ; Thu, 27 Apr 2006 18:57:45 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C65343D73 for ; Thu, 27 Apr 2006 18:57:44 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.ntplx.net (8.13.6/8.13.6/NETPLEX) with ESMTP id k3RIvVCT017384; Thu, 27 Apr 2006 14:57:31 -0400 (EDT) Date: Thu, 27 Apr 2006 14:57:31 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: eugeny gladkih In-Reply-To: <8764kusvmh.fsf@amd64.home> Message-ID: References: <200604271700.k3RH0Yp2063767@freefall.freebsd.org> <8764kusvmh.fsf@amd64.home> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) Cc: freebsd-threads@freebsd.org Subject: Re: threads/94176: KSE: sigwait doesn't recieve SIGWINCH sent by pthread_kill() or kill -WINCH X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 18:57:45 -0000 On Thu, 27 Apr 2006, eugeny gladkih wrote: >>>>>> "DE" == Daniel Eischen writes: > > AG> maybe it would be beneficial to the general programmer public to add > AG> something similar to the NOTES section of the following man page to our > AG> man page for sigwait: > AG> http://condor.wesleyan.edu/cgi-bin/man.cgi?section=2&topic=sigwait > >> > AG> Using the original example, it would mean adding something like the > AG> following code to get the desired behavior: > >> > AG> void dummy_handler(int signum) > AG> { > AG> return; > AG> } > >> > AG> void *thread(void* unused) { > AG> struct sigaction sa; > AG> sa.sa_handler = dummy_handler; > AG> sigemptyset(&sa.sa_mask); > AG> sa.sa_flags = 0; > AG> sigaction(SIGWINCH, &sa, NULL); > AG> . > AG> . > AG> . > >> > >> > >> why so stupid code should be presented in all software wanted > >> just to wait the signal? :( > > DE> Why so stupid programs be written to expect non-portable and > DE> non-POSIX behavior? > > DE> Seriously, go read the POSIX spec. Then try your assumptions > DE> on Solaris where it exhibits the same behavior as FreeBSD > DE> with regard to SIGWINCH (or any other ignored signal). > > no, Solaris & Linux go the right way, this code are used on them > both, and AIX, too. and even FreeBSD 4.x and 5.X with > libc_r. your comments? Not true. I just tested it on Solaris 9. If you don't install a signal handler for SIGWINCH, it is ignored. I also compiled my test program on Solaris with -D_POSIX_PTHREAD_SEMANTICS and linked with -lpthread. http://people.freebsd.org/~deischen/kse/test_waitone.c -- DE From owner-freebsd-threads@FreeBSD.ORG Thu Apr 27 19:28:57 2006 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 B7F6016A400; Thu, 27 Apr 2006 19:28:57 +0000 (UTC) (envelope-from john@drweb.com) Received: from mail.kak-sam.to (kak-sam.to [81.211.95.190]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9630B43D49; Thu, 27 Apr 2006 19:28:56 +0000 (GMT) (envelope-from john@drweb.com) Received: by mail.kak-sam.to (Postfix, from userid 1002) id 8A11759A8; Fri, 28 Apr 2006 08:28:55 +1300 (TOT) Received: from hq.kak-sam.to (unknown [84.242.6.177]) by mail.kak-sam.to (Postfix) with ESMTP id D007B59A5; Fri, 28 Apr 2006 08:28:53 +1300 (TOT) Received: from amd64.home (amd64.home [192.168.0.222]) by hq.kak-sam.to (Postfix) with ESMTP id 8220315227; Thu, 27 Apr 2006 23:28:52 +0400 (MSD) Received: by amd64.home (Postfix, from userid 1000) id 72E3C4029FE0; Thu, 27 Apr 2006 23:28:52 +0400 (MSD) From: eugeny gladkih To: Daniel Eischen Organization: Doctor Web, Ltd. References: <200604271700.k3RH0Yp2063767@freefall.freebsd.org> <8764kusvmh.fsf@amd64.home> X-Comment-To: Daniel Eischen Date: Thu, 27 Apr 2006 23:28:52 +0400 In-Reply-To: (Daniel Eischen's message of "Thu, 27 Apr 2006 14:57:31 -0400 (EDT)") Message-ID: <8764kurf63.fsf@amd64.home> User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on kak-sam.to X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-threads@freebsd.org Subject: Re: threads/94176: KSE: sigwait doesn't recieve SIGWINCH sent by pthread_kill() or kill -WINCH 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: Thu, 27 Apr 2006 19:28:57 -0000 >>>>> "DE" == Daniel Eischen writes: DE> Not true. I just tested it on Solaris 9. If you don't DE> install a signal handler for SIGWINCH, it is ignored. DE> I also compiled my test program on Solaris with DE> -D_POSIX_PTHREAD_SEMANTICS and linked with -lpthread. DE> http://people.freebsd.org/~deischen/kse/test_waitone.c 404 code's been got well ;) but I've lost the interest, anyway. I'm able to use a preprocessor. let it be, the simplest way don't ask why, just write the comment for wonder-struck readers. they'll be funny a little ;) #if defined( __FreeBSD__ ) static void freebsd_shit() { } static setup_freebsd_shit() { signal( freebsd_shit, SIGIO ); signal( freebsd_shit, SIGWINCH ); signal( freebsd_shit, SIGUSR1 ); signal( freebsd_shit, SIGUSR2 ); signal( freebsd_shit, SIGHUP ); signal( freebsd_shit, SIGTERM ); signal( freebsd_shit, SIGQUIT ); signal( freebsd_shit, SIGINT ); signal( freebsd_shit, SIGPIPE ); #if defined( SIGCHLD ) && defined( SIGCLD ) signal( freebsd_shit, SIGCHLD ); #if SIGCLD != SIGCHLD signal( freebsd_shit, SIGCLD ); #endif #elif defined( SIGCHLD ) signal( freebsd_shit, SIGCHLD ); #elif defined( SIGCLD ) signal( freebsd_shit, SIGCLD ); #endif } #endif ... void signals_t::handler( void* ) { LOG( DEBUG, ("[Signal] Handler started") ); #if defined( __FreeBSD__ ) setup_freebsd_shit(); #endif ... } -- Yours sincerely, Eugeny. Doctor Web, Ltd. http://www.drweb.com From owner-freebsd-threads@FreeBSD.ORG Thu Apr 27 19:34:03 2006 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 5DE6F16A401 for ; Thu, 27 Apr 2006 19:34:03 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECDD543D49 for ; Thu, 27 Apr 2006 19:34:02 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.ntplx.net (8.13.6/8.13.6/NETPLEX) with ESMTP id k3RJXpew024956; Thu, 27 Apr 2006 15:33:51 -0400 (EDT) Date: Thu, 27 Apr 2006 15:33:51 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: eugeny gladkih In-Reply-To: <8764kurf63.fsf@amd64.home> Message-ID: References: <200604271700.k3RH0Yp2063767@freefall.freebsd.org> <8764kusvmh.fsf@amd64.home> <8764kurf63.fsf@amd64.home> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) Cc: freebsd-threads@freebsd.org Subject: Re: threads/94176: KSE: sigwait doesn't recieve SIGWINCH sent by pthread_kill() or kill -WINCH X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 19:34:03 -0000 On Thu, 27 Apr 2006, eugeny gladkih wrote: >>>>>> "DE" == Daniel Eischen writes: > > DE> Not true. I just tested it on Solaris 9. If you don't > DE> install a signal handler for SIGWINCH, it is ignored. > DE> I also compiled my test program on Solaris with > DE> -D_POSIX_PTHREAD_SEMANTICS and linked with -lpthread. > > DE> http://people.freebsd.org/~deischen/kse/test_waitone.c Sorry, that should be: http://people.freebsd.org/~deischen/kse/test_sigwaitone.c -- DE From owner-freebsd-threads@FreeBSD.ORG Thu Apr 27 23:30:18 2006 Return-Path: X-Original-To: freebsd-threads@hub.freebsd.org Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 565AD16A422 for ; Thu, 27 Apr 2006 23:30:18 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B588943D6D for ; Thu, 27 Apr 2006 23:30:13 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3RNUDgC088412 for ; Thu, 27 Apr 2006 23:30:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3RNUDeo088408; Thu, 27 Apr 2006 23:30:13 GMT (envelope-from gnats) Date: Thu, 27 Apr 2006 23:30:13 GMT Message-Id: <200604272330.k3RNUDeo088408@freefall.freebsd.org> To: freebsd-threads@FreeBSD.org From: David Xu Cc: Subject: Re: threads/94176: KSE: sigwait doesn't recieve SIGWINCH sent by pthread_kill() or kill -WINCH X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: David Xu List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 23:30:18 -0000 The following reply was made to PR threads/94176; it has been noted by GNATS. From: David Xu To: eugeny gladkih Cc: Andriy Gapon , bug-followup@freebsd.org Subject: Re: threads/94176: KSE: sigwait doesn't recieve SIGWINCH sent by pthread_kill() or kill -WINCH Date: Fri, 28 Apr 2006 07:24:09 +0800 On Friday 28 April 2006 00:50, eugeny gladkih wrote: > >>>>> "AG" == Andriy Gapon writes: > > AG> David, John, > > AG> maybe it would be beneficial to the general programmer public to add > AG> something similar to the NOTES section of the following man page to > our AG> man page for sigwait: > AG> http://condor.wesleyan.edu/cgi-bin/man.cgi?section=2&topic=sigwait > > AG> Using the original example, it would mean adding something like the > AG> following code to get the desired behavior: > > AG> void dummy_handler(int signum) > AG> { > AG> return; > AG> } > > AG> void *thread(void* unused) { > AG> struct sigaction sa; > AG> sa.sa_handler = dummy_handler; > AG> sigemptyset(&sa.sa_mask); > AG> sa.sa_flags = 0; > AG> sigaction(SIGWINCH, &sa, NULL); > AG> . > AG> . > AG> . > > > why so stupid code should be presented in all software wanted > just to wait the signal? :( > > sigwait'ed signal is not ignored one! we DON'T ignore it we DO > wait for it. I'm afraid there is another problem with SIGTERM > which will terminate process. am I right, yeah? hmm, there is always race condition between userland and kernel, guess what will happen if your thread is executing userland code and a signal is being delivered to the process whose action is IGNORE ? you are not waiting for the signal. the dummy signal action you have to install can only help you to catch bug if you forgot to mask it. in history, BSD throws aways signal immediately if the signal action is IGNORE, otherwise an ignored signal may cause a sleep to be interrupted, this can happen according to current sleep queue code and signal code. David Xu From owner-freebsd-threads@FreeBSD.ORG Fri Apr 28 09:50:22 2006 Return-Path: X-Original-To: freebsd-threads@hub.freebsd.org Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BBE0716A401 for ; Fri, 28 Apr 2006 09:50:22 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 321E443D49 for ; Fri, 28 Apr 2006 09:50:22 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3S9oL5T036628 for ; Fri, 28 Apr 2006 09:50:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3S9oLSd036627; Fri, 28 Apr 2006 09:50:21 GMT (envelope-from gnats) Date: Fri, 28 Apr 2006 09:50:21 GMT Message-Id: <200604280950.k3S9oLSd036627@freefall.freebsd.org> To: freebsd-threads@FreeBSD.org From: eugeny gladkih Cc: Subject: Re: threads/94176: KSE: sigwait doesn't recieve SIGWINCH sent by pthread_kill() or kill -WINCH X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: eugeny gladkih List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 09:50:22 -0000 The following reply was made to PR threads/94176; it has been noted by GNATS. From: eugeny gladkih To: David Xu Cc: Andriy Gapon , bug-followup@freebsd.org Subject: Re: threads/94176: KSE: sigwait doesn't recieve SIGWINCH sent by pthread_kill() or kill -WINCH Date: Fri, 28 Apr 2006 13:40:25 +0400 >>>>> "DX" == David Xu writes: AG> maybe it would be beneficial to the general programmer public to add AG> something similar to the NOTES section of the following man page to >> our AG> man page for sigwait: AG> http://condor.wesleyan.edu/cgi-bin/man.cgi?section=2&topic=sigwait >> AG> Using the original example, it would mean adding something like the AG> following code to get the desired behavior: >> AG> void dummy_handler(int signum) AG> { AG> return; AG> } >> AG> void *thread(void* unused) { AG> struct sigaction sa; AG> sa.sa_handler = dummy_handler; AG> sigemptyset(&sa.sa_mask); AG> sa.sa_flags = 0; AG> sigaction(SIGWINCH, &sa, NULL); AG> . AG> . AG> . >> >> >> why so stupid code should be presented in all software wanted >> just to wait the signal? :( >> >> sigwait'ed signal is not ignored one! we DON'T ignore it we DO >> wait for it. I'm afraid there is another problem with SIGTERM >> which will terminate process. am I right, yeah? DX> hmm, there is always race condition between userland and kernel, DX> guess what will happen if your thread is executing userland code and DX> a signal is being delivered to the process whose action is IGNORE ? DX> you are not waiting for the signal. DX> the dummy signal action you have to install can only help you to catch DX> bug if you forgot to mask it. in history, BSD throws aways signal DX> immediately if the signal action is IGNORE, otherwise an ignored signal DX> may cause a sleep to be interrupted, this can happen according to DX> current sleep queue code and signal code. well, Q&A department was wrong saying Solaris version works well. so, it's not FreeBSD problem, I can agree now. thanx, everybody! -- Yours sincerely, Eugeny. Doctor Web, Ltd. http://www.drweb.com From owner-freebsd-threads@FreeBSD.ORG Fri Apr 28 09:50:36 2006 Return-Path: X-Original-To: freebsd-threads@hub.freebsd.org Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0965216A403 for ; Fri, 28 Apr 2006 09:50:35 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B8FC943D46 for ; Fri, 28 Apr 2006 09:50:35 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3S9oZOu036659 for ; Fri, 28 Apr 2006 09:50:35 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3S9oZHj036658; Fri, 28 Apr 2006 09:50:35 GMT (envelope-from gnats) Date: Fri, 28 Apr 2006 09:50:35 GMT Message-Id: <200604280950.k3S9oZHj036658@freefall.freebsd.org> To: freebsd-threads@FreeBSD.org From: Andriy Gapon Cc: Subject: Re: threads/94176: KSE: sigwait doesn't recieve SIGWINCH sent by pthread_kill() or kill -WINCH X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andriy Gapon List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 09:50:36 -0000 The following reply was made to PR threads/94176; it has been noted by GNATS. From: Andriy Gapon To: eugeny gladkih Cc: bug-followup@FreeBSD.org, David Xu Subject: Re: threads/94176: KSE: sigwait doesn't recieve SIGWINCH sent by pthread_kill() or kill -WINCH Date: Fri, 28 Apr 2006 12:48:23 +0300 on 27/04/2006 19:50 eugeny gladkih said the following: >>>>>> "AG" == Andriy Gapon writes: [snip] > AG> http://condor.wesleyan.edu/cgi-bin/man.cgi?section=2&topic=sigwait [snip] > why so stupid code should be presented in all software wanted > just to wait the signal? :( Eugeny, I already read your subsequent email, but I still would like to point that the link I gave and what David says explain pretty good the reason why this is needed. > sigwait'ed signal is not ignored one! we DON'T ignore it we DO > wait for it. I'm afraid there is another problem with SIGTERM > which will terminate process. am I right, yeah? > -- Andriy Gapon