After install xerces-c-src1_6_0,i run the example program DOMCount .The parameter is a 
XML file name.
then i find DOMCount coredump.it works on xerces-c-src1_4_0,Now we can't use it?


11% gdb DOMCount
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-sco-sysv5uw7.0.1"...
(gdb) run
Starting program: /home/devenv/xerces-c-src1_6_0/bin/DOMCount

Usage:
    DOMCount [options] <XML file | List file>

This program invokes the DOM parser, builds the DOM tree,
and then prints the number of elements found in each XML file.

Options:
    -l          Indicate the input file is a List File that has a list of xml fi
les.
                Default to off (Input file is an XML file).
    -v=xxx      Validation scheme [always | never | auto*].
    -n          Enable namespace processing. Defaults to off.
    -s          Enable schema processing. Defaults to off.
    -f          Enable full schema constraint checking. Defaults to off.
    -?          Show this help.

  * = Default if not provided explicitly.


Program exited with code 01.
(gdb) set args HeartBeat.scr
(gdb) run
Starting program: /home/devenv/xerces-c-src1_6_0/bin/DOMCount HeartBeat.scr

Program received signal SIGSEGV, Segmentation fault.
0x32b0bff6 in ?? ()
(gdb) where
#0  0x32b0bff6 in ?? ()
#1  0xbfca313b in DocumentTypeImpl::DocumentTypeImpl ()
   from /home/devenv/xerces-c-src1_6_0/lib/libxerces-c1_6_0.so
#2  0xbfc85aab in DOM_DOMImplementation::createDocumentType ()
   from /home/devenv/xerces-c-src1_6_0/lib/libxerces-c1_6_0.so
#3  0xbfc81959 in DOMParser::doctypeDecl ()
   from /home/devenv/xerces-c-src1_6_0/lib/libxerces-c1_6_0.so
#4  0xbfc90909 in DTDScanner::scanDocTypeDecl ()
   from /home/devenv/xerces-c-src1_6_0/lib/libxerces-c1_6_0.so
#5  0xbfd58a26 in XMLScanner::scanProlog ()
   from /home/devenv/xerces-c-src1_6_0/lib/libxerces-c1_6_0.so
#6  0xbfd543f5 in XMLScanner::scanDocument ()
   from /home/devenv/xerces-c-src1_6_0/lib/libxerces-c1_6_0.so
#7  0xbfd540fa in XMLScanner::scanDocument ()
   from /home/devenv/xerces-c-src1_6_0/lib/libxerces-c1_6_0.so
#8  0xbfd54333 in XMLScanner::scanDocument ()
   from /home/devenv/xerces-c-src1_6_0/lib/libxerces-c1_6_0.so
#9  0xbfc7f51c in DOMParser::parse ()
   from /home/devenv/xerces-c-src1_6_0/lib/libxerces-c1_6_0.so
#10 0x804a168 in main ()
#11 0x80499b1 in _start ()
(gdb)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to