Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: Access violation in c2.dll when you build a Visual C++ project in Visual Studio 2012


View products that this article applies to.

Symptoms

Assume that you have installed Visual Studio 2012 Update 4 on your computer. After that if you build a Visual C++ project, the build operation fails with access violation resembles the following:
(17f0.1464): Access violation - code c0000005 (first/second chance not available)
eax=00000000 ebx=03de4580 ecx=03de65e8 edx=00000000 esi=0000000e edi=03e0789c
eip=5132b0c0 esp=02f5f6bc ebp=02f5f6f4 iopl=0 nv up ei pl zr na pe nc
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010246
c2!ExtractSubreg+0x170:
5132b0c0 8b12 mov edx,dword ptr [edx] ds:002b:00000000=????????

02f5f6f4 5136fabe c2!ExtractSubreg+0x170
02f5f744 5138f8d8 c2!Enterloads+0x5fe
02f5f760 513a9227 c2!Globregs+0x168
02f5f770 513b51c6 c2!dop2_GlobalRegAlloc+0x67
02f5f780 513b4811 c2!EmitFunction+0xb6
02f5f7b0 51479169 c2!WorkerThreadMain+0xc1
02f5f7e4 5147913b c2!ThreadPool::Thread::Main+0x29
02f5f7ec 7162f2e9 c2!ThreadPool::Thread::ThreadMain+0xb
02f5f824 7162f2cd msvcr110!_callthreadstartex+0x1b
02f5f830 76aa336a msvcr110!_threadstartex+0x7c
02f5f83c 777f9f72 kernel32!BaseThreadInitThunk+0xe
02f5f87c 777f9f45 ntdll!__RtlUserThreadStart+0x70
02f5f894 00000000 ntdll!_RtlUserThreadStart+0x1b
Note This issue is a known issue when you use c2.dll.

↑ Back to the top


Resolution

To resolve this issue, download and apply the hotfix from the following link.

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem.

If the hotfix is available for download, there is a "Hotfix Download Available" section at the top of this Knowledge Base article. If this section does not appear, submit a request to Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website: Note The "Hotfix Download Available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.



Prerequisites

To apply this hotfix, you must have Microsoft Visual Studio 2012 Update 4 installed.

Restart requirement

You may have to restart the computer after you install the hotfix if the affected files are not being used at the time of installation. We recommend that you close all Visual Studio 2012-related components before you install the hotfix.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


Keywords: kb, kbhotfixserver, kbhotfixdev, kbautohotfix, kbqfe, kbfix, kbexpertiseadvanced, kbsurveynew

↑ Back to the top

Article Info
Article ID : 2957527
Revision : 2
Created on : 6/15/2020
Published on : 6/15/2020
Exists online : False
Views : 258