public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/15688] New: Accessing globals in DSO or PIE results in read faults
@ 2013-06-27  2:02 agentzh at gmail dot com
  2013-06-27 16:05 ` [Bug translator/15688] " jistone at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: agentzh at gmail dot com @ 2013-06-27  2:02 UTC (permalink / raw)
  To: systemtap

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

            Bug ID: 15688
           Summary: Accessing globals in DSO or PIE results in read faults
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
          Assignee: systemtap at sourceware dot org
          Reporter: agentzh at gmail dot com

I've noticed that use of @var("foo") or $foo in either probe process.function
or probe process.mark could lead to the following error when there is a global
variable named "foo" in the current userspace DSO or PIE module:

  ERROR: read fault [man error::fault] at 0x          (null) (addr) near
operator '@var'

It seems that dwarf_var_expanding_visitor::visit_target_symbol can resolve the
variable into a global variable but does not enable the VMA tracker for the
current module accordingly.

I can always reproduce this with trivial example on the current master (commit
5883b785fa)

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

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

end of thread, other threads:[~2013-06-27 22:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-27  2:02 [Bug translator/15688] New: Accessing globals in DSO or PIE results in read faults agentzh at gmail dot com
2013-06-27 16:05 ` [Bug translator/15688] " jistone at redhat dot com
2013-06-27 19:37 ` agentzh at gmail dot com
2013-06-27 22:17 ` jistone at redhat dot com
2013-06-27 22:51 ` jistone 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).