http://bugzilla.novell.com/show_bug.cgi?id=579146
http://bugzilla.novell.com/show_bug.cgi?id=579146#c0 Summary: Disk Full Error doesn't release handle on files Classification: Mono Product: Mono: Class Libraries Version: 2.6.x Platform: All OS/Version: All Status: NEW Severity: Normal Priority: P5 - None Component: CORLIB AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.1.7) Gecko/20100106 Ubuntu/9.10 (karmic) Firefox/3.5 we have a remoting process that write csv files... on a quotatized storage space... We run out of quota... and we have seen "Sharing violation on path" exception Reproducible: Always Steps to Reproduce: 1. create a mini test filesystem (dd if=/dev/zero of=/tmp/test/fs bs=1 count=1M) 2. mkfs /tmp/tesfs 3. mount /tmp/testfs /mnt/test -o loop 4. create a "big" file ... dd if=/dev/zero of=/mnt/test/test/bigfile bs=1 count=999k 5. run this program public static void Main (string[] argv) { try { using (TextWriter streamWriter = new StreamWriter ("/mnt/test/test/test.txt", true)) { streamWriter.WriteLine ("Coucdfgdfgdfgdfgdgfgdgdfgdfgdfgdou"); } } catch (Exception ex) { Console.WriteLine (ex); } using (TextWriter streamWriter = new StreamWriter ("/mnt/test/test/test.txt", true)) { streamWriter.WriteLine ("Coucou"); } } Actual Results: System.IO.IOException: Disk full. Path /mnt/test/test/test.txt at System.IO.FileStream.FlushBuffer (System.IO.Stream st) [0x000c1] in /home/hfongarnand/mono/monostable/mcs/class/corlib/System.IO/FileStream.cs:1029 at System.IO.FileStream.FlushBuffer () [0x00000] in /home/hfongarnand/mono/monostable/mcs/class/corlib/System.IO/FileStream.cs:1033 at System.IO.FileStream.Flush () [0x00020] in /home/hfongarnand/mono/monostable/mcs/class/corlib/System.IO/FileStream.cs:845 at System.IO.StreamWriter.Flush () [0x0002e] in /home/hfongarnand/mono/monostable/mcs/class/corlib/System.IO/StreamWriter.cs:179 at System.IO.StreamWriter.Dispose (Boolean disposing) [0x0001c] in /home/hfongarnand/mono/monostable/mcs/class/corlib/System.IO/StreamWriter.cs:160 at System.IO.TextWriter.Dispose () [0x00000] in /home/hfongarnand/mono/monostable/mcs/class/corlib/System.IO/TextWriter.cs:101 at Performance.ArrayTest.Main (System.String[] argv) [0x0000c] in /home/hfongarnand/Projects/TestMono/TestMono/Main.cs:16 Unhandled Exception: System.IO.IOException: Sharing violation on path /mnt/test/test/test.txt at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x0030c] in /home/hfongarnand/mono/monostable/mcs/class/corlib/System.IO/FileStream.cs:346 at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) [0x00039] in /home/hfongarnand/mono/monostable/mcs/class/corlib/System.IO/StreamWriter.cs:124 at System.IO.StreamWriter..ctor (System.String path, Boolean append) [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool) at Performance.ArrayTest.Main (System.String[] argv) [0x0003a] in /home/hfongarnand/Projects/TestMono/TestMono/Main.cs:23 Expected Results: Two Disk full error -- 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. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
