public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/17362] New: no script-level local variables available in F20's kernel.function("do_execve")
@ 2014-09-08 15:15 mcermak at redhat dot com
  2014-09-08 15:34 ` [Bug runtime/17362] " fche at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: mcermak at redhat dot com @ 2014-09-08 15:15 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=17362

            Bug ID: 17362
           Summary: no script-level local variables available in F20's
                    kernel.function("do_execve")
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
          Assignee: systemtap at sourceware dot org
          Reporter: mcermak at redhat dot com

No script-level local variables available in F20's
kernel.function("do_execve"). This changed between 3.13.9-200.fc20 and
3.15.10-201.fc20:

# uname -r; rpm -q systemtap
3.13.9-200.fc20.x86_64
systemtap-2.7-1.mcermak.e454243.fc20.x86_64
# stap -L 'kernel.function("do_execve")'
kernel.function("do_execve@fs/exec.c:1575") $filename:char const* $__argv:char
const* const* $__envp:char const* const*
#
# stap -e 'probe kernel.function("do_execve"){log(user_string($__argv[0]))}' -c
/bin/true
/bin/true
#

# uname -r; rpm -q systemtap
3.15.10-201.fc20.x86_64
systemtap-2.7-1.mcermak.e454243.fc20.x86_64
# stap -L 'kernel.function("do_execve")'
kernel.function("do_execve@fs/exec.c:1547")
#
# stap -e 'probe kernel.function("do_execve"){log(user_string($__argv[0]))}' -c
/bin/true
semantic error: failed to retrieve location attribute for '__argv' [man
error::dwarf]: identifier '$__argv' at <input>:1:52
        dieoffset: 0x186983f from unknown debug file for kernel
        function: do_execve at fs/exec.c:1553 inlined by SYSC_execve at
fs/exec.c:1607 inlined by SyS_execve at fs/exec.c:1602
        source: probe
kernel.function("do_execve"){log(user_string($__argv[0]))}
                                                                   ^

Pass 2: analysis failed.  [man error::pass2]
#


The function declaration didn't change significantly:
=====
# grep -A 8 '^int do_execve'
/usr/src/debug/kernel-3.13.fc20/linux-3.13.9-200.fc20.x86_64/fs/exec.c
int do_execve(const char *filename,
        const char __user *const __user *__argv,
        const char __user *const __user *__envp)
{
        struct user_arg_ptr argv = { .ptr.native = __argv };
        struct user_arg_ptr envp = { .ptr.native = __envp };
        return do_execve_common(filename, argv, envp);
}

# grep -A 8 '^int do_execve'
/usr/src/debug/kernel-3.15.fc20/linux-3.15.10-201.fc20.x86_64/fs/exec.c
int do_execve(struct filename *filename,
        const char __user *const __user *__argv,
        const char __user *const __user *__envp)
{
        struct user_arg_ptr argv = { .ptr.native = __argv };
        struct user_arg_ptr envp = { .ptr.native = __envp };
        return do_execve_common(filename, argv, envp);
}
#
=====

This breaks systemtap.base/pointer_array.exp testcase on newer f20 kernels.

-- 
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:[~2014-10-06 21:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-08 15:15 [Bug runtime/17362] New: no script-level local variables available in F20's kernel.function("do_execve") mcermak at redhat dot com
2014-09-08 15:34 ` [Bug runtime/17362] " fche at redhat dot com
2014-09-08 18:38 ` jistone at redhat dot com
2014-09-09 15:19 ` mcermak at redhat dot com
2014-10-06 21:12 ` 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).