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 9F7D845C22 for ; Fri, 1 Nov 2024 02:18:21 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2538543440; Fri, 1 Nov 2024 02:18:21 +0100 (CET) Received: from smtpbgbr2.qq.com (smtpbgbr2.qq.com [54.207.22.56]) by mails.dpdk.org (Postfix) with ESMTP id 44EEA43283 for ; Fri, 1 Nov 2024 02:18:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=expoli.tech; s=uxxs2209; t=1730423894; bh=Weyc89F2YrWBiZts2gkgDckaKkH6IxOvYnHo27cO3ZA=; h=Message-ID:Date:MIME-Version:From:Subject:To; b=1E2zMrMfK3561GvlNKtEbZNRaVLIX/iUNUSKJTgwTys6pu+H83qq6/sXZXygxUiqo dHEtlQVd94IDdqCynC11qb+wqEqlW7CCh+6uwF85BdnlfDZ579iQpt49jj8bzaXTti zUdjfU5sioSOYxVYTJyxZ7WEC2fjEKR7YdIF2PMg= X-QQ-mid: bizesmtpsz8t1730423891tfirq8e X-QQ-Originating-IP: Zze9cMlUzu5ilRY96TeCT2rAJukr2XnkyHyJQMsqhBE= Received: from [10.12.9.184] ( [27.19.189.79]) by bizesmtp.qq.com (ESMTP) with SMTP id 0 for ; Fri, 01 Nov 2024 09:18:10 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 0 X-BIZMAIL-ID: 8183996183060488427 Message-ID: Date: Fri, 1 Nov 2024 09:18:10 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: cuyu tang Subject: Pktgen failing in a virtualbox virtual machine To: users@dpdk.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtpsz:expoli.tech:q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Q-RECHKSPAM: 0 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)