Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jul 2007 00:12:55 -0500 (CDT)
From:      Stephen Montgomery-Smith <stephen@math.missouri.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   threads/114982: threads sends error messages to stdout
Message-ID:  <200707280512.l6S5Ct2T069168@cauchy.math.missouri.edu>
Resent-Message-ID: <200707280520.l6S5K116033298@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707280512.l6S5Ct2T069168>