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 uprobes/15785] New: Failure to resolve symbols defined as indirect functions for user-space libraries


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

            Bug ID: 15785
           Summary: Failure to resolve symbols defined as indirect
                    functions for user-space libraries
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: uprobes
          Assignee: systemtap at sourceware dot org
          Reporter: alexander.hoole at ece dot uvic.ca

Presently, SystemTap is not able to resolve probe points defined on symbols
corresponding to indirect functions defined in user-space libraries.

For, example:
....
# stap -g -v -e 'probe process("/lib64/libc-2.17.so").function("gettimeofday")
{ log("TEST") }'
....

Fails with the following message:
....
semantic error: while resolving probe point: identifier 'process' at
<input>:1:7
        source: probe process("/lib64/libc-2.17.so").function("gettimeofday") {
log("TEST") }
                      ^

semantic error: no match
....

According to the symbol table this is an indirect function:
...
# nm /lib64/libc-2.17.so
...
03bbdcad0f0 i gettimeofday
...

Tests were conducted on Fedora 19 and the debug information for the libraries
etc were installed. This seems to be a problem with defined indirect functions.
 For example, the following works fine:
...
# stap -g -v -e 'probe process("/lib64/libc-2.17.so").function("printf") {
log("TEST") }'
....
# nm /lib64/libc-2.17.so
...
0000003bbdc51dd0 T printf
...

Errata: 
Installed Packages
systemtap.x86_64                        2.2.1-1.fc19            @anaconda       
systemtap-client.x86_64                 2.2.1-1.fc19            @anaconda       
systemtap-devel.x86_64                  2.2.1-1.fc19            @anaconda       
systemtap-initscript.x86_64             2.2.1-1.fc19            @fedora         
systemtap-runtime.x86_64                2.2.1-1.fc19            @anaconda       
systemtap-runtime-java.x86_64           2.2.1-1.fc19            @fedora         
systemtap-sdt-devel.x86_64              2.2.1-1.fc19            @anaconda

Might be related to bug 13222.

-- 
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]