Closed Bug 67024 Opened 24 years ago Closed 24 years ago

Mozilla/Transformiix crashes

Categories

(Core :: XSLT, defect)

x86
Windows 2000
defect
Not set
critical

Tracking

()

VERIFIED FIXED

People

(Reporter: markushuebner, Assigned: peterv)

References

()

Details

Attachments

(10 files)

With the latest transformiix binaries and Mozilla 2001012904 it crashes at
http://www.world-direct.com/mozilla/index.asp
Attached file the xml file
Attached file the relating xsl file
Attached file a xsl include file
Attached file the stylesheet file
The line that causes the crash is
<xsl:apply-templates select="display_data/featured_articles"/>
in the XSL file.
Severity: normal → critical
This doesn't crash when using the standalone processor, 
BUT:
the result document contains ONLY text nodes, just a #transformiix node plus
alot of text.

This seems completely wrong, don't know offhand why the HTML node isn't created

Axel
Status: UNCONFIRMED → NEW
Ever confirmed: true
Did a bad when testing on standalone :-(.
It works ok when using the standalone. You can even get rid of the include, btw.

The segfault is in:

#0  0xfc9ed1f4 in XMLDOMUtils::getNodeValue (node=0x8a96f8, target=0xffbec788)
    at /tmp/mozilla/extensions/transformiix/source/xml/XMLDOMUtils.cpp:158
#1  0xfc9e04cc in NodeSet::stringValue (this=0x8b1850, str=@0xffbec788)
    at /tmp/mozilla/extensions/transformiix/source/xpath/NodeSet.cpp:352
#2  0xfca2ac2c in XSLTProcessor::processAction (this=0x756718, node=0x8b0748, 
    xslAction=0x8b1c78, ps=0x6c3510)

The first one, yielding
article.asp?articleNr=2
is ok, but then I crash in the getNodeType of the above statement.
No time to check if the wrapper is created allright then, because the 
nsNodeList returns a non-null node, so I suspect the wrapper code.

Gotta run, OSDEM is taking it's first toll

Axel
Two issues, one is inside the wrappers, the other is XMLDOMUtils::getNodeValue
doesn't return the value of a CDATASectionNode. Taking over.
Assignee: kvisco → peterv
Hmm, fucked up the mimetype of the testcase. Should have been text/xml. BTW
Markus, this is what I call a simplified testcase.
Status: NEW → ASSIGNED
Attached patch Proposed fix.Splinter Review
Fixed. Looking for a review.
I agree with the changes to XMLDOMUtils.cpp, but I don't know anything about the 
wrapper code.

--Keith
r=me, check it in.

Axel
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
verified. nuff said
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: