From: "bhargav M.P" <mpbhargav@gmail.com>
To: dev@dpdk.org
Subject: Running DPDK application with memory Sanitizer
Date: Thu, 8 Sep 2022 17:54:28 +0530 [thread overview]
Message-ID: <CADie3t7KkEmRgfDYHKtG=kGmRKaFYn-diRgE1sSFExRP3kV9Jw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 958 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 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
[-- Attachment #2: Type: text/html, Size: 1161 bytes --]
reply other threads:[~2022-09-08 12:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADie3t7KkEmRgfDYHKtG=kGmRKaFYn-diRgE1sSFExRP3kV9Jw@mail.gmail.com' \
--to=mpbhargav@gmail.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).