GNU bug report logs - #43002
27.1; emacsclient does not like owner of socket on NetBSD

Previous Next

Package: emacs;

Reported by: Thomas Klausner <tk <at> giga.or.at>

Date: Sun, 23 Aug 2020 20:10:01 UTC

Severity: normal

Tags: wontfix

Found in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 43002 in the body.
You can then email your comments to 43002 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#43002; Package emacs. (Sun, 23 Aug 2020 20:10:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Thomas Klausner <tk <at> giga.or.at>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 23 Aug 2020 20:10:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Thomas Klausner <tk <at> giga.or.at>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.1; emacsclient does not like owner of socket on NetBSD
Date: Sun, 23 Aug 2020 22:08:15 +0200
Start emacs, run 'start-server', start emacsclient <file> and see
emacsclient: Invalid socket owner

Digging deeper, in lib-src/emacsclient.c after
    if (fstat (s, &connect_stat) != 0)
    connect_stat.st_uid is 0 but uid is 1000


In GNU Emacs 27.1 (build 1, x86_64--netbsd, GTK+ Version 3.24.22)
 of 2020-08-23 built on yt.nih.at
System Description: NetBSD 9.99.69/amd64

Recent messages:
Loading company...done
Loading flycheck...done
Loading helm-mode...done
For information about GNU Emacs and the GNU system, type C-h C-a.

Configured using:
 'configure --srcdir=/scratch/editors/emacs27/work/emacs-27.1
 --localstatedir=/var --disable-autodepend --without-ns --without-rsvg
 --without-imagemagick --x-includes=/usr/X11R7/include
 --x-libraries=/usr/X11R7/lib --with-x-toolkit=gtk3 --prefix=/usr/pkg
 --build=x86_64--netbsd --host=x86_64--netbsd --infodir=/usr/pkg/info
 --mandir=/usr/pkg/man --enable-option-checking=yes 'CFLAGS=-O2 -g
 -D_FORTIFY_SOURCE=2 -fstack-check -I/usr/pkg/include -I/usr/include
 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0
 -I/usr/pkg/lib/glib-2.0/include -I/usr/X11R7/include
 -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm'
 'CPPFLAGS=-g -DTERMINFO -I/usr/pkg/include -I/usr/include
 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0
 -I/usr/pkg/lib/glib-2.0/include -I/usr/X11R7/include
 -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm'
 'LDFLAGS=-Wl,-z,relro -Wl,-z,now -L/usr/pkg/lib -L/usr/lib
 -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -L/usr/X11R7/lib
 -Wl,-R/usr/X11R7/lib''

Configured features:
XPM JPEG TIFF GIF PNG SOUND DBUS GSETTINGS GLIB NOTIFY KQUEUE ACL GNUTLS
LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS
GTK3 X11 XDBE XIM MODULES THREADS JSON PDUMPER GMP

Important settings:
  value of $LC_CTYPE: de_AT.UTF-8
  value of $LC_TIME: de_AT.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Fundamental

Minor modes in effect:
  helm-ff-cache-mode: t
  shell-dirtrack-mode: t
  global-flycheck-mode: t
  global-company-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  file-name-shadow-mode: t
  global-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:
/home/wiz/.emacs.d/elpa/cmake-mode-20190710.1319/cmake-mode hides /usr/pkg/share/emacs/site-lisp/cmake-mode

Features:
(shadow sort mail-extr emacsbug message dired dired-loaddefs rfc822 mml
mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs
text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils term/screen term/xterm xterm advice
lsp-mode lsp-protocol yasnippet url-util tree-widget wid-edit spinner
network-stream puny nsm rmc markdown-mode color thingatpt noutline
outline lv inline imenu ht filenotify f s ewoc em-glob esh-util
dash-functional compile bindat company-oddmuse company-keywords
company-etags etags fileloop generator xref project company-gtags
company-dabbrev-code company-dabbrev company-files company-capf
company-cmake company-xcode company-clang company-semantic company-eclim
company-template company-bbdb tsdh-light-theme helm-mode helm-files
tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat
shell pcomplete comint 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 easy-mmode helm-source
eieio-compat helm-multi-match helm-lib async flycheck ansi-color
find-func help-mode rx dash company edmacro kmacro pcase cus-start
cus-load finder-inf warnings server 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 loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote threads dbusbind kqueue dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 16 204469 13154)
 (symbols 48 23619 1)
 (strings 32 73234 2189)
 (string-bytes 1 2345870)
 (vectors 16 36165)
 (vector-slots 8 357511 9630)
 (floats 8 274 295)
 (intervals 56 334 56)
 (buffers 1000 13))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43002; Package emacs. (Tue, 25 Aug 2020 15:21:04 GMT) Full text and rfc822 format available.

