threads/114982: threads sends error messages to stdout

Stephen Montgomery-Smith stephen at math.missouri.edu
Sat Jul 28 05:20:02 UTC 2007


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


More information about the freebsd-threads mailing list