[cfe-dev] clang gets stuck when compiling perl with ubsan

Dingbao Xie xiedingbao at gmail.com
Thu Jul 23 18:05:20 PDT 2015


I attempted to  build perl with clang-3.6 and encountered an issue.
When building the source code with flag -fsanitize=undefined, clang
got stuck in compiling some files.
If remove the flag, clang can compile it in 3 seconds.
For example, clang can't compile the following file for 30 mins.
clang -fsanitize=undefined -c   -fwrapv -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -Wall -Werror=declaration-after-statement -Wextra
-Wc++-compat -Wwrite-strings -O2   -DVERSION=\"0.32\" -DXS_VERSION=\"0.32\"
-fPIC "-I../.."  -DPERL_EXT_RE_BUILD -DPERL_EXT_RE_DEBUG -DPERL_EXT
re_exec.c


-- 
Dingbao Xie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150723/bc297491/attachment.html>


More information about the cfe-dev mailing list