all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bertrand Brelier <bertrand.brelier@gmail.com>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: 19607@debbugs.gnu.org
Subject: bug#19607: issue with Emacs 24.4.1 but not with 24.3.1 : changed on disk; really edit the buffer
Date: Fri, 23 Jan 2015 08:15:48 -0500	[thread overview]
Message-ID: <CADF9JrjjxZkF5GOrDZZVs5kW674LVaJkCSBvbkjUwWX+TBa9YQ@mail.gmail.com> (raw)
In-Reply-To: <54C17CDD.7090507@cs.ucla.edu>


[-- Attachment #1.1: Type: text/plain, Size: 2046 bytes --]

Hello Paul,

Sorry, I have not used gdb for a while a forgot about asking the debugger
to continue.

I followed your request and you can see the log file attached to this email.

I modified the file 2 times : the first time, no issue I can save the file
but when I try to modify it a second time, emacs tells me :changed on disk;
really edit the buffer .....

Thanks for your help,

Cheers,

Bertrand

On Thu, Jan 22, 2015 at 5:42 PM, Paul Eggert <eggert@cs.ucla.edu> wrote:

> On 01/22/2015 01:26 PM, Bertrand Brelier wrote:
>
>> I tried with r- Q but same issue, emacs freezes when I start editing the
>> file (I can open it but not modify its content)
>>
> Ah, sorry, I wasn't explicit enough.  How about this.  When Emacs freezes,
> print the requested values in the debugger and then continue with the "c"
> command.  I just now did that, with the following results for me:
>
> $ gdb ./emacs
> (gdb) source .gdbinit
> (gdb) b fileio.c:5338
> (gdb) r -Q
> [In emacs, type C-x C-f abcdef RET, then type "x".]
> Breakpoint 3, Fverify_visited_file_modtime (buf=27596677) at fileio.c:5338
> 5338      if (timespec_cmp (mtime, b->modtime) == 0
> (gdb) p mtime
> $1 = {
>   tv_sec = 1421966150,
>   tv_nsec = 791881570
> }
> (gdb) p b->modtime
> $2 = {
>   tv_sec = 1421966150,
>   tv_nsec = 791881570
> }
> (gdb) c
> Continuing.
> [In emacs, type C-x C-s.]
>
> Breakpoint 3, Fverify_visited_file_modtime (buf=27596677) at fileio.c:5338
> 5338      if (timespec_cmp (mtime, b->modtime) == 0
> (gdb) p mtime
> $3 = {
>   tv_sec = 1421966150,
>   tv_nsec = 791881570
> }
> (gdb) p b->modtime
> $4 = {
>   tv_sec = 1421966150,
>   tv_nsec = 791881570
> }
> (gdb) c
> Continuing.
>
> Breakpoint 3, Fverify_visited_file_modtime (buf=27596677) at fileio.c:5338
> 5338      if (timespec_cmp (mtime, b->modtime) == 0
> (gdb) p mtime
> $5 = {
>   tv_sec = 0,
>   tv_nsec = -1
> }
> (gdb) p b->modtime
> $6 = {
>   tv_sec = 1421966150,
>   tv_nsec = 791881570
> }
> (gdb) c
> Continuing.
> [At this point, Emacs says "Wrote /home/eggert/decrypted/abcdef.]
>

[-- Attachment #1.2: Type: text/html, Size: 2938 bytes --]

[-- Attachment #2: log --]
[-- Type: application/octet-stream, Size: 4351 bytes --]

gdb ./emacs
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./emacs...done.
warning: File "/home/bertrand/Emacs/emacs-24.4/src/.gdbinit" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
        add-auto-load-safe-path /home/bertrand/Emacs/emacs-24.4/src/.gdbinit
line to your configuration file "/home/bertrand/.gdbinit".
To completely disable this security protection add
        set auto-load safe-path /
line to your configuration file "/home/bertrand/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
        info "(gdb)Auto-loading safe path"
(gdb) source .gdbinit
SIGINT is used by the debugger.
Are you sure you want to change it? (y or n) [answered Y; input not from terminal]
DISPLAY = localhost:10.0
TERM = xterm
Breakpoint 1 at 0x5432ba: file emacs.c, line 351.
Temporary breakpoint 2 at 0x56507f: file sysdep.c, line 850.
(gdb) b fileio.c:5338
Breakpoint 3 at 0x58e027: file fileio.c, line 5338.
(gdb) r -Q
Starting program: /home/bertrand/Emacs/emacs-24.4/src/emacs -Q
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffea11c700 (LWP 10714)]
[New Thread 0x7fffe928d700 (LWP 10716)]
[New Thread 0x7fffe8a8c700 (LWP 10718)]
[New Thread 0x7fffd8230700 (LWP 10719)]
[New Thread 0x7fffd7a2f700 (LWP 10720)]
[Thread 0x7fffd8230700 (LWP 10719) exited]
[New Thread 0x7fffd8230700 (LWP 10721)]
[Thread 0x7fffd7a2f700 (LWP 10720) exited]
[New Thread 0x7fffd7a2f700 (LWP 10722)]
[Thread 0x7fffd8230700 (LWP 10721) exited]

Breakpoint 3, Fverify_visited_file_modtime (buf=27021317) at fileio.c:5338
5338      if (timespec_cmp (mtime, b->modtime) == 0
(gdb) p mtime
$1 = {
  tv_sec = 1421845549, 
  tv_nsec = 345981000
}
(gdb) p b->modtime
$2 = {
  tv_sec = 1421845549, 
  tv_nsec = 345981000
}
(gdb) c
Continuing.
[Thread 0x7fffd7a2f700 (LWP 10722) exited]

Breakpoint 3, Fverify_visited_file_modtime (buf=27021317) at fileio.c:5338
5338      if (timespec_cmp (mtime, b->modtime) == 0
(gdb) p mtime
$3 = {
  tv_sec = 1421845549, 
  tv_nsec = 345981000
}
(gdb) p b->modtime
$4 = {
  tv_sec = 1421845549, 
  tv_nsec = 345981000
}
(gdb) c
Continuing.

Breakpoint 3, Fverify_visited_file_modtime (buf=27021317) at fileio.c:5338
5338      if (timespec_cmp (mtime, b->modtime) == 0
(gdb) p mtime
$5 = {
  tv_sec = 0, 
  tv_nsec = -1
}
(gdb) p b->modtime
$6 = {
  tv_sec = 1421845549, 
  tv_nsec = 345981000
}
(gdb) c
Continuing.

Breakpoint 3, Fverify_visited_file_modtime (buf=27021317) at fileio.c:5338
5338      if (timespec_cmp (mtime, b->modtime) == 0
(gdb) p mtime
$7 = {
  tv_sec = 1422018451, 
  tv_nsec = 132061000
}
(gdb) p b->modtime
$8 = {
  tv_sec = 1422018451, 
  tv_nsec = 40059000
}
(gdb) c
Continuing.

Breakpoint 3, Fverify_visited_file_modtime (buf=27021317) at fileio.c:5338
5338      if (timespec_cmp (mtime, b->modtime) == 0
(gdb) p mtime
$9 = {
  tv_sec = 1422018451, 
  tv_nsec = 132061000
}
(gdb) p b->modtime
$10 = {
  tv_sec = 1422018451, 
  tv_nsec = 40059000
}
(gdb) c
Continuing.

Breakpoint 3, Fverify_visited_file_modtime (buf=27021317) at fileio.c:5338
5338      if (timespec_cmp (mtime, b->modtime) == 0
(gdb) p mtime
$11 = {
  tv_sec = 0, 
  tv_nsec = -1
}
(gdb) p b->modtime
$12 = {
  tv_sec = 1422018451, 
  tv_nsec = 40059000
}
(gdb) c
Continuing.
[Thread 0x7fffe8a8c700 (LWP 10718) exited]
[Thread 0x7fffe928d700 (LWP 10716) exited]
[Thread 0x7fffea11c700 (LWP 10714) exited]
[Inferior 1 (process 10710) exited normally]
(gdb) quit

  reply	other threads:[~2015-01-23 13:15 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-15 13:23 bug#19607: issue with Emacs 24.4.1 but not with 24.3.1 : changed on disk; really edit the buffer Bertrand Brelier
2015-01-20  9:39 ` Paul Eggert
2015-01-20 13:19   ` Bertrand Brelier
2015-01-21  0:21     ` Paul Eggert
2015-01-21 13:12       ` Bertrand Brelier
2015-01-22  2:20         ` Paul Eggert
2015-01-22 14:16           ` Bertrand Brelier
2015-01-22 20:55             ` Paul Eggert
2015-01-22 21:26               ` Bertrand Brelier
2015-01-22 22:42                 ` Paul Eggert
2015-01-23 13:15                   ` Bertrand Brelier [this message]
2015-01-23 22:27                     ` Paul Eggert
2015-01-26 13:08                       ` Bertrand Brelier
2015-01-26 19:43                         ` Paul Eggert
2015-01-27 22:29                         ` Paul Eggert
2015-01-27 23:04                           ` Jakob Unterwurzacher
2015-01-28  4:56                             ` Paul Eggert
2015-03-23 18:58                               ` Glenn Morris
2015-03-24  0:13                                 ` Paul Eggert
2015-01-28 13:11                           ` Bertrand Brelier
2015-01-26 23:08 ` Jakob Unterwurzacher
2015-01-27 21:30 ` bug#19607: issue with Emacs 24.4.1 but not with 24.3.1 : changed on disk; Jakob Unterwurzacher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADF9JrjjxZkF5GOrDZZVs5kW674LVaJkCSBvbkjUwWX+TBa9YQ@mail.gmail.com \
    --to=bertrand.brelier@gmail.com \
    --cc=19607@debbugs.gnu.org \
    --cc=eggert@cs.ucla.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.