[Mono-bugs] [Bug 38326][Nor] New - fatal error when shared memory is unsupported

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Wed, 19 Feb 2003 10:46:13 -0500 (EST)

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 tds00mahi@thn.htu.se.


--- shadow/38326	Wed Feb 19 10:46:13 2003
+++ shadow/38326.tmp.23988	Wed Feb 19 10:46:13 2003
@@ -0,0 +1,33 @@
+Bug#: 38326
+Product: Mono/Runtime
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: tds00mahi@thn.htu.se               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: fatal error when shared memory is unsupported
+Description of Problem:
+When running Mono(mint) in a Linux environment not supporting shared 
+memory it raises a critical error, stating "mmap error: Invalid argument", 
+and exits. The error occurs at the mmap() call in mono/io-layer/shared.c 
+(line 202). I ran tests which all confirmed that the shared memory was the 
+problem - mmap() argument MAP_PRIVATE work (MAP_SHARED works too, but only 
+on /dev/zero). There are other occasions where instead of dying it falls 
+back on not using shared memory (mono/io-layer/handles.c, line 91) which 
+suggests that this error perhaps need not be fatal. I mentioned this to 
+Paolo Molaro who suggested I'd send this in as a bug report.
+Actual Results:
+~ $ mint mcs.exe
+** (mcs.exe:537): CRITICAL **: : mmap error: Invalid argument