From nobody Sat Apr 20 20:22:49 2024 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 4VMNHF36x5z5JPfc for ; Sat, 20 Apr 2024 20:22:49 +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 4VMNHF1nW2z4VtV for ; Sat, 20 Apr 2024 20:22:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713644569; a=rsa-sha256; cv=none; b=QQI+tnXBBGKbo9I3FJ9FYN4rEdqtBcnHo2MMzXQAPEiQac0bLQu0ZRTJfoVTkAA5Rwq+ri vhagiopaPN8QI8eZwabPD5F41Gq8M6jAOp3pWmNMTOte4JI92wD9OjzqkTNMvn3wvJUdRm XOFZwrUJLNKX2sOOqfq3E90iyZWcpGKqTCX7iLAlxdgsX4fRvQpycRbfs2RfELhTRLjT3G UESCDinlBTHLQUxjFQLCCkozI8oSlnLGrXxmEPpOcQTMODElWqYrqEABEfn4WZqU38XwLu S0r9Bghietoj7fZ8Ct9M/ZYGbmc96qLNBAgDJlmxyz5LjFf9UTBT6oDYp1gjnQ== 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=1713644569; 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=NO7rxCSmzOQSsGMP5Uqk+uHZXkPuBfjlTMwsu93CLRg=; b=dq8Alp3nld0sUZUEEfWinFXBoaMSMSPfe+/uZVV2JSjXtUGxJePseJGYF0zjWS96xzF+IW VrIKHnIM8D64t8L/tUbkYPZVe/4nou/gdoDKcYgZczGZDuyj3SwmU0mt0gH9qOGqSFVf+m ZfxGJSUEM4OOAEhnHRcOPVcFvwr4j3vZ98DXVOpIFKKZyNJnWMjEX28DqpS4LMCQIFQQcd WGG5VFddJ+gOml+lPFd1VU06OuBt4LgYR21mfYkoubXxWOOZMlURrxLF1ArlSdHm7Z+/oz 9rGvu8Vj9ryQUWS1HzbwoYt+5SDHZmNbrUz51ZEgFcrq+atGwA8LH892rpbvMA== 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 4VMNHF1PS7zrvk for ; Sat, 20 Apr 2024 20:22:49 +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 43KKMneo082095 for ; Sat, 20 Apr 2024 20:22:49 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 43KKMnUM082094 for bugs@FreeBSD.org; Sat, 20 Apr 2024 20:22:49 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 278489] dtrace; pid probe; unable to match constructor functions Date: Sat, 20 Apr 2024 20:22:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: martin@bxlr.sk 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=3D278489 Bug ID: 278489 Summary: dtrace; pid probe; unable to match constructor functions Product: Base System Version: 14.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: martin@bxlr.sk It seems dtrace on FreeBSD is not matching constructor functions during execution. Very simple test program: #include void __attribute__((constructor)) myinit() { printf("%s: hello\n", __func__); } int main() { return 42; } Listing the probes works as expected: # dtrace -ln 'pid$target:a.out::entry' -c ./simple myinit: hello ID PROVIDER MODULE FUNCTION NAME 82966 pid5454 simple __do_global_dtors_aux entry 82967 pid5454 simple register_classes entry 82968 pid5454 simple __do_global_ctors_aux entry 82969 pid5454 simple _start entry 82970 pid5454 simple main entry 82971 pid5454 simple myinit entry But when I run it: # dtrace -n 'pid$target:a.out::entry' -c ./simple myinit: hello dtrace: description 'pid$target:a.out::entry' matched 6 probes dtrace: pid 5458 exited with status 42 CPU ID FUNCTION:NAME 1 82969 _start:entry 1 82970 main:entry 1 82966 __do_global_dtors_aux:entry myinit() is not matched. This works on Solaris where constructor functions are properly matched. --=20 You are receiving this mail because: You are the assignee for the bug.=