unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#51073: 28.0.60; SIGSYS in emacs-tests/bwrap/allows-stdout
@ 2021-10-07 10:30 Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-10-09 17:25 ` Philipp Stephani
  0 siblings, 1 reply; 8+ messages in thread
From: Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-10-07 10:30 UTC (permalink / raw)
  To: 51073; +Cc: Philipp Stephani

[-- Attachment #1: Type: text/plain, Size: 5834 bytes --]

Running 'make test/emacs-tests' fails with status code 159 (where
159 = 128 + 31 and 31 = SIGSYS); see the attached compilation log.

Running 'sudo journalctl -g SECCOMP' includes the following:

  Oct 07 10:48:19 tia audit[2156]: SECCOMP auid=1000 uid=1000 gid=1000
    ses=2 subj==unconfined pid=2156 comm="emacs"
    exe="/home/blc/.local/src/emacs-28/src/emacs" sig=31 arch=c000003e
    syscall=157 compat=0 ip=0x7ff4f975629d code=0x80000000

  Oct 07 10:48:20 tia audit[2171]: SECCOMP auid=1000 uid=1000 gid=1000
    ses=2 subj==unconfined pid=2171 comm="emacs"
    exe="/home/blc/.local/src/emacs-28/src/emacs" sig=31 arch=c000003e
    syscall=257 compat=0 ip=0x7ff14b807823 code=0x80000000

AFAICT syscalls 157 and 257 correspond to prctl and openat,
respectively, and __GI___prctl is mentioned in the attached coredumpctl
stack trace.  This is confirmed by the ausearch ert-info if I run
'sudo make test/emacs-tests' (because ausearch is in my sbin):

  Potentially relevant Seccomp audit events:
  ----
  type=SECCOMP msg=audit(10/07/21 11:25:02.024:209) : auid=blc uid=root
  gid=root ses=3 subj==unconfined pid=5982 comm=emacs
  exe=/home/blc/.local/src/emacs-28/src/emacs sig=SIGSYS arch=x86_64
  syscall=prctl compat=0 ip=0x7fbf2438c29d code=kill

I don't know whether the following caveat from seccomp(2) is relevant
for openat:

  *  Seccomp  filtering is based on system call numbers.  However, appli‐
     cations typically do not directly invoke system calls,  but  instead
     call  wrapper  functions  in  the C library which in turn invoke the
     system calls.  Consequently, one must be aware of the following:
     [...]
     •  Finally,  the  behavior  of  wrapper  functions can change across
        glibc versions.  For example, in older versions, the glibc  wrap‐
        per  function  for  open(2)  invoked  the system call of the same
        name, but starting in glibc 2.26, the implementation switched  to
        calling openat(2) on all architectures.

FWIW here are some of my local versions:

  $ bwrap --version
  bubblewrap 0.5.0
  $ uname -a
  Linux tia 5.14.0-1-amd64 #1 SMP Debian 5.14.6-2 (2021-09-19) x86_64 GNU/Linux
  $ /lib/x86_64-linux-gnu/libc.so.6 
  GNU C Library (Debian GLIBC 2.32-4) stable release version 2.32.
  Copyright (C) 2020 Free Software Foundation, Inc.
  This is free software; see the source for copying conditions.
  There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
  PARTICULAR PURPOSE.
  Compiled by GNU CC version 10.3.0.
  libc ABIs: UNIQUE IFUNC ABSOLUTE
  For bug reporting instructions, please see:
  <http://www.debian.org/Bugs/>.

HTH.  Let me know if you'd like me to test anything.

Thanks,

-- 
Basil

In GNU Emacs 28.0.60 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars)
 of 2021-10-07 built on tia
Repository revision: 1100fffcd360867c0116cb5c4d17bab535577c03
Repository branch: emacs-28
Windowing system distributor 'The X.Org Foundation', version 11.0.12011000
System Description: Debian GNU/Linux bookworm/sid

Configured using:
 'configure 'CFLAGS=-O0 -ggdb3' --prefix=/home/blc/.local
 --program-suffix=-28 --enable-checking=yes,glyphs
 --enable-check-lisp-type --with-x-toolkit=lucid
 --with-file-notification=yes --with-x'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY
INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS
X11 XAW3D XDBE XIM XPM LUCID ZLIB

Important settings:
  value of $LANG: en_IE.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail
rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache json map text-property-search time-date
subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs
cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks
lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock
font-lock syntax font-core term/tty-colors frame minibuffer cl-generic
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite emoji-zwj charscript
charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray
cl-preloaded nadvice button loaddefs faces cus-face macroexp files
window text-properties overlay sha1 md5 base64 format env code-pages
mule custom widget hashtable-print-readable backquote threads dbusbind
inotify lcms2 dynamic-setting system-font-setting font-render-setting
cairo x-toolkit x multi-tty make-network-process emacs)


[-- Attachment #2: Compilation log --]
[-- Type: text/plain, Size: 4918 bytes --]

-*- mode: compilation; default-directory: "~/.local/src/emacs-28/" -*-
Compilation started at Thu Oct  7 10:48:17

make test/emacs-tests
make -C test emacs-tests
make[1]: Entering directory '/home/blc/.local/src/emacs-28/test'
make[2]: Entering directory '/home/blc/.local/src/emacs-28/test'
  GEN      src/emacs-tests.log
Running 7 tests (2021-10-07 10:48:19+0100, selector `(not (or (tag :unstable) (tag :nativecomp)))')
Test emacs-tests/bwrap/allows-stdout backtrace:
  signal(ert-test-failed (((should (eql status 0)) :form (eql 159 0) :
  ert-fail(((should (eql status 0)) :form (eql 159 0) :value nil))
  (if (unwind-protect (setq value-166 (apply fn-164 args-165)) (setq f
  (let (form-description-168) (if (unwind-protect (setq value-166 (app
  (let ((value-166 'ert-form-evaluation-aborted-167)) (let (form-descr
  (let* ((fn-164 #'eql) (args-165 (condition-case err (let ((signal-ho
  (let ((ert--infos (cons (cons "Info: " (emacs-tests--seccomp-debug s
  (let* ((command (concat (mapconcat #'shell-quote-argument (list (fil
  (progn (let* ((command (concat (mapconcat #'shell-quote-argument (li
  (unwind-protect (progn (let* ((command (concat (mapconcat #'shell-qu
  (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn
  (let ((temp-buffer (generate-new-buffer " *temp*" t))) (save-current
  (let ((bash (executable-find "bash")) (bwrap (executable-find "bwrap
  (let ((lexical-binding t)) (let ((bash (executable-find "bash")) (bw
  (closure (t) nil (let ((lexical-binding t)) (let ((bash (executable-
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name emacs-tests/bwrap/allows-stdout :docu
  ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
  ert-run-tests((not (or (tag :unstable) (tag :nativecomp))) #f(compil
  ert-run-tests-batch((not (or (tag :unstable) (tag :nativecomp))))
  ert-run-tests-batch-and-exit((not (or (tag :unstable) (tag :nativeco
  eval((ert-run-tests-batch-and-exit '(not (or (tag :unstable) (tag :n
  command-line-1(("-L" ":." "-L" "./../../elpa/packages/url-http-ntlm/
  command-line()
  normal-top-level()
Test emacs-tests/bwrap/allows-stdout condition:
    Info: Process output:
          
          Potentially useful coredump information:
                     PID: 2156 (emacs)
                     UID: 1000 (blc)
                     GID: 1000 (blc)
                  Signal: 31 (SYS)
               Timestamp: Thu 2021-10-07 10:48:19 IST (437ms ago)
            Command Line: /home/blc/.local/src/emacs-28/src/emacs --quick --batch --eval=(message "Hi")
              Executable: /home/blc/.local/src/emacs-28/src/emacs
           Control Group: /user.slice/user-1000.slice/session-2.scope
                    Unit: session-2.scope
                   Slice: user-1000.slice
                 Session: 2
               Owner UID: 1000 (blc)
                 Boot ID: 4195cfec188140b5908f255dd92399d5
              Machine ID: 1eaf00d04e87431584dd7dfc9cf6503c
                Hostname: tia
                 Storage: /var/lib/systemd/coredump/core.emacs.1000.4195cfec188140b5908f255dd92399d5.2156.1633600099000000.zst
                 Message: Process 2156 (emacs) of user 1000 dumped core.
                          
                          Stack trace of thread 2156:
                          #0  0x00007ff4f975629d __GI___prctl (libc.so.6 + 0xfe29d)
                          #1  0x00007ff4f897fd53 cap_get_bound (libcap.so.2 + 0x3d53)
                          #2  0x00007ff4f897f40e n/a (libcap.so.2 + 0x340e)
                          #3  0x00007ff4fba3b10e call_init (ld-linux-x86-64.so.2 + 0x1010e)
                          #4  0x00007ff4fba3b1f0 call_init (ld-linux-x86-64.so.2 + 0x101f0)
                          #5  0x00007ff4fba2c08a _dl_start_user (ld-linux-x86-64.so.2 + 0x108a)
          
    (ert-test-failed
     ((should
       (eql status 0))
      :form
      (eql 159 0)
      :value nil))
   FAILED  1/7  emacs-tests/bwrap/allows-stdout (0.302527 sec)
   passed  2/7  emacs-tests/seccomp/absent-file (0.028454 sec)
   passed  3/7  emacs-tests/seccomp/allows-stdout (0.095900 sec)
   passed  4/7  emacs-tests/seccomp/empty-file (0.013831 sec)
   passed  5/7  emacs-tests/seccomp/file-too-large (0.258692 sec)
   passed  6/7  emacs-tests/seccomp/forbids-subprocess (0.293651 sec)
   passed  7/7  emacs-tests/seccomp/invalid-file-size (0.014142 sec)

Ran 7 tests, 6 results as expected, 1 unexpected (2021-10-07 10:48:21+0100, 1.921665 sec)

1 unexpected results:
   FAILED  emacs-tests/bwrap/allows-stdout

make[2]: *** [Makefile:182: src/emacs-tests.log] Error 1
make[2]: Leaving directory '/home/blc/.local/src/emacs-28/test'
make[1]: *** [Makefile:248: src/emacs-tests] Error 2
make[1]: Leaving directory '/home/blc/.local/src/emacs-28/test'
make: *** [Makefile:997: test/emacs-tests] Error 2

Compilation exited abnormally with code 2 at Thu Oct  7 10:48:21

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#51073: 28.0.60; SIGSYS in emacs-tests/bwrap/allows-stdout
  2021-10-07 10:30 bug#51073: 28.0.60; SIGSYS in emacs-tests/bwrap/allows-stdout Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-10-09 17:25 ` Philipp Stephani
  2021-10-09 17:43   ` Philipp Stephani
  0 siblings, 1 reply; 8+ messages in thread
From: Philipp Stephani @ 2021-10-09 17:25 UTC (permalink / raw)
  To: Basil L. Contovounesios; +Cc: 51073

Am Do., 7. Okt. 2021 um 12:32 Uhr schrieb Basil L. Contovounesios
<contovob@tcd.ie>:
>
> Running 'make test/emacs-tests' fails with status code 159 (where
> 159 = 128 + 31 and 31 = SIGSYS); see the attached compilation log.
>
> Running 'sudo journalctl -g SECCOMP' includes the following:
>
>   Oct 07 10:48:19 tia audit[2156]: SECCOMP auid=1000 uid=1000 gid=1000
>     ses=2 subj==unconfined pid=2156 comm="emacs"
>     exe="/home/blc/.local/src/emacs-28/src/emacs" sig=31 arch=c000003e
>     syscall=157 compat=0 ip=0x7ff4f975629d code=0x80000000
>
>   Oct 07 10:48:20 tia audit[2171]: SECCOMP auid=1000 uid=1000 gid=1000
>     ses=2 subj==unconfined pid=2171 comm="emacs"
>     exe="/home/blc/.local/src/emacs-28/src/emacs" sig=31 arch=c000003e
>     syscall=257 compat=0 ip=0x7ff14b807823 code=0x80000000
>
> AFAICT syscalls 157 and 257 correspond to prctl and openat,
> respectively, and __GI___prctl is mentioned in the attached coredumpctl
> stack trace.  This is confirmed by the ausearch ert-info if I run
> 'sudo make test/emacs-tests' (because ausearch is in my sbin):

Thanks, from the stacktrace I guess the unknown syscall invocation
comes from https://git.kernel.org/pub/scm/libs/libcap/libcap.git/tree/libcap/cap_proc.c?id=d07df10aaa02cf8cfe8047610d2f56dc0be68f1e#n272.
I'll look around a bit whether we should allow or reject that
combination.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#51073: 28.0.60; SIGSYS in emacs-tests/bwrap/allows-stdout
  2021-10-09 17:25 ` Philipp Stephani
@ 2021-10-09 17:43   ` Philipp Stephani
  2021-10-11 20:39     ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 8+ messages in thread
From: Philipp Stephani @ 2021-10-09 17:43 UTC (permalink / raw)
  To: Basil L. Contovounesios; +Cc: 51073

Am Sa., 9. Okt. 2021 um 19:25 Uhr schrieb Philipp Stephani
<p.stephani2@gmail.com>:
>
> Am Do., 7. Okt. 2021 um 12:32 Uhr schrieb Basil L. Contovounesios
> <contovob@tcd.ie>:
> >
> > Running 'make test/emacs-tests' fails with status code 159 (where
> > 159 = 128 + 31 and 31 = SIGSYS); see the attached compilation log.
> >
> > Running 'sudo journalctl -g SECCOMP' includes the following:
> >
> >   Oct 07 10:48:19 tia audit[2156]: SECCOMP auid=1000 uid=1000 gid=1000
> >     ses=2 subj==unconfined pid=2156 comm="emacs"
> >     exe="/home/blc/.local/src/emacs-28/src/emacs" sig=31 arch=c000003e
> >     syscall=157 compat=0 ip=0x7ff4f975629d code=0x80000000
> >
> >   Oct 07 10:48:20 tia audit[2171]: SECCOMP auid=1000 uid=1000 gid=1000
> >     ses=2 subj==unconfined pid=2171 comm="emacs"
> >     exe="/home/blc/.local/src/emacs-28/src/emacs" sig=31 arch=c000003e
> >     syscall=257 compat=0 ip=0x7ff14b807823 code=0x80000000
> >
> > AFAICT syscalls 157 and 257 correspond to prctl and openat,
> > respectively, and __GI___prctl is mentioned in the attached coredumpctl
> > stack trace.  This is confirmed by the ausearch ert-info if I run
> > 'sudo make test/emacs-tests' (because ausearch is in my sbin):
>
> Thanks, from the stacktrace I guess the unknown syscall invocation
> comes from https://git.kernel.org/pub/scm/libs/libcap/libcap.git/tree/libcap/cap_proc.c?id=d07df10aaa02cf8cfe8047610d2f56dc0be68f1e#n272.
> I'll look around a bit whether we should allow or reject that
> combination.

I've pushed a new rule to emacs-28 (commit b497add971). At least for
me that fixes the test. Does it work for you as well?





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#51073: 28.0.60; SIGSYS in emacs-tests/bwrap/allows-stdout
  2021-10-09 17:43   ` Philipp Stephani
@ 2021-10-11 20:39     ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-01-21 14:14       ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 8+ messages in thread
From: Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-10-11 20:39 UTC (permalink / raw)
  To: Philipp Stephani; +Cc: 51073

close 51073 28.1
quit

Philipp Stephani [2021-10-09 19:43 +0200] wrote:

> I've pushed a new rule to emacs-28 (commit b497add971). At least for
> me that fixes the test. Does it work for you as well?

Yes, works fine here.  Thanks!

-- 
Basil





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#51073: 28.0.60; SIGSYS in emacs-tests/bwrap/allows-stdout
  2021-10-11 20:39     ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-01-21 14:14       ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-01-22 16:20         ` Philipp Stephani
  0 siblings, 1 reply; 8+ messages in thread
From: Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-01-21 14:14 UTC (permalink / raw)
  To: Philipp Stephani; +Cc: 51073

[-- Attachment #1: Type: text/plain, Size: 2318 bytes --]

Basil L. Contovounesios [2021-10-11 21:39 +0100] wrote:

> close 51073 28.1
> quit
>
> Philipp Stephani [2021-10-09 19:43 +0200] wrote:
>
>> I've pushed a new rule to emacs-28 (commit b497add971). At least for
>> me that fixes the test. Does it work for you as well?
>
> Yes, works fine here.  Thanks!

After a several month hiatus from Emacs development, I'm now getting two
SIGSYS failures in 'make test/emacs-tests' again on both emacs-28 and
master (ERT backtraces and configuration info follow my signature).

This time, 'sudo journalctl -g SECCOMP' mentions the following:

  Jan 21 15:47:02 tia audit[138481]: SECCOMP auid=1000 uid=1000 gid=1000
    ses=2 subj==unconfined pid=138481 comm="emacs"
    exe="/home/blc/.local/src/emacs-nox/src/emacs" sig=31 arch=c000003e
    syscall=17 compat=0 ip=0x7fd745f3714a code=0x80000000

  Jan 21 15:47:03 tia audit[138493]: SECCOMP auid=1000 uid=1000 gid=1000
    ses=2 subj==unconfined pid=138493 comm="emacs"
    exe="/home/blc/.local/src/emacs-nox/src/emacs" sig=31 arch=c000003e
    syscall=439 compat=0 ip=0x7f46e8c30fc0 code=0x80000000

where AFAICT syscalls 17 and 439 correspond to pread64 and faccessat2,
respectively.  This is again confirmed by the ausearch ert-info when I
run 'sudo make test/emacs-tests':

  Potentially relevant Seccomp audit events:
  ----
  type=SECCOMP msg=audit(01/21/22 16:07:33.250:1144) : auid=blc
    uid=root gid=root ses=2 subj==unconfined pid=139780 comm=emacs
    exe=/home/blc/.local/src/emacs-nox/src/emacs sig=SIGSYS
    arch=x86_64 syscall=pread compat=0 ip=0x7fe7ba15c14a code=kill

  Potentially relevant Seccomp audit events:
  ----
  type=SECCOMP msg=audit(01/21/22 16:07:33.250:1144) : auid=blc
    uid=root gid=root ses=2 subj==unconfined pid=139780 comm=emacs
    exe=/home/blc/.local/src/emacs-nox/src/emacs sig=SIGSYS
    arch=x86_64 syscall=pread compat=0 ip=0x7fe7ba15c14a code=kill
  ----
  type=SECCOMP msg=audit(01/21/22 16:07:33.646:1154) : auid=blc
    uid=root gid=root ses=2 subj==unconfined pid=139795 comm=emacs
    exe=/home/blc/.local/src/emacs-nox/src/emacs sig=SIGSYS
    arch=x86_64 syscall=faccessat2 compat=0 ip=0x7f610b2dffc0
    code=kill

In contrast to the OP, I am now on Linux 5.15.0-2 and glibc 2.33-2.

HTH.  As always, let me know if you'd like me to test anything.

Thanks,

-- 
Basil


[-- Attachment #2: Emacs 28 backtrace --]
[-- Type: text/plain, Size: 23772 bytes --]

-*- mode: compilation; default-directory: "~/.local/src/emacs-28/" -*-
Compilation started at Fri Jan 21 15:46:35

make test/emacs-tests
make -C test emacs-tests
make[1]: Entering directory '/home/blc/.local/src/emacs-28/test'
make[2]: Entering directory '/home/blc/.local/src/emacs-28/test'
  GEN      src/emacs-tests.log
Running 7 tests (2022-01-21 15:46:36+0200, selector `(not (or (tag :unstable) (tag :nativecomp)))')
Test emacs-tests/bwrap/allows-stdout backtrace:
  signal(ert-test-failed (((should (eql status 0)) :form (eql 159 0) :
  ert-fail(((should (eql status 0)) :form (eql 159 0) :value nil))
  (if (unwind-protect (setq value-166 (apply fn-164 args-165)) (setq f
  (let (form-description-168) (if (unwind-protect (setq value-166 (app
  (let ((value-166 'ert-form-evaluation-aborted-167)) (let (form-descr
  (let* ((fn-164 #'eql) (args-165 (condition-case err (let ((signal-ho
  (let ((ert--infos (cons (cons "Info: " (emacs-tests--seccomp-debug s
  (let* ((command (concat (mapconcat #'shell-quote-argument (list (fil
  (progn (let* ((command (concat (mapconcat #'shell-quote-argument (li
  (unwind-protect (progn (let* ((command (concat (mapconcat #'shell-qu
  (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn
  (let ((temp-buffer (generate-new-buffer " *temp*" t))) (save-current
  (let ((bash (executable-find "bash")) (bwrap (executable-find "bwrap
  (let ((lexical-binding t)) (let ((bash (executable-find "bash")) (bw
  (closure (t) nil (let ((lexical-binding t)) (let ((bash (executable-
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name emacs-tests/bwrap/allows-stdout :docu
  ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
  ert-run-tests((not (or (tag :unstable) (tag :nativecomp))) #f(compil
  ert-run-tests-batch((not (or (tag :unstable) (tag :nativecomp))))
  ert-run-tests-batch-and-exit((not (or (tag :unstable) (tag :nativeco
  eval((ert-run-tests-batch-and-exit '(not (or (tag :unstable) (tag :n
  command-line-1(("-L" ":." "-L" "./../../elpa/packages/url-http-ntlm/
  command-line()
  normal-top-level()
Test emacs-tests/bwrap/allows-stdout condition:
    Info: Process output:
          
          Potentially useful coredump information:
                     PID: 138373 (emacs)
                     UID: 1000 (blc)
                     GID: 1000 (blc)
                  Signal: 31 (SYS)
               Timestamp: Fri 2022-01-21 15:46:36 EET (703ms ago)
            Command Line: /home/blc/.local/src/emacs-28/src/emacs --quick --batch $'--eval=(message "Hi")'
              Executable: /home/blc/.local/src/emacs-28/src/emacs
           Control Group: /user.slice/user-1000.slice/session-2.scope
                    Unit: session-2.scope
                   Slice: user-1000.slice
                 Session: 2
               Owner UID: 1000 (blc)
                 Boot ID: cfc15e16c869496f947935e197ac1d35
              Machine ID: 1eaf00d04e87431584dd7dfc9cf6503c
                Hostname: tia
                 Storage: /var/lib/systemd/coredump/core.emacs.1000.cfc15e16c869496f947935e197ac1d35.138373.1642772796000000.zst (present)
               Disk Size: 281.5K
                 Message: Process 138373 (emacs) of user 1000 dumped core.
                          
                          Module /home/blc/.local/src/emacs-28/src/emacs with build-id 65e1e7e9bd31449a83b39d5ed19a12ffb1656ab3
                          Module linux-vdso.so.1 with build-id aa90d45bcd5e2f2cf6d3f271448c0055aab0c829
                          Module libgnutls.so.30 with build-id 247925d267be23194b9df36f6addb507fa2f7f62
                          Module libm17n-flt.so.0 with build-id 6a6832234e0d13b26a32fa8b9f0fc55df0163999
                          Module libm17n-core.so.0 with build-id c2c9576b73501921568e41b997c2397ed33eb7e2
                          Module libotf.so.1 with build-id 01f83610c060379c362910a50e23ef9b12c8f3a6
                          Module libharfbuzz.so.0 with build-id 6b736b6b0eabdbf3695daa6e47fb307e37b32257
                          Module libfontconfig.so.1 with build-id 1bd18664723dc4edd8024f18ef7d7a4c9efac13c
                          Module libfreetype.so.6 with build-id c4f0ab5bb10190a8dc5d3c30ce89ce559c86ec08
                          Module libselinux.so.1 with build-id 7e68f414b47b91fda0d3a6ace5dea9359c7c387a
                          Module libtinfo.so.6 with build-id b7eb22141b4a38e77529f10c214e595a86a32ffe
                          Module libgpm.so.2 with build-id 6c19037d8cbbd965b5e31229c418f9f33b7a805f
                          Module libxml2.so.2 with build-id db165ce4bbfed3b850a37eeedb0df28cc7a3aa4f
                          Module libXfixes.so.3 with build-id 8693a78eff828f8ebf1252f87a5c15c5e52a7a07
                          Module libXinerama.so.1 with build-id 92633a2a5e638660e8ab5cf50007097edebd92f8
                          Module libXrandr.so.2 with build-id ca928c460da471e9d04078cbbf03b0cb5e2bd0fa
                          Module libdbus-1.so.3 with build-id 0bcae537f1ca366889959f54793945dd2448f9b3
                          Module librt.so.1 with build-id 97ac793ccf0fc1496543704f9b0a2ca4e99abf0f
                          Module libacl.so.1 with build-id 10f984c014a2f7b28613cd44a98cf1d2e4a5eb24
                          Module libcairo.so.2 with build-id b499c2ec70f39d8ef29d243c24a19fb7a9c247e8
                          Module libglib-2.0.so.0 with build-id b430f289010a80bffaaf00e9d4721155f45e8770
                          Module libgobject-2.0.so.0 with build-id 848df64b2a14b503390bc3c567d42a8dc1f6a031
                          Module libgdk_pixbuf-2.0.so.0 with build-id b7bc45d4f3a4b964c90da34f694a68234842ed76
                          Module libgio-2.0.so.0 with build-id e01ae4567793f2c94b5215e98bccb2ae32ba69d0
                          Module libm.so.6 with build-id 3950a8ba3d1bac563776c5596661b24af5e355f0
                          Module librsvg-2.so.2 with build-id 43d06b42d8e503a959248c1df50fff3a3808eb18
                          Module libasound.so.2 with build-id 78de024a6e2fa10ee5a2be8358242e5b4dae38f6
                          Module libXrender.so.1 with build-id 3c82fad2a57018456f55682e6fc74198cbeefb48
                          Module libX11.so.6 with build-id a09061532c97720598e0677bc1887a770152b14d
                          Module libXext.so.6 with build-id 94abf5af6ebe825ecf64f717b6a62d07727af979
                          Module libICE.so.6 with build-id 6a0429d9840edac7a76507600758dfad21dbae99
                          Module libSM.so.6 with build-id 934950c93be01703ce94d26738d1f9aa1f7a9096
                          Module libXt.so.6 with build-id 0254f879fa3ead5852bf2b3e486c9c8f8ff4e548
                          Module libXmu.so.6 with build-id 2c688e4dbdd8c49f1de00d3836bb47bd5862b16b
                          Module libXaw3d.so.6 with build-id 6fda728c42c55e0191091b66601f081967e55aa4
                          Module libXpm.so.4 with build-id 1f2dd817d18808f7122857a252faa77d6ed56109
                          Module libgif.so.7 with build-id e6c4c3292fd4c9e42f712efbd366a25830e2ca5e
                          Module libz.so.1 with build-id 70a770d9b600208bb51e5f4d6a3bf4e344d13478
                          Module libpng16.so.16 with build-id c88c5ba10be0bb164283235efa1ab0b6e2c90c62
                          Module libjpeg.so.62 with build-id 368d652b25bccafcf6ab3c9c6381d07fb8393803
                          Module libtiff.so.5 with build-id 66a0f2fbbaec0726051406be218aedf8f1bfeac0
                          Module ld-linux-x86-64.so.2 with build-id b1133999bbb1801a832010378ae667737cad3131
                          Stack trace of thread 138373:
                          #0  0x00007f4e50c5c14a __GI___pread64_nocancel (ld-linux-x86-64.so.2 + 0x2014a)
                          #1  0x00007f4e50c42a04 open_verify (ld-linux-x86-64.so.2 + 0x6a04)
                          #2  0x00007f4e50c45f11 _dl_map_object (ld-linux-x86-64.so.2 + 0x9f11)
                          #3  0x00007f4e50c4a4b1 openaux (ld-linux-x86-64.so.2 + 0xe4b1)
                          #4  0x00007f4e50c58fe6 _dl_catch_exception (ld-linux-x86-64.so.2 + 0x1cfe6)
                          #5  0x00007f4e50c4a839 _dl_map_object_deps (ld-linux-x86-64.so.2 + 0xe839)
                          #6  0x00007f4e50c40114 dl_main (ld-linux-x86-64.so.2 + 0x4114)
                          #7  0x00007f4e50c5800f _dl_sysdep_start (ld-linux-x86-64.so.2 + 0x1c00f)
                          #8  0x00007f4e50c3dffb _dl_start_final (ld-linux-x86-64.so.2 + 0x1ffb)
                          #9  0x00007f4e50c3d058 _start (ld-linux-x86-64.so.2 + 0x1058)
                          ELF object binary architecture: AMD x86-64
          
    (ert-test-failed
     ((should
       (eql status 0))
      :form
      (eql 159 0)
      :value nil))
   FAILED  1/7  emacs-tests/bwrap/allows-stdout (0.146127 sec)
   passed  2/7  emacs-tests/seccomp/absent-file (0.022353 sec)
Test emacs-tests/seccomp/allows-stdout backtrace:
  signal(ert-test-failed (((should (eql status 0)) :form (eql "Bad sys
  ert-fail(((should (eql status 0)) :form (eql "Bad system call" 0) :v
  (if (unwind-protect (setq value-102 (apply fn-100 args-101)) (setq f
  (let (form-description-104) (if (unwind-protect (setq value-102 (app
  (let ((value-102 'ert-form-evaluation-aborted-103)) (let (form-descr
  (let* ((fn-100 #'eql) (args-101 (condition-case err (let ((signal-ho
  (let ((ert--infos (cons (cons "Info: " (emacs-tests--seccomp-debug s
  (let ((start-time (current-time)) (status (call-process emacs nil t 
  (progn (let ((start-time (current-time)) (status (call-process emacs
  (unwind-protect (progn (let ((start-time (current-time)) (status (ca
  (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn
  (let ((temp-buffer (generate-new-buffer " *temp*" t))) (save-current
  (let ((emacs (expand-file-name invocation-name invocation-directory)
  (let ((lexical-binding t)) (let* ((fn-80 #'string-match-p) (args-81 
  (closure (t) nil (let ((lexical-binding t)) (let* ((fn-80 #'string-m
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name emacs-tests/seccomp/allows-stdout :do
  ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
  ert-run-tests((not (or (tag :unstable) (tag :nativecomp))) #f(compil
  ert-run-tests-batch((not (or (tag :unstable) (tag :nativecomp))))
  ert-run-tests-batch-and-exit((not (or (tag :unstable) (tag :nativeco
  eval((ert-run-tests-batch-and-exit '(not (or (tag :unstable) (tag :n
  command-line-1(("-L" ":." "-L" "./../../elpa/packages/url-http-ntlm/
  command-line()
  normal-top-level()
Test emacs-tests/seccomp/allows-stdout condition:
    Info: Process output:
          
          Potentially useful coredump information:
                     PID: 138387 (emacs)
                     UID: 1000 (blc)
                     GID: 1000 (blc)
                  Signal: 31 (SYS)
               Timestamp: Fri 2022-01-21 15:46:37 EET (1s ago)
            Command Line: /home/blc/.local/src/emacs-28/src/emacs --quick --batch --seccomp=/home/blc/.local/src/emacs-28/lib-src/seccomp-filter.bpf $'--eval=(message "Hi")'
              Executable: /home/blc/.local/src/emacs-28/src/emacs
           Control Group: /user.slice/user-1000.slice/session-2.scope
                    Unit: session-2.scope
                   Slice: user-1000.slice
                 Session: 2
               Owner UID: 1000 (blc)
                 Boot ID: cfc15e16c869496f947935e197ac1d35
              Machine ID: 1eaf00d04e87431584dd7dfc9cf6503c
                Hostname: tia
                 Storage: /var/lib/systemd/coredump/core.emacs.1000.cfc15e16c869496f947935e197ac1d35.138387.1642772797000000.zst (present)
               Disk Size: 3.8M
                 Message: Process 138387 (emacs) of user 1000 dumped core.
                          
                          Module /home/blc/.local/src/emacs-28/src/emacs with build-id 65e1e7e9bd31449a83b39d5ed19a12ffb1656ab3
                          Module linux-vdso.so.1 with build-id aa90d45bcd5e2f2cf6d3f271448c0055aab0c829
                          Module libgpg-error.so.0 with build-id eea2c65f72557657fcfb8c016afd591f3a4774f8
                          Module libdatrie.so.1 with build-id bdb764243ae69f6faa37d6b969fbbe46cd5476f1
                          Module libbrotlicommon.so.1 with build-id fada538d826fde21948d90f431ccc24714aa4eba
                          Module libstdc++.so.6 with build-id 4d0895e7f15babd579e783cf9038c192b3ccd636
                          Module libicudata.so.67 with build-id 2421572a83e89276615b173445a81cc1b7db8852
                          Module libblkid.so.1 with build-id c3753875c55340b0cd5bbbaffa0d7d0c2aeb0b9c
                          Module libfribidi.so.0 with build-id 9c6f0821078772cf1145ffabbe820f09b81bb9f5
                          Module libpangoft2-1.0.so.0 with build-id bdd941c30dc65428f68fe769af55a84aa09e032e
                          Module libXdmcp.so.6 with build-id 1d12a8566670c95b1b02e341400060d2d825aade
                          Module libXau.so.6 with build-id 84ffa90fee1b716cdc7d8349be47ed6ca4761b75
                          Module libmd.so.0 with build-id 9180a9ac40a53c9e3ab884bf56af7590afce48d1
                          Module libgcrypt.so.20 with build-id 2b1168fb43bab927604522f1cb49b48ed81e3adf
                          Module libcap.so.2 with build-id a6034f7fc277ee9d9714c2b288b419498225156f
                          Module liblz4.so.1 with build-id 964039e18af4b59e5a11f4ad26e9aa5e6a2d5db7
                          Module libhogweed.so.6 with build-id bc104618645979735399d88df5bb3b1a81753238
                          Module libnettle.so.8 with build-id a0fd01631c795d4955e5f6bef9f7e0367b20d13b
                          Module libtasn1.so.6 with build-id b4bb5ce72e9b65bdfa6d6e38b20bae371d4de7f8
                          Module libunistring.so.2 with build-id 7169b2ba43b08661361637d65d422e83195ba9a7
                          Module libidn2.so.0 with build-id bd200ecd24a4ee730feb183ba94c68635fa73479
                          Module libp11-kit.so.0 with build-id 25d757d1ddf5f3151f277ce5ed9c4d5359e830da
                          Module libthai.so.0 with build-id 11b774e6b958fa6734f1a721527e1596e34ecd00
                          Module libgraphite2.so.3 with build-id 5b00ca1eda239ea043d7eae3b0fd4481560a907e
                          Module libexpat.so.1 with build-id 77beed573fc9f3deb6c26a094f8a6d4fbf053fe9
                          Module libbrotlidec.so.1 with build-id 3c50647c3773c7ffb9efbee43ff29b1575ee9482
                          Module libpcre2-8.so.0 with build-id d52256f3e58205a5c35ee7e6212a575117fe241e
                          Module libicuuc.so.67 with build-id f871bbd529a02abd860f0d16b842b5b20234cb49
                          Module libxcb-render.so.0 with build-id e9434da5c1dbed7326e682f20dd1f90b51ba45c9
                          Module libxcb-shm.so.0 with build-id fe3f2befc67b81cf285d9be50754974663140374
                          Module libpixman-1.so.0 with build-id 2ba0d88f718a0fef93d759cfc90bc650cdee38ba
                          Module libpcre.so.3 with build-id 665f1b80589ca7b4d7f106afafd6be3b3e17706b
                          Module libffi.so.8 with build-id 4ce8e5d8874d0c5201af22cf5ee1d521dba67a9f
                          Module libresolv.so.2 with build-id 19df48b181808b14077586d5ffddb1dc99639f72
                          Module libmount.so.1 with build-id 95485dc110937d19a4690791d258ca6eb3895368
                          Module libgmodule-2.0.so.0 with build-id 42d59f2bdb57c46452f6c48a09e81c07ecd95054
                          Module libgcc_s.so.1 with build-id 41054ed4594f0c8aea9a68114ae5999f4838fd4c
                          Module libpango-1.0.so.0 with build-id 5fce6678f137715b93c1b8245bd1f421dfe5027b
                          Module libpangocairo-1.0.so.0 with build-id 96f7abb19727a7f133f8ed8fb4bf23ca4dfe943c
                          Module libcairo-gobject.so.2 with build-id 08412c2e1dfbe87ce10f035b54a3bef219d18aed
                          Module ld-linux-x86-64.so.2 with build-id b1133999bbb1801a832010378ae667737cad3131
                          Module libxcb.so.1 with build-id a138edb4064781bf37428e898f4842427ded3404
                          Module libbsd.so.0 with build-id b04359610c861c7526a6e6c03b4500cd718116e3
                          Module libuuid.so.1 with build-id 861b56b1752b6a306991ca2e23a3e426edfea5e2
                          Module libdeflate.so.0 with build-id 7657fd4f079facefab8befbca6332e63b737dcd7
                          Module libjbig.so.0 with build-id 22813d3e92e574d81165b92701d721fbe4c1861e
                          Module liblzma.so.5 with build-id 5d67991a152e0b62f982a0e4110cc2262850c788
                          Module libzstd.so.1 with build-id 57509eed80c587b9ef77d3d1234e969b98448664
                          Module libwebp.so.6 with build-id e8ec53bc33884e4e57a9a2e0607d01835ba69757
                          Module libc.so.6 with build-id 7d74053de4b1acdbbc139fd54deaaa32b3b38655
                          Module libgmp.so.10 with build-id f202d7d8f2feb4d57422b59085c4049caef2f9c8
                          Module libjansson.so.4 with build-id 39992d77fcaddf7c681c609609f182de739d3b72
                          Module libsystemd.so.0 with build-id 98ab74e63eb9c4d482a7db9a1408ddcdcddba003
                          Module libdl.so.2 with build-id 23b03cb94c34544ed3b222db64fe7b24cfd73fa1
                          Module liblcms2.so.2 with build-id 255030645c8534451e939cfd515f914c92281fd1
                          Module libanl.so.1 with build-id 3c49dd1120d2128804405921ba18f8b879f0392f
                          Module libpthread.so.0 with build-id 54322f9a621b22e9ea3a4a96b6692f7a0f931b2d
                          Module libgnutls.so.30 with build-id 247925d267be23194b9df36f6addb507fa2f7f62
                          Module libm17n-flt.so.0 with build-id 6a6832234e0d13b26a32fa8b9f0fc55df0163999
                          Module libm17n-core.so.0 with build-id c2c9576b73501921568e41b997c2397ed33eb7e2
                          Module libotf.so.1 with build-id 01f83610c060379c362910a50e23ef9b12c8f3a6
                          Module libharfbuzz.so.0 with build-id 6b736b6b0eabdbf3695daa6e47fb307e37b32257
                          Module libfontconfig.so.1 with build-id 1bd18664723dc4edd8024f18ef7d7a4c9efac13c
                          Module libfreetype.so.6 with build-id c4f0ab5bb10190a8dc5d3c30ce89ce559c86ec08
                          Module libselinux.so.1 with build-id 7e68f414b47b91fda0d3a6ace5dea9359c7c387a
                          Module libtinfo.so.6 with build-id b7eb22141b4a38e77529f10c214e595a86a32ffe
                          Module libgpm.so.2 with build-id 6c19037d8cbbd965b5e31229c418f9f33b7a805f
                          Module libxml2.so.2 with build-id db165ce4bbfed3b850a37eeedb0df28cc7a3aa4f
                          Module libXfixes.so.3 with build-id 8693a78eff828f8ebf1252f87a5c15c5e52a7a07
                          Module libXinerama.so.1 with build-id 92633a2a5e638660e8ab5cf50007097edebd92f8
                          Module libXrandr.so.2 with build-id ca928c460da471e9d04078cbbf03b0cb5e2bd0fa
                          Module libdbus-1.so.3 with build-id 0bcae537f1ca366889959f54793945dd2448f9b3
                          Module librt.so.1 with build-id 97ac793ccf0fc1496543704f9b0a2ca4e99abf0f
                          Module libacl.so.1 with build-id 10f984c014a2f7b28613cd44a98cf1d2e4a5eb24
                          Module libcairo.so.2 with build-id b499c2ec70f39d8ef29d243c24a19fb7a9c247e8
                          Module libglib-2.0.so.0 with build-id b430f289010a80bffaaf00e9d4721155f45e8770
                          Module libgobject-2.0.so.0 with build-id 848df64b2a14b503390bc3c567d42a8dc1f6a031
                          Module libgdk_pixbuf-2.0.so.0 with build-id b7bc45d4f3a4b964c90da34f694a68234842ed76
                          Module libgio-2.0.so.0 with build-id e01ae4567793f2c94b5215e98bccb2ae32ba69d0
                          Module libm.so.6 with build-id 3950a8ba3d1bac563776c5596661b24af5e355f0
                          Module librsvg-2.so.2 with build-id 43d06b42d8e503a959248c1df50fff3a3808eb18
                          Module libasound.so.2 with build-id 78de024a6e2fa10ee5a2be8358242e5b4dae38f6
                          Module libXrender.so.1 with build-id 3c82fad2a57018456f55682e6fc74198cbeefb48
                          Module libX11.so.6 with build-id a09061532c97720598e0677bc1887a770152b14d
                          Module libXext.so.6 with build-id 94abf5af6ebe825ecf64f717b6a62d07727af979
                          Module libICE.so.6 with build-id 6a0429d9840edac7a76507600758dfad21dbae99
                          Module libSM.so.6 with build-id 934950c93be01703ce94d26738d1f9aa1f7a9096
                          Module libXt.so.6 with build-id 0254f879fa3ead5852bf2b3e486c9c8f8ff4e548
                          Module libXmu.so.6 with build-id 2c688e4dbdd8c49f1de00d3836bb47bd5862b16b
                          Module libXaw3d.so.6 with build-id 6fda728c42c55e0191091b66601f081967e55aa4
                          Module libXpm.so.4 with build-id 1f2dd817d18808f7122857a252faa77d6ed56109
                          Module libgif.so.7 with build-id e6c4c3292fd4c9e42f712efbd366a25830e2ca5e
                          Module libz.so.1 with build-id 70a770d9b600208bb51e5f4d6a3bf4e344d13478
                          Module libpng16.so.16 with build-id c88c5ba10be0bb164283235efa1ab0b6e2c90c62
                          Module libjpeg.so.62 with build-id 368d652b25bccafcf6ab3c9c6381d07fb8393803
                          Module libtiff.so.5 with build-id 66a0f2fbbaec0726051406be218aedf8f1bfeac0
                          Stack trace of thread 138387:
                          #0  0x00007f35d1218fc0 __faccessat (libc.so.6 + 0xedfc0)
                          #1  0x000055de3b2f8856 n/a (/home/blc/.local/src/emacs-28/src/emacs + 0x23f856)
                          #2  0x000055de3b2fd242 n/a (/home/blc/.local/src/emacs-28/src/emacs + 0x244242)
                          #3  0x000055de3b2fd28c n/a (/home/blc/.local/src/emacs-28/src/emacs + 0x24428c)
                          #4  0x000055de3b29383c n/a (/home/blc/.local/src/emacs-28/src/emacs + 0x1da83c)
                          #5  0x000055de3b296165 n/a (/home/blc/.local/src/emacs-28/src/emacs + 0x1dd165)
                          #6  0x00007f35d11527ed __libc_start_main (libc.so.6 + 0x277ed)
                          #7  0x000055de3b0fa9ea n/a (/home/blc/.local/src/emacs-28/src/emacs + 0x419ea)
                          ELF object binary architecture: AMD x86-64
          
    (ert-test-failed
     ((should
       (eql status 0))
      :form
      (eql "Bad system call" 0)
      :value nil))
   FAILED  3/7  emacs-tests/seccomp/allows-stdout (0.336707 sec)
   passed  4/7  emacs-tests/seccomp/empty-file (0.016942 sec)
   passed  5/7  emacs-tests/seccomp/file-too-large (0.244316 sec)
   passed  6/7  emacs-tests/seccomp/forbids-subprocess (0.341750 sec)
   passed  7/7  emacs-tests/seccomp/invalid-file-size (0.024746 sec)

Ran 7 tests, 5 results as expected, 2 unexpected (2022-01-21 15:46:39+0200, 3.254555 sec)

2 unexpected results:
   FAILED  emacs-tests/bwrap/allows-stdout
   FAILED  emacs-tests/seccomp/allows-stdout

make[2]: *** [Makefile:182: src/emacs-tests.log] Error 1
make[2]: Leaving directory '/home/blc/.local/src/emacs-28/test'
make[1]: *** [Makefile:248: src/emacs-tests] Error 2
make[1]: Leaving directory '/home/blc/.local/src/emacs-28/test'
make: *** [Makefile:997: test/emacs-tests] Error 2

Compilation exited abnormally with code 2 at Fri Jan 21 15:46:39

[-- Attachment #3: Emacs --without-x backtrace --]
[-- Type: text/plain, Size: 14294 bytes --]

-*- mode: compilation; default-directory: "~/.local/src/emacs-nox/" -*-
Compilation started at Fri Jan 21 15:47:01

make test/emacs-tests
make -C test emacs-tests
make[1]: Entering directory '/home/blc/.local/src/emacs-nox/test'
make[2]: Entering directory '/home/blc/.local/src/emacs-nox/test'
  ELC      src/emacs-tests.elc
  GEN      src/emacs-tests.log
Running 7 tests (2022-01-21 15:47:02+0200, selector `(not (or (tag :unstable) (tag :nativecomp)))')
Test emacs-tests/bwrap/allows-stdout backtrace:
  signal(ert-test-failed (((should (eql status 0)) :form (eql 159 0) :
  ert-fail(((should (eql status 0)) :form (eql 159 0) :value nil))
  (if (unwind-protect (setq value-166 (apply fn-164 args-165)) (setq f
  (let (form-description-168) (if (unwind-protect (setq value-166 (app
  (let ((value-166 'ert-form-evaluation-aborted-167)) (let (form-descr
  (let* ((fn-164 #'eql) (args-165 (condition-case err (let ((signal-ho
  (let ((ert--infos (cons (cons "Info: " (emacs-tests--seccomp-debug s
  (let* ((command (concat (mapconcat #'shell-quote-argument (list (fil
  (progn (let* ((command (concat (mapconcat #'shell-quote-argument (li
  (unwind-protect (progn (let* ((command (concat (mapconcat #'shell-qu
  (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn
  (let ((temp-buffer (generate-new-buffer " *temp*" t))) (save-current
  (let ((bash (executable-find "bash")) (bwrap (executable-find "bwrap
  (closure (t) nil (let ((bash (executable-find "bash")) (bwrap (execu
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name emacs-tests/bwrap/allows-stdout :docu
  ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
  ert-run-tests((not (or (tag :unstable) (tag :nativecomp))) #f(compil
  ert-run-tests-batch((not (or (tag :unstable) (tag :nativecomp))))
  ert-run-tests-batch-and-exit((not (or (tag :unstable) (tag :nativeco
  eval((ert-run-tests-batch-and-exit '(not (or (tag :unstable) (tag :n
  command-line-1(("-L" ":." "-L" "./../../elpa/packages/url-http-ntlm/
  command-line()
  normal-top-level()
Test emacs-tests/bwrap/allows-stdout condition:
    Info: Process output:
          
          Potentially useful coredump information:
                     PID: 138481 (emacs)
                     UID: 1000 (blc)
                     GID: 1000 (blc)
                  Signal: 31 (SYS)
               Timestamp: Fri 2022-01-21 15:47:02 EET (807ms ago)
            Command Line: /home/blc/.local/src/emacs-nox/src/emacs --quick --batch $'--eval=(message "Hi")'
              Executable: /home/blc/.local/src/emacs-nox/src/emacs
           Control Group: /user.slice/user-1000.slice/session-2.scope
                    Unit: session-2.scope
                   Slice: user-1000.slice
                 Session: 2
               Owner UID: 1000 (blc)
                 Boot ID: cfc15e16c869496f947935e197ac1d35
              Machine ID: 1eaf00d04e87431584dd7dfc9cf6503c
                Hostname: tia
                 Storage: /var/lib/systemd/coredump/core.emacs.1000.cfc15e16c869496f947935e197ac1d35.138481.1642772822000000.zst (present)
               Disk Size: 64.9K
                 Message: Process 138481 (emacs) of user 1000 dumped core.
                          
                          Module /home/blc/.local/src/emacs-nox/src/emacs with build-id fe39b98d49dab1c3b5f61091144c5f053ba42a7c
                          Module linux-vdso.so.1 with build-id aa90d45bcd5e2f2cf6d3f271448c0055aab0c829
                          Module libgnutls.so.30 with build-id 247925d267be23194b9df36f6addb507fa2f7f62
                          Module libselinux.so.1 with build-id 7e68f414b47b91fda0d3a6ace5dea9359c7c387a
                          Module libtinfo.so.6 with build-id b7eb22141b4a38e77529f10c214e595a86a32ffe
                          Module libgpm.so.2 with build-id 6c19037d8cbbd965b5e31229c418f9f33b7a805f
                          Module libxml2.so.2 with build-id db165ce4bbfed3b850a37eeedb0df28cc7a3aa4f
                          Module libdbus-1.so.3 with build-id 0bcae537f1ca366889959f54793945dd2448f9b3
                          Module librt.so.1 with build-id 97ac793ccf0fc1496543704f9b0a2ca4e99abf0f
                          Module libacl.so.1 with build-id 10f984c014a2f7b28613cd44a98cf1d2e4a5eb24
                          Module libasound.so.2 with build-id 78de024a6e2fa10ee5a2be8358242e5b4dae38f6
                          Module ld-linux-x86-64.so.2 with build-id b1133999bbb1801a832010378ae667737cad3131
                          Stack trace of thread 138481:
                          #0  0x00007fd745f3714a __GI___pread64_nocancel (ld-linux-x86-64.so.2 + 0x2014a)
                          #1  0x00007fd745f1da04 open_verify (ld-linux-x86-64.so.2 + 0x6a04)
                          #2  0x00007fd745f20f11 _dl_map_object (ld-linux-x86-64.so.2 + 0x9f11)
                          #3  0x00007fd745f254b1 openaux (ld-linux-x86-64.so.2 + 0xe4b1)
                          #4  0x00007fd745f33fe6 _dl_catch_exception (ld-linux-x86-64.so.2 + 0x1cfe6)
                          #5  0x00007fd745f25839 _dl_map_object_deps (ld-linux-x86-64.so.2 + 0xe839)
                          #6  0x00007fd745f1b114 dl_main (ld-linux-x86-64.so.2 + 0x4114)
                          #7  0x00007fd745f3300f _dl_sysdep_start (ld-linux-x86-64.so.2 + 0x1c00f)
                          #8  0x00007fd745f18ffb _dl_start_final (ld-linux-x86-64.so.2 + 0x1ffb)
                          #9  0x00007fd745f18058 _start (ld-linux-x86-64.so.2 + 0x1058)
                          ELF object binary architecture: AMD x86-64
          
    (ert-test-failed
     ((should
       (eql status 0))
      :form
      (eql 159 0)
      :value nil))
   FAILED  1/7  emacs-tests/bwrap/allows-stdout (0.110459 sec)
   passed  2/7  emacs-tests/seccomp/absent-file (0.009098 sec)
Test emacs-tests/seccomp/allows-stdout backtrace:
  signal(ert-test-failed (((should (eql status 0)) :form (eql "Bad sys
  ert-fail(((should (eql status 0)) :form (eql "Bad system call" 0) :v
  (if (unwind-protect (setq value-102 (apply fn-100 args-101)) (setq f
  (let (form-description-104) (if (unwind-protect (setq value-102 (app
  (let ((value-102 'ert-form-evaluation-aborted-103)) (let (form-descr
  (let* ((fn-100 #'eql) (args-101 (condition-case err (let ((signal-ho
  (let ((ert--infos (cons (cons "Info: " (emacs-tests--seccomp-debug s
  (let ((start-time (current-time)) (status (call-process emacs nil t 
  (progn (let ((start-time (current-time)) (status (call-process emacs
  (unwind-protect (progn (let ((start-time (current-time)) (status (ca
  (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn
  (let ((temp-buffer (generate-new-buffer " *temp*" t))) (save-current
  (let ((emacs (expand-file-name invocation-name invocation-directory)
  (closure (t) nil (let* ((fn-80 #'string-match-p) (args-81 (condition
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name emacs-tests/seccomp/allows-stdout :do
  ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
  ert-run-tests((not (or (tag :unstable) (tag :nativecomp))) #f(compil
  ert-run-tests-batch((not (or (tag :unstable) (tag :nativecomp))))
  ert-run-tests-batch-and-exit((not (or (tag :unstable) (tag :nativeco
  eval((ert-run-tests-batch-and-exit '(not (or (tag :unstable) (tag :n
  command-line-1(("-L" ":." "-L" "./../../elpa/packages/url-http-ntlm/
  command-line()
  normal-top-level()
Test emacs-tests/seccomp/allows-stdout condition:
    Info: Process output:
          
          Potentially useful coredump information:
                     PID: 138493 (emacs)
                     UID: 1000 (blc)
                     GID: 1000 (blc)
                  Signal: 31 (SYS)
               Timestamp: Fri 2022-01-21 15:47:03 EET (299ms ago)
            Command Line: /home/blc/.local/src/emacs-nox/src/emacs --quick --batch --seccomp=/home/blc/.local/src/emacs-nox/lib-src/seccomp-filter.bpf $'--eval=(message "Hi")'
              Executable: /home/blc/.local/src/emacs-nox/src/emacs
           Control Group: /user.slice/user-1000.slice/session-2.scope
                    Unit: session-2.scope
                   Slice: user-1000.slice
                 Session: 2
               Owner UID: 1000 (blc)
                 Boot ID: cfc15e16c869496f947935e197ac1d35
              Machine ID: 1eaf00d04e87431584dd7dfc9cf6503c
                Hostname: tia
                 Storage: /var/lib/systemd/coredump/core.emacs.1000.cfc15e16c869496f947935e197ac1d35.138493.1642772823000000.zst (present)
               Disk Size: 3.4M
                 Message: Process 138493 (emacs) of user 1000 dumped core.
                          
                          Module /home/blc/.local/src/emacs-nox/src/emacs with build-id fe39b98d49dab1c3b5f61091144c5f053ba42a7c
                          Module linux-vdso.so.1 with build-id aa90d45bcd5e2f2cf6d3f271448c0055aab0c829
                          Module libgpg-error.so.0 with build-id eea2c65f72557657fcfb8c016afd591f3a4774f8
                          Module libffi.so.8 with build-id 4ce8e5d8874d0c5201af22cf5ee1d521dba67a9f
                          Module libgcc_s.so.1 with build-id 41054ed4594f0c8aea9a68114ae5999f4838fd4c
                          Module libstdc++.so.6 with build-id 4d0895e7f15babd579e783cf9038c192b3ccd636
                          Module libicudata.so.67 with build-id 2421572a83e89276615b173445a81cc1b7db8852
                          Module libgcrypt.so.20 with build-id 2b1168fb43bab927604522f1cb49b48ed81e3adf
                          Module libcap.so.2 with build-id a6034f7fc277ee9d9714c2b288b419498225156f
                          Module liblz4.so.1 with build-id 964039e18af4b59e5a11f4ad26e9aa5e6a2d5db7
                          Module libzstd.so.1 with build-id 57509eed80c587b9ef77d3d1234e969b98448664
                          Module libhogweed.so.6 with build-id bc104618645979735399d88df5bb3b1a81753238
                          Module libnettle.so.8 with build-id a0fd01631c795d4955e5f6bef9f7e0367b20d13b
                          Module libtasn1.so.6 with build-id b4bb5ce72e9b65bdfa6d6e38b20bae371d4de7f8
                          Module libunistring.so.2 with build-id 7169b2ba43b08661361637d65d422e83195ba9a7
                          Module libidn2.so.0 with build-id bd200ecd24a4ee730feb183ba94c68635fa73479
                          Module libp11-kit.so.0 with build-id 25d757d1ddf5f3151f277ce5ed9c4d5359e830da
                          Module libpcre2-8.so.0 with build-id d52256f3e58205a5c35ee7e6212a575117fe241e
                          Module liblzma.so.5 with build-id 5d67991a152e0b62f982a0e4110cc2262850c788
                          Module libicuuc.so.67 with build-id f871bbd529a02abd860f0d16b842b5b20234cb49
                          Module ld-linux-x86-64.so.2 with build-id b1133999bbb1801a832010378ae667737cad3131
                          Module libc.so.6 with build-id 7d74053de4b1acdbbc139fd54deaaa32b3b38655
                          Module libsqlite3.so.0 with build-id 3ed0fc83a3b87f6041974ec0309cf1eb62a5f6c0
                          Module libgmp.so.10 with build-id f202d7d8f2feb4d57422b59085c4049caef2f9c8
                          Module libjansson.so.4 with build-id 39992d77fcaddf7c681c609609f182de739d3b72
                          Module libsystemd.so.0 with build-id 98ab74e63eb9c4d482a7db9a1408ddcdcddba003
                          Module libdl.so.2 with build-id 23b03cb94c34544ed3b222db64fe7b24cfd73fa1
                          Module libz.so.1 with build-id 70a770d9b600208bb51e5f4d6a3bf4e344d13478
                          Module libm.so.6 with build-id 3950a8ba3d1bac563776c5596661b24af5e355f0
                          Module liblcms2.so.2 with build-id 255030645c8534451e939cfd515f914c92281fd1
                          Module libanl.so.1 with build-id 3c49dd1120d2128804405921ba18f8b879f0392f
                          Module libpthread.so.0 with build-id 54322f9a621b22e9ea3a4a96b6692f7a0f931b2d
                          Module libgnutls.so.30 with build-id 247925d267be23194b9df36f6addb507fa2f7f62
                          Module libselinux.so.1 with build-id 7e68f414b47b91fda0d3a6ace5dea9359c7c387a
                          Module libtinfo.so.6 with build-id b7eb22141b4a38e77529f10c214e595a86a32ffe
                          Module libgpm.so.2 with build-id 6c19037d8cbbd965b5e31229c418f9f33b7a805f
                          Module libxml2.so.2 with build-id db165ce4bbfed3b850a37eeedb0df28cc7a3aa4f
                          Module libdbus-1.so.3 with build-id 0bcae537f1ca366889959f54793945dd2448f9b3
                          Module librt.so.1 with build-id 97ac793ccf0fc1496543704f9b0a2ca4e99abf0f
                          Module libacl.so.1 with build-id 10f984c014a2f7b28613cd44a98cf1d2e4a5eb24
                          Module libasound.so.2 with build-id 78de024a6e2fa10ee5a2be8358242e5b4dae38f6
                          Stack trace of thread 138493:
                          #0  0x00007f46e8c30fc0 __faccessat (libc.so.6 + 0xedfc0)
                          #1  0x000055f149e2408e n/a (/home/blc/.local/src/emacs-nox/src/emacs + 0x10508e)
                          ELF object binary architecture: AMD x86-64
          
    (ert-test-failed
     ((should
       (eql status 0))
      :form
      (eql "Bad system call" 0)
      :value nil))
   FAILED  3/7  emacs-tests/seccomp/allows-stdout (0.265649 sec)
   passed  4/7  emacs-tests/seccomp/empty-file (0.009843 sec)
   passed  5/7  emacs-tests/seccomp/file-too-large (0.038833 sec)
   passed  6/7  emacs-tests/seccomp/forbids-subprocess (0.266038 sec)
   passed  7/7  emacs-tests/seccomp/invalid-file-size (0.005355 sec)

Ran 7 tests, 5 results as expected, 2 unexpected (2022-01-21 15:47:03+0200, 1.064496 sec)

2 unexpected results:
   FAILED  emacs-tests/bwrap/allows-stdout
   FAILED  emacs-tests/seccomp/allows-stdout

make[2]: *** [Makefile:185: src/emacs-tests.log] Error 1
make[2]: Leaving directory '/home/blc/.local/src/emacs-nox/test'
make[1]: *** [Makefile:251: src/emacs-tests] Error 2
make[1]: Leaving directory '/home/blc/.local/src/emacs-nox/test'
make: *** [Makefile:1023: test/emacs-tests] Error 2

Compilation exited abnormally with code 2 at Fri Jan 21 15:47:03

[-- Attachment #4: Type: text/plain, Size: 5873 bytes --]


In GNU Emacs 28.0.91 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars)
 of 2022-01-21 built on tia
Repository revision: f08dfa9b532648457590262c1afa9729e87c6bb1
Repository branch: wt/emacs-28
System Description: Debian GNU/Linux bookworm/sid

Configured using:
 'configure 'CFLAGS=-O0 -ggdb3' --prefix=/home/blc/.local
 --program-suffix=-28 --enable-checking=yes,glyphs
 --enable-check-lisp-type --with-x-toolkit=lucid
 --with-file-notification=yes --with-x'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY
INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS
X11 XAW3D XDBE XIM XPM LUCID ZLIB

Important settings:
  value of $LANG: en_IE.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail
rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache json map text-property-search time-date
subr-x seq mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils term/xterm xterm byte-opt gv
bytecomp byte-compile cconv iso-transl tooltip eldoc paren electric
uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite emoji-zwj charscript charprop case-table
epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice
button loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote threads dbusbind inotify lcms2
dynamic-setting system-font-setting font-render-setting cairo x-toolkit
x multi-tty make-network-process emacs)

Memory information:
((conses 16 56674 5913)
 (symbols 48 6741 1)
 (strings 32 18046 1546)
 (string-bytes 1 594941)
 (vectors 16 10595)
 (vector-slots 8 126617 9439)
 (floats 8 24 35)
 (intervals 56 207 0)
 (buffers 992 10))

In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu)
 of 2022-01-21 built on tia
Repository revision: 1ca6928c843fcbbaa35a7a947f905ca287c5c2fb
Repository branch: wt/master-nox
System Description: Debian GNU/Linux bookworm/sid

Configured using:
 'configure 'CFLAGS=-O2 -march=native' --config-cache
 --prefix=/home/blc/.local --program-suffix=-nox
 --enable-checking=structs --with-file-notification=yes
 --with-x-toolkit=no --without-x'

Configured features:
ACL DBUS GMP GNUTLS GPM JSON LCMS2 LIBSELINUX LIBSYSTEMD LIBXML2 MODULES
NOTIFY INOTIFY PDUMPER SECCOMP SOUND SQLITE3 THREADS XIM ZLIB

Important settings:
  value of $LANG: en_IE.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message mailcap yank-media rmc puny
dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg
rfc6068 epg-config gnus-util text-property-search time-date seq
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils term/xterm xterm gv subr-x byte-opt
bytecomp byte-compile cconv regexp-opt iso-transl tooltip eldoc paren
electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode
tabulated-list replace newcomment text-mode lisp-mode prog-mode register
page tab-bar menu-bar rfn-eshadow isearch easymenu timer select mouse
jit-lock font-lock syntax font-core term/tty-colors frame minibuffer
cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian
slovak czech european ethiopic indian cyrillic chinese composite
emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help
simple abbrev obarray cl-preloaded nadvice button loaddefs faces
cus-face macroexp files window text-properties overlay sha1 md5 base64
format env code-pages mule custom widget keymap hashtable-print-readable
backquote threads dbusbind inotify lcms2 multi-tty make-network-process
emacs)

Memory information:
((conses 16 47735 5984)
 (symbols 48 5667 1)
 (strings 32 15405 1831)
 (string-bytes 1 496340)
 (vectors 16 8526)
 (vector-slots 8 101602 6503)
 (floats 8 23 24)
 (intervals 56 195 13)
 (buffers 992 10))

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#51073: 28.0.60; SIGSYS in emacs-tests/bwrap/allows-stdout
  2022-01-21 14:14       ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-01-22 16:20         ` Philipp Stephani
  2022-01-22 21:34           ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-01-23 13:16           ` Andreas Schwab
  0 siblings, 2 replies; 8+ messages in thread
From: Philipp Stephani @ 2022-01-22 16:20 UTC (permalink / raw)
  To: Basil L. Contovounesios; +Cc: 51073

Am Fr., 21. Jan. 2022 um 15:14 Uhr schrieb Basil L. Contovounesios
<contovob@tcd.ie>:
>
> Basil L. Contovounesios [2021-10-11 21:39 +0100] wrote:
>
> > close 51073 28.1
> > quit
> >
> > Philipp Stephani [2021-10-09 19:43 +0200] wrote:
> >
> >> I've pushed a new rule to emacs-28 (commit b497add971). At least for
> >> me that fixes the test. Does it work for you as well?
> >
> > Yes, works fine here.  Thanks!
>
> After a several month hiatus from Emacs development, I'm now getting two
> SIGSYS failures in 'make test/emacs-tests' again on both emacs-28 and
> master (ERT backtraces and configuration info follow my signature).
>
> This time, 'sudo journalctl -g SECCOMP' mentions the following:
>
>   Jan 21 15:47:02 tia audit[138481]: SECCOMP auid=1000 uid=1000 gid=1000
>     ses=2 subj==unconfined pid=138481 comm="emacs"
>     exe="/home/blc/.local/src/emacs-nox/src/emacs" sig=31 arch=c000003e
>     syscall=17 compat=0 ip=0x7fd745f3714a code=0x80000000
>
>   Jan 21 15:47:03 tia audit[138493]: SECCOMP auid=1000 uid=1000 gid=1000
>     ses=2 subj==unconfined pid=138493 comm="emacs"
>     exe="/home/blc/.local/src/emacs-nox/src/emacs" sig=31 arch=c000003e
>     syscall=439 compat=0 ip=0x7f46e8c30fc0 code=0x80000000
>
> where AFAICT syscalls 17 and 439 correspond to pread64 and faccessat2,
> respectively.

Thanks, I added these syscalls to the filter shipped with Emacs
(commit 6d3608be88e1b30d2d10ee81f14dd485275c20ff).





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#51073: 28.0.60; SIGSYS in emacs-tests/bwrap/allows-stdout
  2022-01-22 16:20         ` Philipp Stephani
@ 2022-01-22 21:34           ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-01-23 13:16           ` Andreas Schwab
  1 sibling, 0 replies; 8+ messages in thread
From: Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-01-22 21:34 UTC (permalink / raw)
  To: Philipp Stephani; +Cc: 51073

Philipp Stephani [2022-01-22 17:20 +0100] wrote:

> Am Fr., 21. Jan. 2022 um 15:14 Uhr schrieb Basil L. Contovounesios
> <contovob@tcd.ie>:
>>
>> After a several month hiatus from Emacs development, I'm now getting two
>> SIGSYS failures in 'make test/emacs-tests' again on both emacs-28 and
>> master (ERT backtraces and configuration info follow my signature).
>>
>> This time, 'sudo journalctl -g SECCOMP' mentions the following:
>>
>>   Jan 21 15:47:02 tia audit[138481]: SECCOMP auid=1000 uid=1000 gid=1000
>>     ses=2 subj==unconfined pid=138481 comm="emacs"
>>     exe="/home/blc/.local/src/emacs-nox/src/emacs" sig=31 arch=c000003e
>>     syscall=17 compat=0 ip=0x7fd745f3714a code=0x80000000
>>
>>   Jan 21 15:47:03 tia audit[138493]: SECCOMP auid=1000 uid=1000 gid=1000
>>     ses=2 subj==unconfined pid=138493 comm="emacs"
>>     exe="/home/blc/.local/src/emacs-nox/src/emacs" sig=31 arch=c000003e
>>     syscall=439 compat=0 ip=0x7f46e8c30fc0 code=0x80000000
>>
>> where AFAICT syscalls 17 and 439 correspond to pread64 and faccessat2,
>> respectively.
>
> Thanks, I added these syscalls to the filter shipped with Emacs
> (commit 6d3608be88e1b30d2d10ee81f14dd485275c20ff).

Thanks, all lights green again!

-- 
Basil





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#51073: 28.0.60; SIGSYS in emacs-tests/bwrap/allows-stdout
  2022-01-22 16:20         ` Philipp Stephani
  2022-01-22 21:34           ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-01-23 13:16           ` Andreas Schwab
  1 sibling, 0 replies; 8+ messages in thread
From: Andreas Schwab @ 2022-01-23 13:16 UTC (permalink / raw)
  To: Philipp Stephani; +Cc: Basil L. Contovounesios, 51073

seccomp-filter.c: In function ‘main’:
/usr/include/libseccomp/seccomp.h:199:23: error: ‘__NR_faccessat2’ undeclared (first use in this function); did you mean ‘__NR_faccessat’?
 #define SCMP_SYS(x)  (__NR_##x)
                       ^
seccomp-filter.c:121:60: note: in definition of macro ‘RULE’
       int status = seccomp_rule_add_array (ctx, (action), (syscall), \
                                                            ^~~~~~~
seccomp-filter.c:243:25: note: in expansion of macro ‘SCMP_SYS’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (faccessat2));
                         ^~~~~~~~
/usr/include/libseccomp/seccomp.h:199:23: note: each undeclared identifier is reported only once for each function it appears in
 #define SCMP_SYS(x)  (__NR_##x)
                       ^
seccomp-filter.c:121:60: note: in definition of macro ‘RULE’
       int status = seccomp_rule_add_array (ctx, (action), (syscall), \
                                                            ^~~~~~~
seccomp-filter.c:243:25: note: in expansion of macro ‘SCMP_SYS’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (faccessat2));
                         ^~~~~~~~

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-01-23 13:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-07 10:30 bug#51073: 28.0.60; SIGSYS in emacs-tests/bwrap/allows-stdout Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-09 17:25 ` Philipp Stephani
2021-10-09 17:43   ` Philipp Stephani
2021-10-11 20:39     ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-21 14:14       ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-22 16:20         ` Philipp Stephani
2022-01-22 21:34           ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-23 13:16           ` Andreas Schwab

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).