Public bug reported:

As root:
strace -u root -f -tt -p `pidof loop9` 2>&1 | tee strace-loop9.log

results in:
strace: Could not attach to process. If your uid matches the uid of the target 
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try again 
as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf: Operation 
not permitted
strace: attach: ptrace(PTRACE_SEIZE, 24039): Operation not permitted

    cat /proc/sys/kernel/yama/ptrace_scope
    0

    tail -1 /etc/sysctl.d/10-ptrace.conf
    kernel.yama.ptrace_scope = 0


ps -aux | grep `pidof loop9` 
root     24039  0.0  0.0      0     0 ?        S<   Jul23   0:00 [loop9]

sudo lsof -p 24039
COMMAND   PID USER   FD      TYPE DEVICE SIZE/OFF NODE NAME
loop9   24039 root  cwd       DIR    8,5     4096    2 /
loop9   24039 root  rtd       DIR    8,5     4096    2 /
loop9   24039 root  txt   unknown                      /proc/24039/exe

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-4.15.0-54-generic 4.15.0-54.58
ProcVersionSignature: Ubuntu 4.15.0-54.58-generic 4.15.18
Uname: Linux 4.15.0-54-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.7
Architecture: amd64
AudioDevicesInUse:
 USER        PID ACCESS COMMAND
 /dev/snd/controlC0:  adam      26412 F.... pulseaudio
 /dev/snd/controlC1:  adam      26412 F.... pulseaudio
CurrentDesktop: ubuntu:GNOME
Date: Wed Jul 24 10:27:30 2019
InstallationDate: Installed on 2019-04-18 (96 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
MachineType: LENOVO 20DFS0AU06
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-54-generic 
root=UUID=4e1fbd6c-b1e7-4cbf-b560-5c364ef63dff ro quiet splash vt.handoff=1
RelatedPackageVersions:
 linux-restricted-modules-4.15.0-54-generic N/A
 linux-backports-modules-4.15.0-54-generic  N/A
 linux-firmware                             1.173.9
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/27/2016
dmi.bios.vendor: LENOVO
dmi.bios.version: J5ET53WW (1.24 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20DFS0AU06
dmi.board.vendor: LENOVO
dmi.board.version: SDK0J40697 WIN
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.modalias: 
dmi:bvnLENOVO:bvrJ5ET53WW(1.24):bd04/27/2016:svnLENOVO:pn20DFS0AU06:pvrThinkPadE550:rvnLENOVO:rn20DFS0AU06:rvrSDK0J40697WIN:cvnLENOVO:ct10:cvrNone:
dmi.product.family: ThinkPad E550
dmi.product.name: 20DFS0AU06
dmi.product.version: ThinkPad E550
dmi.sys.vendor: LENOVO

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug bionic

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1837713

Title:
  Cannot run strace on snapd process

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1837713/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to