[Mono-bugs] [Bug 657927] New: crash when trying to open package

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Dec 7 03:52:05 EST 2010


https://bugzilla.novell.com/show_bug.cgi?id=657927

https://bugzilla.novell.com/show_bug.cgi?id=657927#c0


           Summary: crash when trying to open package
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: PC
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: matthias_ludwig at yahoo.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=403720)
 --> (http://bugzilla.novell.com/attachment.cgi?id=403720)
test word file

User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1;
Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729;
Media Center PC 6.0; .NET CLR 3.5.21022; Media Center PC 5.0; SLCC1; .NET4.0C;
NET4.0E; OfficeLiveConnector.1.5; OfficeLivePatch.1.3)

running this code to open a word.docx package:

Program.cs:

using System.Linq;
using System.Text;
using System.IO.Packaging;
using System.IO;

namespace ConsoleApplication2
{
    class Program
    {
        static void Main(string[] args)
        {
            Package package = Package.Open(@"test.docx", FileMode.Open,
FileAccess.Read);
            Console.WriteLine(package);


        }
    }
}


Reproducible: Always

Steps to Reproduce:
1.mcs -r:WindowsBase.dll Program.cs
2.mono Program.exe
3.
Actual Results:  
Stacktrace:

  at (wrapper managed-to-native) zipsharp.NativeUnzip.unzOpen2
(string,zipsharp.
ZlibFileFuncDef&) <0x00003>
  at (wrapper managed-to-native) zipsharp.NativeUnzip.unzOpen2
(string,zipsharp.
ZlibFileFuncDef&) <0x00003>
  at zipsharp.NativeUnzip.OpenArchive (zipsharp.ZlibFileFuncDef) <0x00017>
  at zipsharp.UnzipArchive..ctor (System.IO.Stream,bool) <0x00068>
  at zipsharp.UnzipArchive..ctor (System.IO.Stream) <0x00015>
  at System.IO.Packaging.Package.OpenCore
(System.IO.Stream,System.IO.FileMode,S
ystem.IO.FileAccess) <0x0017b>
  at System.IO.Packaging.Package.Open
(System.IO.Stream,System.IO.FileMode,Syste
m.IO.FileAccess) <0x00016>
  at System.IO.Packaging.Package.Open
(string,System.IO.FileMode,System.IO.FileA
ccess,System.IO.FileShare) <0x000be>
  at System.IO.Packaging.Package.Open
(string,System.IO.FileMode,System.IO.FileA
ccess) <0x00015>
  at ConsoleApplication2.Program.Main (string[]) <0x00016>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object
(object,intptr
,intptr,intptr) <0x00073>

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Expected Results:  
System.IO.Packaging.ZipPackage

-- 
Configure bugmail: https://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