GNU bug report logs - #18591
24.4.50; bootstrap-emacs crashes when trying to bytecompile tibetan.el

Previous Next

Package: emacs;

Reported by: Vincent Belaïche <vincent.b.1 <at> hotmail.fr>

Date: Tue, 30 Sep 2014 15:15:01 UTC

Severity: normal

Found in version 24.4.50

Done: Eli Zaretskii <eliz <at> gnu.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 18591 in the body.
You can then email your comments to 18591 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#18591; Package emacs. (Tue, 30 Sep 2014 15:15:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Vincent Belaïche <vincent.b.1 <at> hotmail.fr> :
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 30 Sep 2014 15:15:03 GMT) Full text and rfc822 format available.

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

From: Vincent Belaïche <vincent.b.1 <at> hotmail.fr> 
To: bug-gnu-emacs <at> gnu.org
Cc: Vincent Belaïche <vincent.b.1 <at> hotmail.fr>
Subject: 24.4.50; bootstrap-emacs crashes when trying to bytecompile tibetan.el
Date: Tue, 30 Sep 2014 17:11:57 +0200
[Message part 1 (text/plain, inline)]
Hello,

I am trying to build the latest (bzr update this morning) Emacs and it
fails when compiling language/tibetan.el with src/bootstrap-emacs.exe,
and what happens is a CRASH.

Attached is the log of my build session.

[bug_bytecompile_tibetan_crash.log (text/plain, attachment)]
[Message part 3 (text/plain, inline)]
After the stop of the build, I tried to do the same compilation on
command line, and I saw that it crashes. Then I did with under gdb to
have the bt full log.

VBR,
  Vincent.

In GNU Emacs 24.4.50.1 (i686-pc-mingw32)
 of 2014-09-23 on CHOUNEK
Repository revision: 117919 monnier <at> iro.umontreal.ca-20140922182202-1xk0sig32d1av0lw
Windowing system distributor `Microsoft Corp.', version 5.1.2600
Configured using:
 `configure --prefix=c:/Programme/GNU/Emacs --without-jpeg
 --without-tiff --without-gif --without-png 'CPPFLAGS= -DFOR_MSW=1 -I
 C:/Programme/GNU/installation/emacs-install/libXpm-3.5.8/include -I
 C:/Programme/GNU/installation/emacs-install/libXpm-3.5.8/src -L
 c:/Programme/GNU/installation/emacs-install/libXpm-3.5.8/src'
 CPP=/mingw/bin/cpp.exe
 PKG_CONFIG_PATH=/mingw/lib/pkgconfig:/usr/local/lib/pkgconfig'

Configured features:
XPM SOUND NOTIFY ACL ZLIB

Important settings:
  value of $EMACSPATH: c:\Programme\NGNU\CVS;C:\Programme\GNU\GnuPG;c:\Programme\apache-ant-1.8.0\bin;c:\msys\1.0\bin;c:\msys\1.0\mingw\bin;
  value of $LANG: FRA
  locale-coding-system: cp1252

Major mode: Shell

Minor modes in effect:
  shell-dirtrack-mode: t
  recentf-mode: t
  mail-abbrevs-mode: t
  iswitchb-mode: t
  tooltip-mode: t
  electric-indent-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
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent input:
r e SPC s e c <M-backspace> <M-backspace> <M-backspace> 
j ' a i SPC r é u s s i SPC à SPC m e SPC l i b r <backspace> 
é r é e <backspace> <backspace> e r , SPC e t SPC c 
' e s t SPC k <backspace> o k SPC p p i u r <backspace> 
<backspace> <backspace> <backspace> o u r SPC j e d 
u <backspace> <backspace> u d i SPC 1 3 : 3 0 SPC c 
o m m e SPC i n i t i a l e m e n t SPC p r é v u . 
<return> <return> SPC SPC N t a l <backspace> <backspace> 
<backspace> a t a s h a . <up> <up> <up> <up> <up> 
<up> <up> <up> C-a C-M-% C-q C-j ² ( [ ^ C-q C-j ] 
² ) <return> ² <backspace> SPC ² 1 <return> n y n y 
n <up> <up> <up> <up> <up> <up> C-a <down> <down> <up> 
C-k <down> C-k <down> C-k <up> <up> <up> C-SPC <left> 
<down> <down> <down> <down> M-w <help-echo> M-x r c 
e <backspace> <backspace> e c e t n f <backspace> <backspace> 
<backspace> n t f - f <return> <return> C-s m a k e 
f C-w - t <down> <down> C-x d <M-backspace> <M-backspace> 
<M-backspace> i n s <tab> <return> C-x 1 <next> <prior> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> i 
<down> <down> <return> C-s b y t <C-left> <C-left> 
C-SPC <C-right> <C-right> <C-right> M-w C-x b C-s C-s 
C-s <return> f SPC C-y SPC t <tab> i <tab> a <tab> 
<return> <help-echo> <help-echo> M-x r e p o <tab> 
r t <tab> e <tab> <return>

