On questing:

ubuntu@u1:~$ snap run --strace hello
warning: preserving the entire environment is not supported, `-E` is ignored
error: exit status 1
ubuntu@u1:~$ sudo apt policy snapd
snapd:
  Installed: 2.72+ubuntu25.10.2
  Candidate: 2.72+ubuntu25.10.2
  Version table:
     2.73+ubuntu25.10 100
        100 http://archive.ubuntu.com/ubuntu questing-proposed/main amd64 
Packages
 *** 2.72+ubuntu25.10.2 500
        500 http://archive.ubuntu.com/ubuntu questing-updates/main amd64 
Packages
        100 /var/lib/dpkg/status
     2.71.1+ubuntu25.10.1 500
        500 http://archive.ubuntu.com/ubuntu questing/main amd64 Packages
ubuntu@u1:~$ sudo apt install snapd=2.73+ubuntu25.10
Upgrading:
  snapd

Summary:
  Upgrading: 1, Installing: 0, Removing: 0, Not Upgrading: 16
  Download size: 39.1 MB
  Space needed: 516 kB / 6859 MB available

Get:1 http://archive.ubuntu.com/ubuntu questing-proposed/main amd64 snapd amd64 
2.73+ubuntu25.10 [39.1 MB]
Fetched 39.1 MB in 1s (29.6 MB/s)
(Reading database ... 86402 files and directories currently installed.)
Preparing to unpack .../snapd_2.73+ubuntu25.10_amd64.deb ...
Unpacking snapd (2.73+ubuntu25.10) over (2.72+ubuntu25.10.2) ...
Setting up snapd (2.73+ubuntu25.10) ...
Installing new version of config file 
/etc/apparmor.d/usr.lib.snapd.snap-confine.real ...
Installing new version of config file /etc/profile.d/apps-bin-path.sh ...
snapd.failure.service is a disabled or a static unit not running, not starting 
it.
snapd.gpio-chardev-setup.target is a disabled or a static unit not running, not 
starting it.
snapd.snap-repair.service is a disabled or a static unit not running, not 
starting it.
Processing triggers for dbus (1.16.2-2ubuntu2) ...
Processing triggers for man-db (2.13.1-1) ...
Scanning processes...
Scanning linux images...

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
ubuntu@u1:~$ snap version
snap          2.73+ubuntu25.10
snapd         2.73+ubuntu25.10
series        16
ubuntu        25.10
kernel        6.17.0-7-generic
architecture  amd64
ubuntu@u1:~$ snap run --strace hello
/usr/bin/strace: Process 2804 attached
--- stopped by SIGSTOP ---
--- SIGCONT {si_signo=SIGCONT, si_code=SI_USER, si_pid=2795, si_uid=1000} ---
[pid  2818] execve("/snap/hello/42/snap/command-chain/snapcraft-runner", 
["/snap/hello/42/snap/command-chai"..., "/snap/hello/42/bin/hello"], 
0xc000158780 /* 37 vars */ <unfinished ...>
[pid  2817] +++ exited with 0 +++
[pid  2804] <... futex resumed>)        = ?
+++ superseded by execve in pid 2818 +++
<... execve resumed>)                   = 0
brk(NULL)                               = 0x5dc0cf6c0000
arch_prctl(0x3001 /* ARCH_??? */, 0x7ffeaf21ca80) = -1 EINVAL (Invalid argument)
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
...
write(1, "Hello, world!\n", 14Hello, world!
)         = 14
close(1)                                = 0
close(2)                                = 0
exit_group(0)                           = ?
+++ exited with 0 +++

Can confirm snap run --strace is now fixed.

** Tags removed: verification-needed-questing
** Tags added: verification-done-questing

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

Title:
  snap run --strace doesn't work with sudo-rs [sudo -E not supported]

To manage notifications about this bug go to:
https://bugs.launchpad.net/snapd/+bug/2127766/+subscriptions


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

Reply via email to