From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrew Eggenberger Newsgroups: gmane.emacs.bugs Subject: bug#44131: 28.0.50; emacsclient Invalid socket owner error in gccemacs Date: Thu, 22 Oct 2020 02:32:04 -0500 Message-ID: <871rhqsoln.fsf@debian.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24022"; mail-complaints-to="usenet@ciao.gmane.io" To: 44131@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 22 04:33:10 2020 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 1kVQPe-00067z-DV for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Oct 2020 04:33:10 +0200 Original-Received: from localhost ([::1]:35666 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kVQPc-0008GL-UR for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Oct 2020 22:33:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58574) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVQPW-0008GA-Ie for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2020 22:33:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39488) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kVQPW-0005Vu-9V for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2020 22:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kVQPW-00050n-5i for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2020 22:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrew Eggenberger Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Oct 2020 02:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44131 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.160333395019216 (code B ref -1); Thu, 22 Oct 2020 02:33:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Oct 2020 02:32:30 +0000 Original-Received: from localhost ([127.0.0.1]:51034 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVQOz-0004zp-9W for submit@debbugs.gnu.org; Wed, 21 Oct 2020 22:32:29 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:52652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVQOx-0004zf-GU for submit@debbugs.gnu.org; Wed, 21 Oct 2020 22:32:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58508) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVQOx-0008FC-7m for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2020 22:32:27 -0400 Original-Received: from mail-io1-xd2a.google.com ([2607:f8b0:4864:20::d2a]:35604) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kVQOv-0005UA-Jc for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2020 22:32:26 -0400 Original-Received: by mail-io1-xd2a.google.com with SMTP id k6so5370104ior.2 for ; Wed, 21 Oct 2020 19:32:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=9eUJ2rvdAy/fpX485xa2mnuQ99O9NlmLAT2Lj46/Vdk=; b=f7vHfw+KXHtwZLp8Hm7pcmnaYt30sn3Qiy14HlgFZiLTjIkdaH5UEvEBJYgbbTZdYs sv1Snm3Lt72UP3PnevG0kZhDkxV9qeG1t/+GzYITp2ZexVJmJt4efMmNWBCgZCUQiY8M TuPShxob9yQtB/54xbASBpSqbKwyARnhts/HGkALM64JghJi7S/i9eVYj1DpkD+mhLOY PBvGbNj4/HztfxWtQpct3Pyc54wuRKiGH4ivWTzvkJmL3n7Nahi8MwETOo++7tlAg0Em RVBa6S6Cbf47AMB9X5tOPbiSwRwHHEqtwJNCe7kqJi9n97s+Uwwkv4Sa+ZGAmLjOLkAj KcjA== 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=9eUJ2rvdAy/fpX485xa2mnuQ99O9NlmLAT2Lj46/Vdk=; b=fbFn9E4vA6hXJrch04O3xZihr1YEuDymgd7+Xms5m03JKf4g5pqT11bhJwOqm8JNYP kDPhFWKzvZRBucUwEHcrcW+Od9MxhKUUnNEyGkTkcTNr7k97CQqlebbReCiHs9i3MZ/b 7eMbI3PKUzBm7hX0NP+Lfd22i/+7RX1x8LGUFcECf9/fJd7xsFn3ReV2WWQEBrn71X/9 pU9YXLYeGx6JO391nxiZUXaUVDlf0s6wLK4ksfD/i8kuXTZ+yOq4weIO1TO/eia65ZbE kYf7EL83izKaPXrhvkHfJr7n/6W/gcn0LhAJ6RIJNlewC/ajQ+qVMlWxQHVdI8HAGQN7 IfGg== X-Gm-Message-State: AOAM532FiYu/ZmcKhbolR7Yh9P5Lj/4yY6Jf03ZW2I0ATaT6Jt9oLJAV 87KnCpOdXmPa2+SIdB7wrHSIN4Zmad0= X-Google-Smtp-Source: ABdhPJzx3VnwAA3e/rQSqI8OTI6JVFgMGPDkm4c/XIxwRoYZCVwcxGbrePtkwyVl3lTwZdgInD2BOQ== X-Received: by 2002:a6b:7841:: with SMTP id h1mr364571iop.72.1603333943959; Wed, 21 Oct 2020 19:32:23 -0700 (PDT) Original-Received: from debian ([140.190.57.67]) by smtp.gmail.com with ESMTPSA id a6sm195710ili.11.2020.10.21.19.32.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2020 19:32:23 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::d2a; envelope-from=andrew.eggenberger@gmail.com; helo=mail-io1-xd2a.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: 9 X-Spam_score: 0.9 X-Spam_bar: / X-Spam_report: (0.9 / 5.0 requ) BAYES_00=-1.9, DATE_IN_FUTURE_03_06=3.027, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:191221 Archived-At: The emacsclient binary produced by the native-comp branch cannot connect to the server. When a connection is attempted, the error message "emacsclient: Invalid socket owner" is displayed. I have 27.1 without native-comp installed, and that emacsclient can connect to the native-comp server without issue. The error is the result of a failed uid comparison in lib-src/emacsclient.c. It appears that the uid produced by geteuid() isn't matching the uid for the server socket. I first noticed the issue while trying to do a magit commit. But the same error happens when trying to run emacsclient from the command line. In GNU Emacs 28.0.50 (build 1, i686-unknown-gnu0.9, GTK+ Version 3.24.20, cairo version 1.16.0) of 2020-10-21 built on debian Repository revision: 3be93390fb6680d1e0c3256af72c86635a9eb327 Repository branch: feature/native-comp System Description: Debian GNU/Hurd bullseye/sid Configured using: 'configure --with-nativecomp --prefix=/home/demo/.local/' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO DBUS GSETTINGS GLIB NOTIFY GFILENOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES NATIVE_COMP THREADS LIBSYSTEMD PDUMPER LCMS2 Important settings: locale-coding-system: nil Major mode: Magit Process Minor modes in effect: global-undo-tree-mode: t undo-tree-mode: t global-magit-file-mode: t magit-auto-revert-mode: t global-git-commit-mode: t which-key-mode: t projectile-mode: t global-flycheck-mode: t global-company-mode: t company-mode: t helm-mode: t helm-ff-cache-mode: t shell-dirtrack-mode: t helm--remap-mouse-mode: t async-bytecomp-package-mode: t tooltip-mode: t global-eldoc-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug sendmail helm-command helm-elisp helm-eval edebug backtrace helm-info magit-extras mule-util face-remap vc-git cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs winner image-file image-converter helm-external helm-net xml url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap ffap term/xterm xterm jka-compr undo-tree magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff diff-mode magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process magit-mode git-commit transient magit-git magit-section magit-utils crm log-edit message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log with-editor server which-key comp warnings projectile grep compile text-property-search ibuf-ext ibuffer ibuffer-loaddefs thingatpt flycheck find-func rx dash company-oddmuse company-keywords company-etags etags fileloop generator xref project company-gtags company-dabbrev-code company-dabbrev company-files company-clang company-capf company-cmake company-semantic company-template company-bbdb company paredit helm-mode helm-files tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete comint ansi-color ring parse-time iso8601 time-date ls-lisp helm-buffers helm-occur helm-tags helm-locate helm-grep helm-regexp format-spec helm-utils helm-help helm-types helm-config helm easy-mmode async-bytecomp advice helm-global-bindings helm-easymenu edmacro kmacro helm-source eieio-compat helm-multi-match helm-lib async cl-extra help-mode use-package-ensure use-package-core finder-inf disp-table info package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib 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 timer select scroll-bar mouse jit-lock font-lock syntax facemenu 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 pcase macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind gfilenotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process nativecomp emacs) Memory information: ((conses 8 312548 30532) (symbols 24 26544 10) (strings 16 87420 8718) (string-bytes 1 3294833) (vectors 8 44603) (vector-slots 4 791812 51818) (floats 8 144 434) (intervals 28 736 356) (buffers 564 20))