GNU bug report logs - #34936
27.0.50; duplicated process-environment items in pdumper

Previous Next

Package: emacs;

Reported by: Shuguang Sun <shuguang79 <at> qq.com>

Date: Thu, 21 Mar 2019 15:10:02 UTC

Severity: normal

Found in version 27.0.50

Done: Eli Zaretskii <eliz <at> gnu.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 34936 in the body.
You can then email your comments to 34936 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#34936; Package emacs. (Thu, 21 Mar 2019 15:10:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Shuguang Sun <shuguang79 <at> qq.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 21 Mar 2019 15:10:02 GMT) Full text and rfc822 format available.

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

From: Shuguang Sun <shuguang79 <at> qq.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.50; duplicated process-environment items in pdumper
Date: Thu, 21 Mar 2019 23:09:07 +0800
Hi,

I start a personalized pdumper emacs, 
emacs.exe --batch -l "~/.emacs.d/var/dumps/dump-init.el" -eval "(dump-emacs-portable \"semacs.pdmp\")"
(even with an empty dump-init.el)
and there are duplicated items in process-environment:
("windir=C:\\WINDOWS"
 "USERPROFILE=C:\\Users\\user"
 "USERNAME=user"
 "TMP=C:\\Users\\user\\AppData\\Local\\Temp"
 "TEMP=C:\\Users\\user\\AppData\\Local\\Temp"
 "SystemRoot=C:\\WINDOWS"
 "SystemDrive=C:"
 "SESSIONNAME=Console"
 "PUBLIC=C:\\Users\\Public"
 "PSModulePath=C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules"
 "ProgramW6432=C:\\Program Files"
 "ProgramFiles(x86)=C:\\Program Files (x86)"
 "ProgramFiles=C:\\Program Files"
 "ProgramData=C:\\ProgramData"
 "PROCESSOR_REVISION=8e0a"
 "PROCESSOR_LEVEL=6"
 "PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 142 Stepping 10, GenuineIntel"
 "PROCESSOR_ARCHITECTURE=AMD64"
 "PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC"
 "PATH=C:\\Users\\user\\emacs\\bin\\;......omitte..........;"  (here is the same as norm emacs)
 "OS=Windows_NT"
 "NUMBER_OF_PROCESSORS=8"
 "LOCALAPPDATA=C:\\Users\\user\\AppData\\Local"
 "HOME=C:\\Users\\user\\HOME"
 "emacs_dir=C:/Users/user/emacs"
 "COMSPEC=C:\\WINDOWS\\system32\\cmd.exe"
 "CommonProgramW6432=C:\\Program Files\\Common Files"
 "CommonProgramFiles(x86)=C:\\Program Files (x86)\\Common Files"
 "CommonProgramFiles=C:\\Program Files\\Common Files"
 "APPDATA=C:\\Users\\user\\AppData\\Roaming"
 "ALLUSERSPROFILE=C:\\ProgramData"
 "windir=C:\\WINDOWS"
 "USERPROFILE=C:\\Users\\user"
 "USERNAME=user"
 "TZ=CST-8"
 "TNS_ADMIN=V:\\_Offline\\TNS_Admin"
 "TMP=C:\\Users\\user\\AppData\\Local\\Temp"
 "TERM=dumb"
 "TEMP=C:\\Users\\user\\AppData\\Local\\Temp"
 "SystemRoot=C:\\WINDOWS"
 "SystemDrive=C:"
 "SESSIONNAME=Console"
 "PUBLIC=C:\\Users\\Public"
 "PSModulePath=C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules"
 "ProgramW6432=C:\\Program Files"
 "ProgramFiles(x86)=C:\\Program Files (x86)"
 "ProgramFiles=C:\\Program Files"
 "ProgramData=C:\\ProgramData"
 "PROCESSOR_REVISION=8e0a"
 "PROCESSOR_LEVEL=6"
 "PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 142 Stepping 10, GenuineIntel"
 "PROCESSOR_ARCHITECTURE=AMD64"
 "PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC"
 "PATH=C:\\Users\\user\\emacs\\bin\\;......omitte.........."      (here is no ';')
 "OS=Windows_NT"
 "NUMBER_OF_PROCESSORS=8"
 "LOCALAPPDATA=C:\\Users\\user\\AppData\\Local"
 "HOME=C:\\Users\\user\\HOME"
 "FPS_BROWSER_USER_PROFILE_STRING=Default"
 "FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer"
 "COMSPEC=C:\\WINDOWS\\system32\\cmd.exe"
 "CommonProgramW6432=C:\\Program Files\\Common Files"
 "CommonProgramFiles(x86)=C:\\Program Files (x86)\\Common Files"
 "CommonProgramFiles=C:\\Program Files\\Common Files"
 "chromelocal=C:\\Windows\\Temp"
 "APPDATA=C:\\Users\\user\\AppData\\Roaming"
 "ALLUSERSPROFILE=C:\\ProgramData")





