GNU bug report logs - #36604
26.1; emacs 26 tries loading original user's .emacs after su to root

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Steinar Bang <sb@HIDDEN>; Keywords: notabug; merged with #19477, #36583; dated Thu, 11 Jul 2019 17:47:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Forcibly Merged 19477 36583 36604. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Removed tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Forcibly Merged 36583 36604. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 11 Jul 2019 17:46:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 11 13:46:20 2019
Received: from localhost ([127.0.0.1]:38584 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hld99-0005bA-On
	for submit <at> debbugs.gnu.org; Thu, 11 Jul 2019 13:46:20 -0400
Received: from lists.gnu.org ([209.51.188.17]:58824)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sb@HIDDEN>) id 1hld98-0005b0-27
 for submit <at> debbugs.gnu.org; Thu, 11 Jul 2019 13:46:18 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:40221)
 by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from <sb@HIDDEN>)
 id 1hld8v-0007sb-MK
 for bug-gnu-emacs@HIDDEN; Thu, 11 Jul 2019 13:46:15 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,TIME_LIMIT_EXCEEDED
 autolearn=unavailable version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <sb@HIDDEN>) id 1hld8r-0000Zw-3F
 for bug-gnu-emacs@HIDDEN; Thu, 11 Jul 2019 13:46:02 -0400
Received: from cadalora.default.sbang.uk0.bigv.io ([2001:41c9:1:424::90]:53782
 helo=cadalora.bang.priv.no) by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <sb@HIDDEN>) id 1hld8q-0000Th-Q4
 for bug-gnu-emacs@HIDDEN; Thu, 11 Jul 2019 13:46:01 -0400
Received: from cadalora.default.sbang.uk0.bigv.io
 (cadalora.default.sbang.uk0.bigv.io [46.43.15.90])
 by cadalora.bang.priv.no (Postfix) with ESMTPSA id 0F084CDF2E
 for <bug-gnu-emacs@HIDDEN>; Thu, 11 Jul 2019 18:45:53 +0100 (BST)
From: Steinar Bang <sb@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 26.1; emacs 26 tries loading original user's .emacs after su to root
Date: Thu, 11 Jul 2019 18:45:52 +0100
Message-ID: <87h87spir3.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2001:41c9:1:424::90
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)


 - I did /bin/su from my own user to root

 - When I started emacs I got the following error message:

 Warning (initialization): An error occurred while loading =E2=80=98/home/s=
b/.emacs=E2=80=99:

File is missing: Cannot open load file, No such file or directory, editorco=
nfig

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the =E2=80=98--debug-init=E2=80=99 option to view a complete error backtrac=
e.

 - Ie. emacs tried to load the original user's .emacs and fails (and the
   configuration of the editor is kind of broken)

Results of HOME and id after su:
root@cadalora:~# env | grep HOME
HOME=3D/root
root@cadalora:~# id
uid=3D0(root) gid=3D0(root) groups=3D0(root)
root@cadalora:~#


 - When I do "/bin/su - root" then emacs reports no error messages on
   startup

Results of HOME and id looks the same:
root@cadalora:~# env | grep HOME
HOME=3D/root
root@cadalora:~# id
uid=3D0(root) gid=3D0(root) groups=3D0(root)
root@cadalora:~#



In GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.4)
 of 2019-02-03, modified by Debian built on zam904
Windowing system distributor 'The Cygwin/X Project', version 11.0.12004000
System Description:	Debian GNU/Linux 10 (buster)

Recent messages:
Reading active file from news via nntp...
Opening nntp server on news...done
Reading active file from news.gmane.org via nntp...
Opening nntp server on news.gmane.org...done
Reading active file via nndiary...done
nnimap read 0k from imap.bang.priv.no
Reading active file via nndraft...done
Checking new news...done
nnimap read 0k from imap.bang.priv.no
Exiting summary buffer and applying spam rules

