Re: [PATCH 1/1] broken perf tool on 4.4-rc1

From: Wangnan (F)
Date: Sun Jan 31 2016 - 21:18:07 EST




On 2016/1/31 5:02, Tong Zhang wrote:
reproduce:
lzto@objd ~ $ ~/linux/tools/perf/perf record -I -e intel_pt/tsc=1,noretcomp=1/u /bin/ls
lzto@objd ~ $ ~/linux/tools/perf/perf script -F event,comm,pid,tid,time,addr,ip,sym,dso,iregs
Segmentation fault
lzto@objd ~ $

Upon further investigation, it seems that
commit 747a9b0a08ae ("Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip")
breaks perf tool.

__list_del(): tools/include/linux/list.h does not check null pointer dereference

I don't have a Boradwell system, unable to reproduce the fault.

Could you please give the output of gdb's bt command?

We should try to fix the inappropriate list operation.

Thank you.