From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 3EC3B593A for ; Mon, 20 Apr 2015 20:07:09 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP; 20 Apr 2015 11:04:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,610,1422950400"; d="scan'208";a="682907249" Received: from orsmsx101.amr.corp.intel.com ([10.22.225.128]) by orsmga001.jf.intel.com with ESMTP; 20 Apr 2015 11:04:17 -0700 Received: from orsmsx153.amr.corp.intel.com (10.22.226.247) by ORSMSX101.amr.corp.intel.com (10.22.225.128) with Microsoft SMTP Server (TLS) id 14.3.224.2; Mon, 20 Apr 2015 11:04:17 -0700 Received: from fmsmsx105.amr.corp.intel.com (10.18.124.203) by ORSMSX153.amr.corp.intel.com (10.22.226.247) with Microsoft SMTP Server (TLS) id 14.3.224.2; Mon, 20 Apr 2015 11:04:16 -0700 Received: from fmsmsx113.amr.corp.intel.com ([169.254.13.111]) by FMSMSX105.amr.corp.intel.com ([169.254.4.250]) with mapi id 14.03.0224.002; Mon, 20 Apr 2015 11:04:16 -0700 From: "Wiles, Keith" To: Shankari Vaidyalingam , "dev@dpdk.org" Thread-Topic: [dpdk-dev] Debug info Thread-Index: AQHQe5Kh/fo/7bL2pEuXrBeShHB4sp1WUzSA Date: Mon, 20 Apr 2015 18:04:16 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.254.14.220] Content-Type: text/plain; charset="Windows-1252" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] Debug info X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Apr 2015 18:07:10 -0000 On 4/20/15, 12:51 PM, "Shankari Vaidyalingam" wrote: >Hi, > >I have developed an application with DPDK. >While executing the same I can see the application quitting half way (i.e >producing only half of the expected output - terminating abruptly). >I think that something is going wrong which is causing the program to >crash. > >Would like to know if it is possible to get the crashdump with programs >written in DPDK. >If possible please let me know how I can use GDB to debug the crash. >I have heard that rte_panic is used for creating stack trace. As per my >understanding I think that can be done if I know the exact statement which >is causing the crash. But in my application I'm not able to trace the >exact >location of failure as the output differs during each run. I use gdb and cgdb to debug pktgen application on Ubuntu 14.04 sudo cgdb ./app/pktgen Then gdb> run -c 1f -n 2 =8A This works very well, but you need to make sure you compile DPDK and your application with option -g or -g -O0 Using =8Cmake install T=3Dx86_64-native-linuxapp-xclang=B9 EXTRA_CFLAGS+=3D= =B3-g -O0"'=20 > >Pls help. > >Regards >Shankari.V