From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id DD47AA00E6 for ; Fri, 19 Apr 2019 03:11:11 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 35CDF1BA30; Fri, 19 Apr 2019 03:11:11 +0200 (CEST) Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by dpdk.org (Postfix) with ESMTP id 1C8312986 for ; Fri, 19 Apr 2019 03:11:09 +0200 (CEST) Received: by mail-pl1-f180.google.com with SMTP id y6so1937890plt.1 for ; Thu, 18 Apr 2019 18:11:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=csie-io.20150623.gappssmtp.com; s=20150623; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=PV4/u44b3o0kQSccUcbCid0NyCyPVqA7HGmER3Y+7rU=; b=oCf9TawgfBfFP55+1Y1L9R9hfcoFYLlqZNXmvnPwhAvzCtUnitRHdwPqObUEI+x5xC gVjsXW70f9vLy26P7J+79vkaSM8K8FTZ5mX8eJqF3Hg08DsDzvpTrXYgHFb54WV5bIXB ndWeNfN47toMZrDqigUeBcNewmlSRCuTza7T8bTCb/b2UiHfijvv6pQxelDx4WcNZ4hQ GeWOR7FdlaKzw1k1YwkgmwUG8ujoeXSkTky6R4R+Gz+Jl23TEnwr8Lt8dzQovR+NYqqY ZZEthnubmBMUk+tIz3pNQ8BNCz3oxUFi024rFycrP6gSIHcoxRpXlUAk4Lhw9EEmg8+B 4J3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=PV4/u44b3o0kQSccUcbCid0NyCyPVqA7HGmER3Y+7rU=; b=jsj80hFq/gLkoX5Ix4RQlKD8a7PXreCsJeh2BDnrz8v43uTdv0iCfw67YUeUM6pUNa DvJJXp8S+T3HfOh+xyhdCP5miqWguvEoAzMbyYJrXOz5mQGVkIX4vuGHOgKoK9KytZVb flXF0IXJvRZFUUanSwPvfJyk+JZThakFLxqqWowOSCqQdJRaEzGWH0UJ5SFDbJRa5hQW LeDm5sgdwAyzMiy99LEGAqlOedi/OYFewPvqEWnYFW5blNhQwfE0P8kAAM/tTfzYo7lu lhdkvaKXTqUaALvqP1n16gk1ldr8KLhctp4KD3tj+seXK22nuOP2SUZXqEV57LEAnb0e knMQ== X-Gm-Message-State: APjAAAUyWqzeSXWjH8gO/c5TPBkRMcGQHecMcniuV1rp/qx9KwykE3Bl ZbIMwLd9LpawhKfLnOGY6skUbSg54Jw= X-Google-Smtp-Source: APXvYqx1xXM7AwGnU3tbVq7ywOdAE1UiHrLeVgnBD0mgRZm0f8iTSF2tfYSMShIcqi+MwGJI0d9FQg== X-Received: by 2002:a17:902:141:: with SMTP id 59mr828076plb.132.1555636268014; Thu, 18 Apr 2019 18:11:08 -0700 (PDT) Received: from 2001-b400-e357-d2bb-6c18-c115-01b4-21ce.emome-ip6.hinet.net (2001-b400-e357-d2bb-6c18-c115-01b4-21ce.emome-ip6.hinet.net. [2001:b400:e357:d2bb:6c18:c115:1b4:21ce]) by smtp.gmail.com with ESMTPSA id d68sm7394599pfg.16.2019.04.18.18.11.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Apr 2019 18:11:07 -0700 (PDT) From: =?utf-8?B?5pu+5oe35oGp?= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Message-Id: <5BDADE86-3D04-4BE5-AC95-03BE123ED42B@csie.io> Date: Fri, 19 Apr 2019 09:11:05 +0800 To: users@dpdk.org X-Mailer: Apple Mail (2.3445.104.8) Subject: [dpdk-users] segmentation fault after using rte_malloc() X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Hi all,=20 i have 1 problem while using rte_malloc Every time I use this function and use the memory it returns, it = shows segmentation fault(core dump) Is something wrong? thanks. rte init =E2=80=A6 =E2=80=A6=E2=80=A6=E2=80=A6... unsigned char *str1; printf("str1 addr =3D %x\n", str1); str1 =3D rte_malloc(NULL,2,RTE_CACHE_LINE_SIZE); printf("str1 addr =3D %x\n", str1); str1[0] =3D 'a=E2=80=99; //segmentation fault here str1[1] =3D '\0';=