ktrace -d broken on current/stable-9

From: Garrett Cooper <yanegomi_at_gmail.com>
Date: Mon, 14 Jan 2013 18:48:13 -0800
	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="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_at_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
Received on Tue Jan 15 2013 - 01:48:16 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:34 UTC