Recent messages:
Replaced 2 occurrences
Mark activated
Open c:/msys/1.0/local/projects/lettre_observatoire/lettre_observatoire/dist_forge/lettre.dtx
Mark saved where search started
Mark set
Mark saved where search started
Mark set
Auto-saving...done
Mark set
Making completion list... [2 times]

Load-path shadows:
d:/msys/1.0/home/Vincent/.emacs.d/etc/custom hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/custom
./vietnamese hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/vietnamese
./viet-util hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/viet-util
./utf-8-lang hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/utf-8-lang
./tv-util hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/tv-util
./tibetan hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/tibetan
./tibet-util hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/tibet-util
./thai hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/thai
./thai-word hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/thai-word
./thai-util hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/thai-util
./tai-viet hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/tai-viet
./slovak hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/slovak
./sinhala hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/sinhala
./romanian hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/romanian
./misc-lang hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/misc-lang
./lao hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/lao
./lao-util hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/lao-util
./korean hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/korean
./korea-util hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/korea-util
./khmer hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/khmer
./japanese hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/japanese
./japan-util hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/japan-util
./indian hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/indian
./ind-util hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/ind-util
./hebrew hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/hebrew
./hanja-util hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/hanja-util
./greek hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/greek
./georgian hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/georgian
./european hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/european
./ethiopic hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/ethiopic
./ethio-util hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/ethio-util
./english hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/english
./czech hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/czech
./cyrillic hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/cyrillic
./cyril-util hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/cyril-util
./chinese hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/chinese
./china-util hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/china-util
./cham hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/cham
./burmese hides c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/language/burmese
c:/Programme/GNU/Emacs_build20140924/share/emacs/24.4.50/lisp/loaddefs hides c:/Programme/GNU/installation/cedet-install/cedet/lisp/cedet/loaddefs

Features:
(shadow sort mail-extr warnings emacsbug make-mode hl-line eieio-opt
speedbar sb-image ezimage dframe find-func help-mode jka-compr info
compile dired-aux iso-transl bbdb-message sendmail gnus-util message
format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse
rfc2231 rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr
mail-utils gmm-utils mailheader vc-dispatcher vc-svn m4-mode latexenc
dired-x dired bbdb-com crm misearch multi-isearch sh-script smie
executable pcmpl-unix shell pcomplete comint ansi-color ring
accents-ascii eieio byte-opt bytecomp byte-compile cconv eieio-core
tex-mik preview-latex tex-site auto-loads calc-mathfloat calc-math
edmacro kmacro w32utils java-init cl-macs cl gv bsh-init recentf
tree-widget wid-edit cl-loaddefs cl-lib generic-x cc-mode cc-fonts
cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs
template mailabbrev iswitchb cus-start cus-load bbdb easymenu bbdb-site
timezone bbdb-loaddefs calc-misc calc-arith calc-ext calc calc-loaddefs
calc-macs skeleton load-path-to-cedet-svn time-date tooltip electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp
w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image
regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register
page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core frame cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew
greek romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process w32notify w32
multi-tty emacs)

