This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/15671] New: systemtap (rpm version) can't find debuginfo for @var() use


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]