[Bug dyninst/24629] New: document whether stapdyn works in containers

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug dyninst/24629] New: document whether stapdyn works in containers

fche at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=24629

            Bug ID: 24629
           Summary: document whether stapdyn works in containers
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: minor
          Priority: P2
         Component: dyninst
          Assignee: systemtap at sourceware dot org
          Reporter: me at serhei dot io
  Target Milestone: ---

Inside a Podman container I get:

sh-4.2# stap --dyninst -ve 'probe process.function("*") { println(pp()) }' -c
'ls'
Pass 1: parsed user script and 51 library scripts using
105576virt/9736res/6296shr/3476data kb, in 50usr/0sys/70real ms.
Pass 2: analyzed script: 238 probes, 1 function, 0 embeds, 0 globals using
106372virt/12092res/7744shr/4272data kb, in 10usr/0sys/13real ms.
Pass 3: using cached
/root/.systemtap/cache/63/stap_63ccc3a7955afba2fe366869c7d1581b_77211.c
Pass 4: using cached
/root/.systemtap/cache/63/stap_63ccc3a7955afba2fe366869c7d1581b_77211.so
Pass 5: starting run.
--FATAL-- #68: Dyninst was unable to create the specified process
--FATAL-- #68: create process failed bootstrap
stapdyn: ERROR: Couldn't create the target process
WARNING: /usr/bin/stapdyn exited with status: 1
Pass 5: run completed in 0usr/10sys/39real ms.
Pass 5: run failed.  [man error::pass5]
sh-4.2# stap --dyninst -ve 'probe process.function("*") { println(pp()) }' -x 1
Pass 1: parsed user script and 51 library scripts using
105576virt/9624res/6184shr/3476data kb, in 40usr/10sys/83real ms.
Pass 2: analyzed script: 1936 probes, 1 function, 0 embeds, 0 globals using
112068virt/17524res/7520shr/9968data kb, in 90usr/0sys/93real ms.
Pass 3: using cached
/root/.systemtap/cache/d8/stap_d8d8f929d11dbf3fed1d7f294dac50cb_638124.c
Pass 4: using cached
/root/.systemtap/cache/d8/stap_d8d8f929d11dbf3fed1d7f294dac50cb_638124.so
Pass 5: starting run.
--SERIOUS-- #26: Failed to attach to process 1: Could not attach to process
--FATAL-- #68: Dyninst was unable to attach to the specified process
--FATAL-- #68: BPatch.C[1047]: no process 1 defined in procsByPid

stapdyn: ERROR: Couldn't attach to the target process
WARNING: /usr/bin/stapdyn exited with status: 1
Pass 5: run completed in 10usr/0sys/32real ms.
Pass 5: run failed.  [man error::pass5]
sh-4.2# cat /proc/sys/kernel/yama/ptrace_scope
0

If this is fixable, I would like to fix it. But I would at least like to
identify the exact reason before we WONTFIX this.

--
You are receiving this mail because:
You are the assignee for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug dyninst/24629] document whether stapdyn works in containers

fche at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=24629

Serhei Makarov <me at serhei dot io> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |scox at redhat dot com

--
You are receiving this mail because:
You are the assignee for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug dyninst/24629] document whether stapdyn works in containers

fche at redhat dot com
In reply to this post by fche at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=24629

Serhei Makarov <me at serhei dot io> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|systemtap at sourceware dot org    |me at serhei dot io

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