From owner-freebsd-threads@FreeBSD.ORG Sun Jul 22 03:40:28 2007 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 5E04516A41B for ; Sun, 22 Jul 2007 03:40:28 +0000 (UTC) (envelope-from freebsd_noob@yahoo.com) Received: from web45011.mail.sp1.yahoo.com (web45011.mail.sp1.yahoo.com [68.180.197.138]) by mx1.freebsd.org (Postfix) with SMTP id 3025F13C467 for ; Sun, 22 Jul 2007 03:40:28 +0000 (UTC) (envelope-from freebsd_noob@yahoo.com) Received: (qmail 11959 invoked by uid 60001); 22 Jul 2007 03:13:46 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=5raObmtvg5becrQVQSaWX1bp1w5adux0tZ18CkWx1/tA3Pom4QpKpcTVP6yno6M9G/qAW1lW3jahOFkAFN6GM2KXDHqrJseSviNR9UPUUsIK+Ukqc9Be0H8hCHY+FnHYXEfEAwzK/wlLLwvlIR8+8LqR2o+wu7DTF+PvKZa2kPw=; X-YMail-OSG: mRdofEQVM1mm3efyrY36qgwZC1gb.ogdEbXbwWLJRJlDwLzvnJCgrrjo5m2NkEGRh_0iOoqT1f2rMr6qCrIi45XtD4RxBGBabRg- Received: from [198.95.226.224] by web45011.mail.sp1.yahoo.com via HTTP; Sat, 21 Jul 2007 20:13:46 PDT Date: Sat, 21 Jul 2007 20:13:46 -0700 (PDT) From: Akshay Kawale To: freebsd-threads@freebsd.org MIME-Version: 1.0 Message-ID: <394346.11505.qm@web45011.mail.sp1.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: kse and pthreads source 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: Sun, 22 Jul 2007 03:40:28 -0000 Where I can find the source code for kse and pthreads? I'm running FreeBSD 6.2-RELEASE. Also, does the FreeBSD implementation of pthreads call the kse related syscalls internally? Thanks. --------------------------------- Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. From owner-freebsd-threads@FreeBSD.ORG Sun Jul 22 04:27:59 2007 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 2E77216A41B for ; Sun, 22 Jul 2007 04:27:59 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outK.internet-mail-service.net (outK.internet-mail-service.net [216.240.47.234]) by mx1.freebsd.org (Postfix) with ESMTP id 18B2013C4A7 for ; Sun, 22 Jul 2007 04:27:59 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.32) with ESMTP; Sat, 21 Jul 2007 21:27:58 -0700 Received: from julian-mac.elischer.org (home.elischer.org [216.240.48.38]) by idiom.com (Postfix) with ESMTP id 281BF125A23; Sat, 21 Jul 2007 21:27:58 -0700 (PDT) Message-ID: <46A2DCEF.5020105@elischer.org> Date: Sat, 21 Jul 2007 21:28:31 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.4 (Macintosh/20070604) MIME-Version: 1.0 To: Akshay Kawale References: <394346.11505.qm@web45011.mail.sp1.yahoo.com> In-Reply-To: <394346.11505.qm@web45011.mail.sp1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-threads@freebsd.org Subject: Re: kse and pthreads source 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: Sun, 22 Jul 2007 04:27:59 -0000 Akshay Kawale wrote: > Where I can find the source code for kse and pthreads? > I'm running FreeBSD 6.2-RELEASE. /usr/src/sys/kern/kern_kse.c /usr/src/lib/libpthread > > Also, does the FreeBSD implementation of pthreads call the kse related syscalls internally? yes However in 7.0 the default threading library switches to the compatible libthr which uses a 1:1 model due to increased efficiencies. > > Thanks. > > > > --------------------------------- > Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. > _______________________________________________ > 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 Mon Jul 23 11:08:39 2007 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 8E8BD16A4D2 for ; Mon, 23 Jul 2007 11:08:39 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 71EE013C4A7 for ; Mon, 23 Jul 2007 11:08:39 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l6NB8dSe045488 for ; Mon, 23 Jul 2007 11:08:39 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l6NB8cpe045484 for freebsd-threads@FreeBSD.org; Mon, 23 Jul 2007 11:08:38 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 23 Jul 2007 11:08:38 GMT Message-Id: <200707231108.l6NB8cpe045484@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 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, 23 Jul 2007 11:08:39 -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/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 kern/91266 threads [threads] Trying sleep, but thread marked as sleeping s threa/94467 threads send(), sendto() and sendmsg() are not correct in libc 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 o threa/110636 threads gdb(1): using gdb with multi thread application with l o threa/113666 threads misc/shared-mime-info doesn't install, can't find thre 28 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/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 o threa/110306 threads apache 2.0 segmentation violation when calling gethost 10 problems total. From owner-freebsd-threads@FreeBSD.ORG Sat Jul 28 05:20:01 2007 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 ED28F16A417 for ; Sat, 28 Jul 2007 05:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B97EF13C461 for ; Sat, 28 Jul 2007 05:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l6S5K1dk033299 for ; Sat, 28 Jul 2007 05:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l6S5K116033298; Sat, 28 Jul 2007 05:20:01 GMT (envelope-from gnats) Resent-Date: Sat, 28 Jul 2007 05:20:01 GMT Resent-Message-Id: <200707280520.l6S5K116033298@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, Stephen Montgomery-Smith Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D4D316A417 for ; Sat, 28 Jul 2007 05:12:56 +0000 (UTC) (envelope-from stephen@cauchy.math.missouri.edu) Received: from cauchy.math.missouri.edu (cauchy.math.missouri.edu [128.206.184.213]) by mx1.freebsd.org (Postfix) with ESMTP id 0C46213C442 for ; Sat, 28 Jul 2007 05:12:55 +0000 (UTC) (envelope-from stephen@cauchy.math.missouri.edu) Received: from cauchy.math.missouri.edu (localhost [127.0.0.1]) by cauchy.math.missouri.edu (8.14.1/8.13.4) with ESMTP id l6S5CtmR069169 for ; Sat, 28 Jul 2007 00:12:55 -0500 (CDT) (envelope-from stephen@cauchy.math.missouri.edu) Received: (from stephen@localhost) by cauchy.math.missouri.edu (8.14.1/8.13.4/Submit) id l6S5Ct2T069168; Sat, 28 Jul 2007 00:12:55 -0500 (CDT) (envelope-from stephen) Message-Id: <200707280512.l6S5Ct2T069168@cauchy.math.missouri.edu> Date: Sat, 28 Jul 2007 00:12:55 -0500 (CDT) From: Stephen Montgomery-Smith To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: threads/114982: threads sends error messages to stdout X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Stephen Montgomery-Smith List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jul 2007 05:20:02 -0000 >Number: 114982 >Category: threads >Synopsis: threads sends error messages to stdout >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-threads >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jul 28 05:20:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Stephen Montgomery-Smith >Release: FreeBSD 6.2-STABLE i386 >Organization: >Environment: System: FreeBSD cauchy 6.2-STABLE FreeBSD 6.2-STABLE #1: Wed Jul 25 15:24:32 CDT 2007 stephen@cauchy:/usr/obj/usr/src/sys/cauchy i386 >Description: This is already described in http://lists.freebsd.org/pipermail/freebsd-current/2007-July/075454.html, except it happens in STABLE as well - exactly the same bug happens in pthreads as well as libthr. >How-To-Repeat: >Fix: --- lib/libpthread/thread/thr_private.h-orig 2007-07-28 00:05:20.000000000 -0500 +++ lib/libpthread/thread/thr_private.h 2007-07-28 00:05:57.000000000 -0500 @@ -78,7 +78,7 @@ /* Output debug messages like this: */ #define stdout_debug(args...) _thread_printf(STDOUT_FILENO, ##args) -#define stderr_debug(args...) _thread_printf(STDOUT_FILENO, ##args) +#define stderr_debug(args...) _thread_printf(STDERR_FILENO, ##args) #define DBG_MUTEX 0x0001 #define DBG_SIG 0x0002 >Release-Note: >Audit-Trail: >Unformatted: