[Mono-bugs] [Bug 339897] New: Corrupted dll when compiling over NFS

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Nov 7 11:58:50 EST 2007


           Summary: Corrupted dll when compiling over NFS
           Product: Mono: Runtime
           Version: 1.2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: io-layer
        AssignedTo: dick at novell.com
        ReportedBy: informatique.internet at fiducial.fr
         QAContact: mono-bugs at ximian.com
          Found By: ---

Created an attachment (id=182452)
 --> (https://bugzilla.novell.com/attachment.cgi?id=182452)
the good exe file

I think it's a regression because it works well on mono 1.2.5, but fails on svn

To reproduce it : create a simple test.cs
using System;

class test
        public static void Main()


compile it : mcs ~/test.cs
monodis it : monodis ~/test.exe
assembly extern mscorlib
  .ver 1:0:5000:0
  .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
assembly 'test'
  .hash algorithm 0x00008004
  .ver  0:0:0:0
module test.exe // GUID = {75220C52-C938-451C-B841-1E5F7F657805}

  .class private auto ansi beforefieldinit test
        extends [mscorlib]System.Object

    // method line 1
    .method public hidebysig  specialname  rtspecialname 
           instance default void .ctor ()  cil managed 
        // Method begins at RVA 0x20ec
        // Code size 7 (0x7)
        .maxstack 8
        IL_0000:  ldarg.0 
        IL_0001:  call instance void object::.ctor()
        IL_0006:  ret 
    } // end of method test::.ctor

    // method line 2
    .method public static  hidebysig 
           default void Main ()  cil managed 
        // Method begins at RVA 0x20f4
        // Code size 1 (0x1)
        .maxstack 8
        IL_0000:  ret 
    } // end of method test::Main

  } // end of class test

Copy test.cs over an nfs mounted directory : cp ./test.cs /mnt/nfs
cd /mnt/nfs
mcs ./test.cs
monodis ./test.exe
Error while trying to process ./test.exe
mono ./test.exe 
Cannot open assembly ./test.exe

If you use bless you'll see that both assembly have the same size but are

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

More information about the mono-bugs mailing list