Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

regex, std::_Is_word, parser EOF #43686

Open Quuxplusone opened 4 years ago

Quuxplusone commented 4 years ago
Bugzilla Link PR44716
Status NEW
Importance P normal
Reported by Tim Hutton (tim.hutton@gmail.com)
Reported on 2020-01-30 03:48:10 -0800
Last modified on 2020-01-30 06:08:49 -0800
Version 9.0
Hardware PC Windows NT
CC blitzrakete@gmail.com, dgregor@apple.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
Fixed by commit(s)
Attachments LLVM_regex_crash_small.zip (411078 bytes, application/x-zip-compressed)
Blocks
Blocked by
See also
8>Stack dump:
8>0.    Program arguments: H:\MSVC2019\VC\Tools\Llvm\bin\clang-cl.exe -cc1 -triple x86_64-pc-windows-msvc19.24.28315 -emit-obj -mincremental-linker-compatible -disable-free -disable-llvm-verifier -discard-value-names -main-file-name GenericFileFetch.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu ivybridge -target-feature +sse2 -target-feature +cx16 -target-feature +sahf -target-feature -tbm -target-feature -avx512ifma -target-feature -sha -target-feature -gfni -target-feature -fma4 -target-feature -vpclmulqdq -target-feature -prfchw -target-feature -bmi2 -target-feature -cldemote -target-feature +fsgsbase -target-feature -ptwrite -target-feature -xsavec -target-feature +popcnt -target-feature -mpx -target-feature +aes -target-feature -avx512bitalg -target-feature -movdiri -target-feature -xsaves -target-feature -avx512er -target-feature -avx512vnni -target-feature -avx512vpopcntdq -target-feature -pconfig -target-feature -clwb -target-feature -avx512f -target-feature -clzero -target-feature -pku -target-feature +mmx -target-feature -lwp -target-feature -rdpid -target-feature -xop -target-feature -rdseed -target-feature -waitpkg -target-feature -movdir64b -target-feature -sse4a -target-feature -avx512bw -target-feature -clflushopt -target-feature +xsave -target-feature -avx512vbmi2 -target-feature +64bit -target-feature -avx512vl -target-feature -invpcid -target-feature -avx512cd -target-feature +avx -target-feature -vaes -target-feature +cx8 -target-feature -fma -target-feature -rtm -target-feature -bmi -target-feature -enqcmd -target-feature +rdrnd -target-feature -mwaitx -target-feature +sse4.1 -target-feature +sse4.2 -target-feature -avx2 -target-feature +fxsr -target-feature -wbnoinvd -target-feature +sse -target-feature -lzcnt -target-feature +pclmul -target-feature -prefetchwt1 -target-feature +f16c -target-feature +ssse3 -target-feature -sgx -target-feature -shstk -target-feature +cmov -target-feature -avx512vbmi -target-feature -avx512bf16 -target-feature -movbe -target-feature +xsaveopt -target-feature -avx512dq -target-feature -adx -target-feature -avx512pf -target-feature +sse3 -mllvm -x86-asm-syntax=intel -D_MT -D_DLL --dependent-lib=msvcrt --dependent-lib=oldnames -stack-protector 2 -fcxx-exceptions -fexceptions -fexternc-nounwind -fms-volatile -fdefault-calling-conv=cdecl -fdiagnostics-format msvc -dwarf-column-info -momit-leaf-frame-pointer -ffunction-sections -coverage-notes-file H:\SurfelWarp\build_clang9_shared\imgproc\GenericFileFetch.gcno -resource-dir H:\MSVC2019\VC\Tools\Llvm\lib\clang\9.0.0 -I C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include -I H:\SurfelWarp\surfelwarp\external\cub-1.8.0 -I H:\boost\boost_1_72_0_clang -I H:\SurfelWarp\surfelwarp -I H:\SurfelWarp\surfelwarp\external -I H:\SurfelWarp\surfelwarp\external\eigen3.4 -I H:\cilantro\cilantro\include -I H:\cilantro\build_clang9_shared\include -I H:\Pangolin\Pangolin-master\include -I H:\Pangolin\build_Pangolin_snapshot_clang9_shared\src\include -I H:\Pangolin\build_snapshot_clang9_shared_install\include -I H:\OpenCV-4.1.2\build_clang9_shared -I H:\OpenCV-4.1.2\sources\include -I H:\OpenCV-4.1.2\sources\modules\core\include -I H:\OpenCV-4.1.2\sources\modules\flann\include -I H:\OpenCV-4.1.2\sources\modules\imgproc\include -I H:\OpenCV-4.1.2\sources\modules\ml\include -I H:\OpenCV-4.1.2\sources\modules\photo\include -I H:\OpenCV-4.1.2\sources\modules\dnn\include -I H:\OpenCV-4.1.2\sources\modules\features2d\include -I H:\OpenCV-4.1.2\sources\modules\gapi\include -I H:\OpenCV-4.1.2\sources\modules\imgcodecs\include -I H:\OpenCV-4.1.2\sources\modules\videoio\include -I H:\OpenCV-4.1.2\sources\modules\calib3d\include -I H:\OpenCV-4.1.2\sources\modules\highgui\include -I H:\OpenCV-4.1.2\sources\modules\objdetect\include -I H:\OpenCV-4.1.2\sources\modules\stitching\include -I H:\OpenCV-4.1.2\sources\modules\ts\include -I H:\OpenCV-4.1.2\sources\modules\video\include -D WIN32 -D _WINDOWS -D NDEBUG -D WITH_CILANTRO -D CMAKE_INTDIR="Release" -D _MBCS -internal-isystem H:\MSVC2019\VC\Tools\Llvm\lib\clang\9.0.0\include -internal-isystem H:\MSVC2019\VC\Tools\MSVC\14.24.28314\include -internal-isystem H:\MSVC2019\VC\Tools\MSVC\14.24.28314\atlmfc\include -internal-isystem H:\MSVC2019\VC\Auxiliary\VS\include -internal-isystem C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt -internal-isystem H:\MSVC2019\VC\Auxiliary\VS\UnitTest\include -internal-isystem C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um -internal-isystem C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\shared -internal-isystem C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\winrt -internal-isystem C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\cppwinrt -internal-isystem C:\Program Files (x86)\Windows Kits\NETFXSDK\4.7.2\Include\um -O2 -Wall -Wno-error -fdeprecated-macro -fdebug-compilation-dir H:\SurfelWarp\build_clang9_shared\imgproc -ferror-limit 19 -fmessage-length 0 -fno-use-cxa-atexit -fms-extensions -fms-compatibility -fms-compatibility-version=19.24.28315 -std=c++14 -fdelayed-template-parsing -finline-functions -fobjc-runtime=gcc -fno-caret-diagnostics -fdiagnostics-show-option -vectorize-loops -vectorize-slp -fopenmp -faddrsig -o imgproc_lib.dir\Release\GenericFileFetch.obj -x c++ H:\SurfelWarp\surfelwarp\imgproc\frameio\GenericFileFetch.cpp
8>1.    <eof> parser at end of file
8>2.    Per-file LLVM IR generation
8>3.    H:\MSVC2019\VC\Tools\MSVC\14.24.28314\include\regex:563:13: Generating code for declaration 'std::_Is_word'
8>clang-cl : error : clang frontend command failed due to signal (use -v to see invocation)
8>clang version 9.0.0 (tags/RELEASE_900/final)
8>Target: x86_64-pc-windows-msvc
8>Thread model: posix
8>InstalledDir: H:\MSVC2019\VC\Tools\Llvm\bin
8>clang-cl : message : diagnostic msg: PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
8>clang-cl : message : diagnostic msg:
8>********************
8>PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
8>Preprocessed source(s) and associated run script(s) are located at:
8>clang-cl : message : diagnostic msg: G:\Temp\ImageProcessor-0c313b.cpp
8>clang-cl : message : diagnostic msg: G:\Temp\ImageProcessorStreamed-1d9f3b.cpp
8>clang-cl : message : diagnostic msg: G:\Temp\GenericFileFetch-c16b6d.cpp
8>clang-cl : message : diagnostic msg: G:\Temp\VolumeDeformFileFetch-90ba65.cpp
8>clang-cl : message : diagnostic msg: G:\Temp\ImageProcessor-0c313b.sh
8>clang-cl : message : diagnostic msg:
8>********************

