From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: How about using static link instead of dynamic loaded dlls? Date: 05 Jun 2003 22:26:15 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <3EDF322A.4050807@gnu.org> <20030605213617.855E.LEKTU@terra.es> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1054849007 17188 80.91.224.249 (5 Jun 2003 21:36:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 5 Jun 2003 21:36:47 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Jun 05 23:36:44 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19O2Pc-0004Sl-00 for ; Thu, 05 Jun 2003 23:36:44 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19O2hr-0005cE-00 for ; Thu, 05 Jun 2003 23:55:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19O2RG-00035J-FG for emacs-devel@quimby.gnus.org; Thu, 05 Jun 2003 17:38:26 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19O2OP-0002Dn-KH for emacs-devel@gnu.org; Thu, 05 Jun 2003 17:35:29 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19O2Ic-0000OT-A8 for emacs-devel@gnu.org; Thu, 05 Jun 2003 17:29:31 -0400 Original-Received: from server0011.freedom2surf.net ([194.106.56.14] helo=server0027.freedom2surf.net) by monty-python.gnu.org with esmtp (Exim 4.20) id 19O2Fo-0007eE-5B for emacs-devel@gnu.org; Thu, 05 Jun 2003 17:26:36 -0400 Original-Received: from wanchan.jasonr.f2s.com ([195.137.103.251]) h55LQSPW023820; Thu, 5 Jun 2003 21:26:29 GMT Original-Received: from NYAUMO (nyaumo.jasonr.f2s.com [10.0.0.27]) by wanchan.jasonr.f2s.com (Postfix) with ESMTP id 7D9A5DDF15; Thu, 5 Jun 2003 22:26:28 +0100 (BST) Original-To: Juanma Barranquero In-Reply-To: <20030605213617.855E.LEKTU@terra.es> Original-Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-cc: Robin Hu X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:14786 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:14786 Juanma Barranquero writes: > On Thu, 05 Jun 2003 13:06:02 +0100, Robin Hu and Jason Rumney wrote: > > > > While compiling with msvc with optimization turned on, Emacs will > > > emit an access vilation exception while load a tiff file or a png > > > file. I believe the problem is something related to lookup_image(), > > > but debug an optimized program is really hard. ;-( > > Don't worry: with MSVC 7.0 it happens in non-optimized builds too. I'm > going to test with 7.1 (aka Visual C++ .NET 2003) > > > Why is it hard? You should be able to get at least some idea of where it > > is going wrong my single stepping through lookup_image. Maybe some of > > the underlying machine instructions are not what you would expect from > > looking at the current line, but that should not stop you from getting a > > general idea of what is happening. > > We've already discussed this: you can step till png_load, and then bang! > The crash happens inside the DLL, and the data being passed to the call > seems correct... :( So get the debug symbols for the DLL. One of the tarballs at probably gnuwin32.sourceforge.net has them, or you can try compiling it yourself with mingw32 to see if you can duplicate the crash.