[Mono-bugs] [Bug 360369] New: gmcs crashes when the source files aren' t in a specific order

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Feb 9 16:35:54 EST 2008


           Summary: gmcs crashes when the source files aren't in a specific
           Product: Mono: Compilers
           Version: 1.2.6
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: arno at arnorehn.de
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

Description of Problem:
gmcs crashes when a few of the source files given on the command line aren't in
a specific order

Steps to reproduce the problem:
I couldn't track the problem down to create real test cases. Sorry.

Actual Results:
pumphaus ~/dev/KDE/kio $ /usr/bin/mono --debug /usr/lib/mono/2.0/gmcs.exe
-out:kio.dll -r:qt-dotnet,../csnew/kde-dotnet.dll -target:library -warn:0
KIO_Job.cs KIO_SimpleJob.cs KIO_TransferJob.cs *.cs

Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
  at Mono.CSharp.MemberCache.AddInterface (Mono.CSharp.MemberCache baseCache)
[0x00000] in
  at Mono.CSharp.TypeContainer.DoDefineMembers () [0x000c2] in
  at Mono.CSharp.TypeContainer.DefineMembers () [0x0001f] in
  at Mono.CSharp.RootContext.PopulateTypes () [0x0006e] in
  at Mono.CSharp.Driver.MainDriver (System.String[] args) [0x004de] in
  at Mono.CSharp.Driver.Main (System.String[] args) [0x0001f] in

If a specify an additional source file, it works fine.
pumphaus ~/dev/KDE/kio $ /usr/bin/mono /usr/lib/mono/2.0/gmcs.exe -out:kio.dll
-r:qt-dotnet,../csnew/kde-dotnet.dll -target:library -warn:0 KIO_Job.cs
KIO_SimpleJob.cs KIO_TransferJob.cs KIO_SlaveInterface.cs *.cs
pumphaus ~/dev/KDE/kio $

It shouldn't be necessary at all to put any sources at the beginning - the file
list created by bash is supposed to work fine as well.

Expected Results:
No crash, a simple compilation without any output.

How often does this happen? 
Every time I don't put one of those source files at the beginning of the file

Additional Information:
I also saw this behaviour in mono 1.9 from branches/mono-1-9 (rev 95040).

Configure bugmail: https://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