tracing malloc/free call

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Jan 16 15:56:00 GMT 2015


On Jan 16 16:44, Corinna Vinschen wrote:
> Hi Marco,
> 
> On Jan 16 15:23, Marco Atzeri wrote:
> > On 1/15/2015 10:34 AM, Corinna Vinschen wrote:
> > >Bottom line, you should be able to fetch the original return address by
> > >printing the value at
> > >
> > >   *(void*)_my_tls->stackptr
> > >
> > >which points to the uppermost entry on the stack.
> > 
> > Hi Corinna,
> > 
> > in reality I found it is "*(_my_tls.stackptr-1)"
> 
> Oh, right!  Sorry about that.  I missed to take the behavior of xadd
> into account.

Worse, I missed the fact that _my_tls.retaddr() already provides the
correct return address.  Sorry again.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20150116/972e3adc/attachment.sig>


More information about the Cygwin-patches mailing list