From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Prije Newsgroups: gmane.emacs.bugs Subject: bug#13930: Emacs doesn't cope well if it can't access/create .emacs.d Date: Mon, 13 May 2013 07:33:48 +0800 Message-ID: References: <83vc8wk39s.fsf@gnu.org> <87txogefz3.fsf@turtle.gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf307f3822fd367004dc8dd445 X-Trace: ger.gmane.org 1368401693 2336 80.91.229.3 (12 May 2013 23:34:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 May 2013 23:34:53 +0000 (UTC) Cc: 13930@debbugs.gnu.org To: Sven Joachim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 13 01:34:51 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ubfmz-0006EH-Ub for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 May 2013 01:34:50 +0200 Original-Received: from localhost ([::1]:46606 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ubfmz-0005Cn-JO for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 May 2013 19:34:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ubfmu-0005Cc-JC for bug-gnu-emacs@gnu.org; Sun, 12 May 2013 19:34:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ubfmp-0001Ry-AX for bug-gnu-emacs@gnu.org; Sun, 12 May 2013 19:34:44 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33776) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ubfmp-0001Ru-2D for bug-gnu-emacs@gnu.org; Sun, 12 May 2013 19:34:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UbfnC-0008EN-6h for bug-gnu-emacs@gnu.org; Sun, 12 May 2013 19:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Prije Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 May 2013 23:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13930 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13930-submit@debbugs.gnu.org id=B13930.136840165831517 (code B ref 13930); Sun, 12 May 2013 23:35:02 +0000 Original-Received: (at 13930) by debbugs.gnu.org; 12 May 2013 23:34:18 +0000 Original-Received: from localhost ([127.0.0.1]:37885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UbfmT-0008CF-Ev for submit@debbugs.gnu.org; Sun, 12 May 2013 19:34:18 -0400 Original-Received: from mx5.janestreet.com ([38.105.200.229]:39827 helo=tot-dmz-mxout1.janestreet.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UbfmP-0008Bx-IT for 13930@debbugs.gnu.org; Sun, 12 May 2013 19:34:15 -0400 Original-Received: from tot-oib-smtp1.delacy.com ([172.27.22.15] helo=tot-smtp) by tot-dmz-mxout1.janestreet.com with esmtp (Exim 4.76) (envelope-from ) id 1Ubfm1-0006RF-3Z for 13930@debbugs.gnu.org; Sun, 12 May 2013 19:33:49 -0400 Original-Received: from tot-dmz-mxgoog1.delacy.com ([172.27.224.14] helo=mxgoog2.janestreet.com) by tot-smtp with esmtps (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1Ubfm1-0004IY-1O for 13930@debbugs.gnu.org; Sun, 12 May 2013 19:33:49 -0400 Original-Received: from mail-ve0-f173.google.com ([209.85.128.173]) by mxgoog2.janestreet.com with esmtp (Exim 4.76) (envelope-from ) id 1Ubfm0-0006nV-VC for 13930@debbugs.gnu.org; Sun, 12 May 2013 19:33:48 -0400 Original-Received: by mail-ve0-f173.google.com with SMTP id cy12so1872856veb.32 for <13930@debbugs.gnu.org>; Sun, 12 May 2013 16:33:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=google; h=x-received:mime-version:x-received:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=RQDrdrKVbZ1OcaqijnNW1OHx4Zo6586uEZwgsvMgehk=; b=ioRtx6vCbshjNpJ6IWOtSqGUGXUQaUgzVh/quwEhqoEpSQfjZl34BBCEAlRTI/KfqY AsurR5OFkZdUAnqHfMs8LaheysTAdlYvwYXzLPbkwwAM5yGKDo4X1OwUc2CruEV/xinD 6rQD5oCBNPQWBVwyYktsWlFTSqhcsFxTeEEUg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-received:in-reply-to:references:date :message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=RQDrdrKVbZ1OcaqijnNW1OHx4Zo6586uEZwgsvMgehk=; b=D9/7NW0GT2fSpvOntQHCTjjWN91tWETNf/IqVRuOYvolglHoDeuOUkzS7dtnik8V0p 8+R//PRuuxVipA5g5XHlpBc/tKq0HNP9IUCqHgI2icRqg/TXKzfewUgzeqmbKvkKSKcw lIavMqNVNMcoT1yqMMzymaEQwOoZfinImCdCim0CGe/miClxn1QZSpbRfdpJjnSP94PP AfJDHnSScJ++A3xsgLyIMkA5s8o8Haq7RJLuMv6jKI6qdYy9m8XKlTpeM6f9uFFTXJ0c pC7zKMub+mH1J4iIFU43b8sbMZL1ExFiYXMEUNHi1zKDMLnhRPV3mdS50Cr9nVJsYZ77 xt0g== X-Received: by 10.52.95.39 with SMTP id dh7mr14736354vdb.26.1368401628800; Sun, 12 May 2013 16:33:48 -0700 (PDT) X-Received: by 10.52.95.39 with SMTP id dh7mr14736351vdb.26.1368401628700; Sun, 12 May 2013 16:33:48 -0700 (PDT) Original-Received: by 10.221.9.143 with HTTP; Sun, 12 May 2013 16:33:48 -0700 (PDT) In-Reply-To: <87txogefz3.fsf@turtle.gmx.de> X-Gm-Message-State: ALoCoQlYhI9YUqUmlYoIZnepVH0IU1SoAv8CaaBL6kY5KQ1Ozlae8jKPZY/kJWhuCS9u/GsfcARXz6PE2Pwt3sD92Wc1SWTwV86l3nYHtAG8Bt8+2KW85igE9YJvJz6hvvGy5UCZvihyCJaC7sU/6+ZCNpOIW0Ug0g== X-Sender-Copy: hkg-copy X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:74195 Archived-At: --20cf307f3822fd367004dc8dd445 Content-Type: text/plain; charset=ISO-8859-1 Hi, just checking what the status of this bug is? Thanks. On Wed, Mar 13, 2013 at 12:32 AM, Sven Joachim wrote: > On 2013-03-12 17:10 +0100, Eli Zaretskii wrote: > > >> Date: Tue, 12 Mar 2013 11:52:08 +0800 > >> From: Robert Prije > >> Cc: 13930@debbugs.gnu.org > >> > >> It does exactly the same thing with --debug-init (says "creating > directory: > >> permission denied...") and supplies no further information. > > FWIW, this can be reproduced by creating ~/.emacs.d as a file rather > than a directory: > > touch /tmp/.emacs.d > HOME=/tmp emacs --no-init-file > > Than the error is "File exists: /tmp/.emacs.d/". > > > How about running it under GDB with a breakpoint on report_file_error > > and on xsignal? If you start GDB from the src directory of the Emacs > > sources, the .gdbinit file there defines a command xbacktrace which > > will produce a Lisp-level backtrace in addition to the C-level > > backtrace produced by the "bt" command of GDB. > > Done that and found out that locate-user-emacs-file tries to create the > directory: > > ,---- > | (gdb) xbacktrace > | "make-directory-internal" (0xffffca98) > | "make-directory" (0xffffcc1c) > | "locate-user-emacs-file" (0xffffcd98) > | 0x82d3208 PVEC_COMPILED > | "funcall" (0xffffcf10) > | "eval" (0xffffd080) > | "custom-reevaluate-setting" (0xffffd1fc) > | "mapc" (0xffffd308) > | "command-line" (0xffffd4bc) > | "normal-top-level" (0xffffd5d0) > | (gdb) > `---- > > Cheers, > Sven > --20cf307f3822fd367004dc8dd445 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi, just checking what the status of this bug is?

