public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug tapsets/10467] New: Failure in source:line matching aborts further searching
@ 2009-07-31  1:45 jistone at redhat dot com
  2009-08-12 18:28 ` [Bug tapsets/10467] " jistone at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: jistone at redhat dot com @ 2009-07-31  1:45 UTC (permalink / raw)
  To: systemtap

I discovered this flaw when trying to use the fully-resolved name for a function
probe:

$ stap -l 'kernel.function("send_sigqueue")'
kernel.function("send_sigqueue@kernel/signal.c:1309")
$ stap -l 'kernel.function("send_sigqueue@kernel/signal.c:1309")' --vp 03
[...]
focused on module 'kernel'
selected source file 'arch/x86/kernel/signal.c'
semantic error: libdw failure (dwarf_getsrc_file): no matching address range
semantic error: no match while resolving probe point
kernel.function("send_sigqueue@kernel/signal.c:1309")

It matched arch/x86/kernel/signal.c because we implicitly use a '*/' in front of
source paths.  The arch file is less than 1309 lines long though, so there can't
be any functions there.

However, instead of aborting, we should continue looking at other source files
so we can find the correct function in the plain 'kernel/signal.c'.

-- 
           Summary: Failure in source:line matching aborts further searching
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tapsets
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: jistone at redhat dot com


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

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

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

* [Bug tapsets/10467] Failure in source:line matching aborts further searching
  2009-07-31  1:45 [Bug tapsets/10467] New: Failure in source:line matching aborts further searching jistone at redhat dot com
@ 2009-08-12 18:28 ` jistone at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: jistone at redhat dot com @ 2009-08-12 18:28 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From jistone at redhat dot com  2009-08-12 18:28 -------
Fixed in:

commit e679283a5ae5555db19d613fa3299f96cfc94eb7
Author: Wenji Huang <wenji.huang@oracle.com>
Date:   Mon Aug 10 19:29:50 2009 -0400

    Avoid assertion error for no matched function in statement probe
    
    * dwflpp.cxx (iterate_over_functions): Return for NULL pointer.
    * testsuite/systemtap.base/statement.exp: Add test case.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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

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

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

end of thread, other threads:[~2009-08-12 18:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-31  1:45 [Bug tapsets/10467] New: Failure in source:line matching aborts further searching jistone at redhat dot com
2009-08-12 18:28 ` [Bug tapsets/10467] " 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).