xerces-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Ramponi" <aramp...@astrocenter.com>
Subject cloneNode Bug ?
Date Thu, 01 Feb 2001 15:49:03 GMT
Hi,

The problem : an "Access Violation", occures during a cloneNode on the same
DOM_Document  shared by multiple threads.

It runs well when the xml file doesn't refer to the dtd one or in a single
threaded program.

You can find a sample program derived from ThreadTest.cpp here
http://antoine.ramponi.free.fr/cloneBug.zip

The command line parameter:
test -verbose test.xml

The stack trace after the crash:
NodeIDMap::add(AttrImpl * 0x00a082c8) line 116 + 12 bytes
NodeIDMap::growTable() line 262
NodeIDMap::add(AttrImpl * 0x00a16668) line 109
AttrImpl::AttrImpl(const AttrImpl & {...}, unsigned char 0x01) line 119
AttrImpl::cloneNode(unsigned char 0x01) line 170 + 44 bytes
NamedNodeMapImpl::cloneContent(NamedNodeMapImpl * 0x00a20510) line 446 + 13
bytes
AttrMapImpl::cloneAttrMap(NodeImpl * 0x00a07388) line 95
ElementImpl::ElementImpl(const ElementImpl & {...}, unsigned char 0x01) line
90 + 21 bytes
ElementImpl::cloneNode(unsigned char 0x01) line 106 + 44 bytes
DOM_Node::cloneNode(unsigned char 0x01) line 185 + 21 bytes

The environment:
win2k
vc 6 sp4
xerces 1.3 and xerces 1.4 (Debug and Release version)

Am i doing something wrong ?

Antoine


Mime
View raw message