Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-5558

python3.11: systemtap probe python.function.entry doesn't work

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • rhel-9.2.0
    • python3.11
    • None
    • Impediment
    • None
    • rhel-sst-pt-python-ruby-nodejs
    • ssg_core_services
    • None
    • Dev nak
    • True
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None

      Description of problem:

      Probe 'python.function.entry' doesn't fire when used with python3.11, the older versions do.

      Version-Release number of selected component (if applicable):
      python3.11-3.11.2-2.el9

      How reproducible:
      always

      Steps to Reproduce:
      1. create script.py with:
      import random, time
      print(random.random())
      time.sleep(3)

      2. create probe.stp with:
      #!/usr/bin/stap -v
      probe python.function.entry

      { if ( filename =~ "random" ) printf("%s => %s in %s:%d\n", thread_indent(1), funcname, filename, lineno); }

      3. stap probe.stp -v -c "python3.11 script.py"

      Actual results:
      just random integer printed

      Expected results:
      output from python3.8 is like
      3649 python3.8(61912): => Random in /usr/lib64/python3.8/random.py:78
      3677 python3.8(61912): => SystemRandom in /usr/lib64/python3.8/random.py:709
      3694 python3.8(61912): => _init_subclass_ in /usr/lib64/python3.8/random.py:103
      3705 python3.8(61912): => _init_ in /usr/lib64/python3.8/random.py:94
      3707 python3.8(61912): => seed in /usr/lib64/python3.8/random.py:123

      Additional info:

              torsava@redhat.com Tomas Orsava
              rhn-support-lzachar Lukas Zachar
              Tomas Orsava Tomas Orsava
              Lukas Zachar Lukas Zachar
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: