[PATCH v2] test/debug: fix crash with mlx5 devices

Bruce Richardson bruce.richardson at intel.com
Fri Oct 3 09:32:57 CEST 2025


On Fri, Oct 03, 2025 at 08:51:01AM +0200, David Marchand wrote:
> Running rte_exit() in a forked process means that shared memory will be
> released by the child process before the parent process does the same.
> This issue has been seen recently when some GHA virtual machine (with
> some mlx5 devices) runs the debug_autotest unit test.
> 
> Instead, run rte_panic() and rte_exit() from a new DPDK process spawned
> like for other recursive unit tests.
> 
> Bugzilla ID: 1796
> Fixes: af75078fece3 ("first public release")
> Cc: stable at dpdk.org
> 
> Signed-off-by: David Marchand <david.marchand at redhat.com>
> ---
> Changes since v1:
> - revert last minute cosmetic change that broke the fix... iow pass
>   the name of the function to run, instead of __func__,
> 
> ---
>  app/test/process.h    |  2 +-
>  app/test/test.c       |  2 +
>  app/test/test.h       |  2 +
>  app/test/test_debug.c | 92 ++++++++++++++++++++++++++++++-------------
>  4 files changed, 69 insertions(+), 29 deletions(-)
> 

Fix seems reasonable.
Acked-by: Bruce Richardson <bruce.richardson at intel.com>



More information about the dev mailing list