Microsoft Knowledge Base Email Alertz

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

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 318958 - Last Review: November 15, 2007 - Revision: 1.5

Access Violation in MSXML 4.0 When MSXML Performs Transforms

Hotfix download is availableHotfix Download Available
View and request hotfix downloads
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 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 software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if 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. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support (http://support.microsoft.com/contactus/?ws=support)
Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language. 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:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:param name="s"/>
    <xsl:template match="http://support.microsoft.com">
        <xsl:call-template name="t1"/>
        <xsl:value-of select="$s"/>
    </xsl:template>
    <xsl:template name="t1">
        <xsl:call-template name="t2">
            <xsl:with-param name="x" select="$s"/>
        </xsl:call-template>
    </xsl:template>
    <xsl:template name="t2">
        <xsl:param name="node" select="."/>
        <xsl:value-of select="substring($s,1)"/>
    </xsl:template>
</xsl:stylesheet>
				

APPLIES TO
  • Microsoft XML Core Services 4.0
Keywords: 
kbautohotfix kbhotfixserver kbqfe kbbug kbfix kbqfe KB318958
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate