runtime icon indicating copy to clipboard operation
runtime copied to clipboard

DecodeUtf8Prefixed Debug conf

Open laanaithossam opened this issue 12 years ago • 6 comments

Hi,

I cloned recently the Corefx Repo, and i was able to build it using the build.cmd and all tests were Green.

But when i ran the tests from visual studio 2013 for the System.Reflection.Metadata solution, using the Debug configuration, all tests based on System.Reflection.Internal.EncodingHelper.DecodeUtf8Prefixed method failed, after disassembling the assembly, the code looks like bellow, so the function returns always (null | String.Empty) :

image

The code disassembled based on the Release config is shown below :

image

So, to make this code working, and tests success on both configurations, i updated this function. Now the results of the disassembled code looks like bellow:

Debug version : image

Release version : image

So, if you have this same behavior, and this fix is legitim. Let me kwow if i have to push this change.

laanaithossam avatar Nov 16 '14 22:11 laanaithossam

Thanks for reporting this.

Wow! That looks like a compiler bug.

The source code is here and it does not match the decompilation you're seeing in the debug/error case.

Can you provide more information about the exact version of VS you're using? Help -> About Microsoft Visual Studio -> Copy Info -> Paste.

@tmat Any idea what might be happening?

nguerrera avatar Nov 17 '14 05:11 nguerrera

Hi Nick, Thanks for your answer, i installed the update 4 for Visual studio 2103, but i still having the issue :(, So please find below more informations about my VS version, thanks .

Microsoft Visual Studio Ultimate 2013 Version 12.0.31101.00 Update 4 Microsoft .NET Framework Version 4.5.51641

Installed Version: Ultimate

Architecture and Modeling Tools 06181-004-0451047-02993 Microsoft Architecture and Modeling Tools

UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

LightSwitch for Visual Studio 2013 06181-004-0451047-02993 Microsoft LightSwitch for Visual Studio 2013

Team Explorer for Visual Studio 2013 06181-004-0451047-02993 Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013 06181-004-0451047-02993 Microsoft Visual Basic 2013

Visual C# 2013 06181-004-0451047-02993 Microsoft Visual C# 2013

Visual C++ 2013 06181-004-0451047-02993 Microsoft Visual C++ 2013

Visual F# 2013 06181-004-0451047-02993 Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker 06181-004-0451047-02993 Microsoft® Visual Studio® 2013 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Windows Phone SDK 8.0 - ENU 06181-004-0451047-02993 Windows Phone SDK 8.0 - ENU

Application Insights Tools for Visual Studio Package 1.0 Application Insights Tools for Visual Studio

ASP.NET and Web Tools 12.4.51016.0 Microsoft Web Developer Tools contains the following components: Support for creating and opening ASP.NET web projects Browser Link: A communication channel between Visual Studio and browsers Editor extensions for HTML, CSS, and JavaScript Page Inspector: Inspection tool for ASP.NET web projects Scaffolding: A framework for building and running code generators Server Explorer extensions for Microsoft Azure Websites Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Microsoft Azure

ASP.NET Web Frameworks and Tools 2012.2 4.1.21001.0 For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013 5.2.21010.0 For additional information, visit http://www.asp.net/

Common Azure Tools 1.3 Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

InvokePeek 1.0 This package downloads snippets from the cloud and inserts them into your code without leaving Visual Studio.

JetBrains ReSharper 8.1 Full Edition build 8.1.23.546 on 2013-12-12T02:30:52 JetBrains ReSharper 8.1 package for Microsoft Visual Studio. For more information about ReSharper, visit http://www.jetbrains.com/resharper/. Copyright © 2003–2014 JetBrains, Inc.

Microsoft .NET Micro Framework v4.3
Microsoft .NET Micro Framework SDK v4.3 Version 4.3.1.0

Microsoft Advertising SDK for Windows Phone
Microsoft Advertising SDK for Windows Phone Build

Microsoft Azure Mobile Services Tools 1.3 Microsoft Azure Mobile Services Tools

NuGet Package Manager 2.8.50926.663 NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

Office Developer Tools for Visual Studio 2013 ENU 12.0.30626 Microsoft Office Developer Tools for Visual Studio 2013 ENU

PowerShell Tools 1.3 Provides file classification services using PowerShell

PreEmptive Analytics Visualizer 1.2 Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools 12.0.41012.0 Microsoft SQL Server Data Tools

Windows Phone 8.1 SDK Integration 1.0 This package integrates the tools for the Windows Phone 8.1 SDK into the menus and controls of Visual Studio.

Workflow Manager Tools 1.0 1.0 This package contains the necessary Visual Studio integration components for Workflow Manager.

laanaithossam avatar Nov 18 '14 21:11 laanaithossam

@nguerrera I'm assuming that you're still looking into this. Let me know if that's not the case.

ellismg avatar Feb 08 '15 08:02 ellismg

@ellismg Thanks for bringing this back to my attention.

@laanaithossam Sorry for the delay. I cannot reproduce this using Visual Studio 2013 Update 4. Is it possible that you had a bad build that was still considered 'up-to-date' after the upgrade? Does it still repro for you after a rebuild?

/cc @theoy Any idea what might be happening? Does this look like a (pre-Roslyn) compiler bug that got patched at some point?

nguerrera avatar Feb 08 '15 19:02 nguerrera

@laanaithossam I am closing this bug because there is no repro available and it only affected debug builds in the single place it was reported. The code generated by both the latest VS 2013 compiler and VS 2015 Preview is correct in all configurations that I've been able to try.

nguerrera avatar Feb 14 '15 03:02 nguerrera

@laanaithossam With that said, if you are still tracking and seeing this and can answer the question about whether you hit it with a full rebuild and the upgraded VS installation, I can gladly reopen and investigate further.

nguerrera avatar Feb 14 '15 03:02 nguerrera