public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* semantic error: not accessible at this address
@ 2013-09-27 20:14 Vincent Bernat
  2013-09-27 21:19 ` David Smith
       [not found] ` <y0mvc1mt0k7.fsf@fche.csb>
  0 siblings, 2 replies; 15+ messages in thread
From: Vincent Bernat @ 2013-09-27 20:14 UTC (permalink / raw)
  To: systemtap

Hi!

I have the following error when trying to use iotop example with a 3.11
kernel:

semantic error: not accessible at this address [man error::dwarf] (0xffffffff811b42b0, dieoffset: 0x177422e): identifier '$file' at /usr/share/systemtap/tapset/linux/vfs.stp:855:9
        source:         file = $file
                               ^

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

I have read the wiki but if I use eu-readelf on vmlinux, I get the
appropriate stuff:

 [1774208]    subprogram
             external             (flag) Yes
             name                 (strp) "vfs_write"
             decl_file            (data1) 1
             decl_line            (data2) 459
             prototyped           (flag) Yes
             type                 (ref4) [17643bb]
             low_pc               (addr) 0xffffffff811b42b0
             high_pc              (addr) 0xffffffff811b44a9
             frame_base           (data4) location list [5ec58b]
             sibling              (ref4) [17744b9]
 [177422e]      formal_parameter
               name                 (strp) "file"
               decl_file            (data1) 1
               decl_line            (data2) 459
               type                 (ref4) [1769ace]
               location             (data4) location list [5ec5ff]

The kernel was compiled with gcc 4.6.3 (the one in Ubuntu Precise). I
have tried with gcc 4.7.3 instead but I get less complete information
(the formal parameter lose its name).

systemtap seems to use the right debug file:

focused on module 'kernel' = [0xffffffff81000000-0xffffffff8240e000, bias 0 
file /usr/lib/debug/boot/vmlinux-3.11.0-7-generic ELF machine |x86_64 (code 
62)

How could I fix this?
-- 
Use library functions.
            - The Elements of Programming Style (Kernighan & Plauger)

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

end of thread, other threads:[~2013-09-30  8:12 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-27 20:14 semantic error: not accessible at this address Vincent Bernat
2013-09-27 21:19 ` David Smith
2013-09-27 21:27   ` Vincent Bernat
     [not found] ` <y0mvc1mt0k7.fsf@fche.csb>
     [not found]   ` <8738opg9ym.fsf@guybrush.luffy.cx>
2013-09-27 23:04     ` Frank Ch. Eigler
2013-09-27 23:20       ` Vincent Bernat
2013-09-27 23:25         ` Frank Ch. Eigler
2013-09-27 23:49           ` Vincent Bernat
2013-09-28  0:02             ` Frank Ch. Eigler
2013-09-28  7:48               ` Vincent Bernat
2013-09-28 12:46                 ` Frank Ch. Eigler
2013-09-28 16:50                   ` [PATCH] PR15123: when PR15123_ASSUME_MFENTRY is set, don't check for -mfentry flag Vincent Bernat
2013-09-28 16:55                   ` semantic error: not accessible at this address Vincent Bernat
2013-09-29 14:12                     ` Frank Ch. Eigler
2013-09-30  7:05                       ` Vincent Bernat
2013-09-30  8:12                         ` Vincent Bernat

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).