[Mono-bugs] [Bug 677173] New: CSharp REPL throws exception when exec. simple linq: from s in "str" select s

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Mar 4 17:41:04 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=677173

https://bugzilla.novell.com/show_bug.cgi?id=677173#c0


           Summary: CSharp REPL throws exception when exec. simple linq:
                    from s in "str" select s
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: msafar at novell.com
        ReportedBy: Tomasz.Kubacki at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.16
(KHTML, like Gecko) Chrome/10.0.648.126 Safari/534.16

using Mono JIT compiler version 2.11 (master/a9095d6)
when i try to do simple query in Linq, csharp tool throws with
Internal compiler error at {interactive}(1,21):: exception caught while
emitting MethodBuilder

My session log says everything:

csharp> from s in "string" select s;
Internal compiler error at {interactive}(1,21):: exception caught while
emitting MethodBuilder [<InteractiveExpressionClass>::<Host>m__0]
Mono.CSharp.InternalErrorException: FullNamedExpression `s' found in resolved
tree
  at Mono.CSharp.FullNamedExpression.Emit (Mono.CSharp.EmitContext ec)
[0x00000] in <filename unknown>:0 
  at Mono.CSharp.Return.DoEmit (Mono.CSharp.EmitContext ec) [0x00000] in
<filename unknown>:0 
  at Mono.CSharp.Statement.Emit (Mono.CSharp.EmitContext ec) [0x00000] in
<filename unknown>:0 
  at Mono.CSharp.ContextualReturn.Emit (Mono.CSharp.EmitContext ec) [0x00000]
in <filename unknown>:0 
  at Mono.CSharp.Block.DoEmit (Mono.CSharp.EmitContext ec) [0x00000] in
<filename unknown>:0 
  at Mono.CSharp.Block.Emit (Mono.CSharp.EmitContext ec) [0x00000] in <filename
unknown>:0 
  at Mono.CSharp.ExplicitBlock.Emit (Mono.CSharp.EmitContext ec) [0x00000] in
<filename unknown>:0 
  at Mono.CSharp.ToplevelBlock.Emit (Mono.CSharp.EmitContext ec) [0x00000] in
<filename unknown>:0 
  at Mono.CSharp.MethodData.Emit (Mono.CSharp.DeclSpace parent) [0x00000] in
<filename unknown>:0 
  at Mono.CSharp.MethodOrOperator.Emit () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Method.Emit () [0x00000] in <filename unknown>:0 
csharp>  

Reproducible: Always

Steps to Reproduce:
1.open csharp tool
2.enter: from s in "string" select s;
Actual Results:  
Internal compiler error at {interactive}(1,21):: exception caught while
emitting MethodBuilder [<InteractiveExpressionClass>::<Host>m__0]
Mono.CSharp.InternalErrorException: FullNamedExpression `s' found in resolved
tree
  at Mono.CSharp.FullNamedExpression.Emit (Mono.CSharp.EmitContext ec)
[0x00000] in <filename unknown>:0 
  at Mono.CSharp.Return.DoEmit (Mono.CSharp.EmitContext ec) [0x00000] in
<filename unknown>:0 
  at Mono.CSharp.Statement.Emit (Mono.CSharp.EmitContext ec) [0x00000] in
<filename unknown>:0 
  at Mono.CSharp.ContextualReturn.Emit (Mono.CSharp.EmitContext ec) [0x00000]
in <filename unknown>:0 
  at Mono.CSharp.Block.DoEmit (Mono.CSharp.EmitContext ec) [0x00000] in
<filename unknown>:0 
  at Mono.CSharp.Block.Emit (Mono.CSharp.EmitContext ec) [0x00000] in <filename
unknown>:0 
  at Mono.CSharp.ExplicitBlock.Emit (Mono.CSharp.EmitContext ec) [0x00000] in
<filename unknown>:0 
  at Mono.CSharp.ToplevelBlock.Emit (Mono.CSharp.EmitContext ec) [0x00000] in
<filename unknown>:0 
  at Mono.CSharp.MethodData.Emit (Mono.CSharp.DeclSpace parent) [0x00000] in
<filename unknown>:0 
  at Mono.CSharp.MethodOrOperator.Emit () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Method.Emit () [0x00000] in <filename unknown>:0 


Expected Results:  
{ 's', 't', 'r', 'i', 'n', 'g' }

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list