IronLanguages / main

Work for this repo has moved to https://github.com/IronLanguages/ironpython2
1.16k stars 347 forks source link

test_support.check_py3k_warnings() fails with -X:Tracing -X:FullFrames #874

Open ironpythonbot opened 9 years ago

ironpythonbot commented 9 years ago

% ipy -X:Tracing -X:FullFrames -X:ExceptionDetail IronPython 2.7 Alpha 1 DEBUG (2.7.0.1) on .NET 4.0.30319.1 Type "help", "copyright", "credits" or "license" for more information. >>> from test import test_support >>> with test_support.check_py3k_warnings(): ... pass ... Unable to cast object of type 'System.Linq.Expressions.FieldExpression' to type 'System.Linq.Expressions.BlockExpression'. at Microsoft.Scripting.Ast.GeneratorRewriter.VisitAssign(BinaryExpression node) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Ast\GeneratorRewriter.cs:line 830 at Microsoft.Scripting.Ast.GeneratorRewriter.VisitBinary(BinaryExpression node) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Ast\GeneratorRewriter.cs:line 875 at System.Linq.Expressions.BinaryExpression.Accept(ExpressionVisitor visitor) at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node) at System.Linq.Expressions.ExpressionVisitor.Visit(ReadOnlyCollection1 nodes) at Microsoft.Scripting.Ast.GeneratorRewriter.VisitBlock(BlockExpression node) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Ast\GeneratorRewriter.cs:line 594 at System.Linq.Expressions.BlockExpression.Accept(ExpressionVisitor visitor) at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node) at System.Linq.Expressions.ExpressionVisitor.Visit(ReadOnlyCollection1 nodes) at Microsoft.Scripting.Ast.GeneratorRewriter.VisitBlock(BlockExpression node) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Ast\GeneratorRewriter.cs:line 594 at System.Linq.Expressions.BlockExpression.Accept(ExpressionVisitor visitor) at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node) at System.Linq.Expressions.ExpressionVisitor.Visit(ReadOnlyCollection1 nodes) at Microsoft.Scripting.Ast.GeneratorRewriter.VisitBlock(BlockExpression node) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Ast\GeneratorRewriter.cs:line 594 at System.Linq.Expressions.BlockExpression.Accept(ExpressionVisitor visitor) at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node) at System.Linq.Expressions.ExpressionVisitor.Visit(ReadOnlyCollection1 nodes) at Microsoft.Scripting.Ast.GeneratorRewriter.VisitBlock(BlockExpression node) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Ast\GeneratorRewriter.cs:line 594 at System.Linq.Expressions.BlockExpression.Accept(ExpressionVisitor visitor) at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node) at System.Linq.Expressions.ExpressionVisitor.Visit(ReadOnlyCollection1 nodes) at Microsoft.Scripting.Ast.GeneratorRewriter.VisitBlock(BlockExpression node) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Ast\GeneratorRewriter.cs:line 594 at System.Linq.Expressions.BlockExpression.Accept(ExpressionVisitor visitor) at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node) at Microsoft.Scripting.Ast.GeneratorRewriter.VisitTry(TryExpression node) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Ast\GeneratorRewriter.cs:line 296 at System.Linq.Expressions.TryExpression.Accept(ExpressionVisitor visitor) at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node) at System.Linq.Expressions.ExpressionVisitor.Visit(ReadOnlyCollection1 nodes) at Microsoft.Scripting.Ast.GeneratorRewriter.VisitBlock(BlockExpression node) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Ast\GeneratorRewriter.cs:line 594 at System.Linq.Expressions.BlockExpression.Accept(ExpressionVisitor visitor) at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node) at System.Linq.Expressions.ExpressionVisitor.Visit(ReadOnlyCollection1 nodes) at Microsoft.Scripting.Ast.GeneratorRewriter.VisitBlock(BlockExpression node) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Ast\GeneratorRewriter.cs:line 594 at System.Linq.Expressions.BlockExpression.Accept(ExpressionVisitor visitor) at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node) at System.Linq.Expressions.ExpressionVisitor.Visit(ReadOnlyCollection1 nodes) at Microsoft.Scripting.Ast.GeneratorRewriter.VisitBlock(BlockExpression node) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Ast\GeneratorRewriter.cs:line 594 at System.Linq.Expressions.BlockExpression.Accept(ExpressionVisitor visitor) at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node) at System.Linq.Expressions.ExpressionVisitor.Visit(ReadOnlyCollection1 nodes) at Microsoft.Scripting.Ast.GeneratorRewriter.VisitBlock(BlockExpression node) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Ast\GeneratorRewriter.cs:line 594 at System.Linq.Expressions.BlockExpression.Accept(ExpressionVisitor visitor) at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node) at System.Linq.Expressions.ExpressionVisitor.Visit(ReadOnlyCollection1 nodes) at Microsoft.Scripting.Ast.GeneratorRewriter.VisitBlock(BlockExpression node) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Ast\GeneratorRewriter.cs:line 594 at System.Linq.Expressions.BlockExpression.Accept(ExpressionVisitor visitor) at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node) at System.Linq.Expressions.ExpressionVisitor.Visit(ReadOnlyCollection1 nodes) at Microsoft.Scripting.Ast.GeneratorRewriter.VisitBlock(BlockExpression node) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Ast\GeneratorRewriter.cs:line 594 at System.Linq.Expressions.BlockExpression.Accept(ExpressionVisitor visitor) at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node) at System.Linq.Expressions.ExpressionVisitor.Visit(ReadOnlyCollection1 nodes) at Microsoft.Scripting.Ast.GeneratorRewriter.VisitBlock(BlockExpression node) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Ast\GeneratorRewriter.cs:line 594 at System.Linq.Expressions.BlockExpression.Accept(ExpressionVisitor visitor) at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node) at System.Linq.Expressions.ExpressionVisitor.Visit(ReadOnlyCollection1 nodes) at Microsoft.Scripting.Ast.GeneratorRewriter.VisitBlock(BlockExpression node) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Ast\GeneratorRewriter.cs:line 594 at System.Linq.Expressions.BlockExpression.Accept(ExpressionVisitor visitor) at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node) at Microsoft.Scripting.Ast.GeneratorRewriter.VisitAssign(BinaryExpression node) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Ast\GeneratorRewriter.cs:line 788 at Microsoft.Scripting.Ast.GeneratorRewriter.VisitBinary(BinaryExpression node) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Ast\GeneratorRewriter.cs:line 875 at System.Linq.Expressions.BinaryExpression.Accept(ExpressionVisitor visitor) at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node) at System.Linq.Expressions.ExpressionVisitor.Visit(ReadOnlyCollection1 nodes) at Microsoft.Scripting.Ast.GeneratorRewriter.VisitBlock(BlockExpression node) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Ast\GeneratorRewriter.cs:line 594 at System.Linq.Expressions.BlockExpression.Accept(ExpressionVisitor visitor) at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node) at System.Linq.Expressions.ExpressionVisitor.Visit(ReadOnlyCollection1 nodes) at Microsoft.Scripting.Ast.GeneratorRewriter.VisitBlock(BlockExpression node) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Ast\GeneratorRewriter.cs:line 594 at System.Linq.Expressions.BlockExpression.Accept(ExpressionVisitor visitor) at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node) at Microsoft.Scripting.Ast.GeneratorRewriter.Reduce() in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Ast\GeneratorRewriter.cs:line 99 at Microsoft.Scripting.Ast.GeneratorExpression.Reduce() in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Ast\GeneratorExpression.cs:line 94 at System.Linq.Expressions.Expression.ReduceAndCheck() at System.Linq.Expressions.Expression.ReduceExtensions() at System.Linq.Expressio ns.Compiler.StackSpiller.RewriteExtensionExpression(Expression expr, Stackstack) at System.Linq.Expressions.Compiler.StackSpiller.RewriteExpression(Expression node, Stack stack) at System.Linq.Expressions.Compiler.StackSpiller.RewriteExp ressionFreeTemps(Expression expression, Stack stack) at System.Linq.Expressions.Compiler.StackSpiller.Rewrite[T](Expression1 lambda) at System.Linq.Expressions.Expression1.Accept(StackSpiller spiller) at System.Linq.Expressions.Compiler.LambdaCompiler.Compile(LambdaExpression lambda, DebugInfoGenerator debugInfoGenerator) at System.Linq.Expressions.LambdaExpression.Compile() at Microsoft.Scripting.Debu gging.DebuggableLambdaBuilder.CreateFunctionInfo(LambdaExpression generatorFactoryLambda) in c:\vsl0\dlr\Runtime\Microsoft.Scripting.Debugging\D ebuggableLambdaBuilder.cs:line 382 at Microsoft.Scripting.Debugging.Debuggable LambdaBuilder.TransformLambda(LambdaExpression lambda) in c:\vsl0\dlr\Runtime\ Microsoft.Scripting.Debugging\DebuggableLambdaBuilder.cs:line 171 at Microsoft .Scripting.Debugging.DebuggableLambdaBuilder.Transform(LambdaExpression lambda) in c:\vsl0\dlr\Runtime\Microsoft.Scripting.Debugging\DebuggableLambdaB uilder.cs:line 111 at Microsoft.Scripting.Debugging.CompilerServices.DebugCont ext.TransformLambda(LambdaExpression lambda, DebugLambdaInfo lambdaInfo) in c:\vsl0\dlr\Runtime\Microsoft.Scripting.Debugging\DebugContext.cs:line 68 at I ronPython.Runtime.FunctionCode.<>c__DisplayClass1a.<GetGeneratorOrNormalLambda Tracing>b__19(Expression1 x) in C:\vsl0\dlr\Languages\IronPython\IronPython\Runtime\FunctionCode.cs:line 781 at IronPython.Compiler.GeneratorRewriter.Reduce(Boolean shouldInterpret, Boolean emitDebugSymbols, Int32 compilationThreshold, IList1 parameters, Func2 bodyConverter) in C:\vsl0\dlr\Languages\IronPython\IronPython\Compiler\GeneratorRewriter.cs:line 147 at IronPython.Runtime.FunctionCode.GetGeneratorOrNormalLambdaTracing(Pytho nContext context) in C:\vsl0\dlr\Languages\IronPython\IronPython\Runtime\FunctionCode.cs:line 771 at IronPython.Runtime.FunctionCode.UpdateDelegate(PythonContext context, Boolean forceCreation) in C:\vsl0\dlr\Languages\IronPython\IronPython\Runtime\FunctionCode.cs:line 711 at IronPython.Runtime.FunctionCode.LazyCompileFirstTarget(PythonFunction function) in C:\vsl0\dlr\Languages\IronPython\IronPython\Runtime\FunctionCode.cs:line 691 at IronPython.Compiler.PythonCallTargets.OriginalCallTarget2(PythonFunction function, Object arg0, Object arg1) in C:\vsl0\dlr\Languages\IronPython\IronPython\Compiler\PythonCallTargets.cs:line 47 at IronPython.Runtime.PythonFunction.FunctionCaller2.Call2(CallSite site, CodeContext context, Object func, T0 arg0, T1 arg1) in C:\vsl0\dlr\Languages\I ronPython\IronPython\Runtime\PythonFunction.Generated.cs:line 550 at System.Dynamic.UpdateDelegates.UpdateAndExecute4[T0,T1,T2,T3,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3) at Microsoft.Scripting.Interpreter.DynamicInstruction5.Run(InterpretedFrame frame) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Interpreter\Instructions\Dynam icInstructions.Generated.cs:line 213 at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 132 at Microsoft.Scripting.Interpreter.LightLambda.Run3[T0,T1,T2,TRet](T0 arg0, T1 arg1, T2 arg2) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Interpreter\LightLambd a.Generated.cs:line 130 at IronPython.Compiler.PythonCallTargets.OriginalCallTarget2(PythonFunction function, Object arg0, Object arg1) in C:\vsl0\dlr\Languages\IronPython\IronPython\Compiler\PythonCallTargets.cs:line 48 at Microsoft.Scripting.Interpreter.FuncCallInstruction5.Run(InterpretedFrame frame) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Interpreter\Instructions\CallI nstruction.Generated.cs:line 764 at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 132 at Microsoft.Scripting.Interpreter.LightLambda.Run5[T0,T1,T2,T3,T4,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\I nterpreter\LightLambda.Generated.cs:line 202 at System.Dynamic.UpdateDelegates.UpdateAndExecute4[T0,T1,T2,T3,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3) at Microsoft.Scripting.Interpreter.DynamicInstruction5.Run(InterpretedFrame frame) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Interpreter\Instructions\Dynam icInstructions.Generated.cs:line 213 at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 132 at Microsoft.Scripting.Interpreter.LightLambda.Run3[T0,T1,T2,TRet](T0 arg0, T1 arg1, T2 arg2) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Interpreter\LightLambd a.Generated.cs:line 130 at IronPython.Compiler.PythonCallTargets.OriginalCallTarget2(PythonFunction function, Object arg0, Object arg1) in C:\vsl0\dlr\Languages\IronPython\IronPython\Compiler\PythonCallTargets.cs:line 48 at Microsoft.Scripting.Interpreter.FuncCallInstruction5.Run(InterpretedFrame frame) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Interpreter\Instructions\CallI nstruction.Generated.cs:line 764 at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 132 at Microsoft.Scripting.Interpreter.LightLambda.Run3[T0,T1,T2,TRet](T0 arg0, T1 arg1, T2 arg2) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Interpreter\LightLambd a.Generated.cs:line 130 at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1) at Microsoft.Scripting.Interpreter.DynamicInstruction3.Run(InterpretedFrame frame) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Interpreter\Instructions\Dynam icInstructions.Generated.cs:line 163 at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 132 at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1) in C:\vsl0\dlr\Runtime\Microsoft.Dynamic\Interpreter\LightLambda.Generated.cs: line 97 at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx) in C:\vsl0\dlr\Languages\IronPython\IronPython\Compiler\PythonScriptCode.cs:line 81 at IronPython.Compiler.PythonScriptCode.Run(Scope scope) in C:\vsl0\dlr\Languages\IronPython\IronPython\Compiler\PythonScriptCode.cs:line 72 at IronPython.Hosting.PythonCommandLine.<>cDisplayClass1.<RunOneInteracti on>b0() in C:\vsl0\dlr\Languages\IronPython\IronPython\Hosting\PythonCommandLine.cs:line 390 TypeError: Unable to cast object of type 'System.Linq.Expressions.FieldExpression' to type 'System.Linq.Expressions.BlockExpression'. >>> ^Z

Work Item Details

Original CodePlex Issue: Issue 28368 Status: Proposed Reason Closed: Unassigned Assigned to: Unassigned Reported on: Aug 2, 2010 at 11:39 AM Reported by: darb Updated on: Feb 22, 2013 at 2:10 AM Updated by: ndevenish

ironpythonbot commented 9 years ago

On 2012-11-19 18:50:41 UTC, ndevenish commented:

Did you ever get to analysing this at all?