From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Crashes on draw_glyphs Date: Thu, 13 Nov 2008 10:38:42 -0500 Message-ID: <874p2b4ovx.fsf@cyd.mit.edu> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1226590726 20907 80.91.229.12 (13 Nov 2008 15:38:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Nov 2008 15:38:46 +0000 (UTC) Cc: Emacs Devel To: "Juanma Barranquero" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 13 16:39:47 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L0eIM-0003D0-80 for ged-emacs-devel@m.gmane.org; Thu, 13 Nov 2008 16:39:46 +0100 Original-Received: from localhost ([127.0.0.1]:58465 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0eHE-0003tM-8l for ged-emacs-devel@m.gmane.org; Thu, 13 Nov 2008 10:38:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L0eH9-0003sL-93 for emacs-devel@gnu.org; Thu, 13 Nov 2008 10:38:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L0eH7-0003rF-LF for emacs-devel@gnu.org; Thu, 13 Nov 2008 10:38:30 -0500 Original-Received: from [199.232.76.173] (port=51766 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0eH7-0003r9-BY for emacs-devel@gnu.org; Thu, 13 Nov 2008 10:38:29 -0500 Original-Received: from cyd.mit.edu ([18.115.2.24]:47476) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L0eH7-0001Nx-EZ for emacs-devel@gnu.org; Thu, 13 Nov 2008 10:38:29 -0500 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id AB37257E09E; Thu, 13 Nov 2008 10:38:42 -0500 (EST) In-Reply-To: (Juanma Barranquero's message of "Tue, 4 Nov 2008 17:57:21 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:105641 Archived-At: "Juanma Barranquero" writes: > The underling bug that causes #872/#1179 is really getting annoying. > > Apparently I'm the only one suffering it (perhaps I'm the only one > compiling Emacs on Windows with GCC 4.3.0), and I've been > unsuccessfully trying to debug it for weeks. Unfortunately, as soon as > I even add an assertion, the crash point moves. It seems like the > thing to do is to run draw_glyphs step-by-step, but with the macros > and all that it is quite difficult, not to mention that I know very > little about the redisplay code and that the bug is much harder to > catch when I compile a non-optimized build. > > The breaking point (for my patience, at least) is that I now can crash > Emacs even without setting unibyte-display-via-language-environment, > just by doing > > emacs -Q > M-x ucs-insert AEGEAN CHECK MARK > > which causes an assertion failure. > > Breakpoint 1, w32_abort () at w32fns.c:7279 > 7279 button = MessageBox (NULL, > (gdb) bt > #0 w32_abort () at w32fns.c:7279 > #1 0x01034045 in fill_glyph_string (s=0x82e8c0, face_id=1, > start=-1151, end=1, overlaps=0) at xdisp.c:19695 > #2 0x01057492 in draw_glyphs (w=0x2e44a00, x=17, row=0x2ffb260, > area=TEXT_AREA, start=0, end=1, hl=DRAW_NORMAL_TEXT, > overlaps=0) at xdisp.c:20329 Any luck debugging this? I notice that the START argument in fill_glyph_string is negative---could you try to trace this back to see where it comes from?