Memory information:
((conses 8 422458 42542)
 (symbols 24 30952 0)
 (miscs 20 1740 1710)
 (strings 16 63195 11334)
 (string-bytes 1 2459296)
 (vectors 8 28463)
 (vector-slots 4 1298649 25868)
 (floats 8 110 773)
 (intervals 28 23043 1060)
 (buffers 516 30))

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18591; Package emacs. (Tue, 30 Sep 2014 15:53:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Vincent Belaïche <vincent.b.1 <at> hotmail.fr>
Cc: 18591 <at> debbugs.gnu.org
Subject: Re: bug#18591: 24.4.50;
 bootstrap-emacs crashes when trying to bytecompile tibetan.el
Date: Tue, 30 Sep 2014 18:52:19 +0300
> From: Vincent Belaïche <vincent.b.1 <at> hotmail.fr> 
> Date: Tue, 30 Sep 2014 17:11:57 +0200
> Cc: Vincent Belaïche <vincent.b.1 <at> hotmail.fr>
> 
> I am trying to build the latest (bzr update this morning) Emacs and it
> fails when compiling language/tibetan.el with src/bootstrap-emacs.exe,
> and what happens is a CRASH.

Not reproducible here.  I've just bootstrapped the latest trunk with
no problems at all.

A couple of observations:

> running CONFIG_SHELL=/bin/sh /bin/sh ./configure --prefix=c:/Programme/GNU/Emacs --without-jpeg --without-tiff --without-gif --without-png CPPFLAGS= -DFOR_MSW

You are using a Windows-style d:/foo/bar file name in the --prefix
option to configure, which is known to cause problems.  nt/INSTALL
suggests to use the MSYS-style /d/foo/bar instead.  (I don't think
this is the cause of your problem, but still.)

> Compiling ../lisp/language/tibetan.el
> /bin/sh: ../src/bootstrap-emacs.exe: Bad file number
> make[3]: *** [compile-onefile] Error 126

Did you notice this error message?  It's from Bash.  It sounds like
something is not healthy on that system, maybe some anti-virus
software or some problem with the Registry.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18591; Package emacs. (Tue, 30 Sep 2014 15:59:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: vincent.b.1 <at> hotmail.fr
Cc: 18591 <at> debbugs.gnu.org
Subject: Re: bug#18591: 24.4.50;
 bootstrap-emacs crashes when trying to bytecompile tibetan.el
Date: Tue, 30 Sep 2014 18:58:46 +0300
> Date: Tue, 30 Sep 2014 18:52:19 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: 18591 <at> debbugs.gnu.org
> 
> > From: Vincent Belaïche <vincent.b.1 <at> hotmail.fr> 
> > Date: Tue, 30 Sep 2014 17:11:57 +0200
> > Cc: Vincent Belaïche <vincent.b.1 <at> hotmail.fr>
> > 
> > I am trying to build the latest (bzr update this morning) Emacs and it
> > fails when compiling language/tibetan.el with src/bootstrap-emacs.exe,
> > and what happens is a CRASH.
> 
> Not reproducible here.  I've just bootstrapped the latest trunk with
> no problems at all.

I take it back.  Emacs did bootstrap cleanly, but when I start it
interactively, I get the same exception 0xc0000029.

But this is the same problem reported by Martin earlier today, and
already fixed on the emacs-24 branch.  Apply the patch below and
rebuild.

I'm not sure this will solve the bootstrap problem, though: that could
well be a separate issue, because I don't think the problem solved by
the patch below could happen in non-interactive invocations of Emacs,
which are the only kind used during the bootstrap.  So after you apply
the patch, maybe try "make bootstrap" again, and see if it works this
time.


--- src/w32fns.c	2014-07-12 09:25:29 +0000
+++ src/w32fns.c	2014-09-30 13:53:24 +0000
@@ -1911,13 +1911,12 @@ w32_createscrollbar (struct frame *f, st
 }
 
 static void
-w32_createwindow (struct frame *f)
+w32_createwindow (struct frame *f, int *coords)
 {
   HWND hwnd;
   RECT rect;
-  Lisp_Object top = Qunbound;
-  Lisp_Object left = Qunbound;
-  struct w32_display_info *dpyinfo = &one_w32_display_info;
+  int top;
+  int left;
 
   rect.left = rect.top = 0;
   rect.right = FRAME_PIXEL_WIDTH (f);
@@ -1932,25 +1931,21 @@ w32_createwindow (struct frame *f)
 
   if (f->size_hint_flags & USPosition || f->size_hint_flags & PPosition)
     {
-      XSETINT (left, f->left_pos);
-      XSETINT (top, f->top_pos);
+      left = f->left_pos;
+      top = f->top_pos;
     }
-  else if (EQ (left, Qunbound) && EQ (top, Qunbound))
+  else
     {
-      /* When called with RES_TYPE_NUMBER, w32_get_arg will return zero
-	 for anything that is not a number and is not Qunbound.  */
-      left = x_get_arg (dpyinfo, Qnil, Qleft, "left", "Left", RES_TYPE_NUMBER);
-      top = x_get_arg (dpyinfo, Qnil, Qtop, "top", "Top", RES_TYPE_NUMBER);
+      left = coords[0];
+      top = coords[1];
     }
 
   FRAME_W32_WINDOW (f) = hwnd
     = CreateWindow (EMACS_CLASS,
 		    f->namebuf,
 		    f->output_data.w32->dwStyle | WS_CLIPCHILDREN,
-		    EQ (left, Qunbound) ? CW_USEDEFAULT : XINT (left),
-		    EQ (top, Qunbound) ? CW_USEDEFAULT : XINT (top),
-		    rect.right - rect.left,
-		    rect.bottom - rect.top,
+		    left, top,
+		    rect.right - rect.left, rect.bottom - rect.top,
 		    NULL,
 		    NULL,
 		    hinst,
@@ -2468,7 +2463,8 @@ w32_msg_pump (deferred_msg * msg_buf)
                  the patch for XP is not publicly available until XP SP3,
                  and older versions will never be patched.  */
               CoInitialize (NULL);
-	      w32_createwindow ((struct frame *) msg.wParam);
+	      w32_createwindow ((struct frame *) msg.wParam,
+				(int *) msg.lParam);
 	      if (!PostThreadMessage (dwMainThreadId, WM_EMACS_DONE, 0, 0))
 		emacs_abort ();
 	      break;
@@ -4069,8 +4065,25 @@ static void
 my_create_window (struct frame * f)
 {
   MSG msg;
+  static int coords[2];
+  Lisp_Object left, top;
+  struct w32_display_info *dpyinfo = &one_w32_display_info;
+
+  /* When called with RES_TYPE_NUMBER, x_get_arg will return zero for
+     anything that is not a number and is not Qunbound.  */
+  left = x_get_arg (dpyinfo, Qnil, Qleft, "left", "Left", RES_TYPE_NUMBER);
+  top = x_get_arg (dpyinfo, Qnil, Qtop, "top", "Top", RES_TYPE_NUMBER);
+  if (EQ (left, Qunbound))
+    coords[0] = CW_USEDEFAULT;
+  else
+    coords[0] = XINT (left);
+  if (EQ (top, Qunbound))
+    coords[1] = CW_USEDEFAULT;
+  else
+    coords[1] = XINT (top);
 
-  if (!PostThreadMessage (dwWindowsThreadId, WM_EMACS_CREATEWINDOW, (WPARAM)f, 0))
+  if (!PostThreadMessage (dwWindowsThreadId, WM_EMACS_CREATEWINDOW,
+			  (WPARAM)f, (LPARAM)coords))
     emacs_abort ();
   GetMessage (&msg, NULL, WM_EMACS_DONE, WM_EMACS_DONE);
 }







Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18591; Package emacs. (Wed, 01 Oct 2014 19:59:02 GMT) Full text and rfc822 format available.

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

From: Vincent Belaïche <vincent.b.1 <at> hotmail.fr> 
To: Eli Zaretskii <eliz <at> gnu.org> 
Cc: "18591 <at> debbugs.gnu.org" <18591 <at> debbugs.gnu.org>,
 Vincent Belaïche <vincent.b.1 <at> hotmail.fr>
Subject: RE: bug#18591: 24.4.50;
 bootstrap-emacs crashes when trying to bytecompile tibetan.el
Date: Wed, 01 Oct 2014 21:58:38 +0200
[Message part 1 (text/plain, inline)]
Dear Eli,

FYI, I have rebuilt with replacing c:/ pathes by /c/ pathes, and the
make went to the end --- however, like for you it crashes when launched
interactively, here is a log.

-----------------------------------------------------------------------
[bug_bytecompile_tibetan_crash_1.log (text/plain, inline)]
/c/Programme/GNU/installation/emacs-install>gdb c:/Programme/GNU/Emacs/bin/emacs.exe
GNU gdb (GDB) 7.4
Copyright (C) 2012 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 "i686-pc-mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from c:\Programme\GNU\Emacs\bin\emacs.exe...done.
(gdb) run  -f batch-byte-compile emacs/trunk/lisp/language/tibetan.el
Starting program: c:\Programme\GNU\Emacs\bin\emacs.exe -f batch-byte-compile emacs/trunk/lisp/language/tibetan.el
[New Thread 89876.0x15f10]
[New Thread 89876.0x15374]
[New Thread 89876.0x148d8]
gdb: unknown target exception 0xc0000029 at 0x7c9602cc

Program received signal ?, Unknown signal.
[Switching to Thread 89876.0x148d8]
0x7c9602cc in ntdll!RtlQueryTimeZoneInformation ()
   from C:\WINDOWS\system32\ntdll.dll
(gdb) bt full
#0  0x7c9602cc in ntdll!RtlQueryTimeZoneInformation ()
   from C:\WINDOWS\system32\ntdll.dll
No symbol table info available.
#1  0x77c05464 in msvcrt!_global_unwind2 ()
   from C:\WINDOWS\system32\msvcrt.dll
No symbol table info available.
#2  0x77c06d8c in msvcrt!longjmp () from C:\WINDOWS\system32\msvcrt.dll
No symbol table info available.
#3  0x0083ffe0 in ?? ()
No symbol table info available.
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) quit
A debugging session is active.

	Inferior 1 [process 89876] will be killed.

Quit anyway? (y or n) [answered Y; input not from terminal]
/c/Programme/GNU/installation/emacs-install>exit

Process shell<2> finished
[Message part 3 (text/plain, inline)]
-----------------------------------------------------------------------

Just to double check I am reverting to c:/ and rebuild again. In the
unknown exception I had seen something related to TimeZone requesting
from the OS, I would like to be sure that the crash is not time
dependent by testing again.

I'll let you know next time if the patch solves it for me too.

   Vincent.

----------------------------------------
> Date: Tue, 30 Sep 2014 18:58:46 +0300
> From: eliz <at> gnu.org
> Subject: Re: bug#18591: 24.4.50; bootstrap-emacs crashes when trying to bytecompile tibetan.el
> To: vincent.b.1 <at> hotmail.fr
> CC: 18591 <at> debbugs.gnu.org
>
> > Date: Tue, 30 Sep 2014 18:52:19 +0300
> > From: Eli Zaretskii <eliz <at> gnu.org>
> > Cc: 18591 <at> debbugs.gnu.org
> >
> > > From: Vincent Belaïche <vincent.b.1 <at> hotmail.fr>
> > > Date: Tue, 30 Sep 2014 17:11:57 +0200
> > > Cc: Vincent Belaïche <vincent.b.1 <at> hotmail.fr>
> > >
> > > I am trying to build the latest (bzr update this morning) Emacs and it
> > > fails when compiling language/tibetan.el with src/bootstrap-emacs.exe,
> > > and what happens is a CRASH.
> >
> > Not reproducible here. I've just bootstrapped the latest trunk with
> > no problems at all.
>
> I take it back. Emacs did bootstrap cleanly, but when I start it
> interactively, I get the same exception 0xc0000029.
>
> But this is the same problem reported by Martin earlier today, and
> already fixed on the emacs-24 branch. Apply the patch below and
> rebuild.
>
> I'm not sure this will solve the bootstrap problem, though: that could
> well be a separate issue, because I don't think the problem solved by
> the patch below could happen in non-interactive invocations of Emacs,
> which are the only kind used during the bootstrap. So after you apply
> the patch, maybe try "make bootstrap" again, and see if it works this
> time.
>
>
> --- src/w32fns.c 2014-07-12 09:25:29 +0000
> +++ src/w32fns.c 2014-09-30 13:53:24 +0000
> @@ -1911,13 +1911,12 @@ w32_createscrollbar (struct frame *f, st
> }
>
> static void
> -w32_createwindow (struct frame *f)
> +w32_createwindow (struct frame *f, int *coords)
> {
> HWND hwnd;
> RECT rect;
> - Lisp_Object top = Qunbound;
> - Lisp_Object left = Qunbound;
> - struct w32_display_info *dpyinfo = &one_w32_display_info;
> + int top;
> + int left;
>
> rect.left = rect.top = 0;
> rect.right = FRAME_PIXEL_WIDTH (f);
> @@ -1932,25 +1931,21 @@ w32_createwindow (struct frame *f)
>
> if (f->size_hint_flags & USPosition || f->size_hint_flags & PPosition)
> {
> - XSETINT (left, f->left_pos);
> - XSETINT (top, f->top_pos);
> + left = f->left_pos;
> + top = f->top_pos;
> }
> - else if (EQ (left, Qunbound) && EQ (top, Qunbound))
> + else
> {
> - /* When called with RES_TYPE_NUMBER, w32_get_arg will return zero
> - for anything that is not a number and is not Qunbound. */
> - left = x_get_arg (dpyinfo, Qnil, Qleft, "left", "Left", RES_TYPE_NUMBER);
> - top = x_get_arg (dpyinfo, Qnil, Qtop, "top", "Top", RES_TYPE_NUMBER);
> + left = coords[0];
> + top = coords[1];
> }
>
> FRAME_W32_WINDOW (f) = hwnd
> = CreateWindow (EMACS_CLASS,
> f->namebuf,
> f->output_data.w32->dwStyle | WS_CLIPCHILDREN,
> - EQ (left, Qunbound) ? CW_USEDEFAULT : XINT (left),
> - EQ (top, Qunbound) ? CW_USEDEFAULT : XINT (top),
> - rect.right - rect.left,
> - rect.bottom - rect.top,
> + left, top,
> + rect.right - rect.left, rect.bottom - rect.top,
> NULL,
> NULL,
> hinst,
> @@ -2468,7 +2463,8 @@ w32_msg_pump (deferred_msg * msg_buf)
> the patch for XP is not publicly available until XP SP3,
> and older versions will never be patched. */
> CoInitialize (NULL);
> - w32_createwindow ((struct frame *) msg.wParam);
> + w32_createwindow ((struct frame *) msg.wParam,
> + (int *) msg.lParam);
> if (!PostThreadMessage (dwMainThreadId, WM_EMACS_DONE, 0, 0))
> emacs_abort ();
> break;
> @@ -4069,8 +4065,25 @@ static void
> my_create_window (struct frame * f)
> {
> MSG msg;
> + static int coords[2];
> + Lisp_Object left, top;
> + struct w32_display_info *dpyinfo = &one_w32_display_info;
> +
> + /* When called with RES_TYPE_NUMBER, x_get_arg will return zero for
> + anything that is not a number and is not Qunbound. */
> + left = x_get_arg (dpyinfo, Qnil, Qleft, "left", "Left", RES_TYPE_NUMBER);
> + top = x_get_arg (dpyinfo, Qnil, Qtop, "top", "Top", RES_TYPE_NUMBER);
> + if (EQ (left, Qunbound))
> + coords[0] = CW_USEDEFAULT;
> + else
> + coords[0] = XINT (left);
> + if (EQ (top, Qunbound))
> + coords[1] = CW_USEDEFAULT;
> + else
> + coords[1] = XINT (top);
>
> - if (!PostThreadMessage (dwWindowsThreadId, WM_EMACS_CREATEWINDOW, (WPARAM)f, 0))
> + if (!PostThreadMessage (dwWindowsThreadId, WM_EMACS_CREATEWINDOW,
> + (WPARAM)f, (LPARAM)coords))
> emacs_abort ();
> GetMessage (&msg, NULL, WM_EMACS_DONE, WM_EMACS_DONE);
> }
>
>
>

Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Wed, 01 Oct 2014 20:12:02 GMT) Full text and rfc822 format available.

Notification sent to Vincent Belaïche <vincent.b.1 <at> hotmail.fr> :
bug acknowledged by developer. (Wed, 01 Oct 2014 20:12:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Vincent Belaïche <vincent.b.1 <at> hotmail.fr>
Cc: 18591-done <at> debbugs.gnu.org
Subject: Re: bug#18591: 24.4.50;
 bootstrap-emacs crashes when trying to bytecompile tibetan.el
Date: Wed, 01 Oct 2014 23:11:22 +0300
> From: Vincent Belaïche <vincent.b.1 <at> hotmail.fr> 
> Cc: Vincent Belaïche <vincent.b.1 <at> hotmail.fr> ,
>  "18591\@debbugs.gnu.org" <18591 <at> debbugs.gnu.org>
> Date: Wed, 01 Oct 2014 21:58:38 +0200
> 
> FYI, I have rebuilt with replacing c:/ pathes by /c/ pathes, and the
> make went to the end --- however, like for you it crashes when launched
> interactively, here is a log.

Update from upstream and rebuild, this problem is already fixed on the
trunk.




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

This bug report was last modified 10 years and 234 days ago.

Previous Next


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