[Mono-bugs] [Bug 520235] New: profiler decoder opens profile file read-write instead of read-only

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jul 8 10:48:22 EDT 2009


           Summary: profiler decoder opens profile file read-write instead
                    of read-only
    Classification: Mono
           Product: Mono: Tools
           Version: SVN
          Platform: x86-64
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: P5 - None
         Component: tools
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: Csaba.Halasz at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

Created an attachment (id=303811)
 --> (http://bugzilla.novell.com/attachment.cgi?id=303811)
proposed patch

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:
Gecko/2009032813 Iceweasel/3.0.9 (Debian-3.0.9-1)

Opening a read-only profile result file by profiler-decoder.exe throws an

Reproducible: Always

Steps to Reproduce:
1. create a read-only profile file
2. try to load it into profiler-decoder.exe

Actual Results:  
Unhandled Exception: System.UnauthorizedAccessException: Access to the path
"pdf.mprof" is denied.
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions
options) [0x00265] in
  at System.IO.FileStream..ctor (System.String path, FileMode mode) [0x00000]
in /data/home/hcs/src/mono-2.4.2/mcs/class/corlib/Assembly/AssemblyInfo.cs:1 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor
  at Mono.Profiler.SyncLogFileReader..ctor (System.String fileName) [0x00006]
in /data/home/hcs/src/Mono.Profiler/profiler-decoder-library/Reader.cs:75 
  at Mono.Profiler.ConsoleDecoder.Main (System.String[] argv) [0x0001e] in

Expected Results:  
No exception

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.

More information about the mono-bugs mailing list