From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f42.google.com (mail-pg0-f42.google.com [74.125.83.42]) by dpdk.org (Postfix) with ESMTP id D98287CC8 for ; Thu, 7 Sep 2017 16:58:15 +0200 (CEST) Received: by mail-pg0-f42.google.com with SMTP id d8so21226804pgt.4 for ; Thu, 07 Sep 2017 07:58:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WUUQyO+Dd3LwNoj7usxC/6YGznVlaY15C0dD4fgA76I=; b=hPupCUegM1K1PPNEo8qD3SZ3XIuShUg/hzXe6jjTSFk6prw2q68/jigK8107vmI+2L lC7XWAC5czanyIi849CKQvoiwf3nWhzYI4DIUDTOHA/hoKHOwpojT5lGwRHOVDwgEOCN JCoPHpBK5IFxMMgzioscdyktI/RSdINiXrYPlJ7KgGD2UfMD6FSSYgiPAdVQafPEBhO7 Wpf/bx9a3nEGsFOsLtBcr1RDatTHbWaTwZPm8y/A438vfvPW88t/XF+fBMk9F9HEmdPw 895L2uAYCJsy0TFdZ0Y7nbCuC4oxgKQqsap8wth/QJZiRBsBkVgzHVA4+8cbBz8Ol7Au 3GJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WUUQyO+Dd3LwNoj7usxC/6YGznVlaY15C0dD4fgA76I=; b=pTwVjgnurZR0pzykn2IQFJq0D3H9MOqjlbXgwye7QrN59+6XHqQRJWvoqrdJ8TBYFY AN+J8WT9wHK0CvnedyEPSxu3fsXpd/damI4b2LPQeJbkxu/f4iAiKMzuwqYxLN/1fyW5 cek7d8Bv4EB/MDOtYoC+jSxKxlkw+XdXvV7qEccyWavYjMpADCL23u9BDdMLOLdWdBAv c0N0HF5K3SM3DAiqyxU0Kyv2UxeepGCTpKzQCq29UGGyLgn9Y+dp6i7eJA+YNsN2TPJ1 K1xS9XdAzsRryw2Kz7GzLwXN4jvlZaeK8DW3l7dlCjR0wChZ2xQfOGy+Qm/jydk0HoT8 caEw== X-Gm-Message-State: AHPjjUhmd5nwVLdKpte1OekL6IGcDFxeA8PA6JzfuVqFyt9oPhy+qiht pN2N5rGdrZgzjpsk X-Google-Smtp-Source: ADKCNb7KEiY6XVRF+3Khh3uD5twfCUdMrSiX7rcHwh0sy0aQTcbFCSmM3OJREhKCnJrmMZ4gXCikUw== X-Received: by 10.99.137.72 with SMTP id v69mr416988pgd.418.1504796295105; Thu, 07 Sep 2017 07:58:15 -0700 (PDT) Received: from xeon-e3 (76-14-207-240.or.wavecable.com. [76.14.207.240]) by smtp.gmail.com with ESMTPSA id q67sm4627645pfg.37.2017.09.07.07.58.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Sep 2017 07:58:14 -0700 (PDT) Date: Thu, 7 Sep 2017 07:58:08 -0700 From: Stephen Hemminger To: longtb5@viettel.com.vn Cc: users@dpdk.org Message-ID: <20170907075808.09fc227a@xeon-e3> In-Reply-To: <1551920177.73501197.1504745506408.JavaMail.zimbra@viettel.com.vn> References: <142883318.73479844.1504745082183.JavaMail.zimbra@viettel.com.vn> <1551920177.73501197.1504745506408.JavaMail.zimbra@viettel.com.vn> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-users] [VMXNET3] vmxnet3_dev_stats_get() segfault when called by pktgen 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: , X-List-Received-Date: Thu, 07 Sep 2017 14:58:16 -0000 On Thu, 7 Sep 2017 07:51:46 +0700 (ICT) longtb5@viettel.com.vn wrote: > Hi, > > I'm running Ubuntu 16.04 on my VM with vmxnet3 as the NIC. I have successfully installed DPDK > and managed to run a few sample apps. However when I tried pktgen the kernel threw a SIGSEGV > without me doing anything yet. > > $ sudo .app/x86_64-native-linuxapp-gcc/pktgen > > Pktgen:/> > ====== Pktgen got a Segment Fault > > Obtained 11 stack frames. > app/x86_64-native-linuxapp-gcc/pktgen() [0x468ba5] > /lib/x86_64-linux-gnu/libc.so.6(+0x354b0) [0x7f1e618de4b0] > app/x86_64-native-linuxapp-gcc/pktgen() [0x6c7c70] > app/x86_64-native-linuxapp-gcc/pktgen(rte_eth_stats_get+0x79) [0x4a3fe9] > app/x86_64-native-linuxapp-gcc/pktgen(pktgen_process_stats+0xa9) [0x46f0f9] > app/x86_64-native-linuxapp-gcc/pktgen(rte_timer_manage+0x526) [0x48ca96] > app/x86_64-native-linuxapp-gcc/pktgen(cli_start+0x26d) [0x71276d] > app/x86_64-native-linuxapp-gcc/pktgen(pktgen_cli_start+0xb) [0x4509bb] > app/x86_64-native-linuxapp-gcc/pktgen(main+0x7a6) [0x447b86] > /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f1e618c9830] > app/x86_64-native-linuxapp-gcc/pktgen(_start+0x29) [0x44a639] > > # gdb .app/x86_64-native-linuxapp-gcc/pktgen > > Pktgen:/> > Thread 1 "pktgen" received signal SIGSEGV, Segmentation fault. > 0x00000000006c7c70 in vmxnet3_dev_stats_get () > > I tried using older versions of DPDK and pktgen but nothing worked so far. > > Is it a problem on my end? Like, the way I set up the NICs in my VM? Or is it a bug? > > BR, > > Long. If you modify the Makefiles for pktgen, ethdev, and vmxnet3 to have -g flag then you will get more symbolic data which makes better backtrace.