From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Sharma Subject: [BUG] perf report core dump Date: Fri, 10 Jun 2011 16:15:54 -0700 Message-ID: <4DF2A5AA.90409@fb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from outcampmail001.snc4.facebook.com ([66.220.144.159]:34611 "EHLO mx-out.facebook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758258Ab1FJXPQ (ORCPT ); Fri, 10 Jun 2011 19:15:16 -0400 Sender: linux-perf-users-owner@vger.kernel.org List-ID: To: linux-perf-users@vger.kernel.org Cc: Sam Liao This happens only with --tui. --stdio is ok for some strange reason. Core was generated by `perf report -g fractal 0.5 caller --sort pid'. Program terminated with signal 11, Segmentation fault. #0 symbol__inc_addr_samples (sym=0xacf360, map=, evidx=0, addr=179753205) at util/annotate.c:71 71 util/annotate.c: No such file or directory. in util/annotate.c (gdb) bt #0 symbol__inc_addr_samples (sym=0xacf360, map=, evidx=0, addr=179753205) at util/annotate.c:71 #1 0x000000000040ec7a in process_sample_event (event=, sample=0x7fff5a631400, evsel=0x7cbed0, session=0x7ca2c0) at builtin-report.c:92 #2 0x000000000043e8a4 in __perf_session__process_events (session=0x7ca2c0, data_offset=, data_size=, file_size=7730296, ops=0x689340) at util/session.c:511 #3 0x000000000043ee0a in perf_session__process_events (self=0x7ca2c0, ops=0x689340) at util/session.c:1117 #4 0x000000000040ef40 in cmd_report (argc=0, argv=, prefix=) at builtin-report.c:272 #5 0x000000000040565b in handle_internal_command (argc=5, argv=0x7fff5a632830) at perf.c:286 (gdb) x /i $rip 0x41e3cd : mov 0x8(%rdx,%rcx,8),%rax (gdb) p /x addr - sym->start $9 = 0xffffffffdc290285 util/annotate.c 68 offset = addr - sym->start; 69 h = annotation__histogram(notes, evidx); 70 h->sum++; 71 h->addr[offset]++; Not sure why offset is negative here. We might need some extra checks. -Arun