[Mono-bugs] [Bug 82440][Maj] New - [Regression] IOException in Directory.GetFileSystemEntries

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Aug 14 10:33:36 EDT 2007


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 juraj at hotfeet.ch.

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

--- shadow/82440	2007-08-14 10:33:36.000000000 -0400
+++ shadow/82440.tmp.9716	2007-08-14 10:33:36.000000000 -0400
@@ -0,0 +1,57 @@
+Bug#: 82440
+Product: Mono: Runtime
+Version: 1.2
+OS: 
+OS Details: FC6
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: io-layer
+AssignedTo: dick at ximian.com                            
+ReportedBy: juraj at hotfeet.ch               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [Regression] IOException in Directory.GetFileSystemEntries
+
+Commit 83191 seems to have caused a regression. Since the beginning of
+August, I'm often getting the following exception:
+
+System.IO.IOException: Win32 IO returned ERROR_GEN_FAILURE. Path:
+/var/www/html/devel.hotfeet.ch/frauchiger/UserData
+  at System.IO.Directory.GetFileSystemEntries (System.String path,
+System.String pattern, FileAttributes mask, FileAttributes attrs) [0x00000] 
+  at System.IO.Directory.GetFiles (System.String path, System.String
+pattern) [0x00000]
+
+...and mod_mono writes this to Apache's errorlog:
+** Message: Unknown errno: Success
+
+My code called Directory.GetFiles(
+"/var/www/html/devel.hotfeet.ch/frauchiger/UserData", "offer_00000_*.*"),
+where the searched directory contains following files:
+
+[js at leonardo UserData]$ ls -l
+total 48
+drwxrwxrwx 2 paris  hotfeet 4096 Aug  8 11:41 generated
+-rw------- 1 apache apache  8265 Aug  2 13:23 offer_00000_01_250x229.jpg
+-rw------- 1 apache apache  5159 Aug  2 13:50 offer_00001_00_250x199.jpg
+-rw------- 1 apache apache  8422 Aug  2 14:03 offer_00002_00_244x250.jpg
+-rw------- 1 apache apache  8837 Aug  2 14:05 offer_00003_00_250x249.jpg
+
+I'm using Mono from SVN. (And I'm cleaning /tmp/.wapi on httpd restart.)
+
+After reverting commit 83191 (see below), everything seem to work fine again.
+
+2007-08-01  Dick Porter  <dick at ximian.com>
+
+	* io-portability.c (_wapi_io_scandir): Special-case patterns
+	ending in '.*' so that files with no extension are also matched.
+	Fixes bug 82212.
+
+	* wapi_glob.h: 
+	* wapi_glob.c: Reinstate WAPI_GLOB_APPEND, and add
+	WAPI_GLOB_UNIQUE to avoid matching the same entry twice when
+	appending.


More information about the mono-bugs mailing list