* Running DPDK application in memory sanitizer
@ 2022-08-23 17:15 bhargav M.P
0 siblings, 0 replies; only message in thread
From: bhargav M.P @ 2022-08-23 17:15 UTC (permalink / raw)
To: users
[-- Attachment #1: Type: text/plain, Size: 854 bytes --]
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 whenan 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
Note that the hugetablfs is configured and dpdk allocates memory from huge
pages and seems like invalid memory access doesn't abort
ex from the application doeing below doesn't abort:
char *p = rte_zmalloc(NULL, 9, 0); rte_free(p); *p = 'a';
Am I missing something here.?
is DPDK ASAN is supposed to be used only in 21.11 release onwards
Thanks for the help,
Bhargav
[-- Attachment #2: Type: text/html, Size: 3191 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-08-23 17:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-23 17:15 Running DPDK application in memory sanitizer bhargav M.P
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).