public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug server/26247] New: stap crash after Eliding side-effect-free expression
@ 2020-07-16  2:32 zhuizhuhaomeng at gmail dot com
  2020-07-16  2:50 ` [Bug server/26247] " zhuizhuhaomeng at gmail dot com
  2020-07-16 12:04 ` fche at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: zhuizhuhaomeng at gmail dot com @ 2020-07-16  2:32 UTC (permalink / raw)
  To: systemtap

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug server/26247] stap crash after Eliding side-effect-free expression
  2020-07-16  2:32 [Bug server/26247] New: stap crash after Eliding side-effect-free expression zhuizhuhaomeng at gmail dot com
@ 2020-07-16  2:50 ` zhuizhuhaomeng at gmail dot com
  2020-07-16 12:04 ` fche at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: zhuizhuhaomeng at gmail dot com @ 2020-07-16  2:50 UTC (permalink / raw)
  To: systemtap

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug server/26247] stap crash after Eliding side-effect-free expression
  2020-07-16  2:32 [Bug server/26247] New: stap crash after Eliding side-effect-free expression zhuizhuhaomeng at gmail dot com
  2020-07-16  2:50 ` [Bug server/26247] " zhuizhuhaomeng at gmail dot com
@ 2020-07-16 12:04 ` fche at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fche at redhat dot com @ 2020-07-16 12:04 UTC (permalink / raw)
  To: systemtap

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-16 12:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-16  2:32 [Bug server/26247] New: stap crash after Eliding side-effect-free expression zhuizhuhaomeng at gmail dot com
2020-07-16  2:50 ` [Bug server/26247] " zhuizhuhaomeng at gmail dot com
2020-07-16 12:04 ` fche at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).