ASan stack trace not symbolized on Linux

309 views
Skip to first unread message

Thomas

unread,
Feb 23, 2022, 1:33:20 AM2/23/22
to Chromium-dev
Hi,

and on Windows and Mac I get symbolized stack traces out of the box.
However, on Linux (tried Ubuntu 20 and Linux Mint) the stack traces are not symbolized.
In the docs, I only found info about setting build flags, however, I am not building chromium.
Running `chrome --no-sandbox --disable-setuid-sandbox` only shows "NaCl helper process running without a sandbox! Most likely you need to configure your SUID sandbox correctly"

Is there perhaps some package I need to install or configure something to make this work on Linux?

Thanks!

Lei Zhang

unread,
Feb 23, 2022, 1:53:51 AM2/23/22
to stw.s...@gmail.com, Chromium-dev
Do you have a copy of llvm-symbolizer on your system, or inside the
.zip from the ASAN download? If so, try setting
ASAN_OPTIONS="symbolize=1
external_symbolizer_path=/path/to/llvm-symbolizer" in the environment.
> --
> --
> Chromium Developers mailing list: chromi...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev
> ---
> You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
> To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/1236bb60-2ee5-4c2f-9190-0b1525ee686cn%40chromium.org.

Daniel Cheng

unread,
Feb 23, 2022, 1:57:22 AM2/23/22
to stw.s...@gmail.com, Chromium-dev
Try piping the output into asan_symbolize.py, e.g.:

chrome --no-sandbox --disable-setuid-sandbox |& tools/valgrind/asan/asan_symbolize.py

Daniel

--

Thomas

unread,
Feb 25, 2022, 5:47:33 PM2/25/22
to Chromium-dev, Daniel Cheng, Chromium-dev, Thomas
Setting the ASAN_OPTIONS env variable to the llvm-symbolizer in the zip did the trick. Thanks for the help!  

Reid Kleckner

unread,
Feb 28, 2022, 12:34:46 PM2/28/22
to stw.s...@gmail.com, Chromium-dev, Daniel Cheng
Chromium embeds default ASan options that should find llvm-symbolizer in a normal Chromium source checkout:

If these Chrome build zip archives include llvm-symbolizer and place them at the same directory relative to the chrome executable, everything should work out of the box without the need to set ASAN_OPTIONS.

Reply all
Reply to author
Forward
0 new messages