Symptoms
Some floating-point math library functions in the Visual C++ 2013 x64 C Runtime (CRT) do not correctly check whether certain AVX and FMA3 instructions are available before the functions try to use them. If the instructions are not available for use, calls to these functions cause an illegal instruction exception (0xc000001d). Affected functions include log, log10, and pow, and others.Â
This problem is most likely to occur in the following scenarios:-
On an old version of the Windows operating system that does not support AVX state saving (for example, Windows Vista) if it's used on a computer that supports the AVX instruction set
-
If AVX state saving is explicitly disabled in the operating system boot configuration
-
In the Windows Preinstall Environment (Windows PE)Â
Note Windows PE does not support AVX state saving.
Cause
This problem occurs because the Visual C++ 2013 x64 C Runtime does not check whether the operating system supports AVX state saving before it tries to run AVX or FMA3 instructions.
Resolution
This update for Microsoft Visual C++ 2013 Update 5 Redistributable Package is released as a download-only update and isn’t distributed through Windows Update. Redistribution of this update is allowed, subject to the same license terms as granted by the Microsoft Visual Studio 2013 Update 5 release.
If you statically link to the Visual C++ 2013 C Runtime, a Visual Studio 2013 hotfix is available. For more information, see the following Microsoft Knowledge Base article:3174417 FIX: Programs that are built with Visual C++ 2013 crash with "Illegal Instruction" exception
Microsoft Download Center
The following files are available for download from the Microsoft Download Center.
x64.exe File Pathx86.exe File Path
File information
VCRedist_x86.exe installation path:
-
x86 operating system: %WinDir%\System32
-
x64 operating system: %WinDir%\SysWow64
File name |
File size (x86) |
File Version |
---|---|---|
msvcr120.dll |
949 KB |
12.0.40660.0 |
msvcp120.dll |
445 KB |
12.0.40660.0 |
vcamp120.dll |
332 KB |
12.0.40660.0 |
vcomp120.dll |
118 KB |
12.0.40660.0 |
vccorlib120.dll |
243 KB |
12.0.40660.0 |
mfc120.dll |
4,321 KB |
12.0.40660.0 |
mfc120u.dll |
4,347 KB |
12.0.40660.0 |
mfc120chs.dll |
46 KB |
12.0.40660.0 |
mfc120cht.dll |
46 KB |
12.0.40660.0 |
mfc120deu.dll |
74 KB |
12.0.40660.0 |
mfc120enu.dll |
64 KB |
12.0.40660.0 |
mfc120esn.dll |
73 KB |
12.0.40660.0 |
mfc120fra.dll |
74 KB |
12.0.40660.0 |
mfc120ita.dll |
72 KB |
12.0.40660.0 |
mfc120jpn.dll |
53 KB |
12.0.40660.0 |
mfc120kor.dll |
53 KB |
12.0.40660.0 |
mfc120rus.dll |
70 KB |
12.0.40660.0 |
Vcredist_x64.exe installation path:
-
x64 operating system: %WinDir%\System32
File name |
File size (x64) |
File Version |
---|---|---|
msvcr120.dll |
941 KB |
12.0.40660.0 |
msvcp120.dll |
645 KB |
12.0.40660.0 |
vcamp120.dll |
471 KB |
12.0.40660.0 |
vcomp120.dll |
135 KB |
12.0.40660.0 |
vccorlib120.dll |
349 KB |
12.0.40660.0 |
mfc120.dll |
5,477 KB |
12.0.40660.0 |
mfc120u.dll |
5,503 KB |
12.0.40660.0 |
mfc120chs.dll |
46 KB |
12.0.40660.0 |
mfc120cht.dll |
46 KB |
12.0.40660.0 |
mfc120deu.dll |
74 KB |
12.0.40660.0 |
mfc120enu.dll |
64 KB |
12.0.40660.0 |
mfc120esn.dll |
73 KB |
12.0.40660.0 |
mfc120fra.dll |
74 KB |
12.0.40660.0 |
mfc120ita.dll |
72 KB |
12.0.40660.0 |
mfc120jpn.dll |
53 KB |
12.0.40660.0 |
mfc120kor.dll |
53 KB |
12.0.40660.0 |
mfc120rus.dll |
70 KB |
12.0.40660.0 |