From owner-freebsd-threads@FreeBSD.ORG Mon Oct 16 11:08:42 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 3055516A6AB for ; Mon, 16 Oct 2006 11:08:42 +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 DB05D43D66 for ; Mon, 16 Oct 2006 11:08:41 +0000 (GMT) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k9GB8fxH028335 for ; Mon, 16 Oct 2006 11:08:41 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k9GB8eR4028331 for freebsd-threads@FreeBSD.org; Mon, 16 Oct 2006 11:08:40 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 16 Oct 2006 11:08:40 GMT Message-Id: <200610161108.k9GB8eR4028331@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon 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, 16 Oct 2006 11:08:42 -0000 Current FreeBSD problem reports Critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- s threa/76690 threads fork hang in child for -lc_r 1 problem total. Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/20016 threads pthreads: Cannot set scheduling timer/Cannot set virtu s threa/24472 threads libc_r does not honor SO_SNDTIMEO/SO_RCVTIMEO socket o s threa/24632 threads libc_r delicate deviation from libc in handling SIGCHL s bin/32295 threads pthread dont dequeue signals s threa/34536 threads accept() blocks other threads o kern/38549 threads the procces compiled whith pthread stopped in pthread_ s threa/39922 threads [threads] [patch] Threaded applications executed with s threa/48856 threads Setting SIGCHLD to SIG_IGN still leaves zombies under s threa/49087 threads Signals lost in programs linked with libc_r s kern/64313 threads FreeBSD (OpenBSD) pthread implicit set/unset O_NONBLOC o threa/70975 threads unexpected and unreliable behaviour when using SYSV se o threa/72353 threads Assertion fails in /usr/src/lib/libpthread/sys/lock.c, o threa/72429 threads threads blocked in stdio (fgets, etc) are not cancella o threa/72953 threads fork() unblocks blocked signals w/o PTHREAD_SCOPE_SYST o threa/75273 threads FBSD 5.3 libpthread (KSE) bug o threa/75374 threads pthread_kill() ignores SA_SIGINFO flag s threa/76694 threads fork cause hang in dup()/close() function in child (-l o threa/79683 threads svctcp_create() fails if multiple threads call at the o threa/80435 threads panic on high loads o threa/83914 threads [libc] popen() doesn't work in static threaded program s threa/84483 threads problems with devel/nspr and -lc_r on 4.x o threa/85160 threads [libthr] [patch] libobjc + libpthread/libthr crash pro o threa/90278 threads libthr, ULE and -current produces >100% WCPU with apac o kern/91266 threads [threads] Trying sleep, but thread marked as sleeping s threa/94467 threads send(), sendto() and sendmsg() are not correct in libc f threa/98256 threads gnome-system-monitor core dumps from pthread_testcance s threa/100815 threads FBSD 5.5 broke nanosleep in libc_r o threa/101323 threads fork(2) in threaded programs broken. o threa/103975 threads Implicit loading/unloading of libpthread.so may crash 29 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- s kern/19247 threads uthread_sigaction.c does not do anything wrt SA_NOCLDW s kern/22190 threads A threaded read(2) from a socketpair(2) fd can sometim s threa/30464 threads pthread mutex attributes -- pshared s threa/37676 threads libc_r: msgsnd(), msgrcv(), pread(), pwrite() need wra s threa/40671 threads pthread_cancel doesn't remove thread from condition qu s threa/69020 threads pthreads library leaks _gc_mutex o threa/74180 threads KSE problem. Applications those riched maximum possibl o threa/79887 threads [patch] freopen() isn't thread-safe o threa/80992 threads abort() sometimes not caught by gdb depending on threa o threa/81534 threads [libc_r] [patch] libc_r close() will fail on any fd ty 10 problems total. From owner-freebsd-threads@FreeBSD.ORG Fri Oct 20 02:17:28 2006 Return-Path: X-Original-To: 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 0972D16A403; Fri, 20 Oct 2006 02:17:28 +0000 (UTC) (envelope-from mi+mx@aldan.algebra.com) Received: from corbulon.video-collage.com (static-151-204-231-237.bos.east.verizon.net [151.204.231.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id D177C43D5F; Fri, 20 Oct 2006 02:17:24 +0000 (GMT) (envelope-from mi+mx@aldan.algebra.com) Received: from [172.21.130.86] (mx-broadway [38.98.68.18]) by corbulon.video-collage.com (8.13.6/8.13.6) with ESMTP id k9K2HMig069077 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 19 Oct 2006 22:17:23 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) From: Mikhail Teterin Organization: Virtual Estates, Inc. To: threads@freebsd.org, gnome@freebsd.org Date: Thu, 19 Oct 2006 22:17:16 -0400 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200610192217.17383.mi+mx@aldan.algebra.com> X-Virus-Scanned: ClamAV 0.88.4/2051/Thu Oct 19 15:27:43 2006 on corbulon.video-collage.com X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.43 Cc: Subject: devel/nspr's self-test failing: `mutex is on list' 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: Fri, 20 Oct 2006 02:17:28 -0000 Unfortunately, the tests are not being run automatically every time the port builds, so we don't know, when the problem began... To reproduce: % cd /usr/ports/devel/nspr % make build test [...] forktest FAILED forktest: Wait one second before accept forktest: Wait one second before connect forktest: Connecting to port 51686 forktest: Writing message "Hello world!" forktest: Accepting connection at port 51686 forktest: Received "Hello world!" from the client forktest: The message is received correctly forktest: Fork succeeded. Parent process continues. forktest: Wait one second before accept forktest: Wait one second before connect forktest: Fatal error 'mutex is on list' at line 540 in file /usr/src/lib/libpthread/thread/thr_mutex.c (errno = 43) forktest: Fork succeeded. Child process continues. forktest: Accepting connection at port 56714 forktest: Connecting to port 56714 forktest: Writing message "Hello world!" forktest: Received "Hello world!" from the client forktest: The message is received correctly forktest: Parent process exits. forktest: FAILED [...] I'm unsure, whether the bug is in the test itself or in the pthread, or in the nspr-library's threading implementation, but the test used to pass... Would a thread-expert care to investigate, please? Thanks! -mi From owner-freebsd-threads@FreeBSD.ORG Fri Oct 20 02:24:52 2006 Return-Path: X-Original-To: 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 8620416A40F; Fri, 20 Oct 2006 02:24:52 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmmtao02.cox.net (eastrmmtao02.cox.net [68.230.240.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id C716043D46; Fri, 20 Oct 2006 02:24:49 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from eastrmimpo02.cox.net ([68.1.16.120]) by eastrmmtao02.cox.net (InterMail vM.6.01.06.01 201-2131-130-101-20060113) with ESMTP id <20061020022450.IAYL10599.eastrmmtao02.cox.net@eastrmimpo02.cox.net>; Thu, 19 Oct 2006 22:24:50 -0400 Received: from mezz.mezzweb.com ([24.255.149.218]) by eastrmimpo02.cox.net with bizsmtp id cSQB1V00T4iy4EG0000000 Thu, 19 Oct 2006 22:24:12 -0400 Date: Thu, 19 Oct 2006 21:26:55 -0500 To: "Mikhail Teterin" From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: <200610192217.17383.mi+mx@aldan.algebra.com> Content-Transfer-Encoding: Quoted-Printable Message-ID: In-Reply-To: <200610192217.17383.mi+mx@aldan.algebra.com> User-Agent: Opera Mail/9.02 (Linux) Cc: gnome@freebsd.org, threads@freebsd.org Subject: Re: devel/nspr's self-test failing: `mutex is on list' 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: Fri, 20 Oct 2006 02:24:52 -0000 On Thu, 19 Oct 2006 21:17:16 -0500, Mikhail Teterin = wrote: > Unfortunately, the tests are not being run automatically every time th= e = > port > builds, so we don't know, when the problem began... > > To reproduce: > > % cd /usr/ports/devel/nspr > % make build test > > [...] > forktest FAILED > forktest: Wait one second before accept > forktest: Wait one second before connect > forktest: Connecting to port 51686 > forktest: Writing message "Hello world!" > forktest: Accepting connection at port 51686 > forktest: Received "Hello world!" from the client > forktest: The message is received correctly > forktest: Fork succeeded. Parent process continues. > forktest: Wait one second before accept > forktest: Wait one second before connect > forktest: Fatal error 'mutex is on list' at line 540 in = = > file /usr/src/lib/libpthread/thread/thr_mutex.c (errno =3D 43) > forktest: Fork succeeded. Child process continues. > forktest: Accepting connection at port 56714 > forktest: Connecting to port 56714 > forktest: Writing message "Hello world!" > forktest: Received "Hello world!" from the client > forktest: The message is received correctly > forktest: Parent process exits. > forktest: FAILED > [...] > > I'm unsure, whether the bug is in the test itself or in the pthread, > or in the nspr-library's threading implementation, but the test used > to pass... > > Would a thread-expert care to investigate, please? Thanks! It's known and there has a PR (ports/100785) for it with no solution. I = = have a backtrace that forktest dumped a core if you know how to dig in a= nd = solve it. http://people.freebsd.org/~mezz/gdb/gdb-nspr-forktest.txt marcus said, 'Looks like a potential symbol conflict, but without full = libpthread and libc symbols, it's hard to tell.' I have have done compil= ed = these with the debug but I haven't hear anything so far. Cheers, Mezz > -mi -- = mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team - FreeBSD Multimedia Hat (ports, not src) http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org http://wiki.freebsd.org/multimedia - multimedia@FreeBSD.org From owner-freebsd-threads@FreeBSD.ORG Fri Oct 20 02:26:17 2006 Return-Path: X-Original-To: threads@freebsd.org Delivered-To: freebsd-threads@FreeBSD.ORG Received: from [127.0.0.1] (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id E6F7616A416; Fri, 20 Oct 2006 02:26:15 +0000 (UTC) (envelope-from davidxu@freebsd.org) Message-ID: <45367CC0.9050304@freebsd.org> Date: Thu, 19 Oct 2006 03:13:04 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20060725 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mikhail Teterin References: <200610192217.17383.mi+mx@aldan.algebra.com> In-Reply-To: <200610192217.17383.mi+mx@aldan.algebra.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: gnome@freebsd.org, threads@freebsd.org Subject: Re: devel/nspr's self-test failing: `mutex is on list' 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: Fri, 20 Oct 2006 02:26:17 -0000 Mikhail Teterin wrote: > Unfortunately, the tests are not being run automatically every time the port > builds, so we don't know, when the problem began... > > I'm unsure, whether the bug is in the test itself or in the pthread, > or in the nspr-library's threading implementation, but the test used > to pass... > > Would a thread-expert care to investigate, please? Thanks! > > -mi Which thread library are you using ? have you tried libthr ? David Xu From owner-freebsd-threads@FreeBSD.ORG Fri Oct 20 15:56:01 2006 Return-Path: X-Original-To: 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 528B616A407; Fri, 20 Oct 2006 15:56:01 +0000 (UTC) (envelope-from mi+mx@aldan.algebra.com) Received: from corbulon.video-collage.com (static-151-204-231-237.bos.east.verizon.net [151.204.231.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C91F43D45; Fri, 20 Oct 2006 15:56:00 +0000 (GMT) (envelope-from mi+mx@aldan.algebra.com) Received: from mteterin.us.murex.com (mx-broadway [38.98.68.18]) by corbulon.video-collage.com (8.13.6/8.13.6) with ESMTP id k9KFtipN086930 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 20 Oct 2006 11:55:45 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) Received: from mteterin.us.murex.com (mteterin@localhost [127.0.0.1]) by mteterin.us.murex.com (8.13.6/8.13.6) with ESMTP id k9KFtdQE080190; Fri, 20 Oct 2006 11:55:39 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) Received: from localhost (localhost [[UNIX: localhost]]) by mteterin.us.murex.com (8.13.6/8.13.6/Submit) id k9KFtd5p080189; Fri, 20 Oct 2006 11:55:39 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) X-Authentication-Warning: mteterin.us.murex.com: mteterin set sender to mi+mx@aldan.algebra.com using -f From: Mikhail Teterin Organization: Virtual Estates, Inc. To: David Xu Date: Fri, 20 Oct 2006 11:55:38 -0400 User-Agent: KMail/1.9.1 References: <200610192217.17383.mi+mx@aldan.algebra.com> <45367CC0.9050304@freebsd.org> In-Reply-To: <45367CC0.9050304@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-u" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200610201155.38952.mi+mx@aldan.algebra.com> X-Virus-Scanned: ClamAV 0.88.4/2058/Fri Oct 20 08:22:07 2006 on corbulon.video-collage.com X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.43 Cc: gnome@freebsd.org, threads@freebsd.org Subject: Re: devel/nspr's self-test failing: `mutex is on list' 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: Fri, 20 Oct 2006 15:56:01 -0000 середа 18 жовтень 2006 15:13, David Xu написав: > Which thread library are you using ? have you tried libthr ? As the error message was pointing out, the thread library was libpthread: Fatal error 'mutex is on list' at line 540 in file /usr/src/lib/libpthread/thread/thr_mutex.c (errno = 43) Switching to libthr does help... I added the following two lines to my /etc/libmap.conf: [forktest] libpthread.so.2 libthr.so.2 and re-ran work/nspr-4.6.3/mozilla/nsprpub/build/pr/tests/forktest: Wait one second before accept Wait one second before connect Accepting connection at port 65406 Connecting to port 65406 Writing message "Hello world!" Received "Hello world!" from the client The message is received correctly Fork succeeded. Parent process continues. Wait one second before accept Wait one second before connect Fork succeeded. Child process continues. Wait one second before accept Wait one second before connect Accepting connection at port 51343 Connecting to port 51343 Accepting connection at port 50506 Writing message "Hello world!" Received "Hello world!" from the client Connecting to port 50506 Writing message "Hello world!" Received "Hello world!" from the client The message is received correctly The message is received correctly Child process exits. Parent process exits. PASSED pthread is the default thread implementation, though, is not it? Can it be fixed in time before 6.2 is released? Thanks! -mi From owner-freebsd-threads@FreeBSD.ORG Fri Oct 20 16:19:43 2006 Return-Path: X-Original-To: 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 C6D2716A580 for ; Fri, 20 Oct 2006 16:19:43 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from mrout2.yahoo.com (mrout2.yahoo.com [216.145.54.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81D5B43D46 for ; Fri, 20 Oct 2006 16:19:43 +0000 (GMT) (envelope-from gnn@neville-neil.com) Received: from wlan-a-206-118.corp.yahoo.com.neville-neil.com (proxy8.corp.yahoo.com [216.145.48.13]) by mrout2.yahoo.com (8.13.6/8.13.6/y.out) with ESMTP id k9KGJ6h1039339 for ; Fri, 20 Oct 2006 09:19:06 -0700 (PDT) Date: Fri, 20 Oct 2006 12:19:05 -0400 Message-ID: From: gnn@freebsd.org To: threads@freebsd.org User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.0.50 (i386-apple-darwin8.7.1) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: Subject: Can someone point me at... 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: Fri, 20 Oct 2006 16:19:43 -0000 any sort of performance comparisons of our various threading libraries and solutions? I was looking for some data in our archives but the last few months (and the search interface) don't show anything in threads@ Thanks, George From owner-freebsd-threads@FreeBSD.ORG Fri Oct 20 19:10:41 2006 Return-Path: X-Original-To: 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 211A516A403; Fri, 20 Oct 2006 19:10:41 +0000 (UTC) (envelope-from ivoras@freebsd.org) Received: from ls405.htnet.hr (ls405.t-com.hr [195.29.150.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D75643D45; Fri, 20 Oct 2006 19:10:40 +0000 (GMT) (envelope-from ivoras@freebsd.org) Received: from ls422.t-com.hr (ls422.t-com.hr [195.29.150.237]) by ls405.htnet.hr (Postfix) with ESMTP id B3D2D1454F2; Fri, 20 Oct 2006 21:10:38 +0200 (CEST) Received: from ls422.t-com.hr (localhost.localdomain [127.0.0.1]) by ls422.t-com.hr (Qmlai) with ESMTP id 9E030C90056; Fri, 20 Oct 2006 21:10:38 +0200 (CEST) X-Envelope-Sender-Info: KDHLkYIFXCRHG7zIR7FVXvffuvrDzvps/EwCuMV3/J7RQ7YyVx/qlENp1X+YFGpV X-Envelope-Sender: ivoras@freebsd.org Received: from [10.0.0.100] (83-131-108-207.adsl.net.t-com.hr [83.131.108.207])by ls422.t-com.hr (Qmlai) with ESMTP id 54BD61308053; Fri, 20 Oct 2006 21:10:38 +0200 (CEST) Message-ID: <45391F2E.9030300@freebsd.org> Date: Fri, 20 Oct 2006 21:10:38 +0200 From: Ivan Voras User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: gnn@freebsd.org References: In-Reply-To: X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-imss-version: 2.043 X-imss-result: Passed X-imss-scores: Clean:3.45180 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:3 C:3 M:3 S:3 R:3 (0.5000 0.5000) Cc: threads@freebsd.org Subject: Re: Can someone point me at... X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ivoras@fer.hr List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Oct 2006 19:10:41 -0000 gnn@freebsd.org wrote: > any sort of performance comparisons of our various threading libraries > and solutions? I was looking for some data in our archives but the > last few months (and the search interface) don't show anything in > threads@ This could be a starting point: http://wikitest.freebsd.org/MySQL