<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=140375011-22082011><FONT face=Arial color=#0000ff
size=2> </FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV><SPAN class=140375011-22082011><FONT face=Arial color=#0000ff size=2>I'm
currently experimenting with</FONT> <FONT face=Arial><FONT
color=#0000ff><FONT size=2>a variation of dump_stack in system.inc. The first
try skips a lot of the functions found by your initial implementation. Still
looking into that. <SPAN
class=546450213-22082011> </SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=140375011-22082011><FONT face=Arial><FONT color=#0000ff><FONT
size=2><SPAN
class=546450213-22082011></SPAN></FONT></FONT></FONT></SPAN> </DIV></BLOCKQUOTE>
<DIV dir=ltr><SPAN class=140375011-22082011><FONT face=Arial><FONT
color=#0000ff><FONT size=2><SPAN class=546450213-22082011>Got to the cause of
this problem. The stack unwind is fine. The backtrace looks like bt in gdb
except for the non-stackframe routines (I think I have found a fix for that one
too). The problem is in the unit lineinfo. There is a global variable
staberr:boolean that, once set, aborts subsequent calls to GetLineInfo. It is
set by an error in openstabs and there is no way to reset it. Limiting the
traced addresses to the ones inside the main application solves that one but
limits obviously the output (no runtime loaded libraries,
etc).</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr><SPAN class=140375011-22082011><FONT face=Arial><FONT
color=#0000ff><FONT size=2><SPAN
class=546450213-22082011></SPAN></FONT></FONT></FONT></SPAN> </DIV>
<DIV dir=ltr><SPAN class=140375011-22082011><FONT face=Arial><FONT
color=#0000ff><FONT size=2><SPAN class=546450213-22082011>Attached the patch for
the stack unwind (without non-stackframe routines). Note that all assembler is
gone!</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr><SPAN class=140375011-22082011><FONT face=Arial><FONT
color=#0000ff><FONT size=2><SPAN
class=546450213-22082011></SPAN></FONT></FONT></FONT></SPAN> </DIV>
<DIV dir=ltr><SPAN class=140375011-22082011><FONT face=Arial><FONT
color=#0000ff><FONT size=2><SPAN
class=546450213-22082011>Ludo</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr><SPAN class=140375011-22082011><FONT face=Arial><FONT
color=#0000ff><FONT size=2><SPAN
class=546450213-22082011></SPAN></FONT></FONT></FONT></SPAN> </DIV>
<DIV dir=ltr><SPAN class=140375011-22082011><FONT face=Arial><FONT
color=#0000ff><FONT size=2><SPAN
class=546450213-22082011></SPAN></FONT></FONT></FONT></SPAN> </DIV></BODY></HTML>