unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Siddhesh Poyarekar via Libc-alpha <libc-alpha@sourceware.org>
To: John Ogness <john.ogness@linutronix.de>, libc-alpha@sourceware.org
Subject: Re: [PATCH] mtrace: Fix output with PIE and ASLR [BZ #22716]
Date: Thu, 22 Jul 2021 20:49:04 +0530	[thread overview]
Message-ID: <d8059a0e-9f54-fffd-e8e5-4f70e5c4d568@sourceware.org> (raw)
In-Reply-To: <877dhis8z7.fsf@jogness.linutronix.de>

On 7/22/21 8:15 PM, John Ogness via Libc-alpha wrote:
> OK, but settings MALLOC_TRACE will cause the memory addresses to be
> stored. So it is l_addr that must be subtracted for addr2line.

I forgot to mention that you cannot subtract across two different runs 
like that because they will have different base addresses due to ASLR.

Siddhesh

  parent reply	other threads:[~2021-07-22 15:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-22 13:24 [PATCH] mtrace: Fix output with PIE and ASLR [BZ #22716] Siddhesh Poyarekar via Libc-alpha
2021-07-22 14:12 ` John Ogness via Libc-alpha
2021-07-22 14:31   ` Siddhesh Poyarekar via Libc-alpha
2021-07-22 14:45     ` John Ogness via Libc-alpha
2021-07-22 15:17       ` Siddhesh Poyarekar via Libc-alpha
2021-07-22 15:19       ` Siddhesh Poyarekar via Libc-alpha [this message]
2021-08-11  7:41 ` [PING][PATCH] " Siddhesh Poyarekar via Libc-alpha
2021-08-12  4:15 ` [PATCH] " DJ Delorie via Libc-alpha
2021-08-12  4:33   ` Siddhesh Poyarekar via Libc-alpha
2021-08-12  4:35     ` DJ Delorie via Libc-alpha

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/libc/involved.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d8059a0e-9f54-fffd-e8e5-4f70e5c4d568@sourceware.org \
    --to=libc-alpha@sourceware.org \
    --cc=john.ogness@linutronix.de \
    --cc=siddhesh@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).