From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#1474: 23.0.60; desktop.el don't check if pid in his lock file is always in use Date: Tue, 02 Dec 2008 22:43:43 +0100 Message-ID: <87bpvufe28.fsf@tux.homenetwork> Reply-To: Thierry Volpiatto , 1474@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1228255837 814 80.91.229.12 (2 Dec 2008 22:10:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Dec 2008 22:10:37 +0000 (UTC) Cc: emacs@gentoo.org To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 02 23:11:39 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L7dSy-0001Rh-9z for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Dec 2008 23:11:37 +0100 Original-Received: from localhost ([127.0.0.1]:44960 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7dRn-00017j-Uo for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Dec 2008 17:10:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L7dRj-00017a-9i for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2008 17:10:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L7dRg-00017G-DZ for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2008 17:10:18 -0500 Original-Received: from [199.232.76.173] (port=40167 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7dRg-00017D-9L for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2008 17:10:16 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:48048) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L7dRf-0000DH-Jt for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2008 17:10:16 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB2MACW2015842; Tue, 2 Dec 2008 14:10:13 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mB2Lt4Nc010767; Tue, 2 Dec 2008 13:55:04 -0800 X-Loop: don@donarmstrong.com Resent-From: Thierry Volpiatto Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 02 Dec 2008 21:55:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1474 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12282545309406 (code B ref -1); Tue, 02 Dec 2008 21:55:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 2 Dec 2008 21:48:50 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB2LmkbX009400 for ; Tue, 2 Dec 2008 13:48:47 -0800 Original-Received: from mx10.gnu.org ([199.232.76.166]:40954) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1L7d6R-0004Yd-5f for emacs-pretest-bug@gnu.org; Tue, 02 Dec 2008 16:48:19 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1L7d6q-00072d-40 for emacs-pretest-bug@gnu.org; Tue, 02 Dec 2008 16:48:45 -0500 Original-Received: from gv-out-0910.google.com ([216.239.58.189]:31721) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L7d6p-00072J-JC for emacs-pretest-bug@gnu.org; Tue, 02 Dec 2008 16:48:43 -0500 Original-Received: by gv-out-0910.google.com with SMTP id i36so685309gve.17 for ; Tue, 02 Dec 2008 13:48:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:user-agent:mime-version:content-type; bh=w9RmEsgbh2s5uLdnInR2+cvWwXmdingQ0f1povXezY8=; b=s2r63Dc7/meba8NLFWNH2dOcWP/4FnYAQrLLPKhSZbtNgQRlC7DKLtlGJ8+sxbCxRr NzMkqUX943gyydqE6B+brBJj1Ac9APmrozpVPVPyQMKzLAD7/+XV0x2B+wvoEAJU94hr BJZY2codAIv2qVp+k8s8E1qeBF1BAi6B/aQFw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:user-agent:mime-version :content-type; b=R0+czhij4mYN6ZHMSsZr/EutiNVjxVpgUd0cHS/wCV0G5rbsFUAMCq/rP/UI4CZjBC zB3ea8sUBat/VCm/yB9ixaG4DawJkzAB/0NNdNVVWJmozStQfNPcBCtCF4J0NydpXKn2 5/TRwPs9IE33gdRBtkFqGdOAdvgTmP7SLPIt4= Original-Received: by 10.103.252.17 with SMTP id e17mr5590667mus.14.1228254520212; Tue, 02 Dec 2008 13:48:40 -0800 (PST) Original-Received: from tux.homenetwork (49.78.88-79.rev.gaoland.net [79.88.78.49]) by mx.google.com with ESMTPS id 7sm8647735mup.24.2008.12.02.13.48.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 02 Dec 2008 13:48:39 -0800 (PST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 02 Dec 2008 17:10:18 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:22855 gmane.emacs.pretest.bugs:23430 Archived-At: Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: When killing emacs --daemon or emacs brutally with killall for example, when reloading emacs or emacs --daemon, emacs ask if we want to load desktop file or not (pid is already in use...). I think emacs should check if the PID that is in his lock file is always in use. i made a quick hack for that: That go after line 967 in desktop.el in function desktop-read. ,---- | (eq 0 (call-process-shell-command (format "ps -u %s | grep emacs | grep %d" (getenv "USER") owner))) `---- I can make a patch if you want, just tell me. This bug is not really a bug if we consider using emacs normally: we have just to answer yes or no. But that particularly anoying with new feature emacs --daemon. If this one is started as a service it can hang the system and booting the machine come impossible until file .emacs.desktop.lock is removed. (Gentoo provide an init script to start emacs --daemon as service with openrc) Thank you. Thierry If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/share/emacs/23.0.60/etc/DEBUG for instructions. In GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.14.5) of 2008-12-02 on tux Windowing system distributor `The X.Org Foundation', version 11.0.10300000 configured using `configure '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--program-suffix=-emacs-23' '--infodir=/usr/share/info/emacs-23' '--with-sound' '--with-x' '--without-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xpm' '--with-freetype' '--with-xft' '--without-libotf' '--without-m17n-flt' '--with-x-toolkit=gtk' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--with-gpm' '--with-dbus' '--build=i686-pc-linux-gnu' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-march=i686 -pipe -O2' 'LDFLAGS=-Wl,-O1'' Important settings: value of $LC_ALL: fr_FR.UTF-8 value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: fr_FR.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: ERC Minor modes in effect: erc-list-mode: t erc-menu-mode: t erc-autojoin-mode: t erc-ring-mode: t erc-networks-mode: t erc-pcomplete-mode: t erc-track-mode: t erc-track-minor-mode: t erc-match-mode: t erc-button-mode: t erc-fill-mode: t erc-stamp-mode: t erc-netsplit-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-move-to-prompt-mode: t erc-readonly-mode: t icomplete-mode: t icicle-mode: t delete-selection-mode: t minibuffer-depth-indicate-mode: t auto-image-file-mode: t partial-completion-mode: t shell-dirtrack-mode: t display-wireless-mode: t display-battery-mode: t display-time-mode: t diff-auto-refine-mode: t recentf-mode: t savehist-mode: t desktop-save-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: m e ! ) C-e A n y SPC w a y SPC i SPC w i l l SPC s u b m i t SPC a SPC b u g SPC a l s o . T h a n k s . g m a n e . . C-SPC C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-x r s a C-g C-g C-c C-c y q q n q q q y h k B s t : H i ! SPC M-x e m a c s - s u b m i b u g b u g C-g M-x r e p o r t - e b u g Recent messages: Scoring...done Generating summary...done No more unread articles No more unread newsgroups Are you sure you want to quit reading news? (y or n) Wrote /home/thierry/.newsrc Saving /home/thierry/.newsrc.eld... Wrote /home/thierry/.newsrc.eld Saving /home/thierry/.newsrc.eld...done Computing completion candidates... [5 times] -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France