public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug dyninst/14626] New: The systemtap failed to catch the user_process $$parms and variety in Ubuntu 12.10 Beta
@ 2012-09-26  2:58 xiaoningyb at gmail dot com
  2012-09-26  9:35 ` [Bug dyninst/14626] " mjw at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: xiaoningyb at gmail dot com @ 2012-09-26  2:58 UTC (permalink / raw)
  To: systemtap


http://sourceware.org/bugzilla/show_bug.cgi?id=14626

             Bug #: 14626
           Summary: The systemtap failed to catch the user_process $$parms
                    and variety in Ubuntu 12.10 Beta
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: dyninst
        AssignedTo: systemtap@sourceware.org
        ReportedBy: xiaoningyb@gmail.com
    Classification: Unclassified


Platform:
Linux ubuntu 3.5.0-13-generic #14-Ubuntu SMP Wed Aug 29 16:48:44 UTC 2012
x86_64 x86_64 x86_64 GNU/Linux

Systemtap:
Systemtap translator/driver (version 2.0/0.153, commit
release-1.8-244-gec12f84)

Descript:
I compile the systemtap from git source. Everything works well except catch the
$$parms and variety in user_proccess.

Source:
#include <iostream>
int func(int i, int j)
{
    std::cout<<i<<std::endl;
    return i;
}
int main()
{
    func(3, 5);
    func(1, 2);
    return 0;
}

Command:
sudo stap -d /lib/x86_64-linux-gnu/libc-2.15.so  -ve 'probe
process("a.out").function("func") {log($$parms); printf("i = %ld and j =
%ld\n",$i, $j)}'

Expect output:
i=3 j=5
i = 3 and j = 5
i=1 j=2
i = 1 and j = 2

Output:
i=0x0 j=0x400700
i = 0 and j = 4196096
i=0x3 j=0x5
i = 3 and j = 5

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

* [Bug dyninst/14626] The systemtap failed to catch the user_process $$parms and variety in Ubuntu 12.10 Beta
  2012-09-26  2:58 [Bug dyninst/14626] New: The systemtap failed to catch the user_process $$parms and variety in Ubuntu 12.10 Beta xiaoningyb at gmail dot com
@ 2012-09-26  9:35 ` mjw at redhat dot com
  2012-09-26  9:50 ` [Bug translator/14626] " mjw at redhat dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: mjw at redhat dot com @ 2012-09-26  9:35 UTC (permalink / raw)
  To: systemtap


http://sourceware.org/bugzilla/show_bug.cgi?id=14626

Mark Wielaard <mjw at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mjw at redhat dot com

--- Comment #1 from Mark Wielaard <mjw at redhat dot com> 2012-09-26 09:34:47 UTC ---
Did you compile with -O2 -g or just -g?
Try compiling with -O2 which enables variable tracking in GCC.

Could you attach the output of eu-readelf -w a.out

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

* [Bug translator/14626] The systemtap failed to catch the user_process $$parms and variety in Ubuntu 12.10 Beta
  2012-09-26  2:58 [Bug dyninst/14626] New: The systemtap failed to catch the user_process $$parms and variety in Ubuntu 12.10 Beta xiaoningyb at gmail dot com
  2012-09-26  9:35 ` [Bug dyninst/14626] " mjw at redhat dot com
@ 2012-09-26  9:50 ` mjw at redhat dot com
  2012-09-26 10:32 ` xiaoningyb at gmail dot com
  2012-09-26 10:37 ` mjw at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: mjw at redhat dot com @ 2012-09-26  9:50 UTC (permalink / raw)
  To: systemtap


http://sourceware.org/bugzilla/show_bug.cgi?id=14626

Mark Wielaard <mjw at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|dyninst                     |translator

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

* [Bug translator/14626] The systemtap failed to catch the user_process $$parms and variety in Ubuntu 12.10 Beta
  2012-09-26  2:58 [Bug dyninst/14626] New: The systemtap failed to catch the user_process $$parms and variety in Ubuntu 12.10 Beta xiaoningyb at gmail dot com
  2012-09-26  9:35 ` [Bug dyninst/14626] " mjw at redhat dot com
  2012-09-26  9:50 ` [Bug translator/14626] " mjw at redhat dot com
@ 2012-09-26 10:32 ` xiaoningyb at gmail dot com
  2012-09-26 10:37 ` mjw at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: xiaoningyb at gmail dot com @ 2012-09-26 10:32 UTC (permalink / raw)
  To: systemtap


http://sourceware.org/bugzilla/show_bug.cgi?id=14626

xiaoningyb <xiaoningyb at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #2 from xiaoningyb <xiaoningyb at gmail dot com> 2012-09-26 10:31:57 UTC ---
Thanks,
while testing using -O2 -g for compiling the code, I have success to catch the
$$parms and variety.
It is not common sense for -O2 -g having more information than -g, but I think
it's misleading for gcc.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

* [Bug translator/14626] The systemtap failed to catch the user_process $$parms and variety in Ubuntu 12.10 Beta
  2012-09-26  2:58 [Bug dyninst/14626] New: The systemtap failed to catch the user_process $$parms and variety in Ubuntu 12.10 Beta xiaoningyb at gmail dot com
                   ` (2 preceding siblings ...)
  2012-09-26 10:32 ` xiaoningyb at gmail dot com
@ 2012-09-26 10:37 ` mjw at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: mjw at redhat dot com @ 2012-09-26 10:37 UTC (permalink / raw)
  To: systemtap


http://sourceware.org/bugzilla/show_bug.cgi?id=14626

--- Comment #3 from Mark Wielaard <mjw at redhat dot com> 2012-09-26 10:36:45 UTC ---
(In reply to comment #2)
> It is not common sense for -O2 -g having more information than -g, but I think
> it's misleading for gcc.

Yes, that is very unfortunate. See also this GCC bug report:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51358

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

end of thread, other threads:[~2012-09-26 10:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-26  2:58 [Bug dyninst/14626] New: The systemtap failed to catch the user_process $$parms and variety in Ubuntu 12.10 Beta xiaoningyb at gmail dot com
2012-09-26  9:35 ` [Bug dyninst/14626] " mjw at redhat dot com
2012-09-26  9:50 ` [Bug translator/14626] " mjw at redhat dot com
2012-09-26 10:32 ` xiaoningyb at gmail dot com
2012-09-26 10:37 ` mjw 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).