From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32158 invoked by alias); 13 Mar 2019 18:26:21 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 27634 invoked by uid 48); 13 Mar 2019 18:26:17 -0000 From: "wcohen at redhat dot com" To: systemtap@sourceware.org Subject: [Bug translator/24327] @defined unable to handle $$parms and $$vars meta variables Date: Wed, 13 Mar 2019 18:26:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: Message-ID: In-Reply-To: References: 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-SW-Source: 2019-q1/txt/msg00068.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D24327 --- Comment #2 from William Cohen --- This code is related to the automatic printing of global variables. It can= be turned off and allows the reproducer to compile and run: [wcohen@cervelo systemtap]$ stap -e 'probe kernel.statement("do_sys_open@fs/open.c:*") {if (@defined($$parms)) printf(= "%s \n", $$parms); exit()}' parse error: expected identifier or statistical operation saw: operator '-' at :2:30 source: foreach (__val =3D [__idx0] in -) ^ in synthesized code from: identifier '$$parms' at :1:65 source: probe kernel.statement("do_sys_open@fs/open.c:*") {if (@defined($$parms)) printf("%s \n", $$parms); exit()} = ^ Segmentation fault (core dumped) [wcohen@cervelo systemtap]$ stap --no-global-var-display -e 'probe kernel.statement("do_sys_open@fs/open.c:*") {if (@defined($$parms)) printf(= "%s \n", $$parms); exit()}' dfd=3D0xffffffffffffff9c filename=3D0x7fe33bffe6e0 flags=3D0x8000 mode=3D0x0 --=20 You are receiving this mail because: You are the assignee for the bug.