all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#43002: 27.1; emacsclient does not like owner of socket on NetBSD
@ 2020-08-23 20:08 Thomas Klausner
  2020-08-25 15:20 ` bug#43002: " Thomas Klausner
       [not found] ` <handler.43002.B.159821338632290.ack@debbugs.gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Thomas Klausner @ 2020-08-23 20:08 UTC (permalink / raw)
  To: 43002


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))





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

* bug#43002: emacsclient does not like owner of socket on NetBSD
  2020-08-23 20:08 bug#43002: 27.1; emacsclient does not like owner of socket on NetBSD Thomas Klausner
@ 2020-08-25 15:20 ` Thomas Klausner
       [not found] ` <handler.43002.B.159821338632290.ack@debbugs.gnu.org>
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Klausner @ 2020-08-25 15:20 UTC (permalink / raw)
  To: 43002

To be clear, the socket in the file system looks fine:

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

 Thomas





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

* bug#43002: Acknowledgement (27.1; emacsclient does not like owner of socket on NetBSD)
       [not found] ` <handler.43002.B.159821338632290.ack@debbugs.gnu.org>
@ 2020-09-20 15:43   ` Thomas Klausner
  2020-09-20 19:24     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Klausner @ 2020-09-20 15:43 UTC (permalink / raw)
  To: 43002

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





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

* bug#43002: Acknowledgement (27.1; emacsclient does not like owner of socket on NetBSD)
  2020-09-20 15:43   ` bug#43002: Acknowledgement (27.1; emacsclient does not like owner of socket on NetBSD) Thomas Klausner
@ 2020-09-20 19:24     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2020-09-20 19:24 UTC (permalink / raw)
  To: Thomas Klausner; +Cc: 43002

Thomas Klausner <tk@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





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

end of thread, other threads:[~2020-09-20 19:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-23 20:08 bug#43002: 27.1; emacsclient does not like owner of socket on NetBSD Thomas Klausner
2020-08-25 15:20 ` bug#43002: " Thomas Klausner
     [not found] ` <handler.43002.B.159821338632290.ack@debbugs.gnu.org>
2020-09-20 15:43   ` bug#43002: Acknowledgement (27.1; emacsclient does not like owner of socket on NetBSD) Thomas Klausner
2020-09-20 19:24     ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.