On Sun, 6 Apr 2025 00:56:45 +0000 "Lombardo, Ed" <[email protected]> wrote:
> Hi Dmitry, > You pointed out a good point. I passed the literal "--socket-mem=2048,2048" > in the array provided to rte_eal_init() function, where DPDK EAL tries to > tokenize in place the string and it crashes trying to modify a readonly > memory. I don't know why DPDK does this. But now I know, and I now see four > rtemap_x files created for two sockets. The function rte_eal_init() expects arguments to be like the arguments passed to main(). Those arguments are not read-only. You need to use strdup (or strdupa) to make mutable versions.