In GNU Emacs 27.0.50 (build 3, x86_64-w64-mingw32)
 of 2019-03-21 built on RSHMX11052
Repository revision: c569cceb2d334564d320d2b4098c855db7eb88a0
Repository branch: master
Windowing system distributor 'Microsoft Corp.', version 10.0.15063
System Description: Microsoft Windows 10 Enterprise (v10.0.1703.15063.1631)

Configured using:
 'configure --without-imagemagick --without-pop
 '--program-transform-name=s/^ctags$/ctags.emacs/''

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2
ZLIB TOOLKIT_SCROLL_BARS THREADS JSON PDUMPER LCMS2 GMP

Important settings:
  value of $LANG: CHS
  locale-coding-system: cp936

Major mode: Fundamental

Minor modes in effect:
  recentf-mode: t
  savehist-mode: t
  display-time-mode: t
  electric-pair-mode: t
  dynamic-completion-mode: t
  show-paren-mode: t
  auto-image-file-mode: t
  icomplete-mode: t
  amx-mode: t
  company-prescient-mode: t
  ivy-prescient-mode: t
  prescient-persist-mode: t
  global-magit-file-mode: t
  magit-file-mode: t
  global-git-commit-mode: t
  async-bytecomp-package-mode: t
  global-company-mode: t
  TeX-PDF-mode: t
  TeX-source-correlate-mode: t
  shell-dirtrack-mode: t
  ido-everywhere: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-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
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t