Requested files are too big to attach (8MB zip). Have placed here: https://github.com/timhutton/timhutton.github.io/files/4133804/LLVM_crash_files.zip

Quuxplusone commented 4 years ago

Attached LLVM_regex_crash_small.zip (411078 bytes, application/x-zip-compressed): Clang/LLVM regex crash test file

Quuxplusone commented 4 years ago
I've managed to reduce the code to just this cpp file:

#include <regex>

void s(const std::string& filename)
{
    const std::regex digits_regex("\\d+");
    std::smatch match_result;
    std::regex_search(filename, match_result, digits_regex);
}

1>Stack dump:
1>0.    Program arguments: H:\MSVC2019\VC\Tools\Llvm\bin\clang-cl.exe -cc1 -triple
x86_64-pc-windows-msvc19.24.28315 -emit-obj -mincremental-linker-compatible -
disable-free -disable-llvm-verifier -discard-value-names -main-file-name
GenericFileFetch.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -
relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases -munwind-
tables -target-cpu ivybridge -target-feature +sse2 -target-feature +cx16 -
target-feature +sahf -target-feature -tbm -target-feature -avx512ifma -target-
feature -sha -target-feature -gfni -target-feature -fma4 -target-feature -
vpclmulqdq -target-feature -prfchw -target-feature -bmi2 -target-feature -
cldemote -target-feature +fsgsbase -target-feature -ptwrite -target-feature -
xsavec -target-feature +popcnt -target-feature -mpx -target-feature +aes -
target-feature -avx512bitalg -target-feature -movdiri -target-feature -xsaves -
target-feature -avx512er -target-feature -avx512vnni -target-feature -
avx512vpopcntdq -target-feature -pconfig -target-feature -clwb -target-feature -
avx512f -target-feature -clzero -target-feature -pku -target-feature +mmx -
target-feature -lwp -target-feature -rdpid -target-feature -xop -target-feature
-rdseed -target-feature -waitpkg -target-feature -movdir64b -target-feature -
sse4a -target-feature -avx512bw -target-feature -clflushopt -target-feature
+xsave -target-feature -avx512vbmi2 -target-feature +64bit -target-feature -
avx512vl -target-feature -invpcid -target-feature -avx512cd -target-feature
+avx -target-feature -vaes -target-feature +cx8 -target-feature -fma -target-
feature -rtm -target-feature -bmi -target-feature -enqcmd -target-feature
+rdrnd -target-feature -mwaitx -target-feature +sse4.1 -target-feature +sse4.2 -
target-feature -avx2 -target-feature +fxsr -target-feature -wbnoinvd -target-
feature +sse -target-feature -lzcnt -target-feature +pclmul -target-feature -
prefetchwt1 -target-feature +f16c -target-feature +ssse3 -target-feature -sgx -
target-feature -shstk -target-feature +cmov -target-feature -avx512vbmi -target-
feature -avx512bf16 -target-feature -movbe -target-feature +xsaveopt -target-
feature -avx512dq -target-feature -adx -target-feature -avx512pf -target-
feature +sse3 -mllvm -x86-asm-syntax=intel -D_MT -D_DLL --dependent-lib=msvcrt -
-dependent-lib=oldnames -stack-protector 2 -fcxx-exceptions -fexceptions -
fexternc-nounwind -fms-volatile -fdefault-calling-conv=cdecl -fdiagnostics-
format msvc -dwarf-column-info -momit-leaf-frame-pointer -ffunction-sections -
coverage-notes-file
H:\SurfelWarp\build_clang9_shared\imgproc\GenericFileFetch.gcno -resource-dir
H:\MSVC2019\VC\Tools\Llvm\lib\clang\9.0.0 -I C:\Program Files\NVIDIA GPU
Computing Toolkit\CUDA\v10.0\include -I H:\SurfelWarp\surfelwarp\external\cub-
1.8.0 -I H:\boost\boost_1_72_0_clang -I H:\SurfelWarp\surfelwarp -I
H:\SurfelWarp\surfelwarp\external -I H:\SurfelWarp\surfelwarp\external\eigen3.4
-I H:\cilantro\cilantro\include -I H:\cilantro\build_clang9_shared\include -I
H:\Pangolin\Pangolin-master\include -I
H:\Pangolin\build_Pangolin_snapshot_clang9_shared\src\include -I
H:\Pangolin\build_snapshot_clang9_shared_install\include -I H:\OpenCV-
4.1.2\build_clang9_shared -I H:\OpenCV-4.1.2\sources\include -I H:\OpenCV-
4.1.2\sources\modules\core\include -I H:\OpenCV-
4.1.2\sources\modules\flann\include -I H:\OpenCV-
4.1.2\sources\modules\imgproc\include -I H:\OpenCV-
4.1.2\sources\modules\ml\include -I H:\OpenCV-
4.1.2\sources\modules\photo\include -I H:\OpenCV-
4.1.2\sources\modules\dnn\include -I H:\OpenCV-
4.1.2\sources\modules\features2d\include -I H:\OpenCV-
4.1.2\sources\modules\gapi\include -I H:\OpenCV-
4.1.2\sources\modules\imgcodecs\include -I H:\OpenCV-
4.1.2\sources\modules\videoio\include -I H:\OpenCV-
4.1.2\sources\modules\calib3d\include -I H:\OpenCV-
4.1.2\sources\modules\highgui\include -I H:\OpenCV-
4.1.2\sources\modules\objdetect\include -I H:\OpenCV-
4.1.2\sources\modules\stitching\include -I H:\OpenCV-
4.1.2\sources\modules\ts\include -I H:\OpenCV-
4.1.2\sources\modules\video\include -D WIN32 -D _WINDOWS -D NDEBUG -D
WITH_CILANTRO -D CMAKE_INTDIR="Release" -D _MBCS -internal-isystem
H:\MSVC2019\VC\Tools\Llvm\lib\clang\9.0.0\include -internal-isystem
H:\MSVC2019\VC\Tools\MSVC\14.24.28314\include -internal-isystem
H:\MSVC2019\VC\Tools\MSVC\14.24.28314\atlmfc\include -internal-isystem
H:\MSVC2019\VC\Auxiliary\VS\include -internal-isystem C:\Program Files
(x86)\Windows Kits\10\Include\10.0.18362.0\ucrt -internal-isystem
H:\MSVC2019\VC\Auxiliary\VS\UnitTest\include -internal-isystem C:\Program Files
(x86)\Windows Kits\10\Include\10.0.18362.0\um -internal-isystem C:\Program
Files (x86)\Windows Kits\10\Include\10.0.18362.0\shared -internal-isystem
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\winrt -internal-
isystem C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\cppwinrt -
internal-isystem C:\Program Files (x86)\Windows Kits\NETFXSDK\4.7.2\Include\um -
O2 -Wall -Wno-error -fdeprecated-macro -fdebug-compilation-dir
H:\SurfelWarp\build_clang9_shared\imgproc -ferror-limit 19 -fmessage-length 0 -
fno-use-cxa-atexit -fms-extensions -fms-compatibility -fms-compatibility-
version=19.24.28315 -std=c++14 -fdelayed-template-parsing -finline-functions -
fobjc-runtime=gcc -fno-caret-diagnostics -fdiagnostics-show-option -vectorize-
loops -vectorize-slp -fopenmp -faddrsig -o
imgproc_lib.dir\Release\GenericFileFetch.obj -x c++
H:\SurfelWarp\surfelwarp\imgproc\frameio\GenericFileFetch.cpp
1>1.    <eof> parser at end of file
1>2.    Per-file LLVM IR generation
1>3.    H:\MSVC2019\VC\Tools\MSVC\14.24.28314\include\regex:563:13: Generating
code for declaration 'std::_Is_word'
1>clang-cl : error : clang frontend command failed due to signal (use -v to see
invocation)
1>clang version 9.0.0 (tags/RELEASE_900/final)
1>Target: x86_64-pc-windows-msvc
1>Thread model: posix
1>InstalledDir: H:\MSVC2019\VC\Tools\Llvm\bin
1>clang-cl : message : diagnostic msg: PLEASE submit a bug report to
https://bugs.llvm.org/ and include the crash backtrace, preprocessed source,
and associated run script.
1>clang-cl : message : diagnostic msg:
1>********************
1>PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
1>Preprocessed source(s) and associated run script(s) are located at:
1>clang-cl : message : diagnostic msg: G:\Temp\GenericFileFetch-a4b731.cpp
1>clang-cl : message : diagnostic msg: G:\Temp\GenericFileFetch-a4b731.sh
1>clang-cl : message : diagnostic msg:
1>********************

Attached the files.