[PATCH v7] app/testpmd: monitor state of primary process when using secondary

Stephen Hemminger stephen at networkplumber.org
Fri Aug 8 17:28:35 CEST 2025


On Fri,  8 Aug 2025 01:44:52 -0400
Khadem Ullah <14pwcse1224 at uetpeshawar.edu.pk> wrote:

>                  * run into use after free.
>                  */
> +               int ret;
>                 fprintf(stderr, "\nPrimary process is no longer active, exiting...\n");
> +               ret = rte_eal_cleanup();
> +               if (ret != 0)
> +               rte_exit(EXIT_FAILURE,
> +                        "EAL cleanup failed: %s\n", strerror(-ret));
>                 exit(EXIT_FAILURE);

No, that eal_cleanup references freed data when run in secondary.
That is the problem this is trying to solve.


More information about the dev mailing list