Public bug reported:

with strace 6.19+ds-0ubuntu1, firejail's test fails.

https://objectstorage.prodstack5.canonical.com/swift/v1/AUTH_0f9aae918d5b4744bf7b827671c86842/autopkgtest-
resolute/resolute/ppc64el/f/firejail/20260310_084248_1d8c5@/log.gz#S5

110s /usr/bin/strace
110s TESTING: --allow-debuggers (test/environment/allow-debuggers.exp)
110s + command -v strace
110s + echo 'TESTING: --allow-debuggers (test/environment/allow-debuggers.exp)'
110s + ./allow-debuggers.exp
110s spawn /bin/bash
110s firejail --allow-debuggers
110s [?2004hubuntu@autopkgtest:/home$ firejail --allow-debuggers
110s [?2004l
Reading profile /etc/firejail/default.profile
110s Reading profile /etc/firejail/disable-common.inc
110s Reading profile /etc/firejail/disable-programs.inc
110s
110s ** Note: you can use --noprofile to disable default.profile **
110s
110s Parent pid 3762, child pid 3763
110s Warning: cannot open source file 
/usr/lib/powerpc64le-linux-gnu/firejail/seccomp.debug32, file not copied
110s Warning: cannot find /var/run/utmp
110s ]0;firejail /bin/bashChild process initialized in 56.41 ms
110s
110s
110s [?2004hubuntu@autopkgtest:/home$ strace ls
120s [?2004l
]11;?TESTING ERROR 1
120s ...


the test validates if the --allow-debuggers flag for firejail works as
intended, by running strace (that requires ptrace syscalls):

#!/usr/bin/expect -f
# This file is part of Firejail project
# Copyright (C) 2014-2022 Firejail Authors
# License GPL v2

set timeout 10
cd /home
spawn $env(SHELL)
match_max 100000

send -- "firejail --allow-debuggers\r"
expect {
    timeout {puts "TESTING ERROR 0\n";exit}
    -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" { puts "\n"}
    "is disabled on Linux kernels prior to 4.8" { puts "TESTING SKIP: kernel 
too old\n"; exit }
}
after 100

send -- "strace ls\r"                                                           
                                                                                
                                                                                
                                                                               
expect {
    timeout {puts "TESTING ERROR 1\n";exit}
    "open"
}
expect {
    timeout {puts "TESTING ERROR 2\n";exit}
    "exit_group"
}
after 100
send -- "exit\r"
sleep 1

puts "\nall done\n"

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

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


** Tags: update-excuse

** Description changed:

  with strace 6.19+ds-0ubuntu1, firejail's test fails.
  
  
https://objectstorage.prodstack5.canonical.com/swift/v1/AUTH_0f9aae918d5b4744bf7b827671c86842/autopkgtest-
  resolute/resolute/ppc64el/f/firejail/20260310_084248_1d8c5@/log.gz#S5
  
  110s /usr/bin/strace
  110s TESTING: --allow-debuggers (test/environment/allow-debuggers.exp)
  110s + command -v strace
  110s + echo 'TESTING: --allow-debuggers 
(test/environment/allow-debuggers.exp)'
  110s + ./allow-debuggers.exp
  110s spawn /bin/bash
  110s firejail --allow-debuggers
  110s [?2004hubuntu@autopkgtest:/home$ firejail --allow-debuggers
  110s [?2004l
  Reading profile /etc/firejail/default.profile
  110s Reading profile /etc/firejail/disable-common.inc
  110s Reading profile /etc/firejail/disable-programs.inc
- 110s 
+ 110s
  110s ** Note: you can use --noprofile to disable default.profile **
- 110s 
+ 110s
  110s Parent pid 3762, child pid 3763
  110s Warning: cannot open source file 
/usr/lib/powerpc64le-linux-gnu/firejail/seccomp.debug32, file not copied
  110s Warning: cannot find /var/run/utmp
  110s ]0;firejail /bin/bashChild process initialized in 56.41 ms
- 110s 
- 110s 
+ 110s
+ 110s
  110s [?2004hubuntu@autopkgtest:/home$ strace ls
  120s [?2004l
  ]11;?TESTING ERROR 1
  120s ...
+ 
+ 
+ the test validates if the --allow-debuggers flag for firejail works as
+ intended, by running strace (that requires ptrace syscalls):
+ 
+ #!/usr/bin/expect -f
+ # This file is part of Firejail project
+ # Copyright (C) 2014-2022 Firejail Authors
+ # License GPL v2
+ 
+ set timeout 10
+ cd /home
+ spawn $env(SHELL)
+ match_max 100000
+ 
+ send -- "firejail --allow-debuggers\r"
+ expect {
+     timeout {puts "TESTING ERROR 0\n";exit}
+     -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" { puts "\n"}
+     "is disabled on Linux kernels prior to 4.8" { puts "TESTING SKIP: kernel 
too old\n"; exit }
+ }
+ after 100
+ 
+ send -- "strace ls\r"                                                         
                                                                                
                                                                                
                                                                                
 
+ expect {
+     timeout {puts "TESTING ERROR 1\n";exit}
+     "open"
+ }
+ expect {
+     timeout {puts "TESTING ERROR 2\n";exit}
+     "exit_group"
+ }
+ after 100
+ send -- "exit\r"
+ sleep 1
+ 
+ puts "\nall done\n"

** Also affects: strace (Ubuntu)
   Importance: Undecided
       Status: New

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

Title:
  debugger autopkgtest fails on ppc64el

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


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

Reply via email to