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 9C9CC44099; Tue, 28 May 2024 15:21:18 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 650EB40698; Tue, 28 May 2024 15:21:12 +0200 (CEST) Received: from mout.web.de (mout.web.de [212.227.15.3]) by mails.dpdk.org (Postfix) with ESMTP id 894964067E for ; Tue, 28 May 2024 09:54:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1716882865; x=1717487665; i=florian.duesing98@web.de; bh=t/XYPxLw9m5ZWSU41+oJdeirZK0muiL/XI18KcDYcKQ=; h=X-UI-Sender-Class:From:To:Subject:Date:Message-ID:Content-Type: MIME-Version:cc:content-transfer-encoding:content-type:date:from: message-id:mime-version:reply-to:subject:to; b=edPzmEeL+s71yF3mg2Wsf2oHqyvikWWyoiNpklVvIsmHjZM0PYTjPaBs6DfeVIzI 8FFqntORp0it/a8w/DBz0b0X1fLvEMHxQ3pq+kb9IzP9+l8lN4rlQiWMjjHbEAVP7 pUjyk6p0CGc46KPYYUP7x2V9mD+xBhSsKBF2y4ltMzDPx1s/7y96AhEL4sJ3I+kUk cQBiXQylGkRBuY7ZrVyRqCqBR6gNd2DceURIf1kiqiTwAwGUr5qL372CFuEd3I1uJ oE+xHGh+dbPfmTg9mapKIT9VmJZAtohSxlm4PJpTn4djW1BH1sEihy9VRuF1O6s/t s55KfNivstia7aC8TQ== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from MW6PR22MB4249.namprd22.prod.outlook.com ([40.99.240.205]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MLRYd-1rubvX2sxn-00RsKJ for ; Tue, 28 May 2024 09:54:25 +0200 From: "florian.duesing98@web.de" To: "dev@dpdk.org" Subject: Segment Fault using dpdk-pktgen Thread-Topic: Segment Fault using dpdk-pktgen Thread-Index: AQHasNHUIt84Z87DmEi/bbVum3QbqA== X-MS-Exchange-MessageSentRepresentingType: 1 Date: Tue, 28 May 2024 07:54:22 +0000 Message-ID: Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-Exchange-Organization-SCL: -1 X-MS-TNEF-Correlator: X-MS-Exchange-Organization-RecordReviewCfmType: 0 msip_labels: Content-Type: multipart/alternative; boundary="_000_MW6PR22MB4249C6285322F099C228DA70AEF12MW6PR22MB4249namp_" MIME-Version: 1.0 X-Provags-ID: V03:K1:ion87R2ost5QBnBxHHPeOtLmS1+R2SZkpgOOH523iQ1QFR4gOPr /VCuc64RKmSaGxw+7DQ7uEmqTbSuYZytIrT8IIZo5UirsY8iM3atR0VkWNWVddzE7uFySzr 1D0L+tlUyM1IMmO6tAv7Q3CYnvwUYHhb+yhp2GvyhZTd6JQ+pfQNvvA0VKgi17pbeElTymC E/zNpVGKf6TKXhQ5r8XDg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:D1iW4oLhC/E=;zoIj0dA+FqfJRRZhGRdbV6xLDj9 qWbvLaJaVEbGehjZtpv4d4Zww6kfJjnWth/oTHg61bJQr9h5aoWtxlpJ/5kiF6sAAFTn2UepT ao6rXWRmASNQG//E4Whj6jPZYtyRpWRwZe3wYI8RtUE9hMe1XNw/aJFDWrzO1qVlsImbs7MHm 6vBkCVrZNpZbj87xQZjDwnNT9QE+BL7pPuMqspbVFjFQNbBt/ceYIdSkQzmTniZ7YpQOKcenD J0Un3eqoNErUQuBzf4Wj53dvmyGObiCGPWuGMOnS712RP+rvBwzfQJNcrbHiXxXHLYb3TFlI4 uavRc/IyO85DrtE1pCH01/JlqWEO0IXnyeIRuh3ceX/SV2G1dc65XrqrbCIF3ppO9IM9ZF62A 8wi85Sdw4kT52Qbinko0LaFGOGYQ8sY2DmB9tp/idFhYWjTcjSudJUMj5ssXAlZwLoQwEW56C MThd3VFGuKNBdjuZyDShQQnI2wMeGjr++y5/H/9S/e6eifRI4jLAxBhez1eKu7/8Fogj12u4e FeSo94Xh+8Q5vst2+MVLbzVz0X5Zs3T+0DVjFMxKC+uBl9BvaIoSsYzF0eHfh1cAnZR4uB5bd Q8K0sqGOzTeF4fN7tpCKDau1cY3k62hrkk639Zhz/8sq7ob6af5ajQ08OZUhFSXZonwOv8dr9 grN7nnBSpvGFlx5nqX9HoqfOjeS2uYjj/LeXCOhAgyE3bVkd7h+LNnAaZoWgGJSQmSW1W5/Zi pWTMvr9u1+byLKE/pSP81PbeKmqipD2WuFlNWAywN5teuN/eEQpPWtrpE7WNmxrYVzWN4A6H5 +FZKEEP+dLC3cgy+GGP2AfZqTRig2ZxnWKSnDgaTlNhek= X-Mailman-Approved-At: Tue, 28 May 2024 15:21:09 +0200 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org --_000_MW6PR22MB4249C6285322F099C228DA70AEF12MW6PR22MB4249namp_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Dear Developers of pktgen, After the recent updates of pktgen I was finally able to compile the code b= ut I get 2 critical errors when I try to use pktgen. First: I testet the newest pktgen code from git on a virtual Machine using EVE-NG = and a physical Computer with an Intel i9 and 2 1G Nics. On both I installed= and compiled everything as stated in the dokumentation, but when using pkt= gen, I only get a Segment Fault. I doesnt matter if i try using a blank com= mand like: sudo ./path/to/pktgen or if I use more statements like: sudo ./p= ath/to/pktgen -l 0-1 =96 -P -m 1.0. I only get following error message: EAL: Detected CPU lcores: 6 EAL: Detected NUMA nodes: 1 EAL: Detected shared linkage of DPDK EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Selected IOVA mode 'PA' EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:03.0 (socket = -1) eth_virtio_pci_init(): Failed to init PCI device EAL: Requested device 0000:00:03.0 cannot be used EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:04.0 (socket = -1) EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:05.0 (socket = -1) TELEMETRY: No legacy callbacks, legacy socket not created Total memory used =3D= 0 KB Port DevName Index NUMA PCI Information Src MAC Promis= cuous =3D=3D=3D=3D=3D=3D Pktgen got a Segment Fault Obtained 7 stack frames. ./Pktgen-DPDK/builddir/app/pktgen(+0x25e83) [0x5857c4580e83] /lib/x86_64-linux-gnu/libc.so.6(+0x42990) [0x746baa642990] ./Pktgen-DPDK/builddir/app/pktgen(+0x99a7) [0x5857c45649a7] ./Pktgen-DPDK/builddir/app/pktgen(+0xa793) [0x5857c4565793] /lib/x86_64-linux-gnu/libc.so.6(+0x28150) [0x746baa628150] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x89) [0x746baa628209] ./Pktgen-DPDK/builddir/app/pktgen(+0xb025) [0x5857c4566025] The error occurs on both machines running ubuntu-23.10. I have a testsetup in EVE-NG with the exact same specs, but running ubuntu-= 22.04. With dpdk 22.11.5 and pktgen 22.04.1 I was able to run pktgen with t= he statements mentioned above. But whatever I do in the pktgen command line= , I am not able to generate traffic. My final goal is using pktgen to read pcap files and use them to generate t= raffic. The machine with ubuntu-22.04 opens my imix.pcap file when using -s 0:imix.= pcap, but again I am not able to generate any traffic. If I try to open the pcap file on one of the ubuntu-23.10 machines, I get f= ollowing error: EAL: Detected CPU lcores: 6 EAL: Detected NUMA nodes: 1 EAL: Detected shared linkage of DPDK EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Selected IOVA mode 'PA' EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:03.0 (socket = -1) eth_virtio_pci_init(): Failed to init PCI device EAL: Requested device 0000:00:03.0 cannot be used EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:04.0 (socket = -1) EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:05.0 (socket = -1) TELEMETRY: No legacy callbacks, legacy socket not created EAL: Error - exiting with code: 1 Cause: pktgen_pcap_open: rte_zmalloc_socket() failed for pcap_info_t stru= cture Can someone help me to figure out whats wrong? I really start to question m= yself. If you need more data let me know. Thank you in advance Sincerely Florian D=FCsing --_000_MW6PR22MB4249C6285322F099C228DA70AEF12MW6PR22MB4249namp_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
Dear Developers of pktgen,
After the recent updates of pktgen I was finally able to compile the code b= ut I get 2 critical errors when I try to use pktgen.

First:
I testet the newest pktgen code from git on a virtual Machine using EVE-NG = and a physical Computer with an Intel i9 and 2 1G Nics. On both I installed= and compiled everything as stated in the dokumentation, but when using pkt= gen, I only get a Segment Fault. I doesnt matter if i try using a blank command like: sudo ./path/to/pktgen= or if I use more statements like: sudo ./path/to/pktgen -l 0-1 =96 -P -m 1= .0. I only get following error message:

EAL: Detected CPU lcores: 6

EAL: Detected NUMA nodes: 1

EAL: Detected shared linkage of DPDK

EAL: Multi-process socket /var/run/dpdk/rte/mp_socket

EAL: Selected IOVA mode 'PA'

EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:03.0 (socket = -1)

eth_virtio_pci_init(): Failed to init PCI device

EAL: Requested device 0000:00:03.0 cannot be used

EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:04.0 (socket = -1)

EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:05.0 (socket = -1)

TELEMETRY: No legacy callbacks, legacy socket not created

            &nb= sp;            =             &nb= sp;            =     Total memory used =3D      = ;  0 KB


Port DevName          Index NU= MA PCI Information   Src MAC      &= nbsp;    Promiscuous


=3D=3D=3D=3D=3D=3D Pktgen got a Segment Fault

 
Obtained 7 stack frames.

./Pktgen-DPDK/builddir/app/pktgen(+0x25e83) [0x5857c4580e83]

/lib/x86_64-linux-gnu/libc.so.6(+0x42990) [0x746baa642990]

./Pktgen-DPDK/builddir/app/pktgen(+0x99a7) [0x5857c45649a7]

./Pktgen-DPDK/builddir/app/pktgen(+0xa793) [0x5857c4565793]

/lib/x86_64-linux-gnu/libc.so.6(+0x28150) [0x746baa628150]

/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x89) [0x746baa628209]

