This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/6905] New: process("a").statement("main@/root/a.c:*") fails by giving error message.
- From: "srinivasa at in dot ibm dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 19 Sep 2008 08:47:11 -0000
- Subject: [Bug translator/6905] New: process("a").statement("main@/root/a.c:*") fails by giving error message.
- Reply-to: sourceware-bugzilla at sourceware dot org
Environment: elfutils-0.137, systemtap-20080913 snapshot.
I was developing testcases for uprobes, But any attempt to probe all statements
of a file fails by giving error message.
Consider a .c file /root
=================================
1 #include<stdlib.h>
2 int main()
3 {
4 int i=0;
5 i = i + 5;
6 printf("i value is %d \n", i);
7 return 0;
8 }
================================
Execution of below script fails by throwing error message.
./stap -vvvvvv -e 'probe process("/root/a.out").statement("main@/root/ex.c:*") {
printf("%s\n",pp())}'
================================
SystemTap translator/driver (version 0.7.1/0.131 non-git sources)
Copyright (C) 2005-2008 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
Session arch: x86_64 release: 2.6.18-113.el5
Created temporary directory "/tmp/stap27MWVb"
Searched '/usr/local/share/systemtap/tapset/x86_64/*.stp', found 2
Searched '/usr/local/share/systemtap/tapset/*.stp', found 43
Pass 1: parsed user script and 45 library script(s) in 230usr/10sys/250real ms.
parsed 'main@/root/ex.c:*' -> func 'main', file '/root/ex.c', line 0x7fffd3382624
pattern '/root/a.out' matches module '/root/a.out'
focused on module '/root/a.out = [0x400000-0x600898, bias 0x0] file /root/a.out
ELF machine x86_64 (code 62)
focused on module '/root/a.out'
selected source file '/root/ex.c'
function cache /root/a.out:ex.c size 1
function cache /root/a.out:ex.c hit main
pattern 'main' matches function 'main'
selected function main
function DIE lands on srcfile
probe main@/root/ex.c:3 process=/root/a.out reloc=.absolute section=.text
pc=0x400498
function DIE lands on srcfile
probe main@/root/ex.c:4 process=/root/a.out reloc=.absolute section=.text
pc=0x4004a0
function DIE lands on srcfile
probe main@/root/ex.c:5 process=/root/a.out reloc=.absolute section=.text
pc=0x4004a7
function DIE lands on srcfile
probe main@/root/ex.c:6 process=/root/a.out reloc=.absolute section=.text
pc=0x4004ab
function DIE lands on srcfile
probe main@/root/ex.c:7 process=/root/a.out reloc=.absolute section=.text
pc=0x4004bd
function DIE lands on srcfile
probe main@/root/ex.c:8 process=/root/a.out reloc=.absolute section=.text
pc=0x4004c2
semantic error: libdw failure (dwarf_getsrc_file): no matching address range
dwarf_builder releasing user dwflpp /root/a.out
Pass 2: analyzed script: 6 probe(s), 29 function(s), 0 embed(s), 0 global(s) in
0usr/0sys/7real ms.
Pass 2: analysis failed. Try again with more '-v' (verbose) options.
Running rm -rf /tmp/stap27MWVb
========================================
--
Summary: process("a").statement("main@/root/a.c:*") fails by
giving error message.
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: srinivasa at in dot ibm dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=6905
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.