Microsoft KB Archive/318958

= Access Violation in MSXML 4.0 When MSXML Performs Transforms =

Article ID: 318958

Article Last Modified on 11/15/2007

-

APPLIES TO


 * Microsoft XML Core Services 4.0

-



This article was previously published under Q318958



SYMPTOMS
When Microsoft XML (MSXML) 4.0 performs transforms, MSXML may experience a random crash (access violation).



CAUSE
An internal part of an Extensible Style Sheet Language (XSL) variable is destroyed prematurely when XML cleans a stack frame. This occurs when XML cleans up a frame that evaluates the variable for the first time and that passes this variable as a parameter to a template.



RESOLUTION
A supported hotfix is now available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next service pack that contains this hotfix.

To resolve this problem, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:

http://go.microsoft.com/?linkid=6294451

Note If additional issues occur or any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. To create a separate service request, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

The English version of this fix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.   Date              Time   Version     Size      File Name --  12-February-2002  12:02  4.0.9412.0  1,229,824 Msxml4.dll 12-February-2002 11:57  4.0.9412.0     44,544 Msxml4a.dll 12-February-2002 12:15  4.0.9412.0     82,432 Msxml4r.dll



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
The following call stack typically appears when MSXML 4.0 crashes:

ChildEBP RetAddr 00dfdeb0 788ce30b msxml4!ScopeGC::disallowRelease+0x6 [c:\xml\msxmlwr\core\base\base.hxx @ 513] 00dfdecc 788cd8a7 msxml4!XEngineFrame::releaseScope+0x5b [c:\xml\msxmlwr\xslt\runtime\xengine.cxx @ 1243] 00dfe384 788cca31 msxml4!XEngine::frame+0x147 [c:\xml\msxmlwr\xslt\runtime\xengine.cxx @ 759] 00dfe878 7888a9e5 msxml4!XEngine::execute+0x361 [c:\xml\msxmlwr\xslt\runtime\xengine.cxx @ 165] 00dfe918 7888ac97 msxml4!DOMProcessor::continueTransform+0x235 [c:\xml\msxmlwr\xml\om\domprocessor.cxx @ 1052] 00dfe940 7888bbed msxml4!DOMProcessor::transformEvent+0x77 [c:\xml\msxmlwr\xml\om\domprocessor.cxx @ 1197] 00dfe98c 11002f1e msxml4!DOMProcessor::transform+0x9d [c:\xml\msxmlwr\xml\om\domprocessor.cxx @ 1678]

Some templates with parameters cause an access violation during the Transform method. To reproduce this problem, you can use the following code and assign some value to the parameters before you call Transform:         <xsl:with-param name=&quot;x&quot; select=&quot;$s&quot;/> </xsl:call-template> </xsl:template>  <xsl:param name=&quot;node&quot; select=&quot;.&quot;/> <xsl:value-of select=&quot;substring($s,1)&quot;/> </xsl:template> </xsl:stylesheet>

Additional query words: AV Transform

Keywords: kbhotfixserver kbqfe kbbug kbfix kbqfe KB318958

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.