delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/05/18/21:15:16

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,KHOP_THREADED,NML_ADSP_CUSTOM_MED,RCVD_NUMERIC_HELO,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: jojelino <jojelino AT gmail DOT com>
Subject: Re: Interpreting a gdb backtrace
Date: Sat, 19 May 2012 10:14:31 +0900
Lines: 28
Message-ID: <jp6s5o$d21$1@dough.gmane.org>
References: <4FB6BA5F DOT 6060906 AT cornell DOT edu> <jp6jdu$o7l$1 AT dough DOT gmane DOT org> <4FB6E993 DOT 2010601 AT cornell DOT edu>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 5.2; rv:15.0) Gecko/15.0 Thunderbird/15.0a1
In-Reply-To: <4FB6E993.2010601@cornell.edu>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 2012-05-19 AM 9:30, Ken Brown wrote:
>
> I built emacs with -g -O0.  gdb had the symbol table at the start of the
> debugging session.  It's just after the crash that everything is messed up.
>
> Ken
>
>
Then, i suspect that some function is called with function pointer type 
with different calling convention from itself, eventually stack frame is 
broken and return address goes into wrong place.
if it is the case, there is nothing we can expect from gdb backtrace. 
but at least we can inspect esp register ?? for example, type following
x $esp
x $esp-4
x $esp-8
x $esp-c ...
or
x $esp-0x40(or greater than) and just enter until you get value which 
seems to be return address.
and you can know what the return address is supposed to be(if it isn't 
relocated but it is scarce.)
i hope you can find return address. then you can breakpoint the annoying 
procedure.
-- 
Regards.




--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019