Bug 1734097 - semantic error: failed to retrieve location attribute for 'skb'
Summary: semantic error: failed to retrieve location attribute for 'skb'
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: systemtap
Version: 8.1
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: rc
: 8.1
Assignee: Frank Ch. Eigler
QA Contact: qe-baseos-tools
URL:
Whiteboard:
Depends On: 1709831 1785287
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-29 15:36 UTC by Martin Coufal
Modified: 2020-02-07 17:15 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:


Attachments (Terms of Use)
reproducing systemtap script (1.16 KB, text/plain)
2019-07-29 15:36 UTC, Martin Coufal
no flags Details

Description Martin Coufal 2019-07-29 15:36:46 UTC
Created attachment 1594364 [details]
reproducing systemtap script

Description of problem:
I get following semantic error when running systemtap script (see attachment):

===

Pass 1: parsed user script and 497 library scripts using 434732virt/106232res/9572shr/96468data kb, in 240usr/50sys/296real ms.
semantic error: failed to retrieve location attribute for 'skb' [man error::dwarf]: identifier '$skb' at /usr/share/systemtap/tapset/linux/networking.stp:123:35
        dieoffset: 0x951f0cd from /usr/lib/debug/lib/modules/4.18.0-107.el8.x86_64/vmlinux
        function: arch_static_branch at ./arch/x86/include/asm/jump_label.h:36:2 inlined by netif_receive_skb_internal at net/core/dev.c:5038:6 inlined by netif_receive_skb_internal at net/core/dev.c:5029:12
        source: 	try { dev_name = get_netdev_name($skb->dev) } catch { }
                	                                 ^

semantic error: unresolved type : identifier '$skb' at :123:35
        source: 	try { dev_name = get_netdev_name($skb->dev) } catch { }
                	                                 ^

semantic error: failed to retrieve location attribute for 'skb' [man error::dwarf]: identifier '$skb' at :124:17
        dieoffset: 0x951f0cd from /usr/lib/debug/lib/modules/4.18.0-107.el8.x86_64/vmlinux
        function: arch_static_branch at ./arch/x86/include/asm/jump_label.h:36:2 inlined by netif_receive_skb_internal at net/core/dev.c:5038:6 inlined by netif_receive_skb_internal at net/core/dev.c:5029:12
        source: 	try { length = $skb->len } catch { }
                	               ^

Pass 2: analyzed script: 5 probes, 12 functions, 0 embeds, 3 globals using 635972virt/309060res/11048shr/297708data kb, in 1640usr/140sys/1789real ms.
Pass 2: analysis failed.  [man error::pass2]

===


Version-Release number of selected component (if applicable):


How reproducible:
always


Steps to Reproduce:
1. have prepared script (see attachment)
2. run it

Actual results:
semantic error


Additional info:
used systemtap version: version 4.1/0.176

Comment 1 Frank Ch. Eigler 2019-07-29 15:44:30 UTC
chances are this is a dupe of bug #1709831


Note You need to log in before you can comment on or make changes to this bug.