All of lore.kernel.org
 help / color / mirror / Atom feed
* [BUG] perf/script: segfault on simple command
@ 2015-08-05 22:40 Stephane Eranian
  2015-08-06  5:41 ` Jiri Olsa
  0 siblings, 1 reply; 4+ messages in thread
From: Stephane Eranian @ 2015-08-05 22:40 UTC (permalink / raw)
  To: LKML
  Cc: Arnaldo Carvalho de Melo, Jiri Olsa, Peter Zijlstra,
	mingo@elte.hu, Namhyung Kim, Adrian Hunter

Hi Arnaldo, Jiri

Running this simple command from tip.git tree, I get:


$ perf record ls

[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.011 MB perf.data (9 samples) ]

$ perf script
Segmentation fault (core dumped)

$ gdb perf
(gdb) r script

Program received signal SIGSEGV, Segmentation fault.
0x000000000050f98b in pevent_set_function_resolver (pevent=0x0,
func=0x4b2f50 <machine__resolve_kernel_addr>, priv=0x180bf98) at
event-parse.c:464
464 free(pevent->func_resolver);
(gdb) bt
#0  0x000000000050f98b in pevent_set_function_resolver (pevent=0x0,
func=0x4b2f50 <machine__resolve_kernel_addr>, priv=0x180bf98) at
event-parse.c:464
#1  0x000000000043cf2a in cmd_script (argc=0, argv=0x7fffffffe320,
prefix=<optimized out>) at builtin-script.c:1864
#2  0x0000000000474025 in run_builtin (p=p@entry=0x77a810
<commands+336>, argc=argc@entry=1, argv=argv@entry=0x7fffffffe320) at
perf.c:370
#3  0x000000000041cb50 in handle_internal_command
(argv=0x7fffffffe320, argc=1) at perf.c:429
#4  run_argv (argv=0x7fffffffe0a0, argcp=0x7fffffffe0ac) at perf.c:473
#5  main (argc=1, argv=0x7fffffffe320) at perf.c:588

Looks like something is fundamentally broken here.
Do you know what?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-06 15:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-05 22:40 [BUG] perf/script: segfault on simple command Stephane Eranian
2015-08-06  5:41 ` Jiri Olsa
2015-08-06 14:28   ` Arnaldo Carvalho de Melo
2015-08-06 14:38     ` Arnaldo Carvalho de Melo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.