Features:
(shadow sort mail-extr emacsbug my-dired-fl my-recentf recentf
tree-widget savehist my-solarized-light-theme time elec-pair completion
paren avoid tabify company-oddmuse company-etags company-gtags
company-cmake company-xcode company-clang company-eclim company-bbdb
goto-addr org-info my-misc-dumped which-key my-elfeed elfeed-show
elfeed-search elfeed-csv elfeed elfeed-curl elfeed-log elfeed-db
elfeed-lib xml-query quickrun em-banner ace-window avy image-file
shrink-path my-icomplete icomplete my-auctex ivy-bibtex
bibtex-completion biblio biblio-download biblio-dissemin biblio-ieee
biblio-hal biblio-dblp biblio-crossref biblio-arxiv timezone biblio-doi
biblio-core hl-line f parsebib bibtex company-reftex reftex-cite
company-auctex company-math math-symbol-lists reftex reftex-loaddefs
reftex-vars tex-mik my-diminish wgrep-ag scimax-hydra my-hydra
two-column my-amx my-htmlfontify my-fd my-rg my-cmd my-function
my-pdf-tools my-doc-view my-ledger my-git my-magit my-grep my-ffip
my-hippie-exp my-ivy swiper my-dired my-markdown
my-markdown-nodejs-preview my-eww my-url-curl my-smart-compile my-bm
my-company my-python elpy find-file-in-project windmove elpy-shell
pyvenv elpy-profile elpy-django elpy-refactor etags fileloop python
my-ess my-ess-site diminish powershell org-pomodoro git-timemachine
git-gutter-fringe fringe-helper git-gutter firestarter
ess-smart-operator cdlatex texmathp amx rg rg-ibuffer rg-result wgrep-rg
wgrep rg-history rg-header rg-compat grep ag vc-svn find-dired s
company-prescient ivy-prescient prescient pdf-virtual pdf-outline
pdf-occur ibuf-ext pdf-links pdf-isearch let-alist pdf-history pdf-annot
tablist tablist-filter semantic/wisent/comp semantic/wisent
semantic/wisent/wisent semantic/util-modes semantic/util semantic
semantic/tag semantic/lex semantic/fw mode-local cedet pdf-misc
pdf-tools pdf-view mule-util pdf-cache pdf-info tq pdf-util ledger-mode
ledger-check ledger-texi ledger-test ledger-sort ledger-report
ledger-reconcile ledger-occur ledger-fonts ledger-fontify ledger-state
ledger-complete ledger-schedule ledger-init ledger-xact ledger-post
ledger-exec ledger-navigate ledger-context ledger-commodities esh-var
esh-cmd esh-opt esh-io esh-ext esh-proc esh-groups eshell esh-module
esh-mode esh-arg esh-util ledger-regex magit-bookmark magit-submodule
magit-obsolete magit-popup magit-blame magit-stash 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 magit-diff
magit-core magit-autorevert autorevert filenotify magit-margin
magit-transient magit-process magit-mode git-commit magit-git
magit-section magit-utils log-edit pcvs-util add-log with-editor
async-bytecomp async server transient ivy delsel colir ivy-overlay ffap
my-ido company-yasnippet company-semantic company-template
company-keywords company-files company-elisp company-dabbrev-code
company-dabbrev company-capf company pcase auto-complete popup ess-site
ess-toolbar ess-mouse mouseme ess-jags-d ess-bugs-l essd-els
ess-stata-mode ess-stata-lang make-regexp ess-sas-d ess-sas-l ess-sas-a
ess-julia julia-mode latex latex-flymake tex-ispell tex-style tex crm
ess-r-mode ess-r-flymake ess-r-xref xref ess-r-package ess-r-completion
ess-roxy ess-r-syntax ess-rd ess-sp6-d ess-trns ess-s-lang ess-help
ess-mode ess-inf ess-tracebug ess-utils ess ess-custom my-ess-init
yasnippet rainbow-delimiters github-lisp-loaddefs my-site-lisp-loaddefs
pandoc-mode edmacro kmacro cl-extra help-mode pandoc-mode-utils dash
hydra lv markdown-mode edit-indirect rx color smart-compile bm
browse-kill-ring cl htmlfontify htmlfontify-loaddefs cus-edit doc-view
jka-compr image-mode info tex-site package hippie-exp whitespace js
imenu cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align
cc-engine cc-vars cc-defs rng-nxml rng-valid nxml-mode nxml-outln
nxml-rap sgml-mode tramp-sh tramp-archive tramp-gvfs zeroconf dbus
tramp-cache tramp-cmds tramp tramp-loaddefs trampver tramp-integration
files-x tramp-compat ucs-normalize smtpmail sendmail gnus-topic
gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art
mm-uu mml2015 nntp gnus-cache gnus-sum gnus-group gnus-undo gnus-start
gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo parse-time
gnus-spec gnus-int gnus-range message rfc822 mml mailabbrev gmm-utils
mailheader gnus-win hideshow auth-source-pass flyspell ispell
flymake-proc flymake warnings thingatpt compile ibuf-macs ibuffer
ibuffer-loaddefs vc-git vc-dir ewoc vc vc-dispatcher eww mm-url gnus
nnheader wid-edit url-queue shr text-property-search svg xml dom my-org
ox-org org-mobile org-timer org-clock org-eww org-capture org-agenda
org-table ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util
rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex
ox-icalendar ox-html table ox-ascii ox-publish ox org-element avl-tree
generator org advice org-macro org-footnote org-pcomplete org-list
org-faces org-entities noutline outline org-version ob-emacs-lisp ob
ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint
ob-core ob-eval org-compat org-macs org-loaddefs format-spec find-func
PRC-holiday appt diary-lib diary-loaddefs cal-china lunar solar cal-dst
holidays hol-loaddefs cal-menu calendar cal-loaddefs smerge-mode
diff-mode easy-mmode ediff-merg ediff-wind ediff-diff ediff-mult
ediff-help ediff-init ediff-util ediff diff shell pcomplete comint
ansi-color ring sh-script smie executable url-http url-auth url-gw nsm
rmc puny url-handlers url url-proxy url-privacy url-expand url-methods
url-history url-cookie url-domsuf url-util url-parse auth-source cl-seq
eieio eieio-core cl-macs eieio-loaddefs json map url-vars mm-view
mml-smime mml-sec gnus-util rmail rmail-loaddefs mail-utils time-date
smime password-cache dig mailcap mm-decode mm-bodies mm-encode
mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr
browse-url bookmark pp project subr-x wdired dired-aux dired-x easymenu
epa-file epa derived epg epg-config dired dired-loaddefs ido seq
byte-opt gv bytecomp byte-compile cconv cus-start cus-load cl-loaddefs
cl-lib china-util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win
w32-vars term/common-win 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 threads w32notify w32 lcms2 multi-tty make-network-process
emacs)