./Pktgen-DPDK/builddir/app/pktgen(+0xb025) [0x5857c4566025]


The error occurs on both machines running ubuntu-23.10.
I have a testsetup in EVE-NG with the exact same specs, but running ubuntu-= 22.04. With dpdk 22.11.5 and pktgen 22.04.1 I was able to run pktgen with t= he statements mentioned above. But whatever I do in the pktgen command line= , I am not able to generate traffic.

My final goal is using pktgen to read pcap files and use them to generate t= raffic. 
The machine with ubuntu-22.04 opens my imix.pcap file when using -s 0:imix.= pcap, but again I am not able to generate any traffic.
If I try to open the pcap file on one of the ubuntu-23.10 machines, I get f= ollowing error:

EAL: Detected CPU lcores: 6

EAL: Detected NUMA nodes: 1

EAL: Detected shared linkage of DPDK

EAL: Multi-process socket /var/run/dpdk/rte/mp_socket

EAL: Selected IOVA mode 'PA'

EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:03.0 (socket = -1)

eth_virtio_pci_init(): Failed to init PCI device

EAL: Requested device 0000:00:03.0 cannot be used

EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:04.0 (socket = -1)

EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:05.0 (socket = -1)

TELEMETRY: No legacy callbacks, legacy socket not created

EAL: Error - exiting with code: 1

  Cause: pktgen_pcap_open: rte_zmalloc_socket() failed for pcap_info_t= structure

Can someone help me to figure out whats wrong? I really start to question m= yself. If you need more data let me know.
Thank you in advance

Sincerely 
Florian D=FCsing
--_000_MW6PR22MB4249C6285322F099C228DA70AEF12MW6PR22MB4249namp_--