<html>
    <head>
      <base href="https://bugs.dpdk.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8" class="bz_new_table">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - [dpdk24.07] multiprocess_symmetric_mp_packet: exiting the symmetric_mp example results in a core dump"
   href="https://bugs.dpdk.org/show_bug.cgi?id=1751">1751</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[dpdk24.07] multiprocess_symmetric_mp_packet: exiting the symmetric_mp example results in a core dump
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>DPDK
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>25.03
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>examples
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dev@dpdk.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>songx.jiale@intel.com
          </td>
        </tr>

        <tr>
          <th>Target Milestone</th>
          <td>---
          </td>
        </tr></table>
      <p>
        <div class="bz_comment_block">
          <pre class="bz_comment_text">Environment
===========
DPDK version: 9fe9c0b231c8da5435bfccb1963121b4277f961c version: dpdk25.07-rc3
OS: Ubuntu 24.04.2 LTS/6.8.0-60-generic
Compiler:  gcc version 13.3.0
Hardware platform: Intel(R) Xeon(R) Platinum 8380 CPU @ 2.30GHz
NIC hardware: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection
[8086:10fb] (rev 01)
NIC firmware: 
  driver: vfio-pci
  kdriver: ixgbe-6.1.5
  firmware-version: 0x000161bf

Test Setup
Steps to reproduce
==================
1. compile dpdk
rm -rf x86_64-native-linuxapp-gcc
CC=gcc meson -Denable_kmods=False -Dlibdir=lib
-Dexamples='multi_process/symmetric_mp' --default-library=static
x86_64-native-linuxapp-gcc
ninja -C x86_64-native-linuxapp-gcc

2. bind port to vfio-pci
./usertools/dpdk-devbind.py -b vfio-pci 0000:b1:00.0 0000:b1:00.1

3. start testpmd
the first process:
x86_64-native-linuxapp-gcc/examples/dpdk-symmetric_mp -l 1 -n 4 -a 0000:b1:00.0
-a 0000:b1:00.1  --file-prefix=dpdk_3722445_20250711093937     --proc-type=auto
-- -p 0x3 --num-procs=2 --proc-id=0

the secondary process:
x86_64-native-linuxapp-gcc/examples/dpdk-symmetric_mp -l 2 -n 4 -a 0000:b1:00.0
-a 0000:b1:00.1  --file-prefix=dpdk_3722445_20250711093937     --proc-type=auto
-- -p 0x3 --num-procs=2 --proc-id=1

4. exit the first process
^C


Results: 
========
^C
the first process: Exiting on signal 2Port 0: RX - 0, TX - 1, Drop - 0
Port 1: RX - 1, TX - 0, Drop - 0
APP: Close ports.
EAL: Error - exiting with code: 1
Error closing ports
EAL: failed to send to
(/var/run/dpdk/dpdk_3722445_20250711093937/mp_socket_794973_148a6526e3624d) due
to Bad file descriptor
EAL: Fail to send request
/var/run/dpdk/dpdk_3722445_20250711093937/mp_socket_794973_148a6526e3624d:mp_malloc_sync
EAL: Could not send sync request to secondary process 

the secondary process:
EAL: Detected CPU lcores: 80
EAL: Detected NUMA nodes: 2
EAL: Auto-detected process type: SECONDARY
EAL: Detected static linkage of DPDK
EAL: Multi-process socket
/var/run/dpdk/dpdk_3722445_20250711093937/mp_socket_794279_148a2f16b62b59
EAL: Selected IOVA mode 'VA'
EAL: VFIO support initialized
EAL: Using IOMMU type 1 (Type 1)
APP: Finished Process Init.
Lcore 2 using ports 0 1
lcore 2 using queue 1 of each port
Segmentation fault (core dumped)

Expected Result:
================
exit the symmetric_mp example normally.

bad commit:
===========
commit 4382d58097b41d1e1229ce5fc2943994bf44bd83
Author: Maayan Kashani <<a href="mailto:mkashani@nvidia.com">mkashani@nvidia.com</a>>
Date:   Tue Jul 8 10:09:54 2025 +0300

    examples/multi_process: fix ports cleanup on exit

    Device was started but not stopped on exit signal.
    Added port stop and close on exit.

    Fixes: af75078fece3 ("first public release")
    Cc: <a href="mailto:stable@dpdk.org">stable@dpdk.org</a>

    Signed-off-by: Maayan Kashani <<a href="mailto:mkashani@nvidia.com">mkashani@nvidia.com</a>>
    Acked-by: Anatoly Burakov <<a href="mailto:anatoly.burakov@intel.com">anatoly.burakov@intel.com</a>>
          </pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
      <div itemscope itemtype="http://schema.org/EmailMessage">
        <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
          
          <link itemprop="url" href="https://bugs.dpdk.org/show_bug.cgi?id=1751">
          <meta itemprop="name" content="View bug">
        </div>
        <meta itemprop="description" content="Bugzilla bug update notification">
      </div>
    </body>
</html>