From owner-freebsd-current@FreeBSD.ORG Tue Jan 15 02:48:16 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 05F307B9; Tue, 15 Jan 2013 02:48:16 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-pb0-f41.google.com (mail-pb0-f41.google.com [209.85.160.41]) by mx1.freebsd.org (Postfix) with ESMTP id D5477D95; Tue, 15 Jan 2013 02:48:15 +0000 (UTC) Received: by mail-pb0-f41.google.com with SMTP id xa7so2566600pbc.28 for ; Mon, 14 Jan 2013 18:48:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:content-type:content-transfer-encoding:subject:date :message-id:cc:to:mime-version:x-mailer; bh=hk+6J0wzVLC2hcsJk8YkRKvbWYp6j9YR8CoVDV+3ZqQ=; b=Bvw/Vc6KfGIbnybxNM/tKHTW2ztyBLtdLNP7NguaYQUFShyEgY09xedXOCXC4AlyK0 BrjKsPfIU5CKaDfA8G49mrJemkpLcjwTNAjATBeUcoXAeEnIRqXNJh/7zedH4ahzsR7H 6BHWJtmor4fVo4g1qXBMDBani0yX2tfLp8NjjM2cuo2Dly855IC8YURsXpjW7BJTvhBF tl3dgbqizWud6a10R2sOSQ7H80YENnhm1JelLKo5dBkHyoI2rbOfEVa1PaPhtyxTnIJQ i0dTQF8/Ia7FPyPibinCKkzcBHvrK8QxcIdfP5iPbS59LhSp1Ufns7UdG15vkhy3lTog vhog== X-Received: by 10.66.88.37 with SMTP id bd5mr237623993pab.75.1358218095370; Mon, 14 Jan 2013 18:48:15 -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 oj5sm9265802pbb.47.2013.01.14.18.48.14 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Jan 2013 18:48:14 -0800 (PST) From: Garrett Cooper Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: ktrace -d broken on current/stable-9 Date: Mon, 14 Jan 2013 18:48:13 -0800 Message-Id: <4850A09B-A054-4B38-891C-06673F7195B2@gmail.com> To: FreeBSD Current Mime-Version: 1.0 (Apple Message framework v1283) 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 02:48:16 -0000 I tried using ktrace on a kernel compiled a week ago, and it = appears to not be following forks like it should on amd64: # 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" ident: rename_file descr: Rename file ident: move_files_into_dir descr: Move files into directory Executing command [ mv 1/2/3/fa fb ] # 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 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=