Running DPDK application with memory Sanitizer
bhargav M.P
mpbhargav at gmail.com
Thu Sep 8 14:24:28 CEST 2022
Hi,
I am trying to run a DPDK(20.11) application using memory sanitizer. I have
taken the patch from upstream branch:
https://github.com/DPDK/dpdk/commit/6cc51b1293ceac4a77d4bf7ac91a8bbd59e1f78c
and made a build with -fsanitize=address. The gcc version is: gcc 6.3.0 .
But the application doesn't abort when an invalid memory access is made.
Starting the application with below:
./dpdk-app -l 2-4 -a 0000:00:05.0 -a 0000:00:06.0 -a 0000:00:07.0 -a
0000:00:08.0 --socket-mem=3072
an invalid memory access from an application does not abort.
Ex: From the application doing below doesn't abort:
char *p = rte_zmalloc(NULL, 9, 0);
rte_free(p);
*p = 'a';
Am I missing something here.?
is DPDK ASAN supposed to be used only in 21.11 release onwards.? Really
appreciate your help on this as we are trying debug a possible
memory corruption with DPDK application and thought DPDK memory sanitizer
support will be of great help
Thanks for the help,
Bhargav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20220908/463521b5/attachment.htm>
More information about the dev
mailing list