From owner-freebsd-stable@FreeBSD.ORG Fri Jul 4 17:19:15 2014 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B66AC6EF for ; Fri, 4 Jul 2014 17:19:15 +0000 (UTC) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7578C2E76 for ; Fri, 4 Jul 2014 17:19:14 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id E52581FE02D; Fri, 4 Jul 2014 19:19:06 +0200 (CEST) Message-ID: <53B6E218.5070009@selasky.org> Date: Fri, 04 Jul 2014 19:19:20 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: David Wolfskill , stable@freebsd.org Subject: Re: r268244 (stable/9) seems to break "sysctl hw.ncpu" References: <20140704123901.GR6056@albert.catwhisker.org> In-Reply-To: <20140704123901.GR6056@albert.catwhisker.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jul 2014 17:19:15 -0000 On 07/04/14 14:39, David Wolfskill wrote: > After building & installing @r268208 (yesterday), "sysctl hw.ncpu" > reports a number (e.g., "2" for my laptop). > > After building & installing @r268244 (today)... > > freebeast(9.3-P)[5] sysctl hw.ncpu | hd > 00000000 68 77 2e 6e 63 70 75 3a 20 0a |hw.ncpu: .| > 0000000a > freebeast(9.3-P)[6] > > After reverting r268244, then "cd /usr/src/sbin/sysctl && make && make > install": > > g1-252(9.3-P)[8] sysctl hw.ncpu | hd > 00000000 68 77 2e 6e 63 70 75 3a 20 32 0a |hw.ncpu: > 2.| > 0000000b > g1-252(9.3-P)[9] > > > I note that I also track stable/10 and head (on different slices; > daily) on the machine; haven't seen similar behavior in either > environment. > > Note that it is not uncommon for certain ports builds to expect to get a > number from "sysctl -n hw.ncpu", and when that doesn't happen, the ports > builds tend to stop working. Hi, I cannot reproduce this. Using the same kernel and running sysctl from. My patch to 9-stable will not affect printing of integers. 9-stable and 10-stable and current "sysctl" code all gives the same result over here with 9-stable kernel: sysctl -n hw.ncpu | hd 00000000 32 0a |2.| sysctl hw.ncpu | hd 00000000 68 77 2e 6e 63 70 75 3a 20 32 0a |hw.ncpu: 2.| Can you tell me exactly what kernel version you are using, "uname -a" and which version of "sysctl" with which version of the kernel is failing, so that I can reproduce. Thank you! --HPS