=
Thanks.


On Wed, Mar 13, 2013 at 12:32 AM, Sven Joachim <svenj= oac@gmx.de> wrote:
On 2013-03-12 17:10 +0100,= Eli Zaretskii wrote:

>> Date: Tue, 12 Mar 2013 11:52:08 +0800
>> From: Robert Prije <rp= rije@janestreet.com>
>> Cc: 13930@debbugs.gnu.org=
>>
>> It does exactly the same thing with --debug-init (says "creat= ing directory:
>> permission denied...") and supplies no further information.
FWIW, this can be reproduced by creating ~/.emacs.d as a file rather<= br> than a directory:

touch /tmp/.emacs.d
HOME=3D/tmp emacs --no-init-file

Than the error is "File exists: /tmp/.emacs.d/".

> How about running it under GDB with a breakpoint on report_file_error<= br> > and on xsignal? =A0If you start GDB from the src directory of the Emac= s
> sources, the .gdbinit file there defines a command xbacktrace which > will produce a Lisp-level backtrace in addition to the C-level
> backtrace produced by the "bt" command of GDB.

Done that and found out that locate-user-emacs-file tries to create t= he
directory:

,----
| (gdb) xbacktrace
| "make-directory-internal" (0xffffca98)
| "make-directory" (0xffffcc1c)
| "locate-user-emacs-file" (0xffffcd98)
| 0x82d3208 PVEC_COMPILED
| "funcall" (0xffffcf10)
| "eval" (0xffffd080)
| "custom-reevaluate-setting" (0xffffd1fc)
| "mapc" (0xffffd308)
| "command-line" (0xffffd4bc)
| "normal-top-level" (0xffffd5d0)
| (gdb)
`----

Cheers,
=A0 =A0 =A0 =A0Sven

--20cf307f3822fd367004dc8dd445--