Bug 24511

Summary: mcs hangs during compile
Product: [Mono] Compilers Reporter: Arsen.Shnurkov <Arsen.Shnurkov>
Component: C#Assignee: Marek Safar <masafa>
Status: RESOLVED FIXED    
Severity: normal CC: atsushi, mono-bugs+mono
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Tags: Is this bug a regression?: ---
Last known good build:

Description Arsen.Shnurkov 2014-11-13 19:14:18 UTC
http://stackoverflow.com/questions/26913972/why-htmlparsersharp-project-from-github-are-compiled-so-long-with-mcs

mcs is from mono 3.10.1,
HtmlParserSharp is from here - https://github.com/jflam/HtmlParserSharp

it compile with 100% CPU utilization for 15 minutes already, and I think it will never end.

The command line was

    /usr/bin/mcs /noconfig "/r:/usr/lib/mono/4.5/mscorlib.dll" -nostdlib "/out:/home/user/github.com/HtmlParserSharp/HtmlParserSharp/bin/Release/HtmlParser.dll" "/r:/usr/lib/mono/4.5/System.dll" "/r:/usr/lib/mono/4.5/System.Core.dll" "/r:/usr/lib/mono/4.5/System.Xml.Linq.dll" "/r:/usr/lib/mono/4.5/System.Data.DataSetExtensions.dll" "/r:/usr/lib/mono/4.5/System.Data.dll" "/r:/usr/lib/mono/4.5/System.Xml.dll" "/r:/usr/lib/mono/4.5/System.Core.dll" /nologo /warn:4 /debug:pdbonly /optimize+ /codepage:utf8 "/define:TRACE" /t:library "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Core/AttributeName.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Core/CharsetState.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Core/CoalescingTreeBuilder.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Common/DoctypeExpectation.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Common/DocumentMode.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Common/DocumentModeEventArgs.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Common/EncodingDetectedEventArgs.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Common/XmlViolationPolicy.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Core/DispatchGroup.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Core/DomTreeBuilder.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Core/ElementName.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Core/HtmlAttributes.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Core/InsertionMode.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Program.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Core/ILocator.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Common/ITokenHandler.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Core/ITreeBuilderState.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Core/Locator.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Core/NamedCharacterAccel.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Core/NamedCharacters.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Core/NCName.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Common/Attributes.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Common/ParserErrorEventArgs.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Core/Portability.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Properties/AssemblyInfo.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/SimpleHtmlParser.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Core/StackNode.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Core/StateSnapshot.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Core/TaintableLocator.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Core/Tokenizer.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Core/TreeBuilder.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Core/TreeBuilderConstants.cs" "/home/user/github.com/HtmlParserSharp/HtmlParserSharp/Core/UTF16Buffer.cs"

6 hours later - compilation still not completed/finished.
Comment 1 Marek Safar 2014-11-18 04:30:48 UTC
Fixed in master, compiles under 2 seconds on my machine now.
Comment 2 Marek Safar 2014-11-18 07:18:59 UTC
*** Bug 24566 has been marked as a duplicate of this bug. ***