public inbox for dev@dpdk.org
 help / color / mirror / Atom feed
From: Marat Khalili <marat.khalili@huawei.com>
To: David Marchand <david.marchand@redhat.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>,
	"scott.k.mitch1@gmail.com" <scott.k.mitch1@gmail.com>,
	Aaron Conole <aconole@redhat.com>
Subject: RE: [PATCH] ci: display UBSan stack trace
Date: Wed, 28 Jan 2026 15:21:46 +0000	[thread overview]
Message-ID: <f55622b7d5cc426a9ffe04a9d3814b33@huawei.com> (raw)
In-Reply-To: <CAJFAV8ytz4CJh8msWU354J3cbPU0r94-kg_3DWCDh5pvnbfXTQ@mail.gmail.com>

> > I will share ones we are using in case you find some of them interesting:
> >
> >
> ASAN_OPTIONS=abort_on_error=true:color=never:halt_on_error=true:print_summary=true:strict_string_check
> s=true:check_initialization_order=true:detect_stack_use_after_return=true:heap_profile=false:print_sca
> riness=true:strict_init_order=true:verify_asan_link_order=false
> >
> LSAN_OPTIONS=abort_on_error=true:color=never:halt_on_error=true:print_summary=true:strict_string_check
> s=true
> >
> UBSAN_OPTIONS=abort_on_error=true:color=never:halt_on_error=true:print_summary=true:strict_string_chec
> ks=true:print_stacktrace=true:report_error_type=true
> >
> > (Admittedly some of them might be unnecessary or nonsensical, they depend on
> > compiler and it's not easy to find documentation.)
> 
> Did those options help with understanding failures in unit tests?

print_stacktrace is probably the most important for understanding failures.
Some of the rest detect additional problems, others are mostly nice-to-have
cosmetics (e.g. disabling ANSI sequences).

heap_profile was found to be useful for debugging but not for everyday tests
since it may cause process to hang on exit (may depend on other options).

verify_asan_link_order=false is generally not needed, it disables a self-check.

report_error_type is very useful for adding suppressions.

> I see "abort" or "halt" options in this list, does it stop execution
> of all the tests?

No, they only affects dpdk-test process, and meson runs each test in a separate
process here, so continues running other tests. Both of them get set by my
version of meson itself BTW. If set to false sanitizer complains to terminal
but the test may actually pass (depending on specific problem).

      reply	other threads:[~2026-01-28 15:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-28 11:04 [PATCH] ci: display UBSan stack trace David Marchand
2026-01-28 11:55 ` Marat Khalili
2026-01-28 14:57   ` David Marchand
2026-01-28 15:21     ` Marat Khalili [this message]

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=f55622b7d5cc426a9ffe04a9d3814b33@huawei.com \
    --to=marat.khalili@huawei.com \
    --cc=aconole@redhat.com \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=scott.k.mitch1@gmail.com \
    /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