From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.bugs Subject: bug#47708: 28.0.50; SIGSYS test failure with seccomp-filter.bpf Date: Sun, 11 Apr 2021 14:17:53 +0100 Message-ID: <87r1jharjy.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4427"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Philipp Stephani To: 47708@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 11 15:19:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lVZzZ-0000zj-M8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 11 Apr 2021 15:19:09 +0200 Original-Received: from localhost ([::1]:44354 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVZzY-0003wF-O4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 11 Apr 2021 09:19:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58616) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVZzS-0003w6-B6 for bug-gnu-emacs@gnu.org; Sun, 11 Apr 2021 09:19:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42605) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lVZzS-0007tE-3p for bug-gnu-emacs@gnu.org; Sun, 11 Apr 2021 09:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lVZzR-0004At-SY; Sun, 11 Apr 2021 09:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: p.stephani2@gmail.com, bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Apr 2021 13:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47708 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: Philipp Stephani Original-Received: via spool by submit@debbugs.gnu.org id=B.161814708515975 (code B ref -1); Sun, 11 Apr 2021 13:19:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Apr 2021 13:18:05 +0000 Original-Received: from localhost ([127.0.0.1]:54151 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVZyW-00049X-8n for submit@debbugs.gnu.org; Sun, 11 Apr 2021 09:18:04 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:45926) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVZyU-00049P-60 for submit@debbugs.gnu.org; Sun, 11 Apr 2021 09:18:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVZyT-0003qP-Oq for bug-gnu-emacs@gnu.org; Sun, 11 Apr 2021 09:18:02 -0400 Original-Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:36408) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lVZyR-0007E2-DH for bug-gnu-emacs@gnu.org; Sun, 11 Apr 2021 09:18:01 -0400 Original-Received: by mail-wr1-x429.google.com with SMTP id x15so10162061wrq.3 for ; Sun, 11 Apr 2021 06:17:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:subject:date:message-id:mime-version; bh=L2Jqv4vdfktnNSOxZ/AF55zYz8qGFAJk3b8xT1MoCeM=; b=FC30HXJ4kzW3YnWZGPDWWqTnexlhemeo1Mv0/DK64Uj/CzYnysONeGyTrlg8rqo6fD QiCsKxrAa07cY3Q4q60A7OvhGTMTZ5WBxHEdhuW6mmQKCRpTGNXJDzOQfLncGMpMoBeG rFJ6CppxP/afULb4fByR1Uf6TuKtRtVlwR45NBAOvMcgoYynfWmP9LI6aOwUDbDN3sgY KfNcnc3SmLpJqltBzVeZMR4ODtYyVf+KMgKy/QFXcO6WrIzKh3OYqR7s8pVeSwSWtXY6 kPW5Q+Wov1dFw8twGuRR3LwhouJLxhiqzWXK3yG/UL+bm3UQVzhHP4mn6LOJRRyv2IPs cw5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=L2Jqv4vdfktnNSOxZ/AF55zYz8qGFAJk3b8xT1MoCeM=; b=fGSo9XznKcLo/zIyQID0qVzAJmJAOEebSu3MNtMh6far0/FblfxIMgPIV5pZ+kxAmZ l168/NIoUNhz+N25WmQayDf0seD+7yGZWoz9OXqb7KYokK2khsiWNJvGlluO4YVd/LP4 x85VSOBZLN22WCrl9oDFeoa4yQTYKtMNKbZwvsQT3yG+fSw6VI8THr61H5XTNAjpnceI qfmhfKb+38puCH7dVfzkpJYhjRMEJ2wxPdT+crWceRaeLcCeNbDEvzcd7ovimi21lTht BxSSHUWvWi+d9MLFqSBerANX/TgnHTpYCewjED039d8riTzFNqXD6cKUu53lgEu/ntPD kFoA== X-Gm-Message-State: AOAM5313oiWQ/8Yi1XUxhEO2wm2SKsqI/BmYWrDdrHTEx78AwL9v7CxG AIWXNWuRVyurvN3CJcoCZZp1JntF4GYNEwyF X-Google-Smtp-Source: ABdhPJwm+0PDuvSyw7umpDaqx3x7xLK33JQ89mz/5iq9vJavZdfEaWAUO61upbFDbStsBQTp5+4dpA== X-Received: by 2002:adf:dc4f:: with SMTP id m15mr27030003wrj.420.1618147075290; Sun, 11 Apr 2021 06:17:55 -0700 (PDT) Original-Received: from localhost ([2a02:8084:20e2:c380:f410:82e8:3a21:eedf]) by smtp.gmail.com with ESMTPSA id z1sm13143600wrt.8.2021.04.11.06.17.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Apr 2021 06:17:54 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=contovob@tcd.ie; helo=mail-wr1-x429.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:203845 Archived-At: --=-=-= Content-Type: text/plain On Debian Testing with libseccomp 2.5.1-1, 'make test/emacs-tests' fails with: 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 [...] normal-top-level() Test emacs-tests/seccomp/allows-stdout condition: Info: Process output: (ert-test-failed ((should (eql status 0)) :form (eql "Bad system call" 0) :value nil)) FAILED 2/6 emacs-tests/seccomp/allows-stdout (0.032159 sec) Investigating a bit further, from the source tree root: 0. cd src 1. gdb ./emacs 2. set logging on 3. b pdumper.c:5263 4. r -Q -batch -seccomp ../test/src/emacs-resources/seccomp-filter.bpf 5. s RET RET RET 6. q Here's the log: --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=gdb.txt Breakpoint 3 at 0x28ab53: file pdumper.c, line 5263. Starting program: /home/blc/.local/src/emacs/src/emacs -Q -batch -seccomp ../test/src/emacs-resources/seccomp-filter.bpf [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Breakpoint 3, pdumper_load (dump_filename=0x555555ed99f0 "/home/blc/.local/src/emacs/src/emacs.pdmp") at pdumper.c:5263 5263 const struct timespec start_time = current_timespec (); current_timespec () at gettime.c:47 47 gettime (&ts); gettime (ts=0x7fffffffd8b0) at gettime.c:32 32 clock_gettime (CLOCK_REALTIME, ts); __GI___clock_gettime (clock_id=0, tp=0x7fffffffd8b0) at ../sysdeps/unix/sysv/linux/clock_gettime.c:38 38 ../sysdeps/unix/sysv/linux/clock_gettime.c: No such file or directory. Program terminated with signal SIGSYS, Bad system call. The program no longer exists. --=-=-= Content-Type: text/plain Let me know if you'd like me to test anything further. Thanks, -- Basil In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars) of 2021-04-11 built on tia Repository revision: 686c366f8a63c448d06e5f08d604374fb316bc57 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12010000 System Description: Debian GNU/Linux bullseye/sid Configured using: 'configure 'CC=ccache gcc' 'CFLAGS=-O0 -g3 -ggdb -gdwarf-4' --prefix=/home/blc/.local --enable-checking=yes,glyphs --enable-check-lisp-object-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 Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg 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 electric uniquify ediff-hook vc-hooks lisp-float-type 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 elisp-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 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) --=-=-=--