[Bug translator/25972] New: stap -v -L misses probe points

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[Bug translator/25972] New: stap -v -L misses probe points

Sourceware - systemtap mailing list

            Bug ID: 25972
           Summary: stap -v -L misses probe points
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
          Assignee: systemtap at sourceware dot org
          Reporter: wcohen at redhat dot com
  Target Milestone: ---

Created attachment 12525
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12525&action=edit
Reproducer for stap missing statement lines

When debugging pr25549 I noticed that there were some cases where it appeared
systemtap missed listing lines for instruction that had multiple debuginfo
views for the same instruction.  this can be replicated on fedora 32 with the

$ rpm -q gcc systemtap elfutils
$ gcc -O2 -g pr25549b.cxx -o pr25549b
$ stap -v -L 'process("./pr25549b").statement("*@*:*")'
Pass 1: parsed user script and 502 library scripts using
442584virt/211916res/12772shr/199236data kb, in 450usr/70sys/554real ms.
/* pc=.absolute+0x1040 */ $argc:int $argv:char**
/* pc=.absolute+0x104e */ $argc:int $argv:char**
Pass 2: analyzed script: 2 probes, 0 functions, 0 embeds, 0 globals using
451284virt/222188res/13700shr/207936data kb, in 60usr/0sys/69real ms.

However, there are multiple views for the instructions:

$ readelf --debug-dump=decodedline pr25549b
Contents of the .debug_line section:

CU: pr25549b.cxx:
File name                            Line number    Starting address    View  
pr25549b.cxx                                  10            0x401040          
pr25549b.cxx                                  11            0x401040       1  
pr25549b.cxx                                   3            0x401040       2  
pr25549b.cxx                                   5            0x401040       3  
pr25549b.cxx                                  10            0x401040       4
pr25549b.cxx                                   5            0x401044        
pr25549b.cxx                                   5            0x401049        
pr25549b.cxx                                   6            0x40104e          
pr25549b.cxx                                  12            0x40104e       1  
pr25549b.cxx                                  13            0x40104e       2
pr25549b.cxx                                  13            0x401055        

gdb allows setting breakpoints at those alternative view for the instructions.
I would expect that systemtap would also allow probe points at those points.

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