From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5556845C29 for ; Sat, 2 Nov 2024 11:17:49 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1CD374026B; Sat, 2 Nov 2024 11:17:49 +0100 (CET) Received: from smtpbg150.qq.com (smtpbg150.qq.com [18.132.163.193]) by mails.dpdk.org (Postfix) with ESMTP id A518D40264 for ; Thu, 31 Oct 2024 10:57:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=expoli.tech; s=uxxs2209; t=1730368630; bh=Q97bPXbIWyoJqWugQurKq6yCk8QpGzdcqf5fklktWUE=; h=Message-ID:Date:MIME-Version:To:From:Subject; b=ALLurKZ2Nv+sCbX/wFVaFnQ5u/eqZVjyXcELPzEPRvYQdF8c3moYam4baxPuziQxm ZybfWGwHl6a7uAPdQ3r1L64dipo2q3aAc7HYvaCm7BGEW4yQ07IEwnoAUKVpCLBdsA erJPraklpHPC3GZ8aFq+xGnMohvg7JT9OZGz//xY= X-QQ-mid: bizesmtp87t1730368628tmeosiri X-QQ-Originating-IP: I6F+n6FvF1T3uCIU77JIpuNoV4BRtjtlr5UMFB032wA= Received: from [10.12.9.184] ( [27.19.189.79]) by bizesmtp.qq.com (ESMTP) with SMTP id 0 for ; Thu, 31 Oct 2024 17:57:07 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 0 X-BIZMAIL-ID: 13767043209449105988 Message-ID: <55BFBAE329D6694E+feadbf99-bbe5-485b-952c-ba22b8815166@expoli.tech> Date: Thu, 31 Oct 2024 17:57:04 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: users@dpdk.org From: cuyu tang Subject: Pktgen failing in a virtualbox virtual machine Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Q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A/wr9QpJ7P masAK0jqTBgLaPSVcPsU0DoJPLVZ9v0QHam/zyH2nwTa4z8erjoR4Vo0p X-QQ-XMRINFO: OWPUhxQsoeAVDbp3OJHYyFg= X-QQ-RECHKSPAM: 0 X-Mailman-Approved-At: Sat, 02 Nov 2024 11:17:48 +0100 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org I'm having segfault issues when running pktgen in a virtualbox virtual machine. Here's what I run it in and some details about running the commands, and what I can do to get it to run correctly pktgen version: git main brunch # git log commit cc1d4c606dea3939adf75cc02de0f7cf2b28cf1e (HEAD -> main, tag: pktgen-24.07.0, origin/main, origin/HEAD) dpdk version: dpdk-24.07 [root@localhost dpdk-24.07]# ./usertools/dpdk-devbind.py -s Network devices using DPDK-compatible driver ============================================ 0000:00:09.0 '82540EM Gigabit Ethernet Controller 100e' drv=igb_uio unused=e1000,vfio-pci 0000:00:0a.0 '82540EM Gigabit Ethernet Controller 100e' drv=igb_uio unused=e1000,vfio-pci pktgen run command: gdb --args /root/pktgen-dpdk/usr/local/bin/pktgen -m 1.0 Port DevName          Index NUMA PCI Information   Src MAC           Promiscuous Thread 1 "pktgen" received signal SIGSEGV, Segmentation fault. 0x000000000043c38b in dump_device_info () at ../app/pktgen-port-cfg.c:102 102             pkt   = &pinfo->seq_pkt[SINGLE_PKT]; (gdb) bt #0  0x000000000043c38b in dump_device_info () at ../app/pktgen-port-cfg.c:102 #1  0x000000000043e3cf in pktgen_config_ports () at ../app/pktgen-port-cfg.c:325 #2  0x000000000043aa23 in main (argc=1, argv=0x7fffffffe2d8) at ../app/pktgen-main.c:465 (gdb) n 89                  bus = rte_bus_find_by_device(dev.device); (gdb) 90              if (bus && !strcmp(rte_bus_name(bus), "pci")) { (gdb) 94                  vend[0] = device[0] = '\0'; (gdb) 95                  sscanf(rte_dev_bus_info(dev.device), "vendor_id=%4s, device_id=%4s", vend, device); (gdb) 97                  rte_eth_dev_get_name_by_port(i, name); (gdb) 98                  snprintf(buff, sizeof(buff), "%s:%s/%s", vend, device, rte_dev_name(dev.device)); (gdb) 90              if (bus && !strcmp(rte_bus_name(bus), "pci")) { (gdb) 101             pinfo = l2p_get_port_pinfo(i); (gdb) 102             pkt   = &pinfo->seq_pkt[SINGLE_PKT]; (gdb) Thread 1 "pktgen" received signal SIGSEGV, Segmentation fault. 0x000000000043c38b in dump_device_info () at ../app/pktgen-port-cfg.c:102 102             pkt   = &pinfo->seq_pkt[SINGLE_PKT]; (gdb) p pinfo $3 = (port_info_t *) 0x0 (gdb)