[Mono-bugs] [Bug 61561][Blo] New - MCS fails with unhandled exception (not a syntax error) while compiling my program
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 14 Jul 2004 15:36:54 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by msolnit@istante.com.
http://bugzilla.ximian.com/show_bug.cgi?id=61561
--- shadow/61561 2004-07-14 15:36:54.000000000 -0400
+++ shadow/61561.tmp.13232 2004-07-14 15:36:54.000000000 -0400
@@ -0,0 +1,111 @@
+Bug#: 61561
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details: Windows XP SP1, .NET 1.1, Mono 1.0
+Status: NEW
+Resolution:
+Severity:
+Priority: Blocker
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: msolnit@istante.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: MCS fails with unhandled exception (not a syntax error) while compiling my program
+
+Description of Problem:
+mcs fails to compile a given source file. It fails with the following
+error:
+
+Exception caught by the compiler while compiling:
+ Block that caused the problem begin at:
+C:\iter\source\windows\adc\api\Remoting\Java\JavaAdapter.
+cs: (407)
+ Block being compiled:
+[C:\iter\source\windows\adc\api\Remoting\Java\JavaAdapter
+.cs: (412),Internal: (1)]
+System.NullReferenceException: Object reference not set to an instance of
+an object
+
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an ob
+ject
+in <0x00097> Mono.CSharp.Report:FriendlyStackTrace
+(System.Diagnostics.StackTrace)
+in <0x0002b> Mono.CSharp.Report:FriendlyStackTrace (System.Exception)
+in <0x00254> Mono.CSharp.EmitContext:EmitTopBlock
+(Mono.CSharp.Block,Mono.CSharp.InternalParameters,
+Mono.CSharp.Location)
+in <0x004d5> Mono.CSharp.MethodData:Emit
+(Mono.CSharp.TypeContainer,Mono.CSharp.Attributable)
+in <0x00016> Mono.CSharp.Method:Emit (Mono.CSharp.TypeContainer)
+in <0x00597> Mono.CSharp.TypeContainer:Emit ()
+in <0x007eb> Mono.CSharp.RootContext:EmitCode ()
+in <0x00b6f> Mono.CSharp.Driver:MainDriver (string[])
+in <0x00012> Mono.CSharp.Driver:Main (string[])
+
+Steps to reproduce the problem:
+1. The command I used was:
+mcs -target:library -out:.\Iteration.ADC.Api.dll -reference:"C:\Program
+Files\Mono-1.0\lib\mono\1.0\System.dll" -reference:"C:\Program Files\Mono-
+1.0\lib\mono\1.0\System.Data.dll" -reference:"C:\Program Files\Mono-1.0
+\lib\mono\1.0\System.XML.dll" -
+reference:"C:\iter\source\windows\adc\common\bin\Debug\Iteration.ADC.Commo
+n.dll" -reference:"C:\Program Files\Mono-1.0\lib\mono\1.0
+\System.Runtime.Remoting.dll" -reference:"C:\Program Files\Mono-1.0
+\lib\mono\1.0\System.Runtime.Serialization.Formatters.Soap.dll" -
+reference:"C:\iter\source\windows\Core\bin\Debug\Iteration.Common.Core.dll
+" -
+reference:"C:\iter\source\unix\JNBProxy\Iteration.ActiveDataCache.Core.Pro
+xies.dll" -reference:"c:\iter\source\unix\JNBProxy\JNBShare.dll"
+C:\iter\source\windows\adc\api\AccessControlList.cs
+C:\iter\source\windows\adc\api\AssemblyInfo.cs
+C:\iter\source\windows\adc\api\BufferedDataReader.cs
+C:\iter\source\windows\adc\api\Column.cs
+C:\iter\source\windows\adc\api\Context.cs
+C:\iter\source\windows\adc\api\Dataset.cs
+C:\iter\source\windows\adc\api\DatasetSchema.cs
+C:\iter\source\windows\adc\api\DatasetSchemaDesign.cs
+C:\iter\source\windows\adc\api\Exceptions.cs
+C:\iter\source\windows\adc\api\Folder.cs
+C:\iter\source\windows\adc\api\..\..\..\GlobalAssemblyInfo.cs
+C:\iter\source\windows\adc\api\Index.cs
+C:\iter\source\windows\adc\api\Lookup.cs
+C:\iter\source\windows\adc\api\Objectset.cs
+C:\iter\source\windows\adc\api\Ping.cs
+C:\iter\source\windows\adc\api\Role.cs
+C:\iter\source\windows\adc\api\RootFolder.cs
+C:\iter\source\windows\adc\api\Row.cs
+C:\iter\source\windows\adc\api\Rowset.cs
+C:\iter\source\windows\adc\api\SecurityFilter.cs
+C:\iter\source\windows\adc\api\SystemObject.cs
+C:\iter\source\windows\adc\api\SystemType.cs
+C:\iter\source\windows\adc\api\TransactionContext.cs
+C:\iter\source\windows\adc\api\User.cs
+C:\iter\source\windows\adc\api\ValidIdentifier.cs
+C:\iter\source\windows\adc\api\Viewset.cs
+C:\iter\source\windows\adc\api\Remoting\Agent.cs
+C:\iter\source\windows\adc\api\Remoting\ServerWrapper.cs
+C:\iter\source\windows\adc\api\Remoting\Java\JavaAdapter.cs
+C:\iter\source\windows\adc\api\Remoting\Java\JavaToNetFactory.cs
+C:\iter\source\windows\adc\api\Remoting\Java\ModifierAdapter.cs
+C:\iter\source\windows\adc\api\Remoting\Java\NetToJavaFactory.cs
+C:\iter\source\windows\adc\api\Remoting\Java\SatelliteAdapter.cs
+
+Actual Results:
+Exception thrown by the compiler (see above)
+
+Expected Results:
+Successful compilation
+
+How often does this happen?
+Every time
+
+Additional Information:
+I am in the unfortunate position of using Mono to compile proprietary
+source code. For that reason, I cannot supply the source code, but if
+the error message is not enough to debug then problem then perhaps we can
+work something out.