GNU bug report logs - #14250
file locking fails if the hostname contains an @ character

Previous Next

Package: emacs;

Reported by: "Elrod, David" <elrodd <at> sharplabs.com>

Date: Tue, 23 Apr 2013 20:07:01 UTC

Severity: minor

Found in version 23.1

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.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 14250 in the body.
You can then email your comments to 14250 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#14250; Package emacs. (Tue, 23 Apr 2013 20:07:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Elrod, David" <elrodd <at> sharplabs.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 23 Apr 2013 20:07:02 GMT) Full text and rfc822 format available.

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

From: "Elrod, David" <elrodd <at> sharplabs.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Cc: "Elrod, David" <elrodd <at> sharplabs.com>
Subject: 23.1; Files locked by myself
Date: Tue, 23 Apr 2013 19:55:26 +0000
[Message part 1 (text/plain, inline)]
--text follows this line--

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 bug-gnu-emacs <at> gnu.org mailing list,
and to the gnu.emacs.bug news group.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

Whenever I open a file make a change and then attempt to save
the file I am told that the file is opened by myself.
Whether I choose to Steal the file or Proceed, EVERY time
I do a save (which I do every second or two when I'm writing
code) I get the same prompt that tells me the file is locked
by another user - myself.

This seems to happen no matter what file I open. For example,
when I went to save this email I got the message:
...e/elrodd/emacs_bug.txt locked by elrodd <at> elrod... (pid 32296) (s, q,
p, ?)?

My home directory is "/home/elrodd".
My loggin is "elrodd".
My computer is "elroddDesk"

I only have one instance of emacs running.

I am running on CentOS 6.4(final).
I see the emacs version information below.

As you can see in the recent messages section below, I have to
repeat the response for every save.

I don't know what else to check, but this sure is aggravating!

David Elrod


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.1/etc/DEBUG for instructions.


In GNU Emacs 23.1.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.18.9)
 of 2012-03-01 on c6b18n3.bsys.dev.centos.org
Windowing system distributor `CentOS', version 11.0.11300000
configured using `configure  '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-dbus' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm' '--with-x-toolkit=gtk' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'target_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic''

Important settings:
  value of $LC_ALL: nil
  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: en_US.utf8
  value of $XMODIFIERS: @im=none
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: nXML

Minor modes in effect:
  show-paren-mode: t
  global-auto-complete-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-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:
C-h C-h C-h C-h C-h C-h C-h o p <backspace> <backspace>
w e b <tab> <tab> p a g e N <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> / P
a g e N <tab> <tab> o v <tab> <return> C-s w e a t
h e r C-s C-s C-s C-s C-s C-s C-s C-s C-a C-p <return>
s < ! - - C-n C-n C-n C-n C-n C-n C-n C-e <return>
- - > C-x C-s s C-x b <return> 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-n C-n C-n C-n C-n C-n C-a C-l C-n
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-x b <return>
ESC < C-s s i t e _ g r a p h C-s C-x b <return> C-x
b <return> ESC < C-s w e a t h e r U s a g e C-p C-s
w e a t h e r D e t a i l s L i n k C-s C-s C-s C-s
C-p C-a C-SPC C-n C-n C-n C-w s C-s C-s C-a C-k C-k
C-s C-s C-p C-p C-p C-p C-a C-SPC C-n C-n C-n C-n C-n
C-n C-n C-n C-n C-n C-w C-s C-g C-x C-s s C-x b <return>
C-x C-x C-g 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-SPC C-n C-n
C-w ? p C-x C-s p 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-SPC C-n C-n C-n C-w s C-x
C-s s SPC s ESC x r e p o r t - e m a c s - b u g
<return>

Recent messages:
...v001/pageNetConfig.xml locked by elrodd <at> elrodd... (pid 32296): (s, q, p, ?)?  [2 times]
Saving file /home/elrodd/src/.../pageNetConfig.xml...
...v001/pageNetConfig.xml locked by elrodd <at> elrodd... (pid 32296): (s, q, p, ?)?
Wrote /home/elrodd/src/.../pageNetConfig.xml
Mark set
...v001/pageNetConfig.xml locked by elrodd <at> elrodd... (pid 32296): (s, q, p, ?)?
Saving file /home/elrodd/src/.../pageNetConfig.xml...
...v001/pageNetConfig.xml locked by elrodd <at> elrodd... (pid 32296): (s, q, p, ?)?
Wrote /home/elrodd/src/.../pageNetConfig.xml
...v001/pageNetConfig.xml locked by elrodd <at> elrodd... (pid 32296): (s, q, p, ?)?

