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/11173] markers get a bad address in prelinked libraries


------- Additional Comments From mjw at redhat dot com  2010-01-15 16:09 -------
(In reply to comment #2)
> (In reply to comment #1)
> > diff of good/bad runs
> 
> > +matched probe_name function__return probe_type uprobe at 0x3adacd8394
> > +probe_type == uprobe_type, use statement addr: 0x3adacd8394
> [...]
> > +literal_addr_to_sym_addr 0x3adacd8394
> > +symbias 0x3adae00000, dwbias 0x3adae00000
> > +literal_addr_to_sym_addr ret 0x75b5ad8394
> 
> The incoming address looks to be already relocated, but we add a bias to it
> anyway.  The resulting address is of course out of range.

Could you also post the "before" one (what do the addresses and bias look like
in the good case)?

We should be storing the addresses "unbiased" in the .probes section and prelink
shouldn't relocate them, if we are using literal_addr_to_sym_addr().
literal_addr_to_sym_addr() treats addresses as if given by the user (so raw for
ET_EXEC or zero based for ET_DYN).

-- 


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

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


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