[Bug server/26247] New: stap crash after Eliding side-effect-free expression

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug server/26247] New: stap crash after Eliding side-effect-free expression

Sourceware - systemtap mailing list
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.
Reply | Threaded
Open this post in threaded view
|

[Bug server/26247] stap crash after Eliding side-effect-free expression

Sourceware - systemtap mailing list
https://sourceware.org/bugzilla/show_bug.cgi?id=26247

--- Comment #1 from lijunlong <zhuizhuhaomeng at gmail dot com> ---
I does not use official release version, so how can I delete the bug.

--
You are receiving this mail because:
You are the assignee for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug server/26247] stap crash after Eliding side-effect-free expression

Sourceware - systemtap mailing list
In reply to this post by Sourceware - systemtap mailing list
https://sourceware.org/bugzilla/show_bug.cgi?id=26247

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fche at redhat dot com
         Resolution|---                         |INVALID
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #2 from Frank Ch. Eigler <fche at redhat dot com> ---
Thanks for the report.
Yeah I don't think we have the @vma() support in the master version.
You can try   gdb -args stap .....   and run a backtrace.  In case
the crash implicates master version code, please reopen this.

--
You are receiving this mail because:
You are the assignee for the bug.