Received: by 10.223.164.202 with SMTP id h10csp368111wrb; Tue, 14 Nov 2017 02:55:19 -0800 (PST) X-Google-Smtp-Source: AGs4zMYsXQCt0h3izj7IZ3kLaOjl2HjnNzQMZC0hHl39b6KV8ac1nHrv0aIX7h1oD2zyYBmsTHxS X-Received: by 10.159.246.134 with SMTP id c6mr5241791pls.371.1510656919403; Tue, 14 Nov 2017 02:55:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510656919; cv=none; d=google.com; s=arc-20160816; b=Jj6I7lXJGyuFerA8IS9H7q543+qND8EdnfC6HZ1lAsXiqyiDM3WlLX7LvSrcX4x2vV ofBN0T/JMm7oYKGa0XGmeuvSxuXnF3dFpuBC9KxDkxIyPI9aXyBK3Mp7ENjq7Qk1yeo2 jJPJ88lmYabkOoM5FmFv78Hprl1K0cUd8Uh162hrzjsee356OtZOqmJIP5VdX1d0XMp6 kmfFmoP7I3ZBawHtJuZPuWk3iIYvg0GHe+1lEqLVCTtZZ5NN6y+sOlXEw+LN2MzIno00 KGMl1gXA3JCUsCleRAOBeNXXlZRERi8Pjc3FijYjyDfCD6OK5Xprigr3CN219IZl/gyd 1y0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :from:references:cc:to:subject:arc-authentication-results; bh=7kdRvaKeSReLjy15i0fQeWhbxnRWBk1UQ2amskC+gaU=; b=k4ibvWSaJ5kZP2Iy/6uG+TYDYDSoDFhAx8PC7rRZMzAXMxnGCDrR7MOkogIga1AmFY jifURonC3bw3fAbzvAcD0XcN1MpNVwU7ttPjHVfreKarzFudsNCPe5eXbacjlFM81LeI sB6E+6R9CYJcy738u33JkMZNTtrD6f7t6LGUpZPP5Z0+1cbZSjmHl9dSFBxGBMlpqTQo q9gAI1oU5Lb9MjOE5rHa/q5xZrLVG1f/CPLwDJZylje2VHZmUHr7CA30q32md/ZxlacK 6bZqriNcuosxMH6KUqaxO6bxnrD/+fvOLPdGDSy9BI8mf4h3rv0xuX4AiOgz4OwS3aBr pn/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e7si15931373plk.168.2017.11.14.02.55.07; Tue, 14 Nov 2017 02:55:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754289AbdKNKPZ (ORCPT + 87 others); Tue, 14 Nov 2017 05:15:25 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:55978 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754110AbdKNKPP (ORCPT ); Tue, 14 Nov 2017 05:15:15 -0500 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vAEAEn0B059218 for ; Tue, 14 Nov 2017 05:15:15 -0500 Received: from e06smtp14.uk.ibm.com (e06smtp14.uk.ibm.com [195.75.94.110]) by mx0b-001b2d01.pphosted.com with ESMTP id 2e7wcdustm-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 14 Nov 2017 05:15:14 -0500 Received: from localhost by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 14 Nov 2017 10:15:12 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp14.uk.ibm.com (192.168.101.144) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 14 Nov 2017 10:15:09 -0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id vAEAF9oi43450476; Tue, 14 Nov 2017 10:15:09 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 045ECAE055; Tue, 14 Nov 2017 10:08:36 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3DB40AE051; Tue, 14 Nov 2017 10:08:34 +0000 (GMT) Received: from [9.124.35.198] (unknown [9.124.35.198]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 14 Nov 2017 10:08:34 +0000 (GMT) Subject: Re: [PATCH 16/35] perf annotate: Add samples into struct annotation_line To: Jiri Olsa Cc: Jiri Olsa , Arnaldo Carvalho de Melo , lkml , Ingo Molnar , Namhyung Kim , David Ahern , Peter Zijlstra , Andi Kleen , ravi.bangoria@linux.vnet.ibm.com References: <20171011150158.11895-1-jolsa@kernel.org> <20171011150158.11895-17-jolsa@kernel.org> <20171113201438.GB26900@krava> <20171114093114.GA25679@krava> From: Ravi Bangoria Date: Tue, 14 Nov 2017 15:45:27 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171114093114.GA25679@krava> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-TM-AS-GCONF: 00 x-cbid: 17111410-0016-0000-0000-000005010C63 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17111410-0017-0000-0000-0000283CC2F2 Message-Id: <2d6af5ff-dad9-f2a1-e183-5dc79f91702b@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-11-14_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1711140139 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jiri, On 11/14/2017 03:01 PM, Jiri Olsa wrote: > On Mon, Nov 13, 2017 at 09:14:38PM +0100, Jiri Olsa wrote: >> On Mon, Nov 13, 2017 at 09:16:20PM +0530, Ravi Bangoria wrote: >>> Hi Jiri, >>> >>> This patch seems to be causing segfault with "perf top --stdio". >>> >>> Steps to reproduce: >>> 1. start "perf top --stdio" in one terminal >>> 2. run some simple workload in another terminal, let it get finished. >>> 3. annotate function from previous workload in perf top (press 'a' followed >>> by 's') >>> >>> Perf will crash with: >>> >>>   perf: Segmentation fault >>>   Obtained 8 stack frames. >>>   ./perf(sighandler_dump_stack+0x3e) [0x4f1b6e] >>>   /lib64/libc.so.6(+0x36a7f) [0x7ff3aa7e4a7f] >>>   ./perf() [0x4a27fd] >>>   ./perf(symbol__annotate+0x199) [0x4a4439] >>>   ./perf() [0x44e32d] >>>   ./perf() [0x44f098] >>>   /lib64/libpthread.so.0(+0x736c) [0x7ff3acee836c] >>>   /lib64/libc.so.6(clone+0x3e) [0x7ff3aa8bee1e] >>> >>> Can you please check. >> hum, I'm getting following crash after resizing the terminal window: >> >> perf: Floating point exception >> Obtained 8 stack frames. >> ./perf(dump_stack+0x2e) [0x510c89] >> ./perf(sighandler_dump_stack+0x2e) [0x510d69] >> /lib64/libc.so.6(+0x36a80) [0x7f9419588a80] >> ./perf(perf_top__header_snprintf+0x208) [0x4f42c1] >> ./perf() [0x453c09] >> ./perf() [0x454ddb] >> /lib64/libpthread.so.0(+0x736d) [0x7f941bc8c36d] >> /lib64/libc.so.6(clone+0x3f) [0x7f9419662e1f] >> Floating point exception (core dumped) >> >> working on fix > so my crash is caused by bogus resize code, I have it working with fix for > memory corruption happening in SIGWINCH signal handler (attached) > could you please check if that fixes the code for you? Yes, this fixes the crash caused by resize. But original crash I reported is still there. Issue seems to be with evsel being NULL and we are trying to de-reference it somewhere inside annotation_line__new(). Will try to spend more time on it. -Ravi From 1584033463804063653@xxx Tue Nov 14 09:33:50 +0000 2017 X-GM-THRID: 1580974192078564530 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread