[Mono-bugs] [Bug 606047] New: NullReferenceException at Mono.CSharp.Expression.IsMemberAccessible

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri May 14 14:53:41 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=606047

http://bugzilla.novell.com/show_bug.cgi?id=606047#c0


           Summary: NullReferenceException at
                    Mono.CSharp.Expression.IsMemberAccessible
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: 64bit
        OS/Version: RHEL 5
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: srfcanada at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; WOW64;
Trident/4.0)

Im getting the following error compiling a lot of our classes. I commented 15
places in the code to get around this error to try and get everything to
compile but now I get the following error compiling a project with 100 classes
but it doesnt say what class or line thats giving a problem so Im at a loss.
This seems to have been introduced over the last few days since the daily build
from about a week ago didnt seem to have the problem. I cant really give a
sample of the problem given its not telling me where the problem is originating
from.


Error Compiling project:
gmcs /warn:4 /define:DEBUG /define:TRACE /debug+ /debug:full /define:MONO12
/warn:4 -pkg:dotnet
-lib:/mnt/hgfs/drms/Projects/DRMSPROD2/Thirdparty/mono/Debug
-lib:/mnt/hgfs/drms/Projects/DRMSPROD2/Bin/redhat5.1/x64/gcc/Debug
-r:Drms.Server.DomainModel.DataContainers.dll
-r:Drms.Server.DomainModel.InterOp.dll
-r:Drms.Server.DomainModel.StudyManagement.dll
-r:Drms.Server.DomainModel.Subsurface.dll
-r:Drms.Server.DomainModel.SurfaceFacilities.dll
-r:Drms.Server.DomainModel.Wells.dll -r:Drms.Server.Models.dll
-r:Drms.Server.Models.Test.dll -r:Drms.Server.Oas.Database.dll
-r:Drms.Server.Oas.Persistence.dll -r:Drms.Server.Shared.dll
-r:Drms.Server.Workflow.dll -r:Drms.Shared.Common.Configuration.dll
-r:Drms.Shared.Common.Core.dll -r:Drms.Shared.Common.ResourceManager.dll
-r:Drms.Shared.Diagnostics.dll -r:Drms.Shared.Utility.dll -r:NHibernate.dll
-r:nunit.framework.dll -r:Rhino.Mocks.dll
-r:/mnt/hgfs/drms/Projects/DRMSPROD2/Bin/redhat5.1/x64/gcc/Debug/Drms.Server.Service.Coordinator.exe
-r:/mnt/hgfs/drms/Projects/DRMSPROD2/Bin/redhat5.1/x64/gcc/Debug/Drms.Server.Service.Manager.exe
-r:System.dll -r:System.Configuration.dll -r:System.Data.dll -r:System.Xml.dll
-out:/mnt/hgfs/drms/Projects/DRMSPROD2/Src/Server/Shared/Shared.Tests/Bin/redhat5.1/x64/gcc/Debug/Drms.Server.Shared.Tests.dll
-resource:/mnt/hgfs/drms/Projects/DRMSPROD2/Src/Server/Shared/Shared.Tests/Bin/redhat5.1/x64/gcc/Debug/Drms.Server.Shared.Tests.Properties.Resources.resources
-t:library Server/Shared/Shared.Tests/AssemblyListServiceTest.cs
Server/Shared/Shared.Tests/BackgroundWorkerThreadTests.cs
Server/Shared/Shared.Tests/CaseContextExceptionTest.cs
Server/Shared/Shared.Tests/CaseContextIntegrationTest.cs
Server/Shared/Shared.Tests/CaseContextTest.cs
Server/Shared/Shared.Tests/CloneContextTest.cs
Server/Shared/Shared.Tests/ConstructorParametersTest.cs
Server/Shared/Shared.Tests/CustomCollectionPerformanceTests.cs
Server/Shared/Shared.Tests/DataFlowContextTest.cs
Server/Shared/Shared.Tests/DefaultImplementationAttributeTest.cs
Server/Shared/Shared.Tests/DependencyResolverTest.cs
Server/Shared/Shared.Tests/DomainObjectBaseReadOnlyTests.cs
Server/Shared/Shared.Tests/DomainObjectBaseTests.cs
Server/Shared/Shared.Tests/DomainObjectBlobWrapperTest.cs
Server/Shared/Shared.Tests/DomainObjectChangeSubscriberTest.cs
Server/Shared/Shared.Tests/DomainObjectChangeTest.cs
Server/Shared/Shared.Tests/DomainObjectChangedEventArgsTest.cs
Server/Shared/Shared.Tests/DomainObjectCollectionEntryTest.cs
Server/Shared/Shared.Tests/DomainObjectContextTest.cs
Server/Shared/Shared.Tests/DomainObjectDictionaryAttributeTest.cs
Server/Shared/Shared.Tests/DomainObjectDictionaryTest.cs
Server/Shared/Shared.Tests/DomainObjectDictionaryValuesCollectionTest.cs
Server/Shared/Shared.Tests/DomainObjectFileWrapperTest.cs
Server/Shared/Shared.Tests/DomainObjectGroupTest.cs
Server/Shared/Shared.Tests/DomainObjectIndirectionManagerTest.cs
Server/Shared/Shared.Tests/DomainObjectListAttributeTest.cs
Server/Shared/Shared.Tests/DomainObjectListTest.cs
Server/Shared/Shared.Tests/DomainObjectUtilTests.cs
Server/Shared/Shared.Tests/DomainObjectValidationResultsTest.cs
Server/Shared/Shared.Tests/DomainObjectWrapperTest.cs
Server/Shared/Shared.Tests/DrmsTraceListenerTest.cs
Server/Shared/Shared.Tests/EntityModelConfigTests.cs
Server/Shared/Shared.Tests/EntityTestBaseObject.cs
Server/Shared/Shared.Tests/EntityTestObject.cs
Server/Shared/Shared.Tests/NullPlaceholderTest.cs
Server/Shared/Shared.Tests/PersistenceUtilTest.cs
Server/Shared/Shared.Tests/PluginManagerTest.cs
Server/Shared/Shared.Tests/RegistrarLookupTest.cs
Server/Shared/Shared.Tests/RelationshipCollectionHelperTest.cs
Server/Shared/Shared.Tests/RelationshipDictionaryAttributeTest.cs
Server/Shared/Shared.Tests/RelationshipDictionaryTest.cs
Server/Shared/Shared.Tests/RelationshipListAttributeTest.cs
Server/Shared/Shared.Tests/RelationshipListTest.cs
Server/Shared/Shared.Tests/RelationshipUtilTest.cs
Server/Shared/Shared.Tests/RemotingHelperInternalTests.cs
Server/Shared/Shared.Tests/RootTestObject.cs
Server/Shared/Shared.Tests/SearchObjectGraphParametersTest.cs
Server/Shared/Shared.Tests/ServiceManagerRegisteredCallbackTests.cs
Server/Shared/Shared.Tests/SessionCreatedCallbackTests.cs
Server/Shared/Shared.Tests/SessionTest.cs
Server/Shared/Shared.Tests/SingleDomainObjectAttributeTest.cs
Server/Shared/Shared.Tests/SingleDomainObjectTest.cs
Server/Shared/Shared.Tests/SingleDomainObjectWithCachingTest.cs
Server/Shared/Shared.Tests/SingleRelationshipAttributeTest.cs
Server/Shared/Shared.Tests/SingleRelationshipTest.cs
Server/Shared/Shared.Tests/SingleRelationshipWithCachingTest.cs
Server/Shared/Shared.Tests/StackListTest.cs
Server/Shared/Shared.Tests/SystemObjectBaseConverterTest.cs
Server/Shared/Shared.Tests/SystemObjectBaseTest.cs
Server/Shared/Shared.Tests/SystemObjectCloneUtilTests.cs
Server/Shared/Shared.Tests/SystemObjectUtilTests.cs
Server/Shared/Shared.Tests/TestBaseObject.cs
Server/Shared/Shared.Tests/TestChildAObject.cs
Server/Shared/Shared.Tests/TestChildBObject.cs
Server/Shared/Shared.Tests/TestObject.cs
Server/Shared/Shared.Tests/ThreadManagerTests.cs
Server/Shared/Shared.Tests/TypeCacheTest.cs
Server/Shared/Shared.Tests/TypeResolverTest.cs
Server/Shared/Shared.Tests/ValidatableAttributeTest.cs
Server/Shared/Shared.Tests/ValidatedDictionaryAttributeTest.cs
Server/Shared/Shared.Tests/ValidatedDictionaryTest.cs
Server/Shared/Shared.Tests/ValidatedListAttributeTest.cs
Server/Shared/Shared.Tests/ValidatedListTest.cs
Server/Shared/Shared.Tests/ValidationRecordTest.cs
Server/Shared/Shared.Tests/Diagnostics.Tests/AssertUtilTest.cs
Server/Shared/Shared.Tests/FileAccessService/FileAccessServiceManagerTest.cs
Server/Shared/Shared.Tests/FileAccessService/FileAccessServicePolicyTest.cs
Server/Shared/Shared.Tests/FileAccessService/LocalFileTransportTest.cs
Server/Shared/Shared.Tests/Properties/AssemblyInfo.cs
Server/Shared/Shared.Tests/Properties/Resources.Designer.cs
Server/Shared/Shared.Tests/Scheduling/DescendingComparerTests.cs
Server/Shared/Shared.Tests/Scheduling/JobSinkTests.cs
Server/Shared/Shared.Tests/Scheduling/SchedulingInfoTests.cs

Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
  at Mono.CSharp.Expression.IsMemberAccessible (Mono.CSharp.TypeSpec
invocation_type, Mono.CSharp.MemberSpec mi, System.Boolean&
must_do_cs1540_check) [0x00000] in <filename unknown>:0
  at Mono.CSharp.MemberAccess.ResolveNamespaceOrType (IMemberContext rc,
Boolean silent) [0x00000] in <filename unknown>:0
  at Mono.CSharp.MemberAccess.ResolveAsTypeStep (IMemberContext ec, Boolean
silent) [0x00000] in <filename unknown>:0
  at Mono.CSharp.Expression.ResolveAsTypeTerminal (IMemberContext ec, Boolean
silent) [0x00000] in <filename unknown>:0
  at Mono.CSharp.TypeArguments.Resolve (IMemberContext ec) [0x00000] in
<filename unknown>:0
  at Mono.CSharp.GenericTypeExpr.DoResolveAsTypeStep (IMemberContext ec)
[0x00000] in <filename unknown>:0
  at Mono.CSharp.TypeExpr.ResolveAsTypeStep (IMemberContext ec, Boolean silent)
[0x00000] in <filename unknown>:0
  at Mono.CSharp.SimpleName.ResolveAsTypeStep (IMemberContext ec, Boolean
silent) [0x00000] in <filename unknown>:0
  at Mono.CSharp.Expression.ResolveAsTypeTerminal (IMemberContext ec, Boolean
silent) [0x00000] in <filename unknown>:0
  at Mono.CSharp.TypeOf.DoResolve (Mono.CSharp.ResolveContext ec) [0x00000] in
<filename unknown>:0
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext ec,
ResolveFlags flags) [0x00000] in <filename unknown>:0
  at Mono.CSharp.MemberAccess.DoResolve (Mono.CSharp.ResolveContext ec,
Mono.CSharp.Expression right_side) [0x00000] in <filename unknown>:0
  at Mono.CSharp.MemberAccess.DoResolve (Mono.CSharp.ResolveContext ec)
[0x00000] in <filename unknown>:0
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext ec,
ResolveFlags flags) [0x00000] in <filename unknown>:0
  at Mono.CSharp.Invocation.DoResolve (Mono.CSharp.ResolveContext ec) [0x00000]
