From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: display word wrapping Date: 30 May 2004 08:12:41 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20040529224921.695E.LEKTU@mi.madritel.es> <20040530002547.6961.LEKTU@mi.madritel.es> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1085893894 19260 80.91.224.253 (30 May 2004 05:11:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 May 2004 05:11:34 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun May 30 07:11:29 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BUIbZ-00048C-00 for ; Sun, 30 May 2004 07:11:29 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BUIbZ-0000L0-00 for ; Sun, 30 May 2004 07:11:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BUIbg-0007DE-Az for emacs-devel@quimby.gnus.org; Sun, 30 May 2004 01:11:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BUIbZ-0007D9-28 for emacs-devel@gnu.org; Sun, 30 May 2004 01:11:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BUIbY-0007Cw-3M for emacs-devel@gnu.org; Sun, 30 May 2004 01:11:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BUIbX-0007Ct-Ty for emacs-devel@gnu.org; Sun, 30 May 2004 01:11:28 -0400 Original-Received: from [207.232.27.5] (helo=WST0054) by monty-python.gnu.org with asmtp (Exim 4.34) id 1BUIap-0003B0-7u; Sun, 30 May 2004 01:10:43 -0400 Original-To: Juanma Barranquero In-reply-to: <20040530002547.6961.LEKTU@mi.madritel.es> (message from Juanma Barranquero on Sun, 30 May 2004 03:38:48 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:24208 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:24208 > Date: Sun, 30 May 2004 03:38:48 +0200 > From: Juanma Barranquero > > I can make it work fine (for all kinds of graphics) by disabling -Og for > just two functions: `lookup_image' and `png_read_from_memory'. > > On most debugging sessions, lookup_image fails while calling > image_spec_value or postprocess_image, because img->spec is no longer > valid (somewhere, img->spec is overwritten). But something's afoul, > because inserting debugging code into lookup_image makes it fail in > different ways (for example, failing to load the image). Either the > optimization is doing something very wrong, or an undetected bug is > causing data corruption, I'd say. > > Ideas? Does it crash (it _is_ a crash, isn't it?) under a debugger, or does that, too, cause the bug to change its behavior? If the former, run an unmodified optimized code under a debugger and use debugger facilities instead of debugging code to see what's wrong. Comparison of machine code in the optimized and unoptimized versions might also tell you something useful. Finally, assuming that we are talking about a crash, posting the detailed description of the crash (exception number, register dump, stack dump, etc.) here could give some further ideas.