bugDotGNU Portable.NET - Bugs: bug #20201, Xml Serializer throws exception on...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #20201: Xml Serializer throws exception on multi-processor systems

Submitted by:  Nick Lee <nick_lee>
Submitted on:  Mon 18 Jun 2007 08:40:22 AM UTC  
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Tue 19 Jun 2007 08:43:29 PM UTC, comment #1:

The line you speak of is inside a try/catch block.

There seems to be some issue with the exception handling ?

Anonymous
Mon 18 Jun 2007 08:40:22 AM UTC, original submission:

Repeated use of XmlSerializer causes an exception to be thrown in a thread not owned by calling code. Exception is thrown at different points in execution each time, but an example output from the attached test case is as follows:

  1. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 System.FormatException: Value must be formatted as an integer

at System.Private.NumberParser.ParseNumber(String, NumberStyles, NumberFormatInfo, UInt64&, Boolean&) in ./System/Private/NumberParser.cs:418
at System.Private.NumberParser.ParseInt32(String, NumberStyles, NumberFormatInfo, Int32) in ./System/Private/NumberParser.cs:621
at System.Int32.Parse(String, NumberStyles, IFormatProvider) in ./System/Int32.cs:78
at System.Int32.Parse(String) in ./System/Int32.cs:83
at System.CodeDom.Compiler.CodeCompiler.ProcessCompilerOutputLine(String) in ./CodeDom/Compiler/CodeCompiler.cs:371
at System.CodeDom.Compiler.CSharpCodeCompiler.ProcessCompilerOutputLine(CompilerResults, String) in ./CodeDom/Compiler/CSharpCodeCompiler.cs:261
at System.CodeDom.Compiler.CodeCompiler.FromFileBatch(CompilerParameters, String[]) in ./CodeDom/Compiler/CodeCompiler.cs:173
at System.CodeDom.Compiler.CodeCompiler.FromFile(CompilerParameters, String) in ./CodeDom/Compiler/CodeCompiler.cs:121
at System.CodeDom.Compiler.CodeCompiler.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromFile(CompilerParameters, String) in ./CodeDom/Compiler/CodeCompiler.cs:495
at System.Xml.Serialization.XmlSerializer.RunSerializerGenerationAux(Object) in ./Serialization/XmlSerializer.cs:537
at System.Xml.Serialization.XmlSerializer.RunSerializerGeneration(Object) in ./Serialization/XmlSerializer.cs:482
at System.Threading.WaitCallback.Invoke(Object)
at System.Threading.WorkItem.Execute() in ./System/Threading/ThreadPool.cs:576
at System.Threading.ThreadPool.Work() in ./System/Threading/ThreadPool.cs:320

This doesn't appear to happen on single processor machines.

Nick Lee <nick_lee>

 

Attached Files
file #13088:  exception.txt added by nick_lee (2KiB - text/plain)
file #13089:  Class1.cs added by nick_lee (785B - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by nick_lee (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-06-18 nick_lee Attached File- => Added exception.txt, #13088
        Attached File- => Added Class1.cs, #13089

    Back to the top


    Powered by Savane 3.3