From owner-freebsd-stable@FreeBSD.ORG Wed Mar 30 16:49:28 2011 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 050C5106566B; Wed, 30 Mar 2011 16:49:28 +0000 (UTC) (envelope-from lichray@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 94C8A8FC17; Wed, 30 Mar 2011 16:49:27 +0000 (UTC) Received: by qwc9 with SMTP id 9so1104188qwc.13 for ; Wed, 30 Mar 2011 09:49:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=JFmasQEk+33lduDzjGZZMFoBwQIO4Tj7POndKsKb5Jg=; b=Xatm9D4IdU4jLwtWlyTqsTFwesHCtRl29Sn0nNAbe3UnUY+yBJSc2IoFuxU2IaUE3c I/orvHMXSRMmM5xa3iF6rtDbGnqmr9z/d4ps8+aPxYJyvqA0+JnBNHLR4NI/5JhtbwhJ 8jyKyczjqBPIk6I9Z2dqnUDBx9c7fYDpIpYLk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=fUPbGLZ50YWuGcc2mPdFXMWqi9Sm4EECU/0HTeUsWvE6/aWZGhwNHkR6u6z1tdg3Eu SzgIELd0sUIdkxEx6jmkydiAIsTW1KOSEVrPbQXwe2h5+HgcCYUwyDCgQtUjiP0a1/Wy 16dZdlnGJcGSigusNzg4cE++Wp26Pq29u+NBc= MIME-Version: 1.0 Received: by 10.224.138.16 with SMTP id y16mr1287376qat.255.1301503766784; Wed, 30 Mar 2011 09:49:26 -0700 (PDT) Received: by 10.224.20.19 with HTTP; Wed, 30 Mar 2011 09:49:26 -0700 (PDT) In-Reply-To: <16E90817-1FFF-4790-8E77-3A66C3D7F016@gmail.com> References: <20110301101015.GN78089@deviant.kiev.zoral.com.ua> <08280117-07E0-42CF-A250-3E418E48A8E7@gmail.com> <16E90817-1FFF-4790-8E77-3A66C3D7F016@gmail.com> Date: Wed, 30 Mar 2011 11:49:26 -0500 Message-ID: From: Zhihao Yuan To: Nikolay Denev Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Kostik Belousov , stable@freebsd.org, Robert Watson Subject: Re: FYI: Userspace DTrace MFC to stable/8 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2011 16:49:28 -0000 On Wed, Mar 30, 2011 at 3:56 AM, Nikolay Denev wrote: > > On Mar 30, 2011, at 11:24 AM, Zhihao Yuan wrote: > > On Wed, Mar 30, 2011 at 2:57 AM, Nikolay Denev wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > On Mar 1, 2011, at 12:10 PM, Kostik Belousov wrote: > > On Tue, Mar 01, 2011 at 11:03:07AM +0200, Nikolay Denev wrote: > > On 1 Mar, 2011, at 01:33 , Robert Watson wrote: > > Dear all: > > Just an FYI that I've gone ahead and merged userspace DTrace support to > FreeBSD 8.x from 9.x. =C2=A0While it appeared to pass build tests locally= , boot > and run, etc, this is a non-trivial merge, and it's possible I've messed = up. > =C2=A0If so, apologies in advance, and I'll try to resolve any problems a= s > quickly as I can! > > And of course, many thanks go to Rui Paulo, who did the port of userspace > DTrace to FreeBSD 9.x with support from the FreeBSD Foundation! > > Thanks, > > Robert N M Watson > > Computer Laboratory > > University of Cambridge > > > That's great news! Many thanks to all that made this possible! > > I have a quick question though, now do I have to rebuild my world with > "WITH_CTF" ? > > I'm asking because I did that by mistake some months ago on a RELENG_8 > machine, and > > the world that was built had some problems, like gcc giving segfault 11 > while compiling world or some ports. > > It was a known issue that ctfconvert (I think it is ctfconvert) damages > > statically linked binaries. Most likely, it was not fixed yet. > > I can confirm this is not fixed yet. > > I have two STABLE-8 machines which had their world rebuilt with WITH_CTF > option, > > and now I'm unable to rebuild the world as both machines fail with > Segmentation Fault: 11 on exactly the same place : > > mkdep -f .depend -a =C2=A0 =C2=A0-I/usr/obj/usr/src/tmp/legacy/usr/includ= e > -I/usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/lib > -I/usr/src/gnu/usr.bin/gperf > =C2=A0/usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/bool-array.cc > /usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/gen-perf.cc > /usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/hash-table.cc > /usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/iterator.cc > /usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/key-list.cc > /usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/list-node.cc > /usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/main.cc > /usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/new.cc > /usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/options.cc > /usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/read-line.cc > /usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/trace.cc > /usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/vectors.cc > /usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/version.cc > /usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/lib/hash.cc > > cc: Internal error: Segmentation fault: 11 (program cc1plus) > > Please submit a full bug report. > > See for instructions. > > mkdep: compile failed > > *** Error code 1 > > Stop in /usr/src/gnu/usr.bin/gperf. > > *** Error code 1 > > Stop in /usr/src. > > *** Error code 1 > > Stop in /usr/src. > > *** Error code 1 > > Stop in /usr/src. > > I have met this problem before. WITH_CTF on world is not required to > use DTrace, and it seems that the gcc is broken. If can get a working > gcc4.2 in the base system, you are ucky. Or, you can download a base > system for the FreeBSD FTP site, and install it to a temp path, then > copy the gcc binary to /usr/bin. > > > Yes, but since now the userspace DTrace portions have been MFCed I believ= e > one needs a world WITH_CTF to use it? > Anyways, I've already fixed my installations, exactly by downloading a IS= O > image and extracting only the > GCC stuff. > Regards, > Nikolay WITH_CTF adds the DTrace provider support to a program (if I was wrong, please correct me). So far, DTrace on FreeBSD is intended for kernel tracing. Some day in the future, we may have DTrace support for the userland tools (we do have userland providers, but they are used to debug a program in general). --=20 Zhihao Yuan The best way to predict the future is to invent it.