Memory information:
((conses 16 143163 164975)
 (symbols 48 5836 51)
 (strings 32 16343 27026)
 (string-bytes 1 483660)
 (vectors 16 9783)
 (vector-slots 8 316582 114714)
 (floats 8 35 38)
 (intervals 56 3711 1712)
 (buffers 992 19))






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#34936; Package emacs. (Thu, 21 Mar 2019 15:57:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Shuguang Sun <shuguang79 <at> qq.com>
Cc: 34936 <at> debbugs.gnu.org
Subject: Re: bug#34936: 27.0.50;
 duplicated process-environment items in pdumper
Date: Thu, 21 Mar 2019 17:56:16 +0200
> From: Shuguang Sun <shuguang79 <at> qq.com>
> Date: Thu, 21 Mar 2019 23:09:07 +0800
> Feedback-ID: esmtp:qq.com:bgforeign:bgforeign4
> 
> I start a personalized pdumper emacs, 
> emacs.exe --batch -l "~/.emacs.d/var/dumps/dump-init.el" -eval "(dump-emacs-portable \"semacs.pdmp\")"
> (even with an empty dump-init.el)
> and there are duplicated items in process-environment:

I don't think re-dumping works well yet, but I see no reason not to
fix this particular issue.

Please try the latest master, I think I fixed this.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#34936; Package emacs. (Sat, 23 Mar 2019 03:50:01 GMT) Full text and rfc822 format available.

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

From: Shuguang Sun <shuguang79 <at> qq.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#34936: 27.0.50;
 duplicated process-environment items in pdumper
Date: Sat, 23 Mar 2019 11:49:35 +0800
It is fixed. Thanks!

It is why I check the process-environment that I start neovim (nvim-qt) from emacs via call-process or win32-shell, and neovim can't find programs in the PATH environment. It seems the duplicated PATH items in process-environment makes the issue in windows 10 box.

Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Shuguang Sun <shuguang79 <at> qq.com>
>> Date: Thu, 21 Mar 2019 23:09:07 +0800
>> Feedback-ID: esmtp:qq.com:bgforeign:bgforeign4
>> 
>> I start a personalized pdumper emacs, 
>> emacs.exe --batch -l "~/.emacs.d/var/dumps/dump-init.el" -eval "(dump-emacs-portable \"semacs.pdmp\")"
>> (even with an empty dump-init.el)
>> and there are duplicated items in process-environment:
>
> I don't think re-dumping works well yet, but I see no reason not to
> fix this particular issue.
>
> Please try the latest master, I think I fixed this.
>
>
>
>

-- 
Best Regards
Shuguang Sun






Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 23 Mar 2019 07:32:02 GMT) Full text and rfc822 format available.

Notification sent to Shuguang Sun <shuguang79 <at> qq.com>:
bug acknowledged by developer. (Sat, 23 Mar 2019 07:32:02 GMT) Full text and rfc822 format available.

Message #16 received at 34936-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Shuguang Sun <shuguang79 <at> qq.com>
Cc: 34936-done <at> debbugs.gnu.org
Subject: Re: bug#34936: 27.0.50;
 duplicated process-environment items in pdumper
Date: Sat, 23 Mar 2019 09:30:57 +0200
> From: Shuguang Sun <shuguang79 <at> qq.com>
> Cc: bug-gnu-emacs <at> gnu.org
> Date: Sat, 23 Mar 2019 11:49:35 +0800
> 
> It is fixed. Thanks!

Thanks, I'm therefore closing this bug.

Btw, when you restart Emacs after re-dumping it, does Emacs have no
menu bar and no tool bar, until you manually turn on the respective
modes, menu-bar-mode and tool-bar-mode?




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

This bug report was last modified 5 years and 7 days ago.

Previous Next


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