[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


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


           Summary: gmcs crashes when the source files aren't in a specific
                    order
           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
/var/tmp/portage/dev-lang/mono-1.2.6-r1/work/mono-1.2.6/mcs/mcs/decl.cs:1829
  at Mono.CSharp.TypeContainer.DoDefineMembers () [0x000c2] in
/var/tmp/portage/dev-lang/mono-1.2.6-r1/work/mono-1.2.6/mcs/mcs/class.cs:1591
  at Mono.CSharp.TypeContainer.DefineMembers () [0x0001f] in
/var/tmp/portage/dev-lang/mono-1.2.6-r1/work/mono-1.2.6/mcs/mcs/class.cs:1565
  at Mono.CSharp.RootContext.PopulateTypes () [0x0006e] in
/var/tmp/portage/dev-lang/mono-1.2.6-r1/work/mono-1.2.6/mcs/mcs/rootcontext.cs:511
  at Mono.CSharp.Driver.MainDriver (System.String[] args) [0x004de] in
/var/tmp/portage/dev-lang/mono-1.2.6-r1/work/mono-1.2.6/mcs/mcs/driver.cs:1727
  at Mono.CSharp.Driver.Main (System.String[] args) [0x0001f] in
/var/tmp/portage/dev-lang/mono-1.2.6-r1/work/mono-1.2.6/mcs/mcs/driver.cs:295

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
list.

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