public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/15671] New: systemtap (rpm version) can't find debuginfo for @var() use
@ 2013-06-24 19:39 dsmith at redhat dot com
  2013-06-24 19:52 ` [Bug translator/15671] " mjw at redhat dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: dsmith at redhat dot com @ 2013-06-24 19:39 UTC (permalink / raw)
  To: systemtap

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

            Bug ID: 15671
           Summary: systemtap (rpm version) can't find debuginfo for
                    @var() use
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
          Assignee: systemtap at sourceware dot org
          Reporter: dsmith at redhat dot com

As reported in:

<http://sourceware.org/ml/systemtap/2013-q2/msg00249.html>

On a hand-built systemtap, the at_var_mark.exp test works. However, with an rpm
build, using '@var("morehelp@session.cxx")' fails, even with
systemtap-debuginfo installed.

Here's an even smaller test:

====
/usr/bin/stap -ve 'probe process.mark("pass*") { printf("%p\n",
@var("morehelp@session.cxx")) }' -c '/usr/bin/stap --help'
Pass 1: parsed user script and 103 library script(s) using
220184virt/35776res/3056shr/33168data kb, in 240usr/90sys/331real ms.
semantic error: target-symbol requires debuginfo: operator '@var' at
<input>:1:46
        source: probe process.mark("pass*") { printf("%p\n",
@var("morehelp@session.cxx")) }
                                                             ^

Pass 2: analyzed script: 15 probe(s), 13 function(s), 0 embed(s), 0 global(s)
using 247928virt/41720res/5136shr/36880data kb, in 40usr/10sys/58real ms.
Pass 2: analysis failed.  [man error::pass2]
====

Also note that gdb can find the symbol:

====
# gdb /usr/bin/stap
GNU gdb (GDB) Fedora (7.6-32.fc20)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/stap...Reading symbols from
/usr/lib/debug/usr/bin/stap.debug...done.
done.
(gdb) p &systemtap_session::morehelp
$1 = (const char **) 0x466028 <systemtap_session::morehelp>
====

This might be related to the flags that the rpm build process passes to the
compiler/linker, like:
   -m64 -mtune=generic -march=x86-64 -g -O2 -fPIE -fexceptions
   -fstack-protector -fstack-protector-all --param ssp-buffer-size=4

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

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

end of thread, other threads:[~2013-06-26 16:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-24 19:39 [Bug translator/15671] New: systemtap (rpm version) can't find debuginfo for @var() use dsmith at redhat dot com
2013-06-24 19:52 ` [Bug translator/15671] " mjw at redhat dot com
2013-06-24 19:58 ` dsmith at redhat dot com
2013-06-25  9:23 ` mjw at redhat dot com
2013-06-25  9:37 ` mjw at redhat dot com
2013-06-25 10:22 ` mjw at redhat dot com
2013-06-25 10:47 ` mjw at redhat dot com
2013-06-25 10:59 ` mjw at redhat dot com
2013-06-25 15:54 ` jistone at redhat dot com
2013-06-25 16:12 ` jistone at redhat dot com
2013-06-25 16:25 ` jistone at redhat dot com
2013-06-26 16:04 ` 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).