From nobody Wed Sep 6 20:00:08 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RgtWs2Mhfz4sS4m for ; Wed, 6 Sep 2023 20:00:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RgtWr56rwz4RXs for ; Wed, 6 Sep 2023 20:00:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694030408; a=rsa-sha256; cv=none; b=F3va86FvnoJ6wzASGUAu3BY8sEaZa2q9nTN5oBw+I88qtXXMoU5ub6JzhBF00li1hPOHiq klqpMxGQZhvKf5ncyM0yVsisfR9aGmRb+Biq63rSvoHIzDRWBT4JMhaqfWVk0uXGbUGGPQ QCQMaDJs0aPKsntK0GCKOtbcZuG6pXsa0gHZ1WciSfCzVguQlyxF45RVRUPkcBtOe4NHMk GNfXPzZyKK4JNI4r6pFPzGRAEOFld1o2jWtX0Mb9E8d6T3bbnfZYigoW601dJfuPS51iPa nE6aWfZdRVidS0Po2JP4dWj3uvrx9nQcLi/R1jwtOKYQEWla4FX8dUKSBafYIA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694030408; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Bcv7vl2Xgvd+vo/ucTwkYmAD0Vq4codbHTNae9K4UwA=; b=oEvKcCgJ5M0Gvzrl3LKyZIf9KwRcKMuxZHcHz4hv4ezhjqRoD9pz0vfZlQhdhOt120RjE/ DHtp8qgqtgiKzJJ9nYcAeBzqumAPWzr/clwHebPNlt5nFOXd79f8cvnYHvCB09oKYOo0s4 oQ7gItR6X49QrQE0j1Qg2bKHxERN89sq+j4HlKI/Qm8jbBAE3RhDW/sRleQ/yi//C5ORsZ Ba8yY5aX7Qlcctz6QHOgE2OEhAOqt4Z4ZabXYOXAO3TAiO/9HHX33nNucU7YQx8ZxC6yGK SVW7/nwRDSKdaPsMFCmcVKiYi60BeT88F1iu/8S3viCAIx1h6hi54A1AUq0V6g== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RgtWr4DPnzWBN for ; Wed, 6 Sep 2023 20:00:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 386K085g070788 for ; Wed, 6 Sep 2023 20:00:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 386K08Li070787 for bugs@FreeBSD.org; Wed, 6 Sep 2023 20:00:08 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 273607] ktrace(1) doesn't log some system calls Date: Wed, 06 Sep 2023 20:00:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: yuri@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273607 Bug ID: 273607 Summary: ktrace(1) doesn't log some system calls Product: Base System Version: 13.2-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: yuri@freebsd.org I run this code that calls the open(2) system function, and clock_gettime(2) system function: #include #include #include int main() { printf("--before--\n"); open(NULL, 0); struct timespec tp; clock_gettime(CLOCK_SECOND, &tp); printf("--after--\n"); return 0; } When this program is run under ktrace(1) (with -di flags), only openat(2) c= all appears in the dump, and clock_gettime(2) doesn't appear there: 83299 a.out CALL write(0x1,0x821ac4000,0xb) 83299 a.out GIO fd 1 wrote 11 bytes "--before-- " 83299 a.out RET write 11/0xb 83299 a.out CALL openat(AT_FDCWD,0,0) 83299 a.out RET openat -1 errno 14 Bad address 83299 a.out CALL write(0x1,0x821ac4000,0xa) 83299 a.out GIO fd 1 wrote 10 bytes "--after-- " 83299 a.out RET write 10/0xa 83299 a.out CALL exit(0) --=20 You are receiving this mail because: You are the assignee for the bug.=