From patchwork Tue Sep 26 17:08:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abdur Rehman X-Patchwork-Id: 818740 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=googlegroups.com (client-ip=2607:f8b0:4003:c06::23f; helo=mail-oi0-x23f.google.com; envelope-from=swupdate+bncbdp2xjf36iirbbutvlhakgqekkzloiy@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b="XlIa6klh"; dkim-atps=neutral Received: from mail-oi0-x23f.google.com (mail-oi0-x23f.google.com [IPv6:2607:f8b0:4003:c06::23f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3y1nTk3W0Qz9t16 for ; Wed, 27 Sep 2017 03:08:25 +1000 (AEST) Received: by mail-oi0-x23f.google.com with SMTP id j126sf5688134oia.7 for ; Tue, 26 Sep 2017 10:08:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1506445703; cv=pass; d=google.com; s=arc-20160816; b=SQ2czIo4uB8YCSEd0fephXKG9IIRxrjjmZRWJBpzNlDoDfrdJTv/gVfOOnqRHnv/+U xdPFyoCelkGFg0ytTmC53eOmPLPx16XVZRK0K5hATv3WBvy9Q2ynhBbiiMSlQ/Q3/gQ4 6imXr0rDHlu52kEQtwsuqHgdQfTIzLZBnDd/OOiZkLNkffLPHdnl2nEvK1gpb+k9WFe9 14NPE7MgcoPy6pZzM6mM3F+RusZmN9nyqHTiX85mE0X0GHTYw3OaHo81Sh2FapExwkyz hKCoTrZcnLaKw21jpsCClFzUmLq3QkFBB9QqLa8Qqoo4V0h5e6c9xkLOHYGbEow7mYff 399Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:content-language :accept-language:message-id:date:thread-index:thread-topic:subject :cc:to:from:arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=/vs0uj7tgb6Tr2fo3LFPs/6lybnp6WO6ZWjyl9xEQe8=; b=yEmVAU72m2X4L7UcQ0+JqBJe8e5n+NctrEWm/qKHoN58aL5GbCshTrcKPng7fjt+Ap HQuTigyhDmhV8j4GQM4mYtNqd7dX+5lc7aoPeKIUCn4LR0aR5l3WKdwCAHclQFji/2M4 rBHD1mHoibCHOp4GFyI2eOrXCP/qDcRhmjSyJsE10t4iGusHzcGMRCjoYn9ef7ijK3zY 4qq5KtdyVPvYx239Ln9wLBMBcTQ8BgHN3ByKcTxj9DxkxMKaOy/U/07xLLJ9jVPDmZO8 6W+88g6tD7yQosBNuItG5Te7leVgUFrHAAzSEOMkirp2vfpV7iBnePk6D73Z3/b6sMKz T0zw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of abdur_rehman@mentor.com designates 192.94.38.131 as permitted sender) smtp.mailfrom=Abdur_Rehman@mentor.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:thread-topic:thread-index:date:message-id :accept-language:content-language:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=/vs0uj7tgb6Tr2fo3LFPs/6lybnp6WO6ZWjyl9xEQe8=; b=XlIa6klhoiRkKPsd82s7OBlnNkiVlUNbTCHxfDUugT5h6PwDOuLLMBr8Nh6o16mLnq BEKAm4Nox8y4mBZtyHZ5TnWcFP7NJaFeBzxl8n4rGejSEmWinJ+xxORsQ+W8vGMV3c1d 1UdY0bVqaSUosaTHpRC1SLHaew8KstahoDVj98rLz3D4pQPvsecoVYrnzkqp7gJNM/l0 zw1S/hSZ0laJkVbrQTFcnBNbQYfG6xiXaLcOrvPnxHeCgaA04j7zxNxtkjZ30bBhpK9Q eeJoZa389izFMklTFm87M2FOI9bQKeFgk/wiCxCqTgBA5vaHE7ECHZR2aGviNdhkES4i wPiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:thread-topic :thread-index:date:message-id:accept-language:content-language :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=/vs0uj7tgb6Tr2fo3LFPs/6lybnp6WO6ZWjyl9xEQe8=; b=ixfUB/npSN+blaZpptIbZQ07OOrQ+1BDgLUgGeDgKW1Xj7MoeWbvwkwOHEKWFtyeEd ZHTQMtz41ogzFBmEBLpEtiZgmqDU4N6lvYgXT38TL+nw6bufTIY6z4aNPG8Nz9v7Mv2t HIJKWZs16PMYzPPci+89Dhqdb2GuozvMPJSR29X4av/ylYPy/k/OMANDDFL5jz47ijda +BeS4T/Wabp4UjlAPglnBOuy5leOZQJlpVQosuQYdz3I/fbfG/TIwwEkc6MsvvWaFJrV RJhb3s+JSzL1BIKbX9uuSddIRZ3RPx22+dvh6UIa/Gf9/4luKWHUdCDiGwFXHGOiBadH MiyA== Sender: swupdate@googlegroups.com X-Gm-Message-State: AHPjjUgyqjnZK5DVtLgwdb1jmecnKHVPMNZXDT7ceqi9Jp9HKxs34c7Z AwLT8jl+2sz0bQuQjXOQg/c= X-Google-Smtp-Source: AOwi7QDmkE16Cuw2WZJeVgblQ6A4NQv6Ie/TxFJoE4//wAbY1luLzHsBA1H/n6kTZNycDVQrcZontg== X-Received: by 10.157.83.9 with SMTP id g9mr165865oth.24.1506445702909; Tue, 26 Sep 2017 10:08:22 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 10.202.206.141 with SMTP id e135ls6768530oig.4.gmail; Tue, 26 Sep 2017 10:08:22 -0700 (PDT) X-Received: by 10.202.6.1 with SMTP id 1mr4866522oig.61.1506445702612; Tue, 26 Sep 2017 10:08:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506445702; cv=none; d=google.com; s=arc-20160816; b=Mk/bLmSCH79TdzU6k9gT0/s8semhAPjtUbV3eCxUPOtcLjZsgw/25mt86fsboS1VFu KXZFxJwZ1kkxQegcO+t9Tt6siS/KpWykiE5qskJov6rG0waaPzS26XsQfmxwTRB7kgqz muVA5NH5S62ImvFkvmuv3O4cTesKytvCPbY+d4BuHFKn7Z/zGyu0bUxjDVRYY9zSWhX/ vqzeIiGIs9qbyvW/0wJLScjFQykW4Iaz/pUt+ddzJT+BOsa7fdXZN9dzjpmnEWKbU050 qbmVj2CMrS9hFQNDyyK6SAJae5PtRqSc7OY1f0ykLrXvR60mjTwh7J0fr2T1RS8qSdLj YcrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-transfer-encoding:content-language :accept-language:message-id:date:thread-index:thread-topic:subject :cc:to:from:arc-authentication-results; bh=HeNjn5+IiBvmH8W2Q+ck6HObGLI4bejc3mwjLhxeuxI=; b=RLyozDC4sLjRf0KobwjaTvPWzaaFvGCFZL334STvM4JNYXUYeJKoy/I4hKUmDPl0fH MAk0VGoBxv1Idmrpt/kbElBQSm1KpuP91QYBLt761IcNlzbcDzT6jrt5EYcMZlI6cOiN htzfVu1OnMlKvc4WA7On7ZbOZ2eC9YWn3dwwpzwwU7klW07a+VNfRWkT5xistmz1gYLQ 4Px+63NASX+XKP7+pPTJ0LHvu/pJ01XsUFynvKEH/024RyyPzwvEW7J25vXP1gvZPz6W CQ59OszXj96v0C4z1vVpiglq3fzw1kFs0P89UEpW8xEKzMusH7wvr6E0/UgKHSNgrxuz YbOw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of abdur_rehman@mentor.com designates 192.94.38.131 as permitted sender) smtp.mailfrom=Abdur_Rehman@mentor.com Received: from relay1.mentorg.com (relay1.mentorg.com. [192.94.38.131]) by gmr-mx.google.com with ESMTPS id z74si687332pfj.21.2017.09.26.10.08.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Sep 2017 10:08:22 -0700 (PDT) Received-SPF: pass (google.com: domain of abdur_rehman@mentor.com designates 192.94.38.131 as permitted sender) client-ip=192.94.38.131; Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-MBX-04.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1dwtLK-0001L9-3z from Abdur_Rehman@mentor.com for swupdate@googlegroups.com; Tue, 26 Sep 2017 10:08:22 -0700 Received: from SVR-IES-MBX-03.mgc.mentorg.com (139.181.222.3) by SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Tue, 26 Sep 2017 18:08:18 +0100 Received: from SVR-IES-MBX-03.mgc.mentorg.com ([fe80::1072:fb6e:87f1:ed17]) by SVR-IES-MBX-03.mgc.mentorg.com ([fe80::1072:fb6e:87f1:ed17%22]) with mapi id 15.00.1263.000; Tue, 26 Sep 2017 18:08:18 +0100 From: "Rehman, Abdur" To: "swupdate@googlegroups.com" CC: "Arslan, Fahad" Subject: [swupdate] IPC client tool, Illegal instruction Thread-Topic: IPC client tool, Illegal instruction Thread-Index: AQHTNukC3Lt6EBaAEEW7MgOxSIl8UQ== Date: Tue, 26 Sep 2017 17:08:18 +0000 Message-ID: <1506445698627.22262@mentor.com> Accept-Language: en-US, en-IE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [137.202.0.87] MIME-Version: 1.0 X-Original-Sender: abdur_rehman@mentor.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of abdur_rehman@mentor.com designates 192.94.38.131 as permitted sender) smtp.mailfrom=Abdur_Rehman@mentor.com Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Hi, I am seeing an illegal instruction error in the ipc client when I try to do anything after the update is successful. This is reproducible with following change in the ipc client: The update is successful but after a couple hundred prints, the application exits with an "Illegal instruction, core dumped" message. Has anyone else encountered this? Any suggestions on how to fix it? Regards Abdur --- tools/client.c 2017-09-26 19:41:53.751626972 +0500 +++ tools/client-ill.c 2017-09-26 22:04:19.907746650 +0500 @@ -125,6 +125,7 @@ /* End called, unlock and exit */ pthread_mutex_unlock(&mymutex); + close(fd); return 0; } @@ -165,6 +166,10 @@ } } + int i; + for(i = 0; i < 1000; i++) printf("The current value of i is %d\n", i); + sleep(1); + exit(0); }