[Mono-bugs] [Bug 79708][Maj] New - gapi2-parser Unhandled Exception, older gapi-parser fine
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri Oct 20 16:18:09 EDT 2006
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 cole-anstey at ntlworld.com.
http://bugzilla.ximian.com/show_bug.cgi?id=79708
--- shadow/79708 2006-10-20 16:18:09.000000000 -0400
+++ shadow/79708.tmp.14094 2006-10-20 16:18:09.000000000 -0400
@@ -0,0 +1,92 @@
+Bug#: 79708
+Product: Mono: Runtime
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: cole-anstey at ntlworld.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: gapi2-parser Unhandled Exception, older gapi-parser fine
+
+Mono JIT compiler version 1.1.13.8, (C) 2002-2005 Novell, Inc and
+Contributors. www.mono-project.com
+ TLS: __thread
+ GC: Included Boehm (with typed GC)
+ SIGSEGV : normal
+
+I have a file
+curlyankles-sharp-sources.xml
+
+as follows
+
+<gapi-parser-input>
+ <api filename="../curlyankles/curlyankles-api.raw">
+ <library name="libcurlyankles.dll">
+ <namespace name="CurlyAnkles">
+ <dir>curlyankles-0.1.0/lib/</dir>
+ <exclude>castockpixbufs.h</exclude>
+ </namespace>
+ </library>
+ </api>
+</gapi-parser-input>
+
+the code to parse can be retrieved by
+wget http://www.curlyankles.com/versions/curlyankles-0.1.0.tar.gz
+--output-document=- | tar -xz;
+
+Steps to reproduce the problem:
+1. Execute the following command
+gapi2-parser curlyankles-sharp-sources.xml
+
+it fails with
+
+Unhandled Exception: System.IO.FileNotFoundException: Could not find file
+"/home/collie/code/temp/curlyankles-0.1.0-sharp/curlyankles/curlyankles-api.raw.pre".
+:
+/home/collie/code/temp/curlyankles-0.1.0-sharp/curlyankles/curlyankles-api.raw.pre
+in <0x002c2> System.IO.FileStream:.ctor (System.String name, FileMode mode,
+FileAccess access, FileShare share, Int32 bufferSize, Boolean isAsync,
+Boolean anonymous, FileOptions options)
+in <0x00025> System.IO.FileStream:.ctor (System.String name, FileMode mode,
+FileAccess access, FileShare share, Int32 bufferSize, Boolean isAsync,
+Boolean anonymous)
+in <0x0001f> System.IO.FileStream:.ctor (System.String name, FileMode mode,
+FileAccess access, FileShare share)
+in (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor
+(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)in
+<0x000bb> System.Xml.XmlUrlResolver:GetEntity (System.Uri absoluteUri,
+System.String role, System.Type ofObjectToReturn)
+in <0x00071> System.Xml.XmlTextReader:GetStreamFromUrl (System.String url,
+System.String absoluteUriString)
+in <0x000b8> System.Xml.XmlTextReader:.ctor (System.String url,
+System.Xml.XmlNameTable nt)
+in <0x0003d> System.Xml.XmlDocument:Load (System.String filename)
+in <0x0165d> GtkSharp.Parsing.Parser:Main (System.String[] args)
+linux-xkp4:/home/collie/code/temp/curlyankles-0.1.0-sharp/sources # mono
+Usage is: mono [options] program [program-options]
+
+2.
+Using the older command
+gapi-parser curlyankles-sharp-sources.xml
+
+end successfully with
+
+structs: 246 enums: 28 callbacks:
+funcs: 123 types: 35 classes: 72
+props: 94 signals: 46
+
+How often does this happen?
+Every time.
+
+Additional Information:
+Its also worth noting that the line
+<exclude>castockpixbufs.h</exclude>
+does not appear to stop the parsing of the file castockpixbufs.h?
More information about the mono-bugs
mailing list