From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vincent =?UTF-8?Q?Bela=C3=AFche?= Newsgroups: gmane.emacs.bugs Subject: bug#18591: 24.4.50; bootstrap-emacs crashes when trying to bytecompile tibetan.el Date: Wed, 01 Oct 2014 21:58:38 +0200 Message-ID: <80y4szo93l.fsf@gmail.com> References: <801tqtrvlu.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1412193567 29924 80.91.229.3 (1 Oct 2014 19:59:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Oct 2014 19:59:27 +0000 (UTC) Cc: "18591@debbugs.gnu.org" <18591@debbugs.gnu.org>, Vincent =?UTF-8?Q?Bela=C3=AFche?= To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 01 21:59:20 2014 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 1XZQ3R-0004GQ-IG for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Oct 2014 21:59:17 +0200 Original-Received: from localhost ([::1]:58448 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZQ3R-0001Yi-9T for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Oct 2014 15:59:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47011) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZQ3I-0001SQ-RH for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2014 15:59:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZQ3D-0003H9-I1 for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2014 15:59:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37937) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZQ3D-0003H5-FY for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2014 15:59:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XZQ3C-0004O6-TY for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2014 15:59:03 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <801tqtrvlu.fsf@gmail.com> Resent-From: Vincent =?UTF-8?Q?Bela=C3=AFche?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Oct 2014 19:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18591 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18591-submit@debbugs.gnu.org id=B18591.141219353516842 (code B ref 18591); Wed, 01 Oct 2014 19:59:02 +0000 Original-Received: (at 18591) by debbugs.gnu.org; 1 Oct 2014 19:58:55 +0000 Original-Received: from localhost ([127.0.0.1]:57732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZQ34-0004NZ-Cu for submit@debbugs.gnu.org; Wed, 01 Oct 2014 15:58:55 -0400 Original-Received: from smtp01.smtpout.orange.fr ([80.12.242.123]:55142 helo=smtp.smtpout.orange.fr) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZQ31-0004NQ-7w for 18591@debbugs.gnu.org; Wed, 01 Oct 2014 15:58:52 -0400 Original-Received: from CHOUNEK ([109.218.82.63]) by mwinf5d24 with ME id xvyn1o0071MyVad03vynNu; Wed, 01 Oct 2014 21:58:49 +0200 X-ME-Helo: CHOUNEK X-ME-Date: Wed, 01 Oct 2014 21:58:49 +0200 X-ME-IP: 109.218.82.63 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:93992 Archived-At: --=-=-= Content-Type: text/plain 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. ----------------------------------------------------------------------- --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=bug_bytecompile_tibetan_crash_1.log /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 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: ... 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 --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable ----------------------------------------------------------------------- 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@gnu.org > Subject: Re: bug#18591: 24.4.50; bootstrap-emacs crashes when trying to b= ytecompile tibetan.el > To: vincent.b.1@hotmail.fr > CC: 18591@debbugs.gnu.org > > > Date: Tue, 30 Sep 2014 18:52:19 +0300 > > From: Eli Zaretskii > > Cc: 18591@debbugs.gnu.org > > > > > From: Vincent Bela=EFche > > > Date: Tue, 30 Sep 2014 17:11:57 +0200 > > > Cc: Vincent Bela=EFche > > > > > > 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 =3D Qunbound; > - Lisp_Object left =3D Qunbound; > - struct w32_display_info *dpyinfo =3D &one_w32_display_info; > + int top; > + int left; > > rect.left =3D rect.top =3D 0; > rect.right =3D 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 =3D f->left_pos; > + top =3D 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 =3D x_get_arg (dpyinfo, Qnil, Qleft, "left", "Left", RES_TYPE_NUMB= ER); > - top =3D x_get_arg (dpyinfo, Qnil, Qtop, "top", "Top", RES_TYPE_NUMBER); > + left =3D coords[0]; > + top =3D coords[1]; > } > > FRAME_W32_WINDOW (f) =3D hwnd > =3D 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 =3D &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 =3D x_get_arg (dpyinfo, Qnil, Qleft, "left", "Left", RES_TYPE_NUMB= ER); > + top =3D x_get_arg (dpyinfo, Qnil, Qtop, "top", "Top", RES_TYPE_NUMBER); > + if (EQ (left, Qunbound)) > + coords[0] =3D CW_USEDEFAULT; > + else > + coords[0] =3D XINT (left); > + if (EQ (top, Qunbound)) > + coords[1] =3D CW_USEDEFAULT; > + else > + coords[1] =3D XINT (top); > > - if (!PostThreadMessage (dwWindowsThreadId, WM_EMACS_CREATEWINDOW, (WPAR= AM)f, 0)) > + if (!PostThreadMessage (dwWindowsThreadId, WM_EMACS_CREATEWINDOW, > + (WPARAM)f, (LPARAM)coords)) > emacs_abort (); > GetMessage (&msg, NULL, WM_EMACS_DONE, WM_EMACS_DONE); > } > > > --=-=-=--