From unknown Tue Jun 24 15:40:59 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#16599 <16599@debbugs.gnu.org> To: bug#16599 <16599@debbugs.gnu.org> Subject: Status: 24.3.50; src/temacs --daemon fails to start Reply-To: bug#16599 <16599@debbugs.gnu.org> Date: Tue, 24 Jun 2025 22:40:59 +0000 retitle 16599 24.3.50; src/temacs --daemon fails to start reassign 16599 emacs submitter 16599 Alex Benn=C3=A9e severity 16599 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 30 13:35:25 2014 Received: (at submit) by debbugs.gnu.org; 30 Jan 2014 18:35:25 +0000 Received: from localhost ([127.0.0.1]:41742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8wSQ-0003c2-Ko for submit@debbugs.gnu.org; Thu, 30 Jan 2014 13:35:24 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44999) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8wJ4-0003MO-3w for submit@debbugs.gnu.org; Thu, 30 Jan 2014 13:25:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8wIy-0007DZ-4w for submit@debbugs.gnu.org; Thu, 30 Jan 2014 13:25:41 -0500 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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:48587) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8wIy-0007DV-19 for submit@debbugs.gnu.org; Thu, 30 Jan 2014 13:25:36 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46680) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8wIs-0003bB-DP for bug-gnu-emacs@gnu.org; Thu, 30 Jan 2014 13:25:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8wIn-000710-AW for bug-gnu-emacs@gnu.org; Thu, 30 Jan 2014 13:25:30 -0500 Received: from static.88-198-71-155.clients.your-server.de ([88.198.71.155]:57313 helo=socrates.bennee.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8wIn-0006yt-1F for bug-gnu-emacs@gnu.org; Thu, 30 Jan 2014 13:25:25 -0500 Received: from localhost ([127.0.0.1]) by socrates.bennee.com with esmtp (Exim 4.80) (envelope-from ) id 1W8wLn-0001no-7T for bug-gnu-emacs@gnu.org; Thu, 30 Jan 2014 19:28:32 +0100 User-agent: mu4e 0.9.9.6pre2; emacs 24.3.50.1 From: Alex =?utf-8?Q?Benn=C3=A9e?= To: bug-gnu-emacs@gnu.org Subject: 24.3.50; src/temacs --daemon fails to start Date: Thu, 30 Jan 2014 18:25:22 +0000 Message-ID: <87a9ed5nu5.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: alex.bennee@linaro.org X-SA-Exim-Scanned: No (on socrates.bennee.com); SAEximRunCond expanded to false X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 30 Jan 2014 13:35:20 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) I found that I can't start src/temacs with the --daemon option which works with the dumped version src/emacs. With both: host-dbus host-x11 src/temacs --daemon host-dbus host-x11 src/temacs -Q --daemon I get a window popping up and when I execute (daemonp) I get nill. When I C-x C-c the rather terse message: Error: server did not start correctly Is left on the terminal. The host-* functions are simply functions to ensure the environment variables are set-up for my crouton in ChromeOS shell to use the host X11 server. In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars) of 2014-01-30 on localhost Windowing system distributor `The X.Org Foundation', version 11.0.11204000 System Description: Ubuntu 13.10 Configured using: `configure --with-x-toolkit=lucid --prefix=/home/alex/src/emacs/install --without-makeinfo --with-dbus 'CFLAGS=-O0 -g3'' Important settings: value of $LC_ALL: en_GB.UTF-8 value of $LC_CTYPE: en_GB.UTF-8 value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: mu4e:view Minor modes in effect: diff-auto-refine-mode: t global-auto-revert-mode: t show-paren-mode: t delete-selection-mode: t which-function-mode: t display-time-mode: t crmbk-frame-mode: t winner-mode: t guide-key-mode: t tracking-mode: t global-flycheck-mode: t helm-match-plugin-mode: t helm-occur-match-plugin-mode: t keyfreq-autosave-mode: t keyfreq-mode: t global-auto-complete-mode: t yas-global-mode: t yas-minor-mode: t global-edit-server-edit-mode: t shell-dirtrack-mode: t savehist-mode: t tooltip-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 line-number-mode: t transient-mark-mode: t Recent input: $ s i g C h h C-SPC C-w C-c C-c SPC q C-x C-c q b m SPC q q b f q SPC C-x C-c C-x C-c q q U C-x b e m C-x k C-c m j i q q j m q SPC SPC q q t b t SPC SPC n SPC q SPC SPC q M-x r e p o r t Recent messages: [mu4e] Indexing completed; processed 226483, updated 442, cleaned-up 0 [mu4e] mu4e-main-mode [2 times] [mu4e] Contacts received: 11026 [mu4e] Found 378 matching messages Beginning of buffer [mu4e] mu4e-main-mode [2 times] [mu4e] Found 266 matching messages t is undefined [mu4e] mu4e-main-mode [mu4e] Found 433 matching messages Load-path shadows: /home/alex/.emacs.d/elpa/flycheck-20140121.147/.dir-locals hides /home/alex/.emacs.d/elpa/js2-mode-20140120.2003/.dir-locals /home/alex/.emacs.d/elpa/org-20140127/ob-io hides /home/alex/src/emacs/emacs.git/lisp/org/ob-io /home/alex/.emacs.d/elpa/org-20140127/ob-sqlite hides /home/alex/src/emacs/emacs.git/lisp/org/ob-sqlite /home/alex/.emacs.d/elpa/org-20140127/ob-dot hides /home/alex/src/emacs/emacs.git/lisp/org/ob-dot /home/alex/.emacs.d/elpa/org-20140127/org-indent hides /home/alex/src/emacs/emacs.git/lisp/org/org-indent /home/alex/.emacs.d/elpa/org-20140127/ob-gnuplot hides /home/alex/src/emacs/emacs.git/lisp/org/ob-gnuplot /home/alex/.emacs.d/elpa/org-20140127/ob-perl hides /home/alex/src/emacs/emacs.git/lisp/org/ob-perl /home/alex/.emacs.d/elpa/org-20140127/org-install hides /home/alex/src/emacs/emacs.git/lisp/org/org-install /home/alex/.emacs.d/elpa/org-20140127/org-element hides /home/alex/src/emacs/emacs.git/lisp/org/org-element /home/alex/.emacs.d/elpa/org-20140127/ob-ruby hides /home/alex/src/emacs/emacs.git/lisp/org/ob-ruby /home/alex/.emacs.d/elpa/org-20140127/org-feed hides /home/alex/src/emacs/emacs.git/lisp/org/org-feed /home/alex/.emacs.d/elpa/org-20140127/org-src hides /home/alex/src/emacs/emacs.git/lisp/org/org-src /home/alex/.emacs.d/elpa/org-20140127/ob-plantuml hides /home/alex/src/emacs/emacs.git/lisp/org/ob-plantuml /home/alex/.emacs.d/elpa/org-20140127/ob-ledger hides /home/alex/src/emacs/emacs.git/lisp/org/ob-ledger /home/alex/.emacs.d/elpa/org-20140127/org-id hides /home/alex/src/emacs/emacs.git/lisp/org/org-id /home/alex/.emacs.d/elpa/org-20140127/ox-latex hides /home/alex/src/emacs/emacs.git/lisp/org/ox-latex /home/alex/.emacs.d/elpa/org-20140127/ob-scala hides /home/alex/src/emacs/emacs.git/lisp/org/ob-scala /home/alex/.emacs.d/elpa/org-20140127/org-clock hides /home/alex/src/emacs/emacs.git/lisp/org/org-clock /home/alex/.emacs.d/elpa/org-20140127/org-rmail hides /home/alex/src/emacs/emacs.git/lisp/org/org-rmail /home/alex/.emacs.d/elpa/org-20140127/org-irc hides /home/alex/src/emacs/emacs.git/lisp/org/org-irc /home/alex/.emacs.d/elpa/org-20140127/ob-scheme hides /home/alex/src/emacs/emacs.git/lisp/org/ob-scheme /home/alex/.emacs.d/elpa/org-20140127/ox-publish hides /home/alex/src/emacs/emacs.git/lisp/org/ox-publish /home/alex/.emacs.d/elpa/org-20140127/ob-calc hides /home/alex/src/emacs/emacs.git/lisp/org/ob-calc /home/alex/.emacs.d/elpa/org-20140127/org-habit hides /home/alex/src/emacs/emacs.git/lisp/org/org-habit /home/alex/.emacs.d/elpa/org-20140127/org-mhe hides /home/alex/src/emacs/emacs.git/lisp/org/org-mhe /home/alex/.emacs.d/elpa/org-20140127/ob-sass hides /home/alex/src/emacs/emacs.git/lisp/org/ob-sass /home/alex/.emacs.d/elpa/org-20140127/ox-html hides /home/alex/src/emacs/emacs.git/lisp/org/ox-html /home/alex/.emacs.d/elpa/org-20140127/ob-latex hides /home/alex/src/emacs/emacs.git/lisp/org/ob-latex /home/alex/.emacs.d/elpa/org-20140127/org-agenda hides /home/alex/src/emacs/emacs.git/lisp/org/org-agenda /home/alex/.emacs.d/elpa/org-20140127/org-plot hides /home/alex/src/emacs/emacs.git/lisp/org/org-plot /home/alex/.emacs.d/elpa/org-20140127/ob-fortran hides /home/alex/src/emacs/emacs.git/lisp/org/ob-fortran /home/alex/.emacs.d/elpa/org-20140127/org-datetree hides /home/alex/src/emacs/emacs.git/lisp/org/org-datetree /home/alex/.emacs.d/elpa/org-20140127/org-inlinetask hides /home/alex/src/emacs/emacs.git/lisp/org/org-inlinetask /home/alex/.emacs.d/elpa/org-20140127/ob-asymptote hides /home/alex/src/emacs/emacs.git/lisp/org/ob-asymptote /home/alex/.emacs.d/elpa/org-20140127/org-table hides /home/alex/src/emacs/emacs.git/lisp/org/org-table /home/alex/.emacs.d/elpa/org-20140127/org-macro hides /home/alex/src/emacs/emacs.git/lisp/org/org-macro /home/alex/.emacs.d/elpa/org-20140127/org-bbdb hides /home/alex/src/emacs/emacs.git/lisp/org/org-bbdb /home/alex/.emacs.d/elpa/org-20140127/org-info hides /home/alex/src/emacs/emacs.git/lisp/org/org-info /home/alex/.emacs.d/elpa/org-20140127/ox-man hides /home/alex/src/emacs/emacs.git/lisp/org/ox-man /home/alex/.emacs.d/elpa/org-20140127/org-faces hides /home/alex/src/emacs/emacs.git/lisp/org/org-faces /home/alex/.emacs.d/elpa/org-20140127/org-footnote hides /home/alex/src/emacs/emacs.git/lisp/org/org-footnote /home/alex/.emacs.d/elpa/org-20140127/ob-js hides /home/alex/src/emacs/emacs.git/lisp/org/ob-js /home/alex/.emacs.d/elpa/org-20140127/ob-lilypond hides /home/alex/src/emacs/emacs.git/lisp/org/ob-lilypond /home/alex/.emacs.d/elpa/org-20140127/ob-keys hides /home/alex/src/emacs/emacs.git/lisp/org/ob-keys /home/alex/.emacs.d/elpa/org-20140127/ob-ditaa hides /home/alex/src/emacs/emacs.git/lisp/org/ob-ditaa /home/alex/.emacs.d/elpa/org-20140127/ox-texinfo hides /home/alex/src/emacs/emacs.git/lisp/org/ox-texinfo /home/alex/.emacs.d/elpa/org-20140127/org-ctags hides /home/alex/src/emacs/emacs.git/lisp/org/org-ctags /home/alex/.emacs.d/elpa/org-20140127/ob-eval hides /home/alex/src/emacs/emacs.git/lisp/org/ob-eval /home/alex/.emacs.d/elpa/org-20140127/ox-md hides /home/alex/src/emacs/emacs.git/lisp/org/ox-md /home/alex/.emacs.d/elpa/org-20140127/org-attach hides /home/alex/src/emacs/emacs.git/lisp/org/org-attach /home/alex/.emacs.d/elpa/org-20140127/ob-clojure hides /home/alex/src/emacs/emacs.git/lisp/org/ob-clojure /home/alex/.emacs.d/elpa/org-20140127/ob-java hides /home/alex/src/emacs/emacs.git/lisp/org/ob-java /home/alex/.emacs.d/elpa/org-20140127/org-crypt hides /home/alex/src/emacs/emacs.git/lisp/org/org-crypt /home/alex/.emacs.d/elpa/org-20140127/ox-org hides /home/alex/src/emacs/emacs.git/lisp/org/ox-org /home/alex/.emacs.d/elpa/org-20140127/ob-maxima hides /home/alex/src/emacs/emacs.git/lisp/org/ob-maxima /home/alex/.emacs.d/elpa/org-20140127/ob-screen hides /home/alex/src/emacs/emacs.git/lisp/org/ob-screen /home/alex/.emacs.d/elpa/org-20140127/org-capture hides /home/alex/src/emacs/emacs.git/lisp/org/org-capture /home/alex/.emacs.d/elpa/org-20140127/org-eshell hides /home/alex/src/emacs/emacs.git/lisp/org/org-eshell /home/alex/.emacs.d/elpa/org-20140127/ob-exp hides /home/alex/src/emacs/emacs.git/lisp/org/ob-exp /home/alex/.emacs.d/elpa/org-20140127/ob-awk hides /home/alex/src/emacs/emacs.git/lisp/org/ob-awk /home/alex/.emacs.d/elpa/org-20140127/org-w3m hides /home/alex/src/emacs/emacs.git/lisp/org/org-w3m /home/alex/.emacs.d/elpa/org-20140127/org-compat hides /home/alex/src/emacs/emacs.git/lisp/org/org-compat /home/alex/.emacs.d/elpa/org-20140127/ob-comint hides /home/alex/src/emacs/emacs.git/lisp/org/ob-comint /home/alex/.emacs.d/elpa/org-20140127/org-list hides /home/alex/src/emacs/emacs.git/lisp/org/org-list /home/alex/.emacs.d/elpa/org-20140127/ob-ocaml hides /home/alex/src/emacs/emacs.git/lisp/org/ob-ocaml /home/alex/.emacs.d/elpa/org-20140127/org-archive hides /home/alex/src/emacs/emacs.git/lisp/org/org-archive /home/alex/.emacs.d/elpa/org-20140127/ob-sh hides /home/alex/src/emacs/emacs.git/lisp/org/ob-sh /home/alex/.emacs.d/elpa/org-20140127/org-gnus hides /home/alex/src/emacs/emacs.git/lisp/org/org-gnus /home/alex/.emacs.d/elpa/org-20140127/org-bibtex hides /home/alex/src/emacs/emacs.git/lisp/org/org-bibtex /home/alex/.emacs.d/elpa/org-20140127/ox-icalendar hides /home/alex/src/emacs/emacs.git/lisp/org/ox-icalendar /home/alex/.emacs.d/elpa/org-20140127/ob-css hides /home/alex/src/emacs/emacs.git/lisp/org/ob-css /home/alex/.emacs.d/elpa/org-20140127/ob-core hides /home/alex/src/emacs/emacs.git/lisp/org/ob-core /home/alex/.emacs.d/elpa/org-20140127/ob-picolisp hides /home/alex/src/emacs/emacs.git/lisp/org/ob-picolisp /home/alex/.emacs.d/elpa/org-20140127/org-timer hides /home/alex/src/emacs/emacs.git/lisp/org/org-timer /home/alex/.emacs.d/elpa/org-20140127/ob-mscgen hides /home/alex/src/emacs/emacs.git/lisp/org/ob-mscgen /home/alex/.emacs.d/elpa/org-20140127/ob-makefile hides /home/alex/src/emacs/emacs.git/lisp/org/ob-makefile /home/alex/.emacs.d/elpa/org-20140127/org-pcomplete hides /home/alex/src/emacs/emacs.git/lisp/org/org-pcomplete /home/alex/.emacs.d/elpa/org-20140127/ob-lob hides /home/alex/src/emacs/emacs.git/lisp/org/ob-lob /home/alex/.emacs.d/elpa/org-20140127/ox-ascii hides /home/alex/src/emacs/emacs.git/lisp/org/ox-ascii /home/alex/.emacs.d/elpa/org-20140127/ox-beamer hides /home/alex/src/emacs/emacs.git/lisp/org/ox-beamer /home/alex/.emacs.d/elpa/org-20140127/ob-python hides /home/alex/src/emacs/emacs.git/lisp/org/ob-python /home/alex/.emacs.d/elpa/org-20140127/org hides /home/alex/src/emacs/emacs.git/lisp/org/org /home/alex/.emacs.d/elpa/org-20140127/org-mouse hides /home/alex/src/emacs/emacs.git/lisp/org/org-mouse /home/alex/.emacs.d/elpa/org-20140127/ob-table hides /home/alex/src/emacs/emacs.git/lisp/org/ob-table /home/alex/.emacs.d/elpa/org-20140127/ob-sql hides /home/alex/src/emacs/emacs.git/lisp/org/ob-sql /home/alex/.emacs.d/elpa/org-20140127/ob-R hides /home/alex/src/emacs/emacs.git/lisp/org/ob-R /home/alex/.emacs.d/elpa/org-20140127/ox hides /home/alex/src/emacs/emacs.git/lisp/org/ox /home/alex/.emacs.d/elpa/org-20140127/ob hides /home/alex/src/emacs/emacs.git/lisp/org/ob /home/alex/.emacs.d/elpa/org-20140127/org-protocol hides /home/alex/src/emacs/emacs.git/lisp/org/org-protocol /home/alex/.emacs.d/elpa/org-20140127/ob-haskell hides /home/alex/src/emacs/emacs.git/lisp/org/ob-haskell /home/alex/.emacs.d/elpa/org-20140127/ob-shen hides /home/alex/src/emacs/emacs.git/lisp/org/ob-shen /home/alex/.emacs.d/elpa/org-20140127/org-version hides /home/alex/src/emacs/emacs.git/lisp/org/org-version /home/alex/.emacs.d/elpa/org-20140127/ox-odt hides /home/alex/src/emacs/emacs.git/lisp/org/ox-odt /home/alex/.emacs.d/elpa/org-20140127/org-docview hides /home/alex/src/emacs/emacs.git/lisp/org/org-docview /home/alex/.emacs.d/elpa/org-20140127/ob-matlab hides /home/alex/src/emacs/emacs.git/lisp/org/ob-matlab /home/alex/.emacs.d/elpa/org-20140127/ob-C hides /home/alex/src/emacs/emacs.git/lisp/org/ob-C /home/alex/.emacs.d/elpa/org-20140127/ob-lisp hides /home/alex/src/emacs/emacs.git/lisp/org/ob-lisp /home/alex/.emacs.d/elpa/org-20140127/org-mobile hides /home/alex/src/emacs/emacs.git/lisp/org/org-mobile /home/alex/.emacs.d/elpa/org-20140127/org-entities hides /home/alex/src/emacs/emacs.git/lisp/org/org-entities /home/alex/.emacs.d/elpa/org-20140127/org-macs hides /home/alex/src/emacs/emacs.git/lisp/org/org-macs /home/alex/.emacs.d/elpa/org-20140127/ob-octave hides /home/alex/src/emacs/emacs.git/lisp/org/ob-octave /home/alex/.emacs.d/elpa/org-20140127/ob-emacs-lisp hides /home/alex/src/emacs/emacs.git/lisp/org/ob-emacs-lisp /home/alex/.emacs.d/elpa/org-20140127/ob-org hides /home/alex/src/emacs/emacs.git/lisp/org/ob-org /home/alex/.emacs.d/elpa/org-20140127/org-loaddefs hides /home/alex/src/emacs/emacs.git/lisp/org/org-loaddefs /home/alex/.emacs.d/elpa/org-20140127/ob-ref hides /home/alex/src/emacs/emacs.git/lisp/org/ob-ref /home/alex/.emacs.d/elpa/org-20140127/org-colview hides /home/alex/src/emacs/emacs.git/lisp/org/org-colview /home/alex/.emacs.d/elpa/org-20140127/ob-tangle hides /home/alex/src/emacs/emacs.git/lisp/org/ob-tangle /home/alex/.emacs.d/elpa/flycheck-20140121.147/.dir-locals hides /home/alex/src/emacs/emacs.git/lisp/gnus/.dir-locals /home/alex/.emacs.d/elpa/emms-20131016.1232/tq hides /home/alex/src/emacs/emacs.git/lisp/emacs-lisp/tq Features: (shadow emacsbug helm-command helm-elisp helm-eval helm-mode network-stream starttls mailalias qp mail-extr sort unsafep edebug-x edebug init my-circe lui-autopaste circe lui-irc-colors lcs lui-format lui my-buffer lusty-explorer midnight htmlize js2-mode-expansions js-mode-expansions js2-mode cc-mode-expansions cc-mode cc-fonts cc-guess cc-menus cc-styles cc-align cc-cmds cc-engine cc-vars cc-defs my-git magit-key-mode magit view diff-mode git-rebase-mode git-commit-mode server log-edit pcvs-util add-log keychain-environment my-spell flyspell ispell whitespace autorevert filenotify paren delsel smart-mode-line mule-util which-func imenu time avoid zenburn-theme chromebook dbus winner guide-key face-remap popwin expand-region text-mode-expansions the-org-mode-expansions er-basic-expansions expand-region-core expand-region-custom multiple-cursors mc-separate-operations rectangular-region-mode mc-mark-pop mc-mark-more mc-cycle-cursors mc-edit-lines multiple-cursors-core rect my-helm helm-config helm-aliases windmove my-org ob-sh ob-python ob-makefile ob-ditaa ob-dot ox-reveal ox-latex ox-icalendar ox-html ox-ascii ox-publish ox org-element org-capture org-clock org 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 cal-menu calendar cal-loaddefs my-devel tracking shorten my-flycheck flycheck-tip flycheck find-func rx f dash s my-eproject helm-eproject helm-files image-dired dired-x dired-aux ffap helm-buffers helm-elscreen helm-tags helm-bookmark helm-adaptative helm-info helm-net xml helm-plugin bookmark pp helm-locate helm-help helm-match-plugin helm-grep helm-regexp helm-external helm-utils helm eproject-compile eproject-extras ibuf-ext ibuffer iswitchb eproject esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg eldoc esh-groups eshell esh-module esh-mode esh-util my-find ack-and-a-half thingatpt grep compile my-email mu4e mu4e-speedbar speedbar sb-image ezimage dframe mu4e-main mu4e-view epa derived epg epg-config browse-url mu4e-headers mu4e-compose mu4e-draft mu4e-actions rfc2368 smtpmail sendmail mu4e-mark mu4e-message html2text mu4e-proc mu4e-utils doc-view jka-compr image-mode dired mu4e-lists mu4e-about mu4e-vars hl-line mu4e-meta message rfc822 mailabbrev gmm-utils mailheader keyfreq smex ido ace-jump-mode auto-complete-config auto-complete popup my-yasnippet.el yasnippet help-mode mediawiki url-cache mm-url gnus gnus-ems nnheader mail-utils wid-edit mml mml-sec mm-decode mm-bodies mm-encode url-http tls url url-proxy url-privacy url-expand url-methods url-history mailcap url-auth mail-parse rfc2231 rfc2047 rfc2045 ietf-drums url-cookie url-domsuf url-util url-parse url-gw url-vars edit-server easy-mmode edmacro kmacro tramp tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv eieio-core gnus-util mm-util mail-prsvr password-cache tramp-loaddefs trampver shell pcomplete comint ansi-color ring format-spec advice help-fns time-date savehist my-package ace-jump-mode-autoloads auto-complete-c-headers-autoloads edebug-x-autoloads elpy-autoloads emms-autoloads find-file-in-project-autoloads flycheck-color-mode-line-autoloads fuzzy-autoloads git-blame-autoloads gitconfig-mode-autoloads gitignore-mode-autoloads gmail-message-mode-autoloads gplusify-autoloads guide-key-autoloads ham-mode-autoloads helm-ack-autoloads helm-themes-autoloads highlight-indentation-autoloads html-to-markdown-autoloads htmlize-autoloads idomenu-autoloads iedit-autoloads keychain-environment-autoloads keyfreq-autoloads litable-autoloads lusty-explorer-autoloads markdown-mode+-autoloads markdown-mode-autoloads mc-extras-autoloads mediawiki-autoloads nose-autoloads esxml-autoloads elnode-autoloads db-autoloads creole-autoloads noflet-autoloads info easymenu paredit-autoloads pastebin-autoloads popwin-autoloads pkg-info-autoloads protobuf-mode-autoloads rainbow-delimiters-autoloads request-autoloads s-autoloads smart-mode-line-autoloads ssh-config-mode-autoloads syslog-mode-autoloads hide-lines-autoloads tracking-autoloads shorten-autoloads virtualenv-autoloads yaml-mode-autoloads package my-vars my-utils cl-macs gv cl cl-loaddefs cl-lib tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting x-toolkit x multi-tty emacs) -- Alex Bennée From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 16 16:53:49 2014 Received: (at 16599) by debbugs.gnu.org; 16 Feb 2014 21:53:49 +0000 Received: from localhost ([127.0.0.1]:55082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WF9em-0000z9-UL for submit@debbugs.gnu.org; Sun, 16 Feb 2014 16:53:49 -0500 Received: from static.88-198-71-155.clients.your-server.de ([88.198.71.155]:53616 helo=socrates.bennee.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WF9Mo-0000Th-Lz for 16599@debbugs.gnu.org; Sun, 16 Feb 2014 16:35:15 -0500 Received: from localhost ([127.0.0.1]) by socrates.bennee.com with esmtp (Exim 4.80) (envelope-from ) id 1WF9Pv-0004l8-Pc; Sun, 16 Feb 2014 22:38:28 +0100 References: <87bnyt5zmi.fsf@linaro.org> <83k3dh7837.fsf@gnu.org> User-agent: mu4e 0.9.9.6pre2; emacs 24.3.50 From: Alex =?utf-8?Q?Benn=C3=A9e?= To: Eli Zaretskii Subject: Re: src/temacs --daemon fails In-reply-to: <83k3dh7837.fsf@gnu.org> Date: Sun, 16 Feb 2014 21:34:57 +0000 Message-ID: <878utaoi66.fsf@bennee.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: kernel-hacker@bennee.com X-SA-Exim-Scanned: No (on socrates.bennee.com); SAEximRunCond expanded to false X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16599 X-Mailman-Approved-At: Sun, 16 Feb 2014 16:53:47 -0500 Cc: 16599@debbugs.gnu.org, Alex =?utf-8?Q?Benn=C3=A9e?= , emacs-devel@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Eli Zaretskii writes: >> From: Alex Bennée >> Date: Thu, 30 Jan 2014 14:10:45 +0000 >> >> In an unrelated issue I found that I can't start src/temacs with the >> --daemon option which works with the dumped version src/emacs. > > Please use "M-x report-emacs-bug RET" to report such bugs, then they > are automatically emailed to the bug tracker address. I raised bug #16599 and I have tracked it down to being reset by syms_of_emacs() which is called in temacs after being set up by --daemon. I assume the dumped src/emacs behaves differently. The following patch works for me: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-src-emacs.c-ensure-daemon_pipe-initialised-before-us.patch Content-Description: Fix initialistion of daemon_pipes >From 3dee0d9da394e17b4e6cb97cb22399f027cab440 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Benn=C3=A9e?= Date: Sun, 16 Feb 2014 20:59:06 +0000 Subject: [PATCH] src/emacs.c: ensure daemon_pipe initialised before use Otherwise this breaks src/temacs --daemon invocations by resetting the daemon_pipe FDs which are used to determine if Emacs is in daemon mode. --- src/emacs.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/emacs.c b/src/emacs.c index 18f6a08..66f47ef 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -201,7 +201,7 @@ static char *daemon_name; /* Pipe used to send exit notification to the daemon parent at startup. */ -int daemon_pipe[2]; +int daemon_pipe[2] = {0, 0}; /* Save argv and argc. */ char **initial_argv; @@ -2548,7 +2548,4 @@ libraries; only those already known by Emacs will be loaded. */); Vlibrary_cache = Qnil; staticpro (&Vlibrary_cache); #endif - - /* Make sure IS_DAEMON starts up as false. */ - daemon_pipe[1] = 0; } -- 1.8.5.3 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit > > Thanks. -- Alex Bennée --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 16 16:57:35 2014 Received: (at 16599) by debbugs.gnu.org; 16 Feb 2014 21:57:35 +0000 Received: from localhost ([127.0.0.1]:55086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WF9iQ-00015C-PS for submit@debbugs.gnu.org; Sun, 16 Feb 2014 16:57:35 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:36762) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WF9iO-000152-Bn for 16599@debbugs.gnu.org; Sun, 16 Feb 2014 16:57:33 -0500 Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3fS2HZ5Pwlz3hhsW; Sun, 16 Feb 2014 22:57:30 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3fS2HZ14Q4zbbfX; Sun, 16 Feb 2014 22:57:30 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id UtnfrEJRf8nl; Sun, 16 Feb 2014 22:57:29 +0100 (CET) X-Auth-Info: NF6hrUHpd51FOrEmCYNkAolLTXAFIpKIs+GHOA2tHv4= Received: from igel.home (ppp-88-217-63-156.dynamic.mnet-online.de [88.217.63.156]) by mail.mnet-online.de (Postfix) with ESMTPA; Sun, 16 Feb 2014 22:57:29 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 49DC72C1DEF; Sun, 16 Feb 2014 22:57:29 +0100 (CET) From: Andreas Schwab To: Alex =?utf-8?Q?Benn=C3=A9e?= Subject: Re: bug#16599: src/temacs --daemon fails References: <87bnyt5zmi.fsf@linaro.org> <83k3dh7837.fsf@gnu.org> <878utaoi66.fsf__22889.092230662$1392587661$gmane$org@bennee.com> X-Yow: Look DEEP into the OPENINGS!! Do you see any ELVES or EDSELS... or a HIGHBALL??... Date: Sun, 16 Feb 2014 22:57:29 +0100 In-Reply-To: <878utaoi66.fsf__22889.092230662$1392587661$gmane$org@bennee.com> ("Alex =?utf-8?Q?Benn=C3=A9e=22's?= message of "Sun, 16 Feb 2014 21:34:57 +0000") Message-ID: <871tz2iuuu.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16599 Cc: Eli Zaretskii , 16599@debbugs.gnu.org, emacs-devel@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Alex Bennée writes: > diff --git a/src/emacs.c b/src/emacs.c > index 18f6a08..66f47ef 100644 > --- a/src/emacs.c > +++ b/src/emacs.c > @@ -201,7 +201,7 @@ static char *daemon_name; > > /* Pipe used to send exit notification to the daemon parent at > startup. */ > -int daemon_pipe[2]; > +int daemon_pipe[2] = {0, 0}; This is redundant. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 17 02:40:57 2014 Received: (at 16599) by debbugs.gnu.org; 17 Feb 2014 07:40:57 +0000 Received: from localhost ([127.0.0.1]:55693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFIoy-0000aY-88 for submit@debbugs.gnu.org; Mon, 17 Feb 2014 02:40:56 -0500 Received: from static.88-198-71-155.clients.your-server.de ([88.198.71.155]:55861 helo=socrates.bennee.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFIos-0000a5-Jx for 16599@debbugs.gnu.org; Mon, 17 Feb 2014 02:40:51 -0500 Received: from localhost ([127.0.0.1]) by socrates.bennee.com with esmtp (Exim 4.80) (envelope-from ) id 1WFIs0-0006YG-2C; Mon, 17 Feb 2014 08:44:04 +0100 References: <87bnyt5zmi.fsf@linaro.org> <83k3dh7837.fsf@gnu.org> <878utaoi66.fsf__22889.092230662$1392587661$gmane$org@bennee.com> <871tz2iuuu.fsf@igel.home> User-agent: mu4e 0.9.9.6pre2; emacs 24.3.50 From: Alex =?utf-8?Q?Benn=C3=A9e?= To: Andreas Schwab Subject: Re: bug#16599: src/temacs --daemon fails In-reply-to: <871tz2iuuu.fsf@igel.home> Date: Mon, 17 Feb 2014 07:40:35 +0000 Message-ID: <877g8unq4s.fsf@bennee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: kernel-hacker@bennee.com X-SA-Exim-Scanned: No (on socrates.bennee.com); SAEximRunCond expanded to false X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16599 Cc: Eli Zaretskii , 16599@debbugs.gnu.org, Alex =?utf-8?Q?Benn=C3=A9e?= , emacs-devel@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Andreas Schwab writes: > Alex Bennée writes: > >> diff --git a/src/emacs.c b/src/emacs.c >> index 18f6a08..66f47ef 100644 >> --- a/src/emacs.c >> +++ b/src/emacs.c >> @@ -201,7 +201,7 @@ static char *daemon_name; >> >> /* Pipe used to send exit notification to the daemon parent at >> startup. */ >> -int daemon_pipe[2]; >> +int daemon_pipe[2] = {0, 0}; > > This is redundant. Indeed. I wasn't sure if the code I replaced relied on some special difference between .data and .bss sections. I have to admit I'm unfamiliar with how the Emacs dumping mechanism works. Why did the syms_of_emacs() function feel the need to initialise daemon_pipe? > > Andreas. -- Alex Bennée From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 17 10:51:52 2014 Received: (at 16599) by debbugs.gnu.org; 17 Feb 2014 15:51:52 +0000 Received: from localhost ([127.0.0.1]:56708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFQU3-00013V-LH for submit@debbugs.gnu.org; Mon, 17 Feb 2014 10:51:52 -0500 Received: from mtaout27.012.net.il ([80.179.55.183]:34069) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFQTz-00013C-GC for 16599@debbugs.gnu.org; Mon, 17 Feb 2014 10:51:49 -0500 Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0N1500M00D3MKW00@mtaout27.012.net.il> for 16599@debbugs.gnu.org; Mon, 17 Feb 2014 17:50:05 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N1500HMXDBGYP50@mtaout27.012.net.il>; Mon, 17 Feb 2014 17:50:05 +0200 (IST) Date: Mon, 17 Feb 2014 17:51:46 +0200 From: Eli Zaretskii Subject: Re: bug#16599: src/temacs --daemon fails In-reply-to: <877g8unq4s.fsf@bennee.com> X-012-Sender: halo1@inter.net.il To: Alex =?utf-8?Q?Benn=C3=A9e?= Message-id: <83vbwd91pp.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <87bnyt5zmi.fsf@linaro.org> <83k3dh7837.fsf@gnu.org> <878utaoi66.fsf__22889.092230662$1392587661$gmane$org@bennee.com> <871tz2iuuu.fsf@igel.home> <877g8unq4s.fsf@bennee.com> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 16599 Cc: 16599@debbugs.gnu.org, schwab@linux-m68k.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Alex Bennée > Cc: Alex Bennée , Eli Zaretskii > , 16599@debbugs.gnu.org, emacs-devel@gnu.org > Date: Mon, 17 Feb 2014 07:40:35 +0000 > > Why did the syms_of_emacs() function feel the need to initialise daemon_pipe? Because in a dumped Emacs, daemon_pipe might hold a stale value from before the dumping. Does the patch below solve this problem? === modified file 'src/emacs.c' --- src/emacs.c 2014-01-20 19:44:56 +0000 +++ src/emacs.c 2014-02-17 15:48:44 +0000 @@ -2550,5 +2550,6 @@ libraries; only those already known by E #endif /* Make sure IS_DAEMON starts up as false. */ - daemon_pipe[1] = 0; + if (initialized) + daemon_pipe[1] = 0; } From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 17 11:03:06 2014 Received: (at 16599) by debbugs.gnu.org; 17 Feb 2014 16:03:06 +0000 Received: from localhost ([127.0.0.1]:56739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFQev-0001Ox-JT for submit@debbugs.gnu.org; Mon, 17 Feb 2014 11:03:05 -0500 Received: from cantor2.suse.de ([195.135.220.15]:58567 helo=mx2.suse.de) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFQes-0001Od-Tk for 16599@debbugs.gnu.org; Mon, 17 Feb 2014 11:03:03 -0500 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 06CD0AC92; Mon, 17 Feb 2014 16:03:02 +0000 (UTC) From: Andreas Schwab To: Eli Zaretskii Subject: Re: bug#16599: src/temacs --daemon fails References: <87bnyt5zmi.fsf@linaro.org> <83k3dh7837.fsf@gnu.org> <878utaoi66.fsf__22889.092230662$1392587661$gmane$org@bennee.com> <871tz2iuuu.fsf@igel.home> <877g8unq4s.fsf@bennee.com> <83vbwd91pp.fsf@gnu.org> X-Yow: I'm in LOVE with DON KNOTTS!! Date: Mon, 17 Feb 2014 17:03:01 +0100 In-Reply-To: <83vbwd91pp.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 17 Feb 2014 17:51:46 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: 16599 Cc: 16599@debbugs.gnu.org, Alex =?utf-8?Q?Benn=C3=A9e?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) Eli Zaretskii writes: >> From: Alex Bennée >> Cc: Alex Bennée , Eli Zaretskii >> , 16599@debbugs.gnu.org, emacs-devel@gnu.org >> Date: Mon, 17 Feb 2014 07:40:35 +0000 >> >> Why did the syms_of_emacs() function feel the need to initialise daemon_pipe? > > Because in a dumped Emacs, daemon_pipe might hold a stale value from > before the dumping. But syms_of_emacs is not called in a dumped Emacs. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 17 11:16:00 2014 Received: (at 16599) by debbugs.gnu.org; 17 Feb 2014 16:16:00 +0000 Received: from localhost ([127.0.0.1]:56770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFQrQ-0001l4-58 for submit@debbugs.gnu.org; Mon, 17 Feb 2014 11:16:00 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]:37169) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFQrO-0001kq-JC for 16599@debbugs.gnu.org; Mon, 17 Feb 2014 11:15:59 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0N1500000E6ID400@a-mtaout20.012.net.il> for 16599@debbugs.gnu.org; Mon, 17 Feb 2014 18:15:52 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N1500NT6EIG1IA0@a-mtaout20.012.net.il>; Mon, 17 Feb 2014 18:15:52 +0200 (IST) Date: Mon, 17 Feb 2014 18:15:58 +0200 From: Eli Zaretskii Subject: Re: bug#16599: src/temacs --daemon fails In-reply-to: X-012-Sender: halo1@inter.net.il To: Andreas Schwab Message-id: <83mwhp90ld.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <87bnyt5zmi.fsf@linaro.org> <83k3dh7837.fsf@gnu.org> <878utaoi66.fsf__22889.092230662$1392587661$gmane$org@bennee.com> <871tz2iuuu.fsf@igel.home> <877g8unq4s.fsf@bennee.com> <83vbwd91pp.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 16599 Cc: 16599@debbugs.gnu.org, kernel-hacker@bennee.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Andreas Schwab > Cc: Alex Bennée , > 16599@debbugs.gnu.org > Date: Mon, 17 Feb 2014 17:03:01 +0100 > > Eli Zaretskii writes: > > >> From: Alex Bennée > >> Cc: Alex Bennée , Eli Zaretskii > >> , 16599@debbugs.gnu.org, emacs-devel@gnu.org > >> Date: Mon, 17 Feb 2014 07:40:35 +0000 > >> > >> Why did the syms_of_emacs() function feel the need to initialise daemon_pipe? > > > > Because in a dumped Emacs, daemon_pipe might hold a stale value from > > before the dumping. > > But syms_of_emacs is not called in a dumped Emacs. So I guess we should move that line somewhere where it will be called. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 17 11:38:33 2014 Received: (at 16599) by debbugs.gnu.org; 17 Feb 2014 16:38:33 +0000 Received: from localhost ([127.0.0.1]:56810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFRDE-0002NW-Sp for submit@debbugs.gnu.org; Mon, 17 Feb 2014 11:38:33 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]:41519) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFRDB-0002NG-ST for 16599@debbugs.gnu.org; Mon, 17 Feb 2014 11:38:30 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0N1500000FE0LY00@a-mtaout20.012.net.il> for 16599@debbugs.gnu.org; Mon, 17 Feb 2014 18:38:23 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N15000GLFJZER60@a-mtaout20.012.net.il>; Mon, 17 Feb 2014 18:38:23 +0200 (IST) Date: Mon, 17 Feb 2014 18:38:29 +0200 From: Eli Zaretskii Subject: Re: bug#16599: src/temacs --daemon fails In-reply-to: <83mwhp90ld.fsf@gnu.org> X-012-Sender: halo1@inter.net.il To: Alex =?utf-8?Q?Benn=C3=A9e?= Message-id: <83lhx98zju.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <87bnyt5zmi.fsf@linaro.org> <83k3dh7837.fsf@gnu.org> <878utaoi66.fsf__22889.092230662$1392587661$gmane$org@bennee.com> <871tz2iuuu.fsf@igel.home> <877g8unq4s.fsf@bennee.com> <83vbwd91pp.fsf@gnu.org> <83mwhp90ld.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 16599 Cc: schwab@suse.de, 16599@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Mon, 17 Feb 2014 18:15:58 +0200 > From: Eli Zaretskii > Cc: 16599@debbugs.gnu.org, kernel-hacker@bennee.com > > > From: Andreas Schwab > > Cc: Alex Bennée , > > 16599@debbugs.gnu.org > > Date: Mon, 17 Feb 2014 17:03:01 +0100 > > > > Eli Zaretskii writes: > > > > >> From: Alex Bennée > > >> Cc: Alex Bennée , Eli Zaretskii > > >> , 16599@debbugs.gnu.org, emacs-devel@gnu.org > > >> Date: Mon, 17 Feb 2014 07:40:35 +0000 > > >> > > >> Why did the syms_of_emacs() function feel the need to initialise daemon_pipe? > > > > > > Because in a dumped Emacs, daemon_pipe might hold a stale value from > > > before the dumping. > > > > But syms_of_emacs is not called in a dumped Emacs. > > So I guess we should move that line somewhere where it will be called. Like in the patch below. Alex, please try this one instead of the one I sent before. === modified file 'src/emacs.c' --- src/emacs.c 2014-01-20 19:44:56 +0000 +++ src/emacs.c 2014-02-17 16:36:32 +0000 @@ -721,6 +721,9 @@ main (int argc, char **argv) /* If we use --chdir, this records the original directory. */ char *original_pwd = 0; + /* Make sure IS_DAEMON starts up as false. */ + daemon_pipe[1] = 0; + #if GC_MARK_STACK stack_base = &dummy; #endif @@ -2548,7 +2551,4 @@ libraries; only those already known by E Vlibrary_cache = Qnil; staticpro (&Vlibrary_cache); #endif - - /* Make sure IS_DAEMON starts up as false. */ - daemon_pipe[1] = 0; } From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 17 16:23:12 2014 Received: (at 16599-done) by debbugs.gnu.org; 17 Feb 2014 21:23:12 +0000 Received: from localhost ([127.0.0.1]:57074 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFVei-0001hf-6f for submit@debbugs.gnu.org; Mon, 17 Feb 2014 16:23:12 -0500 Received: from smtp.cs.ucla.edu ([131.179.128.62]:47604) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFVeg-0001hR-Cv for 16599-done@debbugs.gnu.org; Mon, 17 Feb 2014 16:23:11 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 6A4A839E8017 for <16599-done@debbugs.gnu.org>; Mon, 17 Feb 2014 13:23:04 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8jBu5YSGWULV for <16599-done@debbugs.gnu.org>; Mon, 17 Feb 2014 13:23:04 -0800 (PST) Received: from [192.168.1.9] (pool-108-0-233-62.lsanca.fios.verizon.net [108.0.233.62]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 0DC7A39E8011 for <16599-done@debbugs.gnu.org>; Mon, 17 Feb 2014 13:23:04 -0800 (PST) Message-ID: <53027DB4.3050100@cs.ucla.edu> Date: Mon, 17 Feb 2014 13:23:00 -0800 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: 16599-done@debbugs.gnu.org Subject: Re: 24.3.50; src/temacs --daemon fails to start Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 16599-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) I reproduced the bug and installed a fix that works for me as trunk bzr 116465. It's like Eli's fix, but delays the initialization to be nearer the use. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 17 16:33:20 2014 Received: (at 16599) by debbugs.gnu.org; 17 Feb 2014 21:33:20 +0000 Received: from localhost ([127.0.0.1]:57095 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFVoV-00020J-Qz for submit@debbugs.gnu.org; Mon, 17 Feb 2014 16:33:20 -0500 Received: from mtaout21.012.net.il ([80.179.55.169]:64057) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFVoT-000203-Jw for 16599@debbugs.gnu.org; Mon, 17 Feb 2014 16:33:18 -0500 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0N1500F00SICCP00@a-mtaout21.012.net.il> for 16599@debbugs.gnu.org; Mon, 17 Feb 2014 23:33:11 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N1500FAVT7ABQ50@a-mtaout21.012.net.il>; Mon, 17 Feb 2014 23:33:11 +0200 (IST) Date: Mon, 17 Feb 2014 23:33:17 +0200 From: Eli Zaretskii Subject: Re: bug#16599: 24.3.50; src/temacs --daemon fails to start In-reply-to: <53027DB4.3050100@cs.ucla.edu> X-012-Sender: halo1@inter.net.il To: Paul Eggert Message-id: <83sirh77c2.fsf@gnu.org> References: <87a9ed5nu5.fsf@linaro.org> <53027DB4.3050100@cs.ucla.edu> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 16599 Cc: 16599@debbugs.gnu.org, alex.bennee@linaro.org, eggert@cs.ucla.edu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Mon, 17 Feb 2014 13:23:00 -0800 > From: Paul Eggert > > I reproduced the bug and installed a fix that works for me as trunk bzr > 116465. It's like Eli's fix, but delays the initialization to be nearer > the use. Thanks. From unknown Tue Jun 24 15:40:59 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 18 Mar 2014 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator