From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4CF8A388E83C; Wed, 17 Jun 2020 13:13:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4CF8A388E83C From: "wcohen at redhat dot com" To: systemtap@sourceware.org Subject: [Bug translator/26129] New: The @cast(variable, type) operator failing to find type information Date: Wed, 17 Jun 2020 13:13:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: translator X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wcohen at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: systemtap@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Systemtap mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jun 2020 13:13:39 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26129 Bug ID: 26129 Summary: The @cast(variable, type) operator failing to find type information Product: systemtap Version: unspecified Status: NEW Severity: normal Priority: P2 Component: translator Assignee: systemtap at sourceware dot org Reporter: wcohen at redhat dot com Target Milestone: --- When running the systemtap examples a number of them would fail because @(variable, type) operator would fail to find the type definitions. This c= an be observed with the simple sizeof.stp example (there are about ten other examples that appear to fail due to this @cast issue): $ sudo stap testsuite/systemtap.examples/general/sizeof.stp int [sudo] password for wcohen:=20 semantic error: type definition 'int' not found in '': operator '@cast' at /usr/share/systemtap/tapset/sizeof.stpm:4:9 source: ( & @cast(0, @type) [1] ) ^ in expansion of macro: operator '@cast_sizeof' at testsuite/systemtap.examples/general/sizeof.stp:15:6 source: @cast_sizeof(@1)) ^ Pass 2: analysis failed. [man error::pass2] The expected result is: $ sudo ../install/bin/stap testsuite/systemtap.examples/general/sizeof.stp= int type int byte-size: 4 A git bisect was done and the following commit was identified as causing the failure:=20 00ee19ff030f665df7e087a579f39105256a0253 is the first bad commit commit 00ee19ff030f665df7e087a579f39105256a0253 Author: Frank Ch. Eigler Date: Mon May 4 17:33:51 2020 -0400 PR25841 for dwarf probes: permit functions to use $context constructs --=20 You are receiving this mail because: You are the assignee for the bug.=