Message #8 received at 43002 <at> debbugs.gnu.org (full text, mbox):

From: Thomas Klausner <tk <at> giga.or.at>
To: 43002 <at> debbugs.gnu.org
Subject: emacsclient does not like owner of socket on NetBSD
Date: Tue, 25 Aug 2020 17:20:17 +0200
To be clear, the socket in the file system looks fine:

srwx------  1 wiz  wheel  0 Aug 25 17:19 /tmp/emacs1000/server

 Thomas




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43002; Package emacs. (Sun, 20 Sep 2020 15:44:03 GMT) Full text and rfc822 format available.

Message #11 received at 43002 <at> debbugs.gnu.org (full text, mbox):

From: Thomas Klausner <tk <at> giga.or.at>
To: 43002 <at> debbugs.gnu.org
Subject: Re: bug#43002: Acknowledgement (27.1; emacsclient does not like
 owner of socket on NetBSD)
Date: Sun, 20 Sep 2020 17:43:23 +0200
There was a commit to NetBSD that fixes the problem:

https://mail-index.netbsd.org/source-changes/2020/08/26/msg121023.html

Modified Files:
        src/sys/kern: uipc_socket.c uipc_socket2.c uipc_usrreq.c

Log Message:
add socket info for user and group for unix sockets in fstat.


To generate a diff of this commit:
cvs rdiff -u -r1.290 -r1.291 src/sys/kern/uipc_socket.c
cvs rdiff -u -r1.137 -r1.138 src/sys/kern/uipc_socket2.c
cvs rdiff -u -r1.198 -r1.199 src/sys/kern/uipc_usrreq.c

So the issue will not affect NetBSD 10 (but affects NetBSD 9 and older).
 Thomas




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43002; Package emacs. (Sun, 20 Sep 2020 19:25:01 GMT) Full text and rfc822 format available.

Message #14 received at 43002 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Thomas Klausner <tk <at> giga.or.at>
Cc: 43002 <at> debbugs.gnu.org
Subject: Re: bug#43002: Acknowledgement (27.1; emacsclient does not like
 owner of socket on NetBSD)
Date: Sun, 20 Sep 2020 21:24:34 +0200
Thomas Klausner <tk <at> giga.or.at> writes:

> There was a commit to NetBSD that fixes the problem:
>
> https://mail-index.netbsd.org/source-changes/2020/08/26/msg121023.html
>
> Modified Files:
>         src/sys/kern: uipc_socket.c uipc_socket2.c uipc_usrreq.c
>
> Log Message:
> add socket info for user and group for unix sockets in fstat.
>
> To generate a diff of this commit:
> cvs rdiff -u -r1.290 -r1.291 src/sys/kern/uipc_socket.c
> cvs rdiff -u -r1.137 -r1.138 src/sys/kern/uipc_socket2.c
> cvs rdiff -u -r1.198 -r1.199 src/sys/kern/uipc_usrreq.c
>
> So the issue will not affect NetBSD 10 (but affects NetBSD 9 and older).

Thanks for updating the issue.

Since this has been fixed in the upcoming version of NetBSD, it doesn't
sound worth it to do anything about this on the Emacs side, so I'm
closing this bug report.  If anybody thinks otherwise, please feel free
to reopen again.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 20 Sep 2020 19:25:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 43002 <at> debbugs.gnu.org and Thomas Klausner <tk <at> giga.or.at> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 20 Sep 2020 19:25:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 19 Oct 2020 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 190 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.