unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-pretest-bug@gnu.org, emacs-devel@gnu.org
Subject: Re: old bootstrap error emerges again
Date: Sat, 25 Mar 2006 19:38:02 +0200	[thread overview]
Message-ID: <ur74qctmt.fsf@gnu.org> (raw)
In-Reply-To: <uk6aildtm.fsf@comcast.net> (message from Dieter Deyke on Sat, 25 Mar 2006 08:54:45 -0700)

> From: Dieter Deyke <deyke@comcast.net>
> Cc: emacs-pretest-bug@gnu.org, emacs-devel@gnu.org
> Date: Sat, 25 Mar 2006 08:54:45 -0700
> 
> The strange thing is that the error vanished yesterday on my work PC,
> but using the same tools I still get it on my home PC:

Do you have the same sources (i.e. the same CVS check-out) on both of
these machines?

> Starting program: C:\Users\deyke\emacs-build\work\lisp/../bin/my-emacs.exe -batc
> h --no-init-file --no-site-file --multibyte -f batch-byte-compile url/vc-dav.el
> 
> Breakpoint 3, get_doc_string (filepos=-2581128, unibyte=0, definition=0)
>     at doc.c:196
> 196             error ("Cannot open doc string file \"%s\"", name);
> (gdb) up 1
> #1  0x0110da05 in Fdocumentation (function=27819993, raw=27674673) at doc.c:456
> 456           tem = get_doc_string (doc, 0, 0);
> (gdb) print function
> $1 = 27819993
> (gdb) xtype
> Lisp_Symbol
> (gdb) xsymbol
> $2 = (struct Lisp_Symbol *) 0x1a87fd8
> "file-exists-p"
> (gdb)

Thanks.  Now please repeat this again, and this time put a breakpoint
in Fdocumentation; when it breaks, verify that the first argument is
indeed file-exists-p, and then step through the code until it calls
get_doc_string and tell me what you saw.  When I do that on my system,
what I see is below.  As you see, Fdocumentation returns nil without
ever calling get_doc_string.  Can you find out what is different on
your machine, and why?

> As for your last question, I'm not using MSYS. My setup includes:
> 
> english XP Pro SP2
> current cygwin
> MinGW-3.1.0-1 in PATH before cygwin

Okay, so perhaps Cygwin has something to do with this.  Hopefully, we
will understand that when we find the reason for the different
behavior.

Here's a transcript of the GDB session on my machine:

D:\gnu\test\emacs\lisp>gdb ../bin/bootstrap-emacs.exe
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-mingw32"...
(gdb) br Fdocumentation
Breakpoint 1 at 0x10fc4e0: file doc.c, line 378.
(gdb) source ../src/.gdbinit
Environment variable "DISPLAY" not defined.
Environment variable "TERM" not defined.
Breakpoint 2 at 0x1133856: file w32fns.c, line 8965.
Breakpoint 3 at 0x109513b: file sysdep.c, line 1395.
(gdb) del 2 3
(gdb) r -batch  --no-init-file --no-site-file --multibyte -l loaddefs.el -f batc
h-byte-compile url/vc-dav.el
Starting program: D:\gnu\test\emacs\lisp/../bin/bootstrap-emacs.exe -batch  --no
-init-file --no-site-file --multibyte -l loaddefs.el -f batch-byte-compile url/v
c-dav.el
Loading subst-ksc...
Loading subst-gb2312...
Loading subst-big5...
Loading subst-jis...

Breakpoint 1, Fdocumentation (function=44196825, raw=44054577) at doc.c:378
378       int try_reload = 1;
(gdb) p function
$1 = 44196825
(gdb) xtype
Lisp_Symbol
(gdb) xsymbol
$2 = (struct Lisp_Symbol *) 0x2a263d8
"file-exists-p"
(gdb) n
374     {
(gdb) n
384       if (SYMBOLP (function)
(gdb)
382       doc = Qnil;
(gdb)
384       if (SYMBOLP (function)
(gdb)
382       doc = Qnil;
(gdb)
384       if (SYMBOLP (function)
(gdb)
389       fun = Findirect_function (function, Qnil);
(gdb)
390       if (SUBRP (fun))
(gdb)
392           if (XSUBR (fun)->doc == 0)
(gdb)
409             return Qnil;
(gdb)
477     }
(gdb)

  reply	other threads:[~2006-03-25 17:38 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-17 16:35 old bootstrap error emerges again Zhang Wei
2006-03-18 11:09 ` Eli Zaretskii
2006-03-18 11:59   ` Zhang Wei
2006-03-18 12:55     ` Herbert Euler
2006-03-18 15:49       ` Eli Zaretskii
2006-03-19  1:59         ` Herbert Euler
2006-03-19  4:27           ` Eli Zaretskii
2006-03-18 15:35     ` Eli Zaretskii
2006-03-18 16:22       ` Dieter Deyke
2006-03-18 17:54         ` Eli Zaretskii
2006-03-18 19:55           ` Dieter Deyke
2006-03-18 21:24             ` Jason Rumney
2006-03-18 21:45               ` Dieter Deyke
2006-03-18 22:55             ` Eli Zaretskii
2006-03-19  0:59               ` Dieter Deyke
2006-03-19  4:37                 ` Eli Zaretskii
2006-03-19 14:44                   ` Dieter Deyke
2006-03-19 19:14                     ` Eli Zaretskii
2006-03-19 20:56                       ` Dieter Deyke
2006-03-19 21:19                       ` Dieter Deyke
2006-03-25 13:57                         ` Eli Zaretskii
2006-03-25 15:54                           ` Dieter Deyke
2006-03-25 17:38                             ` Eli Zaretskii [this message]
2006-03-25 18:07                               ` Dieter Deyke
2006-03-25 19:58                                 ` Jason Rumney
2006-03-25 20:39                                   ` Andreas Schwab
2006-03-25 22:06                                   ` Eli Zaretskii
2006-03-25 22:38                                     ` Dieter Deyke
2006-03-26 16:52                                     ` Dieter Deyke
2006-03-26 20:14                                       ` Eli Zaretskii
2006-03-18 17:02       ` Zhang Wei
2006-03-18 18:01         ` Eli Zaretskii
2006-03-20 22:41         ` Jason Rumney
2006-03-27 19:43           ` Eli Zaretskii

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=ur74qctmt.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=emacs-pretest-bug@gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).