From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B67833851C18; Thu, 16 Jul 2020 02:32:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B67833851C18 From: "zhuizhuhaomeng at gmail dot com" To: systemtap@sourceware.org Subject: [Bug server/26247] New: stap crash after Eliding side-effect-free expression Date: Thu, 16 Jul 2020 02:32:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: server X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zhuizhuhaomeng at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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: Thu, 16 Jul 2020 02:32:37 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26247 Bug ID: 26247 Summary: stap crash after Eliding side-effect-free expression Product: systemtap Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: server Assignee: systemtap at sourceware dot org Reporter: zhuizhuhaomeng at gmail dot com Target Milestone: --- c code compile with cmd: cc -g -O0 -Wall -std=3Dgnu99 test.c #cat test.c typedef struct foo { int a; } foo_t; foo_t *v[1]; int main(void) { return 0; } stap code here: # cat test.stp function func_test() { (var2_p =3D @vma(0x601038, "/tmp/a.out")); } probe process("/tmp/a.out").statement(0x4004f7) { func_test(); } run with the following cmd #stap -d ./a.out -c ./a.out test.stp WARNING: address 0x4004f7 does not match the beginning of a statement (try 0x4004f6) WARNING: Eliding assignment to 'var2_p': operator '=3D' at test.stp:3:14 source: (var2_p =3D @vma(0x601038, "/tmp/a.out")); ^ WARNING: Eliding side-effect-free expression : identifier 'func_test' at :7= :6 source: func_test(); ^ run_core.sh: line 2: 8767 Segmentation fault (core dumped) stap -d ./a.out -c ./a.out test.stp --=20 You are receiving this mail because: You are the assignee for the bug.=