error MSB6006: "link.exe" exited with code -1073741816. RRS feed

  • Question

  • VS2015, Update 2

    When running devenv commands entered at the command prompt our example test application builds OK. When we enter the same command from our application (which monitors the build process) the build fails with a linker crash, only under VS2015. It works OK in VS2010 and VS2012. The error we are seeing is:

    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(637,5): error MSB6006: "link.exe" exited with code -1073741816.

    The Event log shows:

    Fault bucket , type 0
    Event Name: APPCRASH
    Response: Not available
    Cab Id: 0

    Problem signature:
    P1: link.exe
    P2: 14.0.23918.0
    P3: 56eb9256
    P4: StackHash_9543
    P6: 00000000
    P7: c0000008
    P8: 775bbb47

    A typical command looks like:

    "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe" C:\sample_projects\simple_string\simple_string.sln /Rebuild Debug

    In the linker options we tried disabling Whole Program Optimization, Incremental Linking and Generate Manifest but it made no difference. At the moment we are reluctant to install Update 3.

    We're not sure if its a genuine bug or something we are doing effecting the build process.

    Thursday, July 14, 2016 12:08 PM

All replies

  • Hi touc82,

    According to your description, I create a simple demo by using vs2015 update2, and use the command that you provide. It works well. Could you please provide a simple demo which could reproduce the issue via OneDrive? We’ll reproduce your issue on our side and try to find to solution to resolve it.

    Best regards,
    Li Wang

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, July 20, 2016 6:51 AM