From owner-freebsd-threads@FreeBSD.ORG Mon Feb 20 11:02: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 E8F9116A428 for ; Mon, 20 Feb 2006 11:02:56 +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 6E87943D45 for ; Mon, 20 Feb 2006 11:02:56 +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 k1KB2tYw083759 for ; Mon, 20 Feb 2006 11:02:55 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1KB2sYO083753 for freebsd-threads@freebsd.org; Mon, 20 Feb 2006 11:02:54 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 20 Feb 2006 11:02:54 GMT Message-Id: <200602201102.k1KB2sYO083753@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, 20 Feb 2006 11:02:57 -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 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 30 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 Feb 20 11:20: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 A102016A420 for ; Mon, 20 Feb 2006 11:20:06 +0000 (GMT) (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 102E543D70 for ; Mon, 20 Feb 2006 11:20:04 +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 k1KBK3St087926 for ; Mon, 20 Feb 2006 11:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1KBK3Wb087921; Mon, 20 Feb 2006 11:20:03 GMT (envelope-from gnats) Resent-Date: Mon, 20 Feb 2006 11:20:03 GMT Resent-Message-Id: <200602201120.k1KBK3Wb087921@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-threads@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ivan Getta Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B91716A420 for ; Mon, 20 Feb 2006 11:14:18 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 76D2243D78 for ; Mon, 20 Feb 2006 11:13:55 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k1KBDsPQ028042 for ; Mon, 20 Feb 2006 11:13:54 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k1KBDs9b028040; Mon, 20 Feb 2006 11:13:54 GMT (envelope-from nobody) Message-Id: <200602201113.k1KBDs9b028040@www.freebsd.org> Date: Mon, 20 Feb 2006 11:13:54 GMT From: Ivan Getta To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: threads/93592: Loss of wakeup in pthread_cond_timedwait(), libpthread (KSE), Intel Hyper-Threading Technology (HTT), FreeBSD Production Release 6.0 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, 20 Feb 2006 11:20:06 -0000 >Number: 93592 >Category: threads >Synopsis: Loss of wakeup in pthread_cond_timedwait(), libpthread (KSE), Intel Hyper-Threading Technology (HTT), FreeBSD Production Release 6.0 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-threads >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Feb 20 11:20:03 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Ivan Getta >Release: FreeBSD 6.0-RELEASE >Organization: Wicom Technologies >Environment: FreeBSD rabbit.wicom.kiev.ua 6.0-RELEASE-p1 FreeBSD 6.0-RELEASE-p1 #2: Mon Jan 9 20:29:47 EET 2006 rus_s@rabbit.wicom.kiev.ua:/usr/src/sys/i386/compile/RABBIT_A i386 hw.model: Intel(R) Pentium(R) 4 CPU 2.80GHz FreeBSD d33.wicomtechnologies.com 5.3-RELEASE-p15 FreeBSD 5.3-RELEASE-p15 #2: Mon May 16 20:08:23 EEST 2005 rus_s@d33.wicomtechnologies.com:/usr/src/sys/i386/compile/D33_POLL i386 hw.model: Intel(R) Pentium(R) 4 CPU 3.00GHz >Description: A problem was detected and repeated by means of a test-program (see source code below). The test-rogram runs 40 threads which wait in a loop on the same condition variable with timeout. Condition never signals, threads are waking up on timeout and wait again. The problem is, that thread may not wake up on timeout and sleeps infinite after a call to pthread_cond_timedwait(). The problem was detected whith hyper-threading (HT) turned on (machdep.hyperthreading_allowed=1) and exists both on Dell PE-750 (rabbit.wicom.kiev.ua 6.0-RELEASE-p1) as well as on another server with Intel SE7210TP1-E MB (d33.wicomtechnologies.com 5.3-RELEASE-p15). Threads do not fall into the infinite sleep when HT is off. The problem was detected when the test-program uses libpthread(KSE). When linked with other threading library (libc_r, libthr) the test-program does not detect any problems and works fine. >How-To-Repeat: Compile following C-source code and run it on Intel machine with HT enabled. Wait for ~1 hour (or less) while some threads will fall into infinite sleep. When detected infinite sleeping thread the program prints message like: "*** ERROR: Thread 7 is dead! (chkpoint=3)". C-source code: #include #include #include #include #include #define NUM_THREADS 40 #define MAX_WAIT 10 pthread_cond_t cv; pthread_mutex_t mut; int thrcount = 0; typedef struct _thrarg_t { int n; pthread_t tid; struct timespec ts_exit; int chkpoint; int dead; } thrarg_t; thrarg_t args[NUM_THREADS]; void delay(int ms) { struct timeval tv; tv.tv_sec = ms / 1000; // seconds tv.tv_usec = (ms % 1000) * 1000; // microseconds select(0, NULL, NULL, NULL, &tv); } void* thread_proc(void* arg) { int rc; thrarg_t* parg = (thrarg_t*)arg; unsigned long msec = 100 + (parg->n * 10); unsigned long sec = (msec / 1000); unsigned long nsec = ((msec % 1000) * 1000000); struct timespec ts; printf("Thread %d started (wait=%lu)\n", parg->n, msec); for ( ; ; ) { parg->chkpoint = 1; // // Lock the mutex // rc = pthread_mutex_lock(&mut); if (rc != 0) { printf("pthread_mutex_lock() returned %d\n", rc); break; } parg->chkpoint = 2; // // Prepare timeout value // clock_gettime(CLOCK_REALTIME, &ts); ts.tv_sec += sec; ts.tv_nsec += nsec; if (ts.tv_nsec >= 1000000000) { ts.tv_sec++; ts.tv_nsec -= 1000000000; } parg->ts_exit.tv_sec = ts.tv_sec; parg->ts_exit.tv_nsec = ts.tv_nsec; parg->chkpoint = 3; rc = pthread_cond_timedwait(&cv, &mut, &ts); if ((rc != 0) && (rc != ETIMEDOUT)) { printf("pthread_cond_timedwait() returned %d\n", rc); pthread_mutex_unlock(&mut); break; } else { if (parg->dead == 1) { printf("Thread %d alive!\n", parg->n); parg->dead = 0; thrcount++; } } parg->chkpoint = 4; // // Unlock the mutex // rc = pthread_mutex_unlock(&mut); if (rc != 0) { printf("pthread_mutex_unlock() returned %d\n", rc); break; } } printf("Thread %d terminated.\n", parg->n); parg->chkpoint = 5; thrcount--; // // Terminate the thread // pthread_exit(NULL); } int main(int argc, char* argv[]) { int rc, j; time_t t0, t1; rc = pthread_cond_init(&cv, NULL); if (rc != 0) { printf("pthread_cond_init() returned %d\n", rc); exit(1); } rc = pthread_mutex_init(&mut, NULL); if (rc != 0) { printf("pthread_mutex_init() returned %d\n", rc); exit(1); } for (j = 0; j < NUM_THREADS; j++) { args[j].n = j; args[j].ts_exit.tv_sec = time(NULL); args[j].ts_exit.tv_nsec = 0; args[j].chkpoint = 0; args[j].dead = 0; rc = pthread_create(&args[j].tid, NULL, thread_proc, (void*)&args[j]); delay(50); thrcount++; } t0 = 0; while (thrcount > 0) { struct timespec ts_now; t1 = time(NULL); if ((t1 - t0) >= (60 * 5)) { printf("Running threads: %d | %s", thrcount, ctime(&t1)); t0 = t1; } clock_gettime(CLOCK_REALTIME, &ts_now); for (j = 0; j < NUM_THREADS; j++) { time_t t_max; if (args[j].dead == 0) { pthread_mutex_lock(&mut); t_max = args[j].ts_exit.tv_sec + MAX_WAIT; if (ts_now.tv_sec > t_max) { printf("*** ERROR: Thread %d is dead! (chkpoint=%d)\n", j, args[j].chkpoint); printf("ARG: tv_sec=%lu tv_nsec=%lu\n", (unsigned long)args[j].ts_exit.tv_sec, (unsigned long)args[j].ts_exit.tv_nsec); printf("NOW: tv_sec=%lu tv_nsec=%lu\n\n", (unsigned long)ts_now.tv_sec, (unsigned long)ts_now.tv_nsec); args[j].dead = 1; thrcount--; } pthread_mutex_unlock(&mut); } } delay(1000); } pthread_cond_destroy(&cv); pthread_mutex_destroy(&mut); return 0; } >Fix: Probably KSE bug, hyper-threading related bug >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-threads@FreeBSD.ORG Tue Feb 21 02:43:10 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 0044716A420; Tue, 21 Feb 2006 02:43:09 +0000 (GMT) (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 804CF43D48; Tue, 21 Feb 2006 02:43:09 +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.5/8.13.5/NETPLEX) with ESMTP id k1L2h8Gw022589; Mon, 20 Feb 2006 21:43:08 -0500 (EST) Date: Mon, 20 Feb 2006 21:43:08 -0500 (EST) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Ivan Getta In-Reply-To: <200602201113.k1KBDs9b028040@www.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) Cc: freebsd-gnats-submit@freebsd.org, freebsd-threads@freebsd.org Subject: Re: threads/93592: Loss of wakeup in pthread_cond_timedwait(), libpthread (KSE), Intel Hyper-Threading Technology (HTT), FreeBSD Production Release 6.0 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: Tue, 21 Feb 2006 02:43:10 -0000 Try this patch: http://people.freebsd.org/~deischen/kse/libpthread.diffs.022006 -- DE From owner-freebsd-threads@FreeBSD.ORG Tue Feb 21 02:50:07 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 3BA7316A422 for ; Tue, 21 Feb 2006 02:50:07 +0000 (GMT) (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 C3AAB43D45 for ; Tue, 21 Feb 2006 02:50:06 +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 k1L2o6J5045329 for ; Tue, 21 Feb 2006 02:50:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1L2o6wK045328; Tue, 21 Feb 2006 02:50:06 GMT (envelope-from gnats) Date: Tue, 21 Feb 2006 02:50:06 GMT Message-Id: <200602210250.k1L2o6wK045328@freefall.freebsd.org> To: freebsd-threads@FreeBSD.org From: Daniel Eischen Cc: Subject: Re: threads/93592: Loss of wakeup in pthread_cond_timedwait(), libpthread (KSE), Intel Hyper-Threading Technology (HTT), FreeBSD Production Release 6.0 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: Tue, 21 Feb 2006 02:50:07 -0000 The following reply was made to PR threads/93592; it has been noted by GNATS. From: Daniel Eischen To: Ivan Getta Cc: freebsd-gnats-submit@freebsd.org, Subject: Re: threads/93592: Loss of wakeup in pthread_cond_timedwait(), libpthread (KSE), Intel Hyper-Threading Technology (HTT), FreeBSD Production Release 6.0 Date: Mon, 20 Feb 2006 21:43:08 -0500 (EST) Try this patch: http://people.freebsd.org/~deischen/kse/libpthread.diffs.022006 -- DE From owner-freebsd-threads@FreeBSD.ORG Thu Feb 23 09:42:30 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 85A9C16A420; Thu, 23 Feb 2006 09:42:30 +0000 (GMT) (envelope-from Ivan.Getta@wicomtechnologies.com) Received: from smtp.wicomtechnologies.com (smtp.wicomtechnologies.com [195.234.214.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8991743D46; Thu, 23 Feb 2006 09:42:29 +0000 (GMT) (envelope-from Ivan.Getta@wicomtechnologies.com) Received: from wcm-26 (wcm-126.wicom.kiev.ua [192.168.0.126] (may be forged)) (authenticated bits=0) by smtp.wicomtechnologies.com (8.12.10/8.12.10) with ESMTP id k1N9gRTI046080; Thu, 23 Feb 2006 11:42:28 +0200 (EET) (envelope-from Ivan.Getta@wicomtechnologies.com) From: Ivan Getta To: freebsd-gnats-submit@freebsd.org, Date: Thu, 23 Feb 2006 11:42:48 +0200 User-Agent: KMail/1.6.2 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200602231142.48512.Ivan.Getta@wicomtechnologies.com> Cc: Daniel Eischen Subject: Re: threads/93592: Loss of wakeup in pthread_cond_timedwait(), libpthread (KSE), Intel Hyper-Threading Technology (HTT), FreeBSD Production Release 6.0 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, 23 Feb 2006 09:42:30 -0000 On Tuesday 21 February 2006 04:43, Daniel Eischen wrote: > Try this patch: > > =A0 http://people.freebsd.org/~deischen/kse/libpthread.diffs.022006 Ok, we had set up this patch and run the test during ~14 hours - it seems like problem is resolved. Thank you for such a fast help! From owner-freebsd-threads@FreeBSD.ORG Thu Feb 23 09:50: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 18A2416A420 for ; Thu, 23 Feb 2006 09:50:11 +0000 (GMT) (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 D583943D53 for ; Thu, 23 Feb 2006 09:50:07 +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 k1N9o7wW098224 for ; Thu, 23 Feb 2006 09:50:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1N9o7JY098223; Thu, 23 Feb 2006 09:50:07 GMT (envelope-from gnats) Date: Thu, 23 Feb 2006 09:50:07 GMT Message-Id: <200602230950.k1N9o7JY098223@freefall.freebsd.org> To: freebsd-threads@FreeBSD.org From: Ivan Getta Cc: Subject: Re: threads/93592: Loss of wakeup in pthread_cond_timedwait(), libpthread (KSE), Intel Hyper-Threading Technology (HTT), FreeBSD Production Release 6.0 X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ivan Getta List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2006 09:50:11 -0000 The following reply was made to PR threads/93592; it has been noted by GNATS. From: Ivan Getta To: freebsd-gnats-submit@freebsd.org, Cc: Daniel Eischen Subject: Re: threads/93592: Loss of wakeup in pthread_cond_timedwait(), libpthread (KSE), Intel Hyper-Threading Technology (HTT), FreeBSD Production Release 6.0 Date: Thu, 23 Feb 2006 11:42:48 +0200 On Tuesday 21 February 2006 04:43, Daniel Eischen wrote: > Try this patch: > > =A0 http://people.freebsd.org/~deischen/kse/libpthread.diffs.022006 Ok, we had set up this patch and run the test during ~14 hours - it seems like problem is resolved. Thank you for such a fast help! From owner-freebsd-threads@FreeBSD.ORG Thu Feb 23 21:35:59 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 6671316A420; Thu, 23 Feb 2006 21:35:59 +0000 (GMT) (envelope-from deischen@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CD6043D45; Thu, 23 Feb 2006 21:35:59 +0000 (GMT) (envelope-from deischen@FreeBSD.org) Received: from freefall.freebsd.org (deischen@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k1NLZwCu037489; Thu, 23 Feb 2006 21:35:58 GMT (envelope-from deischen@freefall.freebsd.org) Received: (from deischen@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1NLZw4W037485; Thu, 23 Feb 2006 21:35:58 GMT (envelope-from deischen) Date: Thu, 23 Feb 2006 21:35:58 GMT From: Daniel Eischen Message-Id: <200602232135.k1NLZw4W037485@freefall.freebsd.org> To: ivan@wicomtechnologies.com, deischen@FreeBSD.org, freebsd-threads@FreeBSD.org Cc: Subject: Re: threads/93592: Loss of wakeup in pthread_cond_timedwait(), libpthread (KSE), Intel Hyper-Threading Technology (HTT), FreeBSD Production Release 6.0 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, 23 Feb 2006 21:35:59 -0000 Synopsis: Loss of wakeup in pthread_cond_timedwait(), libpthread (KSE), Intel Hyper-Threading Technology (HTT), FreeBSD Production Release 6.0 State-Changed-From-To: open->closed State-Changed-By: deischen State-Changed-When: Thu Feb 23 21:34:33 UTC 2006 State-Changed-Why: Fixed in -current. http://www.freebsd.org/cgi/query-pr.cgi?pr=93592