From owner-freebsd-threads@FreeBSD.ORG Mon May 24 11:07:05 2010 Return-Path: Delivered-To: freebsd-threads@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 449531065670 for ; Mon, 24 May 2010 11:07:05 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2B0128FC22 for ; Mon, 24 May 2010 11:07:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o4OB753Z004528 for ; Mon, 24 May 2010 11:07:05 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o4OB74at004526 for freebsd-threads@FreeBSD.org; Mon, 24 May 2010 11:07:04 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 24 May 2010 11:07:04 GMT Message-Id: <201005241107.o4OB74at004526@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-threads@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-threads@FreeBSD.org 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 May 2010 11:07:05 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o threa/141721 threads rtprio(1): (id|rt)prio priority resets when new thread o threa/141198 threads [libc] src/lib/libc/stdio does not properly initialize o threa/136345 threads Recursive read rwlocks in thread A cause deadlock with o threa/135673 threads databases/mysql50-server - MySQL query lock-ups on 7.2 p threa/135462 threads [PATCH] _thread_cleanupspecific() doesn't handle delet o threa/133734 threads 32 bit libthr failing pthread_create() o threa/128922 threads threads hang with xorg running o threa/127225 threads bug in lib/libthr/thread/thr_init.c o threa/122923 threads 'nice' does not prevent background process from steali o threa/121336 threads lang/neko threading ok on UP, broken on SMP (FreeBSD 7 f threa/118715 threads kse problem o threa/116668 threads can no longer use jdk15 with libthr on -stable SMP o threa/116181 threads /dev/io-related io access permissions are not propagat o threa/115211 threads pthread_atfork misbehaves in initial thread o threa/110636 threads [request] gdb(1): using gdb with multi thread applicat o threa/110306 threads apache 2.0 segmentation violation when calling gethost o threa/103975 threads Implicit loading/unloading of libpthread.so may crash o threa/101323 threads [patch] fork(2) in threaded programs broken. s threa/100815 threads FBSD 5.5 broke nanosleep in libc_r s threa/94467 threads send(), sendto() and sendmsg() are not correct in libc s threa/84483 threads problems with devel/nspr and -lc_r on 4.x o threa/80992 threads abort() sometimes not caught by gdb depending on threa o threa/79887 threads [patch] freopen() isn't thread-safe o threa/79683 threads svctcp_create() fails if multiple threads call at the s threa/76694 threads fork cause hang in dup()/close() function in child (-l s threa/76690 threads fork hang in child for -lc_r f threa/72953 threads fork() unblocks blocked signals w/o PTHREAD_SCOPE_SYST s threa/69020 threads pthreads library leaks _gc_mutex s threa/49087 threads Signals lost in programs linked with libc_r s threa/48856 threads Setting SIGCHLD to SIG_IGN still leaves zombies under s threa/40671 threads pthread_cancel doesn't remove thread from condition qu s threa/39922 threads [threads] [patch] Threaded applications executed with s threa/37676 threads libc_r: msgsnd(), msgrcv(), pread(), pwrite() need wra s threa/34536 threads accept() blocks other threads s threa/32295 threads [libc_r] [patch] pthread(3) dont dequeue signals s threa/30464 threads pthread mutex attributes -- pshared s threa/24632 threads libc_r delicate deviation from libc in handling SIGCHL s threa/24472 threads libc_r does not honor SO_SNDTIMEO/SO_RCVTIMEO socket o 38 problems total. From owner-freebsd-threads@FreeBSD.ORG Mon May 24 13:20:01 2010 Return-Path: Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 789CA1065679 for ; Mon, 24 May 2010 13:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3AE3B8FC25 for ; Mon, 24 May 2010 13:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o4ODK1mK020935 for ; Mon, 24 May 2010 13:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o4ODK1xI020934; Mon, 24 May 2010 13:20:01 GMT (envelope-from gnats) Resent-Date: Mon, 24 May 2010 13:20:01 GMT Resent-Message-Id: <201005241320.o4ODK1xI020934@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, HaiYu Wu Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6FCD61065670 for ; Mon, 24 May 2010 13:13:06 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 5F0C48FC0A for ; Mon, 24 May 2010 13:13:06 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o4ODD50H050616 for ; Mon, 24 May 2010 13:13:05 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o4ODD5gD050615; Mon, 24 May 2010 13:13:05 GMT (envelope-from nobody) Message-Id: <201005241313.o4ODD5gD050615@www.freebsd.org> Date: Mon, 24 May 2010 13:13:05 GMT From: HaiYu Wu To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: threads/146917: open(), accept() are not thread safe 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 May 2010 13:20:01 -0000 >Number: 146917 >Category: threads >Synopsis: open(), accept() are not thread safe >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-threads >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon May 24 13:20:00 UTC 2010 >Closed-Date: >Last-Modified: >Originator: HaiYu Wu >Release: FreeBSD 7.3-RELEASE >Organization: Netease Inc. >Environment: FreeBSD onlinegame-10-183 7.3-RELEASE FreeBSD 7.3-RELEASE #0: Sun Mar 21 06:15:01 UTC 2010 root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: My Application is in Freebsd 7.3, has two threads. use -pthread options to gcc(gcc 4.2.1). the Threads's breif flow as bellow: Thread A: is the main thread which deal with the connections, accept connection, read connection and make a request to push into a queue. Thread B: is the work thread which wait for request from the queue, and deal with it. when dealing with the request, sometimes will open a file to write some data. I use system call open() to open file and write(), mostly, both of threads work well. but sometimes write() is failed and the errno is 9. If I migrate the open() operation to the main thread A, never open() in the Thread B, the failure is disappear. So, I doubt that some system call , such as accep(), open(), fopen() which operate the File Descriptor are not thread safe. Is this True ? >How-To-Repeat: above mentioned >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-threads@FreeBSD.ORG Mon May 24 13:24:13 2010 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B61B51065672 for ; Mon, 24 May 2010 13:24:13 +0000 (UTC) (envelope-from chris@cvine.freeserve.co.uk) Received: from smtp5.freeserve.com (smtp5.freeserve.com [193.252.22.159]) by mx1.freebsd.org (Postfix) with ESMTP id 7813B8FC1B for ; Mon, 24 May 2010 13:24:13 +0000 (UTC) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3401.me.freeserve.com (SMTP Server) with ESMTP id 808E71C00041 for ; Mon, 24 May 2010 15:05:13 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3401.me.freeserve.com (SMTP Server) with ESMTP id 727DC1C0005F for ; Mon, 24 May 2010 15:05:13 +0200 (CEST) Received: from boulder.homenet (unknown [91.106.62.39]) by mwinf3401.me.freeserve.com (SMTP Server) with ESMTP id 2ED3E1C00041 for ; Mon, 24 May 2010 15:05:13 +0200 (CEST) X-ME-UUID: 20100524130513192.2ED3E1C00041@mwinf3401.me.freeserve.com Received: from boulder.homenet (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.14.3/8.14.3) with ESMTP id o4OD5DhQ015767 for ; Mon, 24 May 2010 14:05:14 +0100 Date: Mon, 24 May 2010 14:05:13 +0100 From: Chris Vine To: freebsd-threads@freebsd.org Message-ID: <20100524140513.6475cb2c@boulder.homenet> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Monotonic clocks 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 May 2010 13:24:13 -0000 Hi, I am the upstream maintainer of efax-gtk and I am told recent versions of the program will not compile on the FreeBSD port of debian, because FreeBSD does not appear to provide pthread_condattr_setclock() to set a monotonic clock on condition variables. The program configuration script calls up sysconf() to determine whether the POSIX advanced realtime option (_SC_MONOTONIC_CLOCK) is provided, and FreeBSD's sysconf() indicates that it is. Is anything else needed to enable monotonic clocks on BSD, or is sysconf() incorrectly advertising the implementation of monotonic clocks in BSD's libc? Chris From owner-freebsd-threads@FreeBSD.ORG Mon May 24 13:38:01 2010 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 37FD0106564A for ; Mon, 24 May 2010 13:38:01 +0000 (UTC) (envelope-from chris@cvine.freeserve.co.uk) Received: from smtp6.freeserve.com (smtp5.freeserve.com [193.252.22.151]) by mx1.freebsd.org (Postfix) with ESMTP id EBBB28FC12 for ; Mon, 24 May 2010 13:38:00 +0000 (UTC) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3513.me.freeserve.com (SMTP Server) with ESMTP id 57E5E700074B for ; Mon, 24 May 2010 15:37:59 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3513.me.freeserve.com (SMTP Server) with ESMTP id 4B3227000752 for ; Mon, 24 May 2010 15:37:59 +0200 (CEST) Received: from boulder.homenet (unknown [91.106.62.39]) by mwinf3513.me.freeserve.com (SMTP Server) with ESMTP id 1BF37700074B for ; Mon, 24 May 2010 15:37:59 +0200 (CEST) X-ME-UUID: 20100524133759114.1BF37700074B@mwinf3513.me.freeserve.com Received: from boulder.homenet (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.14.3/8.14.3) with ESMTP id o4ODbxHW016472 for ; Mon, 24 May 2010 14:38:00 +0100 Date: Mon, 24 May 2010 14:37:59 +0100 From: Chris Vine To: freebsd-threads@freebsd.org Message-ID: <20100524143759.28f8c9b5@boulder.homenet> In-Reply-To: <20100524140513.6475cb2c@boulder.homenet> References: <20100524140513.6475cb2c@boulder.homenet> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Monotonic clocks 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 May 2010 13:38:01 -0000 On Mon, 24 May 2010 14:05:13 +0100 Chris Vine wrote: > I am the upstream maintainer of efax-gtk and I am told recent versions > of the program will not compile on the FreeBSD port of debian, because > FreeBSD does not appear to provide pthread_condattr_setclock() to set > a monotonic clock on condition variables. > > The program configuration script calls up sysconf() to determine > whether the POSIX advanced realtime option (_SC_MONOTONIC_CLOCK) is > provided, and FreeBSD's sysconf() indicates that it is. Is anything > else needed to enable monotonic clocks on BSD, or is sysconf() > incorrectly advertising the implementation of monotonic clocks in > BSD's libc? Ah, on looking up the SUS it looks as if I have to check _SC_CLOCK_SELECTION as well (although it appears rather pointless to have a monotonic clock if you can't actually select it). Chris From owner-freebsd-threads@FreeBSD.ORG Mon May 24 13:46:42 2010 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E710E106566B for ; Mon, 24 May 2010 13:46:42 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.netplex.net (mail.netplex.net [204.213.176.10]) by mx1.freebsd.org (Postfix) with ESMTP id A30B58FC12 for ; Mon, 24 May 2010 13:46:42 +0000 (UTC) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.netplex.net (8.14.4/8.14.4/NETPLEX) with ESMTP id o4ODkdDl011540; Mon, 24 May 2010 09:46:39 -0400 (EDT) X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.netplex.net) X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-4.2.2 (mail.netplex.net [204.213.176.10]); Mon, 24 May 2010 09:46:39 -0400 (EDT) Date: Mon, 24 May 2010 09:46:39 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Chris Vine In-Reply-To: <20100524140513.6475cb2c@boulder.homenet> Message-ID: References: <20100524140513.6475cb2c@boulder.homenet> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-threads@freebsd.org Subject: Re: Monotonic clocks 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: Mon, 24 May 2010 13:46:43 -0000 On Mon, 24 May 2010, Chris Vine wrote: > Hi, > > I am the upstream maintainer of efax-gtk and I am told recent versions > of the program will not compile on the FreeBSD port of debian, because > FreeBSD does not appear to provide pthread_condattr_setclock() to set a > monotonic clock on condition variables. > > The program configuration script calls up sysconf() to determine > whether the POSIX advanced realtime option (_SC_MONOTONIC_CLOCK) is > provided, and FreeBSD's sysconf() indicates that it is. Is anything > else needed to enable monotonic clocks on BSD, or is sysconf() > incorrectly advertising the implementation of monotonic clocks in BSD's > libc? What version of FreeBSD are you using? The code looks like it tries to use CLOCK_MONOTONIC if specified. From src/lib/libthr/thread/thr_init.c: int _pthread_condattr_setclock(pthread_condattr_t *attr, clockid_t clock_id) { if (attr == NULL || *attr == NULL) return (EINVAL); if (clock_id != CLOCK_REALTIME && clock_id != CLOCK_VIRTUAL && clock_id != CLOCK_PROF && clock_id != CLOCK_MONOTONIC) { return (EINVAL); } (*attr)->c_clockid = clock_id; return (0); } Are you getting an error from pthread_condattr_setclock() or is it just not functioning correctly? -- DE From owner-freebsd-threads@FreeBSD.ORG Mon May 24 14:14:28 2010 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ABEAE106566C for ; Mon, 24 May 2010 14:14:28 +0000 (UTC) (envelope-from chris@cvine.freeserve.co.uk) Received: from smtp6.freeserve.com (smtp5.freeserve.com [193.252.22.151]) by mx1.freebsd.org (Postfix) with ESMTP id 463FC8FC13 for ; Mon, 24 May 2010 14:14:27 +0000 (UTC) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3521.me.freeserve.com (SMTP Server) with ESMTP id ADDFF1C0075D; Mon, 24 May 2010 16:14:26 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3521.me.freeserve.com (SMTP Server) with ESMTP id A080B1C007A1; Mon, 24 May 2010 16:14:26 +0200 (CEST) Received: from boulder.homenet (unknown [91.106.62.39]) by mwinf3521.me.freeserve.com (SMTP Server) with ESMTP id 6A01F1C0075D; Mon, 24 May 2010 16:14:26 +0200 (CEST) X-ME-UUID: 20100524141426434.6A01F1C0075D@mwinf3521.me.freeserve.com Received: from boulder.homenet (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.14.3/8.14.3) with ESMTP id o4OEEQNd031878; Mon, 24 May 2010 15:14:27 +0100 Date: Mon, 24 May 2010 15:14:26 +0100 From: Chris Vine To: Daniel Eischen Message-ID: <20100524151426.7ec75b1a@boulder.homenet> In-Reply-To: References: <20100524140513.6475cb2c@boulder.homenet> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-threads@freebsd.org Subject: Re: Monotonic clocks 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 May 2010 14:14:28 -0000 On Mon, 24 May 2010 09:46:39 -0400 (EDT) Daniel Eischen wrote: > On Mon, 24 May 2010, Chris Vine wrote: > > > Hi, > > > > I am the upstream maintainer of efax-gtk and I am told recent > > versions of the program will not compile on the FreeBSD port of > > debian, because FreeBSD does not appear to provide > > pthread_condattr_setclock() to set a monotonic clock on condition > > variables. > > > > The program configuration script calls up sysconf() to determine > > whether the POSIX advanced realtime option (_SC_MONOTONIC_CLOCK) is > > provided, and FreeBSD's sysconf() indicates that it is. Is anything > > else needed to enable monotonic clocks on BSD, or is sysconf() > > incorrectly advertising the implementation of monotonic clocks in > > BSD's libc? > > What version of FreeBSD are you using? The code looks like it > tries to use CLOCK_MONOTONIC if specified. From > src/lib/libthr/thread/thr_init.c: > > int > _pthread_condattr_setclock(pthread_condattr_t *attr, clockid_t > clock_id) { > if (attr == NULL || *attr == NULL) > return (EINVAL); > if (clock_id != CLOCK_REALTIME && > clock_id != CLOCK_VIRTUAL && > clock_id != CLOCK_PROF && > clock_id != CLOCK_MONOTONIC) { > return (EINVAL); > } > (*attr)->c_clockid = clock_id; > return (0); > } > > Are you getting an error from pthread_condattr_setclock() or is > it just not functioning correctly? The function is entirely missing from the pthread.h header. I don't use FreeBSD but the problem arises on the version of FreeBSD used by debian. I don't know what that is, I am afraid. I am hopeful that checking for_POSIX_CLOCK_SELECTION and _SC_CLOCK_SELECTION, as well as _POSIX_MONOTONIC_CLOCK and _SC_MONOTONIC_CLOCK will address the problem. (This means that the system clock will be used instead.) Chris From owner-freebsd-threads@FreeBSD.ORG Mon May 24 14:14:47 2010 Return-Path: Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F3A01065676; Mon, 24 May 2010 14:14:47 +0000 (UTC) (envelope-from kan@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 46FFC8FC1F; Mon, 24 May 2010 14:14:47 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o4OEElQa072399; Mon, 24 May 2010 14:14:47 GMT (envelope-from kan@freefall.freebsd.org) Received: (from kan@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o4OEEkch072395; Mon, 24 May 2010 14:14:46 GMT (envelope-from kan) Date: Mon, 24 May 2010 14:14:46 GMT Message-Id: <201005241414.o4OEEkch072395@freefall.freebsd.org> To: cfishwu@corp.netease.com, kan@FreeBSD.org, freebsd-threads@FreeBSD.org From: kan@FreeBSD.org Cc: Subject: Re: threads/146917: open(), accept() are not thread safe 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 May 2010 14:14:47 -0000 Synopsis: open(), accept() are not thread safe State-Changed-From-To: open->feedback State-Changed-By: kan State-Changed-When: Mon May 24 14:08:42 UTC 2010 State-Changed-Why: Your explanation of what application is doing is not complete and it is totally not clear what is that you are trying to do. The error code you getting is EBADF, which suggests that one thread has likely closed the handle other thread still uses. That or some other bug in you application is likely causing what you are seeing - open, close and write are certainly 'thread safe', as there is no global state to protect. http://www.freebsd.org/cgi/query-pr.cgi?pr=146917 From owner-freebsd-threads@FreeBSD.ORG Mon May 24 14:59:50 2010 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B570E1065670 for ; Mon, 24 May 2010 14:59:50 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.netplex.net (mail.netplex.net [204.213.176.10]) by mx1.freebsd.org (Postfix) with ESMTP id 2DADD8FC1D for ; Mon, 24 May 2010 14:59:49 +0000 (UTC) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.netplex.net (8.14.4/8.14.4/NETPLEX) with ESMTP id o4OExiFf020122; Mon, 24 May 2010 10:59:44 -0400 (EDT) X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.netplex.net) X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-4.2.2 (mail.netplex.net [204.213.176.10]); Mon, 24 May 2010 10:59:44 -0400 (EDT) Date: Mon, 24 May 2010 10:59:44 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Chris Vine In-Reply-To: <20100524151426.7ec75b1a@boulder.homenet> Message-ID: References: <20100524140513.6475cb2c@boulder.homenet> <20100524151426.7ec75b1a@boulder.homenet> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-threads@freebsd.org Subject: Re: Monotonic clocks 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: Mon, 24 May 2010 14:59:50 -0000 On Mon, 24 May 2010, Chris Vine wrote: > On Mon, 24 May 2010 09:46:39 -0400 (EDT) > Daniel Eischen wrote: >> On Mon, 24 May 2010, Chris Vine wrote: >> >>> Hi, >>> >>> I am the upstream maintainer of efax-gtk and I am told recent >>> versions of the program will not compile on the FreeBSD port of >>> debian, because FreeBSD does not appear to provide >>> pthread_condattr_setclock() to set a monotonic clock on condition >>> variables. >>> >>> The program configuration script calls up sysconf() to determine >>> whether the POSIX advanced realtime option (_SC_MONOTONIC_CLOCK) is >>> provided, and FreeBSD's sysconf() indicates that it is. Is anything >>> else needed to enable monotonic clocks on BSD, or is sysconf() >>> incorrectly advertising the implementation of monotonic clocks in >>> BSD's libc? >> >> What version of FreeBSD are you using? The code looks like it >> tries to use CLOCK_MONOTONIC if specified. From >> src/lib/libthr/thread/thr_init.c: >> >> int >> _pthread_condattr_setclock(pthread_condattr_t *attr, clockid_t >> clock_id) { >> if (attr == NULL || *attr == NULL) >> return (EINVAL); >> if (clock_id != CLOCK_REALTIME && >> clock_id != CLOCK_VIRTUAL && >> clock_id != CLOCK_PROF && >> clock_id != CLOCK_MONOTONIC) { >> return (EINVAL); >> } >> (*attr)->c_clockid = clock_id; >> return (0); >> } >> >> Are you getting an error from pthread_condattr_setclock() or is >> it just not functioning correctly? > > The function is entirely missing from the pthread.h header. I don't use > FreeBSD but the problem arises on the version of FreeBSD used by > debian. I don't know what that is, I am afraid. The prototype has been in since Oct 2005, and is in FreeBSD version 7 and subsequent. See revision 1.40: http://www.freebsd.org/cgi/cvsweb.cgi/src/include/pthread.h http://www.freebsd.org/cgi/cvsweb.cgi/src/include/pthread.h.diff?r1=1.39;r2=1.40 -- DE From owner-freebsd-threads@FreeBSD.ORG Mon May 24 16:05:04 2010 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F3FF1065672; Mon, 24 May 2010 16:05:04 +0000 (UTC) (envelope-from chris@cvine.freeserve.co.uk) Received: from smtp6.freeserve.com (smtp5.freeserve.com [193.252.22.151]) by mx1.freebsd.org (Postfix) with ESMTP id 5D54D8FC14; Mon, 24 May 2010 16:05:04 +0000 (UTC) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3536.me.freeserve.com (SMTP Server) with ESMTP id 089B51C01F37; Mon, 24 May 2010 18:05:03 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3536.me.freeserve.com (SMTP Server) with ESMTP id EE54B1C01F38; Mon, 24 May 2010 18:05:02 +0200 (CEST) Received: from boulder.homenet (unknown [91.106.62.39]) by mwinf3536.me.freeserve.com (SMTP Server) with ESMTP id AA08E1C01F37; Mon, 24 May 2010 18:05:02 +0200 (CEST) X-ME-UUID: 20100524160502696.AA08E1C01F37@mwinf3536.me.freeserve.com Received: from boulder.homenet (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.14.3/8.14.3) with ESMTP id o4OG52n5010519; Mon, 24 May 2010 17:05:03 +0100 Date: Mon, 24 May 2010 17:05:02 +0100 From: Chris Vine To: Daniel Eischen Message-ID: <20100524170502.78a8c98b@boulder.homenet> In-Reply-To: References: <20100524140513.6475cb2c@boulder.homenet> <20100524151426.7ec75b1a@boulder.homenet> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-threads@freebsd.org Subject: Re: Monotonic clocks 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 May 2010 16:05:04 -0000 On Mon, 24 May 2010 10:59:44 -0400 (EDT) Daniel Eischen wrote: [snip] > The prototype has been in since Oct 2005, and is in > FreeBSD version 7 and subsequent. Debian say they base their port on version 7.2 so it looks as if they have managed to break it. In any event, sysconf() is supposed to pick up these things, so lets hope with the additional test for _POSIX_CLOCK_SELECTION it does so. Chris From owner-freebsd-threads@FreeBSD.ORG Mon May 24 17:45:14 2010 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C917106564A for ; Mon, 24 May 2010 17:45:14 +0000 (UTC) (envelope-from julian@elischer.org) Received: from out-0.mx.aerioconnect.net (out-0-26.mx.aerioconnect.net [216.240.47.86]) by mx1.freebsd.org (Postfix) with ESMTP id DF3308FC15 for ; Mon, 24 May 2010 17:45:13 +0000 (UTC) Received: from idiom.com (postfix@mx0.idiom.com [216.240.32.160]) by out-0.mx.aerioconnect.net (8.13.8/8.13.8) with ESMTP id o4OHXmvW019002; Mon, 24 May 2010 10:33:49 -0700 X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by idiom.com (Postfix) with ESMTP id 443CD2D6011; Mon, 24 May 2010 10:33:47 -0700 (PDT) Message-ID: <4BFAB886.1070801@elischer.org> Date: Mon, 24 May 2010 10:33:58 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Chris Vine References: <20100524140513.6475cb2c@boulder.homenet> <20100524151426.7ec75b1a@boulder.homenet> <20100524170502.78a8c98b@boulder.homenet> In-Reply-To: <20100524170502.78a8c98b@boulder.homenet> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on 216.240.47.51 Cc: Daniel Eischen , freebsd-threads@freebsd.org Subject: Re: Monotonic clocks 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 May 2010 17:45:14 -0000 On 5/24/10 9:05 AM, Chris Vine wrote: > On Mon, 24 May 2010 10:59:44 -0400 (EDT) > Daniel Eischen wrote: > [snip] >> The prototype has been in since Oct 2005, and is in >> FreeBSD version 7 and subsequent. > > Debian say they base their port on version 7.2 so it looks as if they > have managed to break it. > > In any event, sysconf() is supposed to pick up these things, so lets > hope with the additional test for _POSIX_CLOCK_SELECTION it does so. who knows it they are using OUR include files or own of their own based on glibc and friends. As far as I know they only use our kernel, so any threading is possibly their own work, or maybe some hybrid... While we welcome people to use our stuff we don't really follow what they do with it :-) > > Chris > > > _______________________________________________ > freebsd-threads@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-threads > To unsubscribe, send any mail to "freebsd-threads-unsubscribe@freebsd.org" From owner-freebsd-threads@FreeBSD.ORG Tue May 25 22:30:03 2010 Return-Path: Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 035DE106567E for ; Tue, 25 May 2010 22:30:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id BBD438FC1F for ; Tue, 25 May 2010 22:30:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o4PMU2i2069131 for ; Tue, 25 May 2010 22:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o4PMU2mL069128; Tue, 25 May 2010 22:30:02 GMT (envelope-from gnats) Resent-Date: Tue, 25 May 2010 22:30:02 GMT Resent-Message-Id: <201005252230.o4PMU2mL069128@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, xkaorjgu Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD0DF1065672 for ; Tue, 25 May 2010 22:22:20 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 8409F8FC08 for ; Tue, 25 May 2010 22:22:20 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o4PMMKml055854 for ; Tue, 25 May 2010 22:22:20 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o4PMMKSY055853; Tue, 25 May 2010 22:22:20 GMT (envelope-from nobody) Message-Id: <201005252222.o4PMMKSY055853@www.freebsd.org> Date: Tue, 25 May 2010 22:22:20 GMT From: xkaorjgu To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: threads/146984: xkaorjgu X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 May 2010 22:30:03 -0000 >Number: 146984 >Category: threads >Synopsis: xkaorjgu >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-threads >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Tue May 25 22:30:02 UTC 2010 >Closed-Date: >Last-Modified: >Originator: xkaorjgu >Release: xkaorjgu >Organization: xkaorjgu >Environment: xkaorjgu >Description: [URL=http://eqdafulq.com]dpigxvsi[/URL] ekkaffps http://wopijeky.com nlklgzog yhsbtprh dyzourfp >How-To-Repeat: xkaorjgu >Fix: xkaorjgu >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-threads@FreeBSD.ORG Tue May 25 22:30:08 2010 Return-Path: Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 321E7106566B for ; Tue, 25 May 2010 22:30:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id EACA88FC2F for ; Tue, 25 May 2010 22:30:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o4PMU7xI069659 for ; Tue, 25 May 2010 22:30:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o4PMU73V069649; Tue, 25 May 2010 22:30:07 GMT (envelope-from gnats) Resent-Date: Tue, 25 May 2010 22:30:07 GMT Resent-Message-Id: <201005252230.o4PMU73V069649@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, zedivvrl Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 45536106566C for ; Tue, 25 May 2010 22:27:10 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 1C1558FC14 for ; Tue, 25 May 2010 22:27:10 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o4PMR9l0066705 for ; Tue, 25 May 2010 22:27:09 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o4PMR95P066704; Tue, 25 May 2010 22:27:09 GMT (envelope-from nobody) Message-Id: <201005252227.o4PMR95P066704@www.freebsd.org> Date: Tue, 25 May 2010 22:27:09 GMT From: zedivvrl To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: threads/146991: zedivvrl X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 May 2010 22:30:08 -0000 >Number: 146991 >Category: threads >Synopsis: zedivvrl >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-threads >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue May 25 22:30:07 UTC 2010 >Closed-Date: >Last-Modified: >Originator: zedivvrl >Release: zedivvrl >Organization: zedivvrl >Environment: zedivvrl >Description: dwyhhvev http://fuaygkpy.com mavyykkk zuhlzijr yxanroag [URL=http://joowhdyz.com]yxkvvhfw[/URL] >How-To-Repeat: zedivvrl >Fix: zedivvrl >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-threads@FreeBSD.ORG Tue May 25 22:53:05 2010 Return-Path: Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F1276106566C; Tue, 25 May 2010 22:53:05 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CA0BF8FC17; Tue, 25 May 2010 22:53:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o4PMr5H4095007; Tue, 25 May 2010 22:53:05 GMT (envelope-from gavin@freefall.freebsd.org) Received: (from gavin@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o4PMr5Z7095003; Tue, 25 May 2010 22:53:05 GMT (envelope-from gavin) Date: Tue, 25 May 2010 22:53:05 GMT Message-Id: <201005252253.o4PMr5Z7095003@freefall.freebsd.org> To: zwkbljex@udgohiei.com, gavin@FreeBSD.org, freebsd-threads@FreeBSD.org, gavin@FreeBSD.org From: gavin@FreeBSD.org Cc: Subject: Re: threads/146984: xkaorjgu X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 May 2010 22:53:06 -0000 Synopsis: xkaorjgu State-Changed-From-To: open->closed State-Changed-By: gavin State-Changed-When: Tue May 25 22:52:50 UTC 2010 State-Changed-Why: Spam Responsible-Changed-From-To: freebsd-threads->gavin Responsible-Changed-By: gavin Responsible-Changed-When: Tue May 25 22:52:50 UTC 2010 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=146984 From owner-freebsd-threads@FreeBSD.ORG Tue May 25 22:55:41 2010 Return-Path: Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F374F1065676; Tue, 25 May 2010 22:55:40 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CBED68FC15; Tue, 25 May 2010 22:55:40 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o4PMtekT095313; Tue, 25 May 2010 22:55:40 GMT (envelope-from gavin@freefall.freebsd.org) Received: (from gavin@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o4PMteCF095309; Tue, 25 May 2010 22:55:40 GMT (envelope-from gavin) Date: Tue, 25 May 2010 22:55:40 GMT Message-Id: <201005252255.o4PMteCF095309@freefall.freebsd.org> To: pezlceyd@qegudnwb.com, gavin@FreeBSD.org, freebsd-threads@FreeBSD.org, gavin@FreeBSD.org From: gavin@FreeBSD.org Cc: Subject: Re: junk/146991: zedivvrl X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 May 2010 22:55:41 -0000 Synopsis: zedivvrl State-Changed-From-To: open->closed State-Changed-By: gavin State-Changed-When: Tue May 25 22:55:13 UTC 2010 State-Changed-Why: Spam Responsible-Changed-From-To: freebsd-threads->gavin Responsible-Changed-By: gavin Responsible-Changed-When: Tue May 25 22:55:13 UTC 2010 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=146991 From owner-freebsd-threads@FreeBSD.ORG Wed May 26 10:10:05 2010 Return-Path: Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A1E3106564A for ; Wed, 26 May 2010 10:10:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E31E98FC1D for ; Wed, 26 May 2010 10:10:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o4QAA44M011512 for ; Wed, 26 May 2010 10:10:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o4QAA4CL011511; Wed, 26 May 2010 10:10:04 GMT (envelope-from gnats) Resent-Date: Wed, 26 May 2010 10:10:04 GMT Resent-Message-Id: <201005261010.o4QAA4CL011511@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, otqynxcb Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6FAA31065672 for ; Wed, 26 May 2010 10:05:06 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 4667D8FC0C for ; Wed, 26 May 2010 10:05:06 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o4QA55LY090352 for ; Wed, 26 May 2010 10:05:05 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o4QA55VL090350; Wed, 26 May 2010 10:05:05 GMT (envelope-from nobody) Message-Id: <201005261005.o4QA55VL090350@www.freebsd.org> Date: Wed, 26 May 2010 10:05:05 GMT From: otqynxcb To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: threads/147068: otqynxcb 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: Wed, 26 May 2010 10:10:05 -0000 >Number: 147068 >Category: threads >Synopsis: otqynxcb >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-threads >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Wed May 26 10:10:04 UTC 2010 >Closed-Date: >Last-Modified: >Originator: otqynxcb >Release: otqynxcb >Organization: otqynxcb >Environment: otqynxcb >Description: mjzzsshn http://yyrxdvax.com mhvcthnw bacpjdbj >How-To-Repeat: otqynxcb >Fix: otqynxcb >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-threads@FreeBSD.ORG Wed May 26 14:21:03 2010 Return-Path: Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18AF51065676; Wed, 26 May 2010 14:21:03 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E55CE8FC0A; Wed, 26 May 2010 14:21:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o4QEL27h037552; Wed, 26 May 2010 14:21:02 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o4QEL2UC037548; Wed, 26 May 2010 14:21:02 GMT (envelope-from linimon) Date: Wed, 26 May 2010 14:21:02 GMT Message-Id: <201005261421.o4QEL2UC037548@freefall.freebsd.org> To: revdsknj@flwvtywc.com, linimon@FreeBSD.org, freebsd-threads@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: junk/147068: otqynxcb 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: Wed, 26 May 2010 14:21:03 -0000 Synopsis: otqynxcb State-Changed-From-To: open->closed State-Changed-By: linimon State-Changed-When: Wed May 26 14:20:50 UTC 2010 State-Changed-Why: spam run. http://www.freebsd.org/cgi/query-pr.cgi?pr=147068 From owner-freebsd-threads@FreeBSD.ORG Thu May 27 13:26:45 2010 Return-Path: Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E9F51065677; Thu, 27 May 2010 13:26:45 +0000 (UTC) (envelope-from kan@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 470C78FC1F; Thu, 27 May 2010 13:26:45 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o4RDQjaV069448; Thu, 27 May 2010 13:26:45 GMT (envelope-from kan@freefall.freebsd.org) Received: (from kan@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o4RDQiX9069443; Thu, 27 May 2010 13:26:44 GMT (envelope-from kan) Date: Thu, 27 May 2010 13:26:44 GMT Message-Id: <201005271326.o4RDQiX9069443@freefall.freebsd.org> To: cfishwu@corp.netease.com, kan@FreeBSD.org, freebsd-threads@FreeBSD.org From: kan@FreeBSD.org Cc: Subject: Re: threads/146917: open(), accept() are not thread safe 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 May 2010 13:26:45 -0000 Synopsis: open(), accept() are not thread safe State-Changed-From-To: feedback->closed State-Changed-By: kan State-Changed-When: Thu May 27 13:25:22 UTC 2010 State-Changed-Why: The PR submitter reports that he has found a problem in his code. http://www.freebsd.org/cgi/query-pr.cgi?pr=146917