* perf report -k kfoo -C bar (3.2.14) crashes
@ 2012-04-06 11:36 Kant
2012-04-06 14:59 ` David Ahern
0 siblings, 1 reply; 2+ messages in thread
From: Kant @ 2012-04-06 11:36 UTC (permalink / raw)
To: linux-perf-users
(gdb) bt
#0 0x000000000041adb0 in __cmd_report () at builtin-report.c:315
#1 cmd_report (argc=<optimized out>, argv=<optimized out>,
prefix=<optimized out>) at builtin-report.c:575
#2 0x000000000041129f in run_builtin (p=p@entry=0x6aab88,
argc=argc@entry=6, argv=argv@entry=0x7e2c43b8e760) at perf.c:286
#3 0x0000000000410b2f in handle_internal_command
(argv=0x7e2c43b8e760, argc=6) at perf.c:358
#4 run_argv (argv=0x7e2c43b8e560, argcp=0x7e2c43b8e56c) at perf.c:402
#5 main (argc=6, argv=0x7e2c43b8e760) at perf.c:512
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: perf report -k kfoo -C bar (3.2.14) crashes
2012-04-06 11:36 perf report -k kfoo -C bar (3.2.14) crashes Kant
@ 2012-04-06 14:59 ` David Ahern
0 siblings, 0 replies; 2+ messages in thread
From: David Ahern @ 2012-04-06 14:59 UTC (permalink / raw)
To: Kant; +Cc: linux-perf-users
On 4/6/12 5:36 AM, Kant wrote:
> (gdb) bt
> #0 0x000000000041adb0 in __cmd_report () at builtin-report.c:315
> #1 cmd_report (argc=<optimized out>, argv=<optimized out>,
> prefix=<optimized out>) at builtin-report.c:575
> #2 0x000000000041129f in run_builtin (p=p@entry=0x6aab88,
> argc=argc@entry=6, argv=argv@entry=0x7e2c43b8e760) at perf.c:286
> #3 0x0000000000410b2f in handle_internal_command
> (argv=0x7e2c43b8e760, argc=6) at perf.c:358
> #4 run_argv (argv=0x7e2c43b8e560, argcp=0x7e2c43b8e56c) at perf.c:402
> #5 main (argc=6, argv=0x7e2c43b8e760) at perf.c:512
> --
> To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
Fixed by 47fbe53bef3b219a365ebf3eca949d6cd4c5291c.I guess that one did
not make it into 3.2 stable.
Here's the diff if you want to apply it to your branch:
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c
index 85c1e6b7..0f4555c 100644
--- a/tools/perf/util/session.c
+++ b/tools/perf/util/session.c
@@ -1333,6 +1333,10 @@ int perf_session__cpu_bitmap(struct perf_session
*session,
}
map = cpu_map__new(cpu_list);
+ if (map == NULL) {
+ pr_err("Invalid cpu_list\n");
+ return -1;
+ }
for (i = 0; i < map->nr; i++) {
int cpu = map->map[i];
David
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-04-06 14:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-06 11:36 perf report -k kfoo -C bar (3.2.14) crashes Kant
2012-04-06 14:59 ` David Ahern
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 NNTP newsgroup(s).