public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug tapsets/11955] New: signal tapsets don't match
@ 2010-08-29  9:37 andi-bz at firstfloor dot org
  2010-08-29 12:51 ` [Bug tapsets/11955] " mjw at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: andi-bz at firstfloor dot org @ 2010-08-29  9:37 UTC (permalink / raw)
  To: systemtap

Several of the probes in the signal tapset don't resolve to the kernel source.
Confirmed with 2.6.35 and 2.6.32

e.g.

probe signal.send { 
        if (sig == 7)
                printf("sending SIGBUS to %s\n", pid_name) 
}
probe signal.handle { 
        if (sig == 7) 
                printf("SIGBUS  %s, code %x handler %x\n", execname(),  
                        sig_code, @cast(ka_addr, "struct sigaction")->sa_handler)
} 

gives

semantic error: failed to retrieve location attribute for local 'info'
(dieoffset: 0x7bec1): identifier '$info' at
/pkg/systemtap-1.3/share/systemtap/tapset/signal.stp:610:16
        source:     sig_code = $info->si_code
                               ^
semantic error: failed to retrieve location attribute for local 'ka' (dieoffset:
0x7bebc): identifier '$ka' at :611:15
        source:     ka_addr = $ka
                              ^
Pass 2: analysis failed.  Try again with another '--vp 01' option.

-- 
           Summary: signal tapsets don't match
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tapsets
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: andi-bz at firstfloor dot org


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

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

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

* [Bug tapsets/11955] signal tapsets don't match
  2010-08-29  9:37 [Bug tapsets/11955] New: signal tapsets don't match andi-bz at firstfloor dot org
@ 2010-08-29 12:51 ` mjw at redhat dot com
  2010-08-29 19:45 ` andi-bz at firstfloor dot org
  2010-09-01 16:27 ` fche at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: mjw at redhat dot com @ 2010-08-29 12:51 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From mjw at redhat dot com  2010-08-29 12:51 -------
They happen to resolve on my fedora kernel build:

$ stap test.stp 
sending SIGBUS to bash
SIGBUS  bash, code 0 handler 8096700
sending SIGBUS to bash

Linux version 2.6.33.8-149.fc13.i686 (mockbuild@x86-09.phx2.fedoraproject.org)
(gcc version 4.4.4 20100630 (Red Hat 4.4.4-10) (GCC) ) #1 SMP Tue Aug 17
22:45:56 UTC 2010

A "semantic error: failed to retrieve location attribute for local" is often a
compiler bug. As you can see in your error message there is a DIE for the local
variable, but it is missing the location attribute that describes where (in
memory or through registers) this variable can be found. (Note that the fedora
gcc has the VTA patches from gcc 4.5 backported, which help a lot in describing
location information for inlined code/variables.)

Which compiler was used to build your kernel?

You can get a bit more info about what is known about the local variables by
looking up the dieoffset given in the error message with something like
[eu-]readelf [-N] --debug-dump=info /path/to/vmlinux.debuginfo | less

-- 


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

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

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

* [Bug tapsets/11955] signal tapsets don't match
  2010-08-29  9:37 [Bug tapsets/11955] New: signal tapsets don't match andi-bz at firstfloor dot org
  2010-08-29 12:51 ` [Bug tapsets/11955] " mjw at redhat dot com
@ 2010-08-29 19:45 ` andi-bz at firstfloor dot org
  2010-09-01 16:27 ` fche at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: andi-bz at firstfloor dot org @ 2010-08-29 19:45 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From andi-bz at firstfloor dot org  2010-08-29 19:45 -------
The 2.6.35 kernel was built with gcc 4.5
The 2.6.32 with an earlier release I believe.


-- 


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

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

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

* [Bug tapsets/11955] signal tapsets don't match
  2010-08-29  9:37 [Bug tapsets/11955] New: signal tapsets don't match andi-bz at firstfloor dot org
  2010-08-29 12:51 ` [Bug tapsets/11955] " mjw at redhat dot com
  2010-08-29 19:45 ` andi-bz at firstfloor dot org
@ 2010-09-01 16:27 ` fche at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: fche at redhat dot com @ 2010-09-01 16:27 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From fche at redhat dot com  2010-09-01 16:27 -------
While this appears to be a pretty typical poor-debuginfo gcc problem,
we may be able to work around it by changing the probe points slightly.
signal.send appears to be OK, but signal.handle may be inlined.  So we
could perhaps probe kernel.function("get_signal_to_deliver").return,
skipping if the signr == 0.


-- 


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

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

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

end of thread, other threads:[~2010-09-01 16:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-29  9:37 [Bug tapsets/11955] New: signal tapsets don't match andi-bz at firstfloor dot org
2010-08-29 12:51 ` [Bug tapsets/11955] " mjw at redhat dot com
2010-08-29 19:45 ` andi-bz at firstfloor dot org
2010-09-01 16:27 ` fche 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).