[Bug testsuite/34120] New: Commit e6ce81724a broke buildok/nested_vars.stp on RHEL

mcermak at redhat dot com sourceware-bugzilla@sourceware.org
Thu Apr 30 13:49:48 GMT 2026


https://sourceware.org/bugzilla/show_bug.cgi?id=34120

            Bug ID: 34120
           Summary: Commit e6ce81724a broke buildok/nested_vars.stp on
                    RHEL
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: testsuite
          Assignee: systemtap at sourceware dot org
          Reporter: mcermak at redhat dot com
  Target Milestone: ---

The following hunk of commit e6ce81724a broke buildok/nested_vars.stp on RHEL


diff --git a/testsuite/buildok/nested_vars.stp
b/testsuite/buildok/nested_vars.stp
index c3ffe9504..33b536b2a 100755
--- a/testsuite/buildok/nested_vars.stp
+++ b/testsuite/buildok/nested_vars.stp
@@ -3,7 +3,7 @@
 global x
 function f(x) { return x }

-probe kernel.function("do_execve")
+probe kernel.function("do_execve") ?, kernel.function("*sys_execve") ?
 {
   if (@defined($__argv)) {
     x = $__argv[$__argv[f(0)][f(1)]][$__argv[f(2)][f(3)]]



like this:


el9 x86_64 # stap -w -g -vp4 testsuite/buildok/nested_vars.stp
Pass 1: parsed user script and 494 library scripts using
573940virt/127752res/15896shr/144356data kb, in 420usr/150sys/208real ms.
semantic error: invalid access '[index0]' vs. long int: operator '[' at
testsuite/buildok/nested_vars.stp:12:14
        source:     x = $argv[$argv[f(0)][f(1)]][$argv[f(2)][f(3)]]
                             ^

semantic error: invalid access '[index0]' vs. long int: operator '[' at :13:10
        source:     $argv[$argv[f(4)][f(5)]][2] = x
                         ^

semantic error: invalid access '[index1]' vs. unsigned int: operator '[' at
:12:33
        source:     x = $argv[$argv[f(0)][f(1)]][$argv[f(2)][f(3)]]
                                                ^

semantic error: invalid access '[2]' vs. unsigned int: operator '[' at :13:29
        source:     $argv[$argv[f(4)][f(5)]][2] = x
                                            ^

semantic error: invalid access '[index0]' vs. long int: operator '[' at :12:14
        source:     x = $argv[$argv[f(0)][f(1)]][$argv[f(2)][f(3)]]
                             ^

semantic error: invalid access '[index0]' vs. long int: operator '[' at :13:10
        source:     $argv[$argv[f(4)][f(5)]][2] = x
                         ^

semantic error: invalid access '[index0]' vs. long int: operator '[' at :12:14
        source:     x = $argv[$argv[f(0)][f(1)]][$argv[f(2)][f(3)]]
                             ^

semantic error: invalid access '[index0]' vs. long int: operator '[' at :13:10
        source:     $argv[$argv[f(4)][f(5)]][2] = x
                         ^

Pass 2: analyzed script: 9 probes, 25 functions, 0 embeds, 1 global using
695304virt/250808res/17616shr/265720data kb, in 2580usr/350sys/2962real ms.
Pass 2: analysis failed.  [man error::pass2]
el9 x86_64 # 


Reverting mentioned hunk makes that testcase compile again.

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


More information about the Systemtap mailing list