[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14250; Package emacs. (Tue, 23 Apr 2013 20:29:01 GMT) Full text and rfc822 format available.

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

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: "Elrod\, David" <elrodd <at> sharplabs.com>
Cc: 14250 <at> debbugs.gnu.org
Subject: Re: bug#14250: 23.1; Files locked by myself
Date: Tue, 23 Apr 2013 22:23:15 +0200
What does (file-locked-p (buffer-file-name)) return when you are inside
a modified buffer visiting a file?

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14250; Package emacs. (Tue, 30 Apr 2013 19:18:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: "Elrod, David" <elrodd <at> sharplabs.com>,  14250 <at> debbugs.gnu.org
Subject: Re: bug#14250: 23.1; Files locked by myself
Date: Tue, 30 Apr 2013 15:16:57 -0400
Andreas Schwab wrote:

> What does (file-locked-p (buffer-file-name)) return when you are inside
> a modified buffer visiting a file?

We can't help you unless you provide more information.


Some other questions:

Does this issue happen with _every_ file, or just some?
Eg does it happen with:

rm -f /tmp/FOO
touch /tmp/FOO
emacs -Q /tmp/FOO

?


> ...v001/pageNetConfig.xml locked by elrodd <at> elrodd... (pid 32296):

What kind of file system does this file live on? What does

df /path/to/pageNetConfig.xml

print?

Before you start Emacs, what does

ls -l /path/to/directory/pageNetConfig.xml
ls -ld /path/to/directory/.*

print for the directory containing pageNetConfig.xml?

What does it print after you open the file in Emacs and make a change,
before you save?




bug closed, send any further explanations to 14250 <at> debbugs.gnu.org and "Elrod, David" <elrodd <at> sharplabs.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 19 Jun 2013 17:30:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14250; Package emacs. (Wed, 19 Jun 2013 21:58:03 GMT) Full text and rfc822 format available.

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

From: "Elrod, David" <elrodd <at> sharplabs.com>
To: "14250 <at> debbugs.gnu.org" <14250 <at> debbugs.gnu.org>
Cc: "rgm <at> gnu.org" <rgm <at> gnu.org>,
 "schwab <at> linux-m68k.org" <schwab <at> linux-m68k.org>
Subject: FW: bug#14250: 23.1; Files locked by myself
Date: Wed, 19 Jun 2013 21:57:32 +0000
[Message part 1 (text/plain, inline)]
Sorry to see this closed with no resolution....

I responded to email from Andreas (see copy below) three hours after 
it arrived at our mail server.

I never saw the followup email from Glen.

To answer Glen's questions, I'm using ext3 as a file system.
It works wherever I've tried to create a file.

I get the same error if I do:

    rm -f /tmp/FOO
    touch /tmp/FOO
    emacs -Q /tmp/FOO

Each time I try to save It shows:
    /tmp/FOO locked by elrodd <at> elrodd... (pid 21418): (s, q, p, ?)? 
or similar in the status bar.

Both before and after editing the file, "ls -l /tmp/FOO" shows:
  -rw-rw-r--. 1 elrodd elrodd 5 Jun 19 14:55 /tmp/FOO

I noted that emacs was protected:
  -rwxr-xr-t. 1 0 0 11143104 Mar  1  2012 /usr/bin/emacs-23.1
If I remove the sticky bit (t), it behaves the same.


________________________________________
From: Elrod, David
Sent: Tuesday, April 23, 2013 16:22
To: Andreas Schwab
Subject: RE: bug#14250: 23.1; Files locked by myself

Thanks for the quick reply:

When I do:  M-:
the mini-buffer responds with "Eval: "

I then entered:
    (file-locked-p(overview.html))
which was the name of the file I was editing, the name of the buffer
from the status bar, and the name I see when I list buffers, I get:

Debugger entered--Lisp error: (void-function overview\.html)
  (overview\.html)
  (file-locked-p (overview\.html))
  eval((file-locked-p (overview\.html)))
  eval-expression((file-locked-p (overview\.html)) nil)
  call-interactively(eval-expression nil nil)

The status bar starts out with -U:**-  which seems to indicate I changed
the buffer, and when I do a save I am told the file is locked.

Trying:
    (file-locked-p("overview.html))
returns:

Debugger entered--Lisp error: (invalid-function "overview.html")
  ("overview.html")
  (file-locked-p ("overview.html"))
  eval((file-locked-p ("overview.html")))
  eval-expression((file-locked-p ("overview.html")) nil)
  call-interactively(eval-expression nil nil)

Note also that when I save the file I get prompted that it is locked.
The next time I try to change the file I'm also prompted that it is
locked and have to steal or proceed to be able to edit the file again.

Thinking it might be related to nXML mode, I tried a text file (Text Fill mode)
and got more added to the debug stack which is attached (because it has
binary byte code values).

Thank you for your help!

David




________________________________________
From: Andreas Schwab [schwab <at> linux-m68k.org]
Sent: Tuesday, April 23, 2013 13:23
To: Elrod, David
Cc: 14250 <at> debbugs.gnu.org
Subject: Re: bug#14250: 23.1; Files locked by myself

What does (file-locked-p (buffer-file-name)) return when you are inside
a modified buffer visiting a file?

Andreas.

--
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
[t (application/octet-stream, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14250; Package emacs. (Wed, 19 Jun 2013 22:30:03 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: "Elrod\, David" <elrodd <at> sharplabs.com>
Cc: "schwab <at> linux-m68k.org" <schwab <at> linux-m68k.org>,
 "14250 <at> debbugs.gnu.org" <14250 <at> debbugs.gnu.org>
Subject: Re: FW: bug#14250: 23.1; Files locked by myself
Date: Wed, 19 Jun 2013 18:29:00 -0400
"Elrod, David" wrote:

> Sorry to see this closed with no resolution....

From experience, it's a great way to get people to reply.
Reopened.

> I responded to email from Andreas (see copy below) three hours after 
> it arrived at our mail server.

Please use reply-to-all on bug reports.

> I then entered:
>     (file-locked-p(overview.html))
> which was the name of the file I was editing, the name of the buffer
> from the status bar, and the name I see when I list buffers, I get:
>
> Debugger entered--Lisp error: (void-function overview\.html)

He said to do:

(file-locked-p (buffer-file-name))

Literally type that.


Nothing about this makes any sense so far I am afraid.




Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 19 Jun 2013 22:30:05 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14250; Package emacs. (Wed, 19 Jun 2013 22:37:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: "Elrod\, David" <elrodd <at> sharplabs.com>
Cc: 14250 <at> debbugs.gnu.org
Subject: Re: bug#14250: 23.1; Files locked by myself
Date: Wed, 19 Jun 2013 18:36:54 -0400
Frankly, I suggest compiling your own Emacs 24.3 from source.
If that works fine then we don't need to spend any more time on this.
23.1 is quite old.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14250; Package emacs. (Wed, 19 Jun 2013 22:40:01 GMT) Full text and rfc822 format available.

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

From: "Elrod, David" <elrodd <at> sharplabs.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: "schwab <at> linux-m68k.org" <schwab <at> linux-m68k.org>,
 "14250 <at> debbugs.gnu.org" <14250 <at> debbugs.gnu.org>
Subject: RE: FW: bug#14250: 23.1; Files locked by myself
Date: Wed, 19 Jun 2013 22:39:17 +0000
My fault for not doing "reply all"...

Typing:
    ^Mx(file-locked-p
when I type the space (' ') after the p, Emacs immediately inserts:
  [No match]
so I see:
  (file-locked-p [No match]

Leaving out the space and typing:
  (file-locked-p(buffer-file-name))
is OK, until I press the Enter key and then Emacs appends:
  (file-locked-p(buffer-file-name)) [No match]

If I put:
  (file-locked-p (buffer-file-name))
by itself in a file, save it, then do
 ^Mxeval-current-buffer

not seems to happen.

David

  
________________________________________
From: Glenn Morris [rgm <at> gnu.org]
Sent: Wednesday, June 19, 2013 15:29
To: Elrod, David
Cc: 14250 <at> debbugs.gnu.org; schwab <at> linux-m68k.org
Subject: Re: FW: bug#14250: 23.1; Files locked by myself

"Elrod, David" wrote:

> Sorry to see this closed with no resolution....

From experience, it's a great way to get people to reply.
Reopened.

> I responded to email from Andreas (see copy below) three hours after
> it arrived at our mail server.

Please use reply-to-all on bug reports.

> I then entered:
>     (file-locked-p(overview.html))
> which was the name of the file I was editing, the name of the buffer
> from the status bar, and the name I see when I list buffers, I get:
>
> Debugger entered--Lisp error: (void-function overview\.html)

He said to do:

(file-locked-p (buffer-file-name))

Literally type that.


Nothing about this makes any sense so far I am afraid.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14250; Package emacs. (Wed, 19 Jun 2013 22:50:01 GMT) Full text and rfc822 format available.

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

From: "Elrod, David" <elrodd <at> sharplabs.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: "14250 <at> debbugs.gnu.org" <14250 <at> debbugs.gnu.org>
Subject: RE: bug#14250: 23.1; Files locked by myself
Date: Wed, 19 Jun 2013 22:49:31 +0000
23.1 is the latest that comes with Centos... 
Building emacs is non-trivial - I'm missing all kinds of libraries...

However, if I'm running an old version, and especially if I'm the only person
having this problem, then by all means close the bug.

I'm considering moving off of Centos for development work anyway.
I don't have this problem with Emacs on other Linuxes.

Thanks!
David

________________________________________
From: Glenn Morris [rgm <at> gnu.org]
Sent: Wednesday, June 19, 2013 15:36
To: Elrod, David
Cc: 14250 <at> debbugs.gnu.org
Subject: Re: bug#14250: 23.1; Files locked by myself

Frankly, I suggest compiling your own Emacs 24.3 from source.
If that works fine then we don't need to spend any more time on this.
23.1 is quite old.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14250; Package emacs. (Wed, 19 Jun 2013 22:55:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: "Elrod\, David" <elrodd <at> sharplabs.com>
Cc: 14250 <at> debbugs.gnu.org
Subject: Re: bug#14250: 23.1; Files locked by myself
Date: Wed, 19 Jun 2013 18:53:58 -0400
"Elrod, David" wrote:

> My fault for not doing "reply all"...
>
> Typing:
>     ^Mx(file-locked-p

You said:

>  When I do:  M-:
>  the mini-buffer responds with "Eval: "
>
>  I then entered:
>     (file-locked-p(overview.html))

So oviously you know about M-:. Use:

  M-: (file-locked-p (buffer-file-name)) RET

(Though I have no idea what this is supposed to tell us.)


Also, what does:

M-: (system-name) RET

return?


>  Each time I try to save It shows:
>    /tmp/FOO locked by elrodd <at> elrodd... (pid 21418): (s, q, p, ?)? 
>  or similar in the status bar.

At this point, what do the following show:

ls -ld /tmp/.*
ps -p 21418    # replace with number from above
ps -u elrodd | grep emacs



But again, simply compiling your own Emacs 24.3 may be easier.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14250; Package emacs. (Wed, 19 Jun 2013 22:56:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: "Elrod\, David" <elrodd <at> sharplabs.com>
Cc: "14250 <at> debbugs.gnu.org" <14250 <at> debbugs.gnu.org>
Subject: Re: bug#14250: 23.1; Files locked by myself
Date: Wed, 19 Jun 2013 18:55:41 -0400
"Elrod, David" wrote:

> Building emacs is non-trivial - I'm missing all kinds of libraries...

  yum-builddep emacs

will take care of (most of) that.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14250; Package emacs. (Wed, 19 Jun 2013 23:33:01 GMT) Full text and rfc822 format available.

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

From: "Elrod, David" <elrodd <at> sharplabs.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: "14250 <at> debbugs.gnu.org" <14250 <at> debbugs.gnu.org>
Subject: RE: bug#14250: 23.1; Files locked by myself
Date: Wed, 19 Jun 2013 23:31:00 +0000
  M-: (file-locked-p (buffer-file-name))
returns
  "elrodd <at> elroddDesk"

  M-: (system-name)
returns
  "elroddDesk <at> enet.sharplabs.com"

  % ls -ld /tmp/.*
the interesting bit is:
  lrwxrwxrwx.  1 elrodd elrodd    53 Jun 19 16:23 /tmp/.#FOO -> elrodd <at> elroddDesk <at> enet.sharplabs.com.24745:1370987766

% ps -p 24745
  PID TTY          TIME CMD
24745 pts/1    00:00:01 emacs

% ps aux | head -1 ; ps aux | grep emacs
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
elrodd   24745  0.0  0.3 313904 29432 pts/1    S    15:59   0:01 emacs /tmp/FOO


I really appreciate your help!
David




________________________________________
From: Glenn Morris [rgm <at> gnu.org]
Sent: Wednesday, June 19, 2013 15:53
To: Elrod, David
Cc: 14250 <at> debbugs.gnu.org
Subject: Re: bug#14250: 23.1; Files locked by myself

"Elrod, David" wrote:

> My fault for not doing "reply all"...
>
> Typing:
>     ^Mx(file-locked-p

You said:

>  When I do:  M-:
>  the mini-buffer responds with "Eval: "
>
>  I then entered:
>     (file-locked-p(overview.html))

So oviously you know about M-:. Use:

  M-: (file-locked-p (buffer-file-name)) RET

(Though I have no idea what this is supposed to tell us.)


Also, what does:

M-: (system-name) RET

return?


>  Each time I try to save It shows:
>    /tmp/FOO locked by elrodd <at> elrodd... (pid 21418): (s, q, p, ?)?
>  or similar in the status bar.

At this point, what do the following show:

ls -ld /tmp/.*
ps -p 21418    # replace with number from above
ps -u elrodd | grep emacs



But again, simply compiling your own Emacs 24.3 may be easier.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14250; Package emacs. (Thu, 20 Jun 2013 00:41:02 GMT) Full text and rfc822 format available.

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

From: "Elrod, David" <elrodd <at> sharplabs.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: "14250 <at> debbugs.gnu.org" <14250 <at> debbugs.gnu.org>
Subject: RE: bug#14250: 23.1; Files locked by myself
Date: Thu, 20 Jun 2013 00:40:00 +0000
[Message part 1 (text/plain, inline)]
Sigh...

$ yum-builddep emacs
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
 * base: mirrors.syringanetworks.net
 * centosplus: mirrors.easynews.com
 * contrib: mirror.spro.net
 * epel: ftp.osuosl.org
 * epel-source: ftp.osuosl.org
 * epel-testing-source: ftp.osuosl.org
 * extras: centos.tcpdiag.net
 * kde: apt.kde-redhat.org
 * updates: mirror.web-ster.com
Checking for new repos for mirrors
Enabling epel-source repository
Enabling epel-testing-source repository
No source RPM found for 1:emacs-23.1-21.el6_2.3.x86_64
No uninstalled build requires
$

Doing:
  $ yum-builddep --nogpgcheck emacs-24.3-1.fu2013.src.rpm 
I learned that there is no python3-devel package for Centos (yet).

The snowball is getting bigger... :)

I ran "./configure --without-x", however the build ran into problems,
so I removed the whole build tree.  Un-tarred the source file:
  emacs-24.3.tar.gz
and then did the configure and build with script turned on, which
is attached.

Search for "Saving file /home/elrodd/src/Emacs/emacs-24.3/lisp/loaddefs.el..."
for where the build had the lock problem that started all of this.  Maybe this is
normal for the build???

At the end of the 'make' the build dies because ".../.#ZIRANMA.el"
is a symlink to a very suspicious looking file.  See the end of the
script.

Thank you so much for your help!
David


________________________________________
From: Glenn Morris [rgm <at> gnu.org]
Sent: Wednesday, June 19, 2013 15:55
To: Elrod, David
Cc: 14250 <at> debbugs.gnu.org
Subject: Re: bug#14250: 23.1; Files locked by myself

"Elrod, David" wrote:

> Building emacs is non-trivial - I'm missing all kinds of libraries...

  yum-builddep emacs

will take care of (most of) that.
[14250_script.out.gz (application/x-gzip, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14250; Package emacs. (Thu, 20 Jun 2013 06:48:01 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: "Elrod\, David" <elrodd <at> sharplabs.com>
Cc: "14250 <at> debbugs.gnu.org" <14250 <at> debbugs.gnu.org>
Subject: Re: bug#14250: 23.1; Files locked by myself
Date: Thu, 20 Jun 2013 02:47:32 -0400
"Elrod, David" wrote:

>   M-: (file-locked-p (buffer-file-name))
> returns
>   "elrodd <at> elroddDesk"
>
>   M-: (system-name)
> returns
>   "elroddDesk <at> enet.sharplabs.com"

Thanks!
The problem is the "@" in your system-name.
Can you change it to something without an "@", eg
  elroddDesk.enet.sharplabs.com
?

I don't think an "@" is valid in a hostname, is it?

filelock.c:current_lock_owner assumes that the username is "everything
before the last @"; ie there may in theory be "@" in the username, but
not in the hostname.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14250; Package emacs. (Thu, 20 Jun 2013 15:56:01 GMT) Full text and rfc822 format available.

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

From: "Elrod, David" <elrodd <at> sharplabs.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: "14250 <at> debbugs.gnu.org" <14250 <at> debbugs.gnu.org>
Subject: RE: bug#14250: 23.1; Files locked by myself
Date: Thu, 20 Jun 2013 15:54:53 +0000
Problem solved!

Thanks Glenn!  I have no idea how the '@' got there in my host name.
That isn't common in host names here, or any other place I've worked.

However, I'm so used to seeing email addresses, I never noticed it.

Thank you,
David

________________________________________
From: Glenn Morris [rgm <at> gnu.org]
Sent: Wednesday, June 19, 2013 23:47
To: Elrod, David
Cc: 14250 <at> debbugs.gnu.org
Subject: Re: bug#14250: 23.1; Files locked by myself

"Elrod, David" wrote:

>   M-: (file-locked-p (buffer-file-name))
> returns
>   "elrodd <at> elroddDesk"
>
>   M-: (system-name)
> returns
>   "elroddDesk <at> enet.sharplabs.com"

Thanks!
The problem is the "@" in your system-name.
Can you change it to something without an "@", eg
  elroddDesk.enet.sharplabs.com
?

I don't think an "@" is valid in a hostname, is it?

filelock.c:current_lock_owner assumes that the username is "everything
before the last @"; ie there may in theory be "@" in the username, but
not in the hostname.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14250; Package emacs. (Thu, 20 Jun 2013 16:32:01 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: 14250 <at> debbugs.gnu.org
Subject: Re: bug#14250: 23.1; Files locked by myself
Date: Thu, 20 Jun 2013 12:31:52 -0400
I'm surprised that one can even set a hostname to something with an "@";
but if the system otherwise seems to work fine, Emacs should not fail in
this cryptic way. Eg it could escape any "@" characters in the hostname
when making the lockfile name.




Changed bug title to 'file locking fails if the hostname contains an @ character' from '23.1; Files locked by myself' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 20 Jun 2013 16:33:01 GMT) Full text and rfc822 format available.

Removed tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 06 Feb 2014 00:02:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14250; Package emacs. (Mon, 25 Apr 2022 08:48:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 14250 <at> debbugs.gnu.org
Subject: Re: bug#14250: file locking fails if the hostname contains an @
 character
Date: Mon, 25 Apr 2022 10:47:45 +0200
Glenn Morris <rgm <at> gnu.org> writes:

> I'm surprised that one can even set a hostname to something with an "@";
> but if the system otherwise seems to work fine, Emacs should not fail in
> this cryptic way. Eg it could escape any "@" characters in the hostname
> when making the lockfile name.

I've now fixed this in Emacs 29 (but I'm not sure whether it's really
worth it -- this is one of those "don't do that, then" cases, so if
somebody wants to revert the patch and just leave this failing, that's
fine with me).

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug marked as fixed in version 29.1, send any further explanations to 14250 <at> debbugs.gnu.org and "Elrod, David" <elrodd <at> sharplabs.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 25 Apr 2022 08:48:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 23 May 2022 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 363 days ago.

Previous Next


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