From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 20 08:23:44 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9FE7B16A41F for ; Sat, 20 Aug 2005 08:23:44 +0000 (GMT) (envelope-from tyler@tamu.edu) Received: from smtp-relay.tamu.edu (smtp-relay.tamu.edu [165.91.143.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 52CA043D45 for ; Sat, 20 Aug 2005 08:23:44 +0000 (GMT) (envelope-from tyler@tamu.edu) Received: from [192.168.1.100] (disisit.com [24.248.192.101] (may be forged)) (authenticated bits=0) by smtp-relay.tamu.edu (8.13.3/8.12.10/oc) with ESMTP id j7K8NgIK010229 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Sat, 20 Aug 2005 03:23:43 -0500 (CDT) Mime-Version: 1.0 (Apple Message framework v734) Content-Transfer-Encoding: 7bit Message-Id: <64E87984-E173-4637-96AC-84BE7ABB60B1@tamu.edu> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-hackers@freebsd.org From: "R. Tyler Ballance" Date: Sat, 20 Aug 2005 03:23:35 -0500 X-Mailer: Apple Mail (2.734) Received-SPF: pass (smtp-relay.tamu.edu: 24.248.192.101 is authenticated by a trusted mechanism) Subject: pthread functions swallowing stdout, and stderr? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Aug 2005 08:23:44 -0000 Howdy, I'm working on my SoC project, where one of the important, yet broken, functions is being called from pthread_once() I have printf()'s before the pthread_once() call to help me debug, and printf()'s after the pthread_once() call, but the function that is called in pthread_once() has printf()'s inside it that never output to stdout :/ Here are some links in case I'm not making sense: http://perforce.freebsd.org/fileViewer.cgi?FSPC=//depot/projects/ soc2005/launchd/liblaunch.c&REV=7 The function that calls pthread_once() is launch_msg() on line 692, the pthread_once() calls launch_client_init() on line 119. Nothing from within launch_client_init() gets output to the terminal, while the printfs in launch_msg() before and after the launch_client_init() call are both output.... Any tips? :/ Cheers, -R. Tyler Ballance