[Bug 29685] New: Manifest generator (ecmangen) tool from Windows Platform SDK 7.1 crashes due to unhandled facet/regular expression in XML schema (escape sequence)

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Jan 22 14:47:04 CST 2012


http://bugs.winehq.org/show_bug.cgi?id=29685

             Bug #: 29685
           Summary: Manifest generator (ecmangen) tool from Windows
                    Platform SDK 7.1 crashes due to unhandled
                    facet/regular expression in XML schema (escape
                    sequence)
           Product: Wine
           Version: 1.3.37
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: msxml3
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: focht at gmx.net
    Classification: Unclassified


Hello,

the "ecmangen" tool (Manifest generator gui) crashes due to unhandled
facet/regular expression in XML schema.

--- snip ---
$ pwd
/home/focht/.wine/drive_c/Program Files/Microsoft SDKs/Windows/v7.1/Bin
...
$ wine ./ecmangen.exe
--- snip ---

Trace log:

--- snip ---
...
0025:trace:msxml:domdoc_QueryInterface
(0x1503c8)->({4f2f4ba2-b822-11df-8b8a-6850dfd72085} 0x32f71c)
0025:trace:msxml:node_query_interface (0x1503c8)->(IID_xmlnode 0x32f71c)
...
0025:trace:msxml:Schema_parse (0x7c96a400)
regexp error : failed to compile: Wrong escape sequence, misuse of character
'\'
regexp error : failed to compile: internal: no atom generated
regexp error : failed to compile: genrate transition: atom == NULL
regexp error : failed to compile: xmlFAParseAtom: expecting ')'
regexp error : failed to compile: xmlFAParseRegExp: extra characters
0025:err:msxml:Schema_parse "Element
'{http://www.w3.org/2001/XMLSchema}pattern': The value
'(\\$\\([Ss]tring\\..*\\))|(\\$\\([Mm][Cc]\\..*\\))' of the facet 'pattern' is
not a valid regular expression.\n"failed to parse doc 
...
0025:Call oleaut32.SysAllocString(0015034c L"Failed trying to add schema file
to cache.") ret=0100adc3
...
0025:Call msvcrt._CxxThrowException(0032f848,01041d10) ret=01039b9e 
...
0025:Call KERNEL32.MultiByteToWideChar(00000000,00000000,6868ef1a "Runtime
error!",0000000e,0032e7c8,00000400) ret=6866169a
0025:Ret  KERNEL32.MultiByteToWideChar() retval=0000000e ret=6866169a
0025:Call KERNEL32.MultiByteToWideChar(00000000,00000000,6868ef43 "abnormal
program termination",0000001c,0032dfc8,00000400) ret=6866169a
--- snip ---

The relevant part of XML schema:

--- snip ---
<xs:schema targetNamespace="http://schemas.microsoft.com/win/2004/08/events"
elementFormDefault="qualified"
xmlns:man="http://schemas.microsoft.com/win/2004/08/events"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
...
  <xs:simpleType name="strTableRef">
    <xs:annotation>
      <xs:documentation>
        Value of this attribute should be of the form $(string.stringTableId),
        where stringTableId is the 'id' attribute of a <string> element
        defined in the <stringTable> section. Or it could be of the form
        $(mc.mcSymbolId), where mcSymbolId is the symbol of a message string
        defined in a .mc file.
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:pattern value="(\$\([Ss]tring\..*\))|(\$\([Mm][Cc]\..*\))"/>
    </xs:restriction>
  </xs:simpleType>
--- snip ---

'winetricks -q msxml6' works around.

Regards

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list