Configured using:
 'configure --build x86_64-linux-gnu --prefix=3D/usr
 --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib
 --localstatedir=3D/var/lib --infodir=3D/usr/share/info
 --mandir=3D/usr/share/man --enable-libsystemd --with-pop=3Dyes
 --enable-locallisppath=3D/etc/emacs:/usr/local/share/emacs/26.1/site-lisp:=
/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.1/site-lisp:/usr/share=
/emacs/site-lisp
 --with-sound=3Dalsa --without-gconf --with-mailutils --build
 x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib
 --libexecdir=3D/usr/lib --localstatedir=3D/var/lib
 --infodir=3D/usr/share/info --mandir=3D/usr/share/man --enable-libsystemd
 --with-pop=3Dyes
 --enable-locallisppath=3D/etc/emacs:/usr/local/share/emacs/26.1/site-lisp:=
/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.1/site-lisp:/usr/share=
/emacs/site-lisp
 --with-sound=3Dalsa --without-gconf --with-mailutils --with-x=3Dyes
 --with-x-toolkit=3Dgtk3 --with-toolkit-scroll-bars 'CFLAGS=3D-g -O2
 -fdebug-prefix-map=3D/build/emacs-26.1+1=3D. -fstack-protector-strong
 -Wformat -Werror=3Dformat-security -Wall' 'CPPFLAGS=3D-Wdate-time
 -D_FORTIFY_SOURCE=3D2' LDFLAGS=3D-Wl,-z,relro'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY
ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 THREADS LIBSYSTEMD LCMS2

Important settings:
  value of $LC_COLLATE: POSIX
  value of $LANG: en_GB.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Group

Minor modes in effect:
  gnus-topic-mode: t
  cursor-sensor-mode: t
  gnus-undo-mode: t
  editorconfig-mode: t
  display-time-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
  blink-cursor-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/sb/apps/share/emacs/site-lisp/icalendar hides /usr/share/emacs/26.1/l=
isp/calendar/icalendar

Features:
(shadow bbdb-message editorconfig-core editorconfig-core-handle
editorconfig-fnmatch emacsbug sendmail sort gnus-cite ansi-color
mail-extr u-appt appt diary-lib diary-loaddefs cal-menu calendar
cal-loaddefs gnus-async gnus-bcklg qp gnus-ml spam-gmane dns mm-url url
url-proxy url-privacy url-expand url-methods url-history url-cookie
url-domsuf url-util disp-table edmacro kmacro gnus-topic cursor-sensor
nndraft nnmh utf-7 rfc2104 cl-extra help-mode network-stream nsm
starttls gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-cache
gnus-demon nntp gnus-diary nndiary spam-report spam spam-stat bbdb-com
crm bbdb bbdb-site timezone gnus-uu yenc gnus-msg gnus-art mm-uu mml2015
mm-view mml-smime smime dig mailcap supercite regi elec-pair desktop
frameset cl nnir gnus-sum gnus-group gnus-undo gnus-start gnus-cloud
nnimap nnmail mail-source tls gnutls utf7 netrc parse-time gnus-spec
gnus-int gnus-range message rmc puny dired dired-loaddefs format-spec
rfc822 mml mml-sec epa derived epg mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win gnus
wid-edit nnoo nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils nxml-psgml-compatibility
easy-mmode crappy-jsp-mode js advice json map imenu thingatpt cc-mode
cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars
cc-defs sgml-mode dom editorconfig rx filladapt time iso-transl
jka-compr finder-inf info package easymenu epg-config url-handlers
url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs
password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv
cl-loaddefs cl-lib time-date mule-util 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 menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame 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 minibuffer 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 dbusbind inotify lcms2 dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 16 290773 82854)
 (symbols 48 37739 32)
 (miscs 40 88 227)
 (strings 32 90047 6859)
 (string-bytes 1 3369917)
 (vectors 16 36967)
 (vector-slots 8 764061 16798)
 (floats 8 250 285)
 (intervals 56 1200 1573)
 (buffers 992 23))




Acknowledgement sent to Steinar Bang <sb@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#36604; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 25 Jan 2022 13:45:01 UTC

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