[Bug server/26247] New: stap crash after Eliding side-effect-free expression
zhuizhuhaomeng at gmail dot com
sourceware-bugzilla@sourceware.org
Thu Jul 16 02:32:37 GMT 2020
https://sourceware.org/bugzilla/show_bug.cgi?id=26247
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=gnu99 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 = @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 '=' at test.stp:3:14
source: (var2_p = @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
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Systemtap
mailing list