Linux-csky Archive on
 help / color / Atom feed
From: Paul Walmsley <>
To: Mao Han <>
Cc:,,, Palmer Dabbelt <>,
	Albert Ou <>
Subject: Re: [PATCH 1/1] riscv: Fix perf record without libelf support
Date: Thu, 25 Jul 2019 14:11:46 -0700 (PDT)
Message-ID: <> (raw)
In-Reply-To: <>

On Thu, 11 Jul 2019, Mao Han wrote:

> This patch fix following perf record error by linking with
> build id.
> [ perf record: Woken up 1 times to write data ]
> free(): double free detected in tcache 2
> Aborted
> perf record use filename__read_build_id(util/symbol-minimal.c) to get
> build id when libelf is not supported. When is linked without
> build id, the section size of PT_NOTE will be zero, buf size will
> realloc to zero and cause memory corruption.
> Signed-off-by: Mao Han <>
> Cc: Paul Walmsley <>
> Cc: Palmer Dabbelt <>
> Cc: Albert Ou <>

Thanks, queued for v5.3-rc.

Also: thanks for your patience on the perf callchain patches.

- Paul

      reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-11  2:38 Mao Han
2019-07-25 21:11 ` Paul Walmsley [this message]

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:

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

  git send-email \ \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-csky Archive on

Archives are clonable:
	git clone --mirror linux-csky/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-csky linux-csky/ \
	public-inbox-index linux-csky

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone