From owner-freebsd-current@FreeBSD.ORG Tue Jan 15 03:39:18 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B0368B48; Tue, 15 Jan 2013 03:39:18 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-da0-f53.google.com (mail-da0-f53.google.com [209.85.210.53]) by mx1.freebsd.org (Postfix) with ESMTP id 7F590147; Tue, 15 Jan 2013 03:39:18 +0000 (UTC) Received: by mail-da0-f53.google.com with SMTP id x6so2063928dac.40 for ; Mon, 14 Jan 2013 19:39:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:subject:mime-version:content-type:from:in-reply-to:date :cc:content-transfer-encoding:message-id:references:to:x-mailer; bh=Id7UE1ITSKHw89dm8WJ7m3ziLLnkPVJmID/UU1Zuis4=; b=zSnSXjN2RGqFtF1sUplPdRyz/RQkACXoaRzbtww5yf3WWmI/FgOkAG4jgcoM9U3/jq EpI6v43gSwcNxQlYVc0SCFQK1dplA/vQXcOyRq+RTeOzlJczvvvE+mNOiDrUu8EpdEUw 4xIPmNRNr1DUcJXZ4TEKn6kokN4OwZoGFUu25HEoLuAKnkBSnTMSjNCyJpindKxSWne9 T9nBOhj+XSRoP+8ZOAYybnDyjW/GXTdbG/5OeppuCbcIiBeBN/cwJsBkhmPQc4HbUH+X NKy8+USe/0z6Y6K5eh2hrdLz8bRiYm5UMx+tJUuVCtZ09qfFV5MlKDDFLbtumSjNnAW/ 2wng== X-Received: by 10.68.132.98 with SMTP id ot2mr260119096pbb.39.1358221158096; Mon, 14 Jan 2013 19:39:18 -0800 (PST) Received: from [192.168.242.58] (c-67-182-131-225.hsd1.wa.comcast.net. [67.182.131.225]) by mx.google.com with ESMTPS id rv8sm1479553pbc.27.2013.01.14.19.39.16 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Jan 2013 19:39:17 -0800 (PST) Subject: Re: ktrace -d broken on current/stable-9 Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: Garrett Cooper In-Reply-To: <4850A09B-A054-4B38-891C-06673F7195B2@gmail.com> Date: Mon, 14 Jan 2013 19:39:16 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <4099FD6F-1F1B-481F-ABE7-F710551768CE@gmail.com> References: <4850A09B-A054-4B38-891C-06673F7195B2@gmail.com> To: FreeBSD Current X-Mailer: Apple Mail (2.1283) Cc: kib@FreeBSD.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2013 03:39:18 -0000 BTW, the brokenness can be seen in the fact that the PID does = not change across execs, but it seems to affect output as well as I was = not able to see syscall output from write when it printed out = "Executing" as shown in the snippet below. Thanks, -Garrett On Jan 14, 2013, at 6:48 PM, Garrett Cooper wrote: > I tried using ktrace on a kernel compiled a week ago, and it = appears to not be following forks like it should on amd64: >=20 > # ktrace -d ./regress -l > rename_file move_files_into_dir move_file_from_dir_to_file = move_file_from_dir_to_existing_file move_file_from_dir_to_existing_dir = move_file_from_dir_to_dir rename_dir move_dir_to_dir_name = move_dir_to_dir move_file_from_dir_to_empty_dir = move_file_from_dir_to_nonempty_dir move_dir_to_existing_file = move_file_from_dir_to_dir move_file_from_dir_to_dir = move_file_from_dir_to_dir move_fifo_from_dir_to_dir > rename_file move_files_into_dir move_file_from_dir_to_file = move_file_from_dir_to_existing_file move_file_from_dir_to_existing_dir = move_file_from_dir_to_dir rename_dir move_dir_to_dir_name = move_dir_to_dir move_file_from_dir_to_empty_dir = move_file_from_dir_to_nonempty_dir move_dir_to_existing_file = move_file_from_dir_to_dir move_file_from_dir_to_dir = move_file_from_dir_to_dir move_fifo_from_dir_to_dir = rename_file_cross_device move_files_into_dir_cross_device = move_file_from_dir_to_file_cross_device = move_file_from_dir_to_existing_file_cross_device = move_file_from_dir_to_existing_dir_cross_device = move_file_from_dir_to_dir_cross_device rename_dir_cross_device = move_dir_to_dir_name_cross_device move_dir_to_dir_cross_device = move_file_from_dir_to_empty_dir_cross_device = move_file_from_dir_to_nonempty_dir_cross_device = move_dir_to_existing_file_cross_device = move_file_from_dir_to_dir_cross_device = move_file_from_dir_to_dir_cross_device = move_file_from_dir_to_dir_cross_device = move_fifo_from_dir_to_dir_cross_device > Content-Type: application/X-atf-tp; version=3D"1" >=20 > ident: rename_file > descr: Rename file >=20 > ident: move_files_into_dir > descr: Move files into directory >=20 > Executing command [ mv 1/2/3/fa fb ] >=20 > # uname -a > FreeBSD fuji-current.local 10.0-CURRENT FreeBSD 10.0-CURRENT #2 = r+73182f4: Sun Jan 6 13:41:52 PST 2013 = root@fuji-current.local:/usr/obj/usr/src/sys/FUJI i386 > # kdump | awk '$1 ~ /25/' | sort -u -k 1 -n > 25195 ktrace RET ktrace 0 >=20 > Not sure how it broke, but it was working a couple months ago = (in particular I remember it working either around October or November), = and the bug seems to have worked its way back to 9-STABLE (I'm running = into the same problem if I do ktrace -d, enter a shell, then exec = another shell from that shell). Haven't spent the time to bisect the = commits looking for the culprit (yet), but if need be I'll trace down = the culprit sometime this week. > truss works, so it doesn't seem like ptrace(2) is broken. > Thanks, > -Garrett