in <filename unknown>:0
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext ec,
ResolveFlags flags) [0x00000] in <filename unknown>:0
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext rc) [0x00000]
in <filename unknown>:0
  at Mono.CSharp.ArrayCreation.ResolveArrayElement (Mono.CSharp.ResolveContext
ec, Mono.CSharp.Expression element) [0x00000] in <filename unknown>:0
  at Mono.CSharp.ArrayCreation.CheckIndices (Mono.CSharp.ResolveContext ec,
Mono.CSharp.ArrayInitializer probe, Int32 idx, Boolean specified_dims, Int32
child_bounds) [0x00000] in <filename unknown>:0
  at Mono.CSharp.ArrayCreation.ResolveInitializers (Mono.CSharp.ResolveContext
ec) [0x00000] in <filename unknown>:0
  at Mono.CSharp.ArrayCreation.DoResolve (Mono.CSharp.ResolveContext ec)
[0x00000] in <filename unknown>:0
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext ec,
ResolveFlags flags) [0x00000] in <filename unknown>:0
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext rc) [0x00000]
in <filename unknown>:0
  at Mono.CSharp.Argument.Resolve (Mono.CSharp.ResolveContext ec) [0x00000] in
<filename unknown>:0
  at Mono.CSharp.Arguments.Resolve (Mono.CSharp.ResolveContext ec,
System.Boolean& dynamic) [0x00000] in <filename unknown>:0
  at Mono.CSharp.Invocation.DoResolve (Mono.CSharp.ResolveContext ec) [0x00000]
in <filename unknown>:0
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext ec,
ResolveFlags flags) [0x00000] in <filename unknown>:0
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext rc) [0x00000]
in <filename unknown>:0
  at Mono.CSharp.Assign.DoResolve (Mono.CSharp.ResolveContext ec) [0x00000] in
<filename unknown>:0
  at Mono.CSharp.FieldInitializer.DoResolve (Mono.CSharp.ResolveContext ec)
[0x00000] in <filename unknown>:0
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext ec,
ResolveFlags flags) [0x00000] in <filename unknown>:0
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext rc) [0x00000]
in <filename unknown>:0
  at Mono.CSharp.ExpressionStatement.ResolveStatement (Mono.CSharp.BlockContext
ec) [0x00000] in <filename unknown>:0
  at Mono.CSharp.TypeContainer.DoResolveFieldInitializers
(Mono.CSharp.BlockContext ec) [0x00000] in <filename unknown>:0
  at Mono.CSharp.TypeContainer.ResolveFieldInitializers
(Mono.CSharp.BlockContext ec) [0x00000] in <filename unknown>:0
  at Mono.CSharp.Constructor.Emit () [0x00000] in <filename unknown>:0
  at Mono.CSharp.TypeContainer.EmitType () [0x00000] in <filename unknown>:0
  at Mono.CSharp.RootContext.EmitCode () [0x00000] in <filename unknown>:0
  at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename
unknown>:0


Reproducible: Always

Steps to Reproduce:
1.
2.
3.

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


More information about the mono-bugs mailing list