[Mono-bugs] [Bug 75875][Cri] New - While using the DirectoryInfo GetFiles method a UNC path causes mono runtime to crash.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Aug 22 13:25:41 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by rdwtux at gmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=75875

--- shadow/75875	2005-08-22 13:25:41.000000000 -0400
+++ shadow/75875.tmp.16938	2005-08-22 13:25:41.000000000 -0400
@@ -0,0 +1,74 @@
+Bug#: 75875
+Product: Mono: Runtime
+Version: 1.1
+OS: Windows XP
+OS Details: Windows 2000
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Critical
+Component: JIT
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: rdwtux at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: While using the DirectoryInfo GetFiles method a UNC path causes mono runtime to crash.
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+-------------------------
+While using the DirectoryInfo GetFiles method a UNC path causes mono
+runtime to crash.
+
+Crash Code:
+------------
+using System;
+using System.IO;
+
+class GetFiles {
+    string path = "\\\\servername\\dir\\";
+    DirectoryInfo dir = new DirectoryInfo(audit_path);
+    FileInfo[] files = dir.GetFiles();
+
+    foreach (FileInfo filetmp in files)
+        Console.WriteLine(filetmp.Name);
+
+
+Working Code:
+------------
+using System;
+using System.IO;
+
+class GetFiles {
+    string path = "c:\temp\";
+    DirectoryInfo dir = new DirectoryInfo(audit_path);
+    FileInfo[] files = dir.GetFiles();
+
+    foreach (FileInfo filetmp in files)
+        Console.WriteLine(filetmp.Name);
+
+
+Steps to reproduce the problem:
+1. Use crash code above
+2. 
+3. 
+
+Actual Results:
+--------------
+Crashes with:
+
+"Glib-Error**; gmem.c:174: failed to allocate 48 bytes aborting..."
+
+Expected Results:
+-----------------
+Should return a listing of file names.  This works with MS DotNet framework 
+
+How often does this happen? 
+---------------------------
+Every Time
+
+Additional Information:
+----------------------


More information about the mono-bugs mailing list