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 [EMAIL PROTECTED]

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

--- shadow/78677        2006-06-20 10:03:06.000000000 -0400
+++ shadow/78677.tmp.10220      2006-06-20 10:03:06.000000000 -0400
@@ -0,0 +1,63 @@
+Bug#: 78677
+Product: Mono: Compilers
+Version: 1.1
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: UnauthorizedAccessException when writing debugging symbol file
+
+Description of Problem:
+MCS doesn't handle exceptions when writing the debugging symbol file.
+
+Steps to reproduce the problem:
+1. Compile a C# file, using -debug, in a directory without write access
+
+Actual Results:
+make[6]: Entering directory
+`/home/poupou/svn/mono/mono-1.1.15/_build/mono/tests/cas/assembly'
+mcs -debug ../../../../../mono/tests/cas/assembly/all.cs
+error CS0016: Could not write to file
+`../../../../../mono/tests/cas/assembly/all.exe', cause: Access to the path
+"../../../../../mono/tests/cas/assembly/all.exe" is denied.
+ 
+Unhandled Exception: System.UnauthorizedAccessException: Access to the path
+"../../../../../mono/tests/cas/assembly/all.exe.mdb" is denied.
+  at System.IO.FileStream..ctor (System.String name, FileMode mode,
+FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous,
+FileOptions options) [0x00000]
+  at System.IO.FileStream..ctor (System.String name, FileMode mode,
+FileAccess access, FileShare share, Int32 bufferSize, Boolean isAsync,
+Boolean anonymous) [0x00000]
+  at System.IO.FileStream..ctor (System.String name, FileMode mode,
+FileAccess access) [0x00000]
+  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor
+(string,System.IO.FileMode,System.IO.FileAccess)
+  at Mono.CompilerServices.SymbolWriter.MonoSymbolWriter.WriteSymbolFile
+(Guid guid) [0x00000]
+  at Mono.CSharp.SymbolWriter.WriteSymbolFile () [0x00000]
+  at Mono.CSharp.CodeGen.Save (System.String name) [0x00000]
+  at Mono.CSharp.Driver.MainDriver (System.String[] args) [0x00000]
+  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000]
+make[6]: *** [all.exe] Error 1
+
+
+Expected Results:
+error CS0016 for the output file
+nothing more fot the symbol
+
+
+How often does this happen? 
+Always, if the current user can't write to the output directory
+
+
+Additional Information:
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to