Hi all.

My version of the std c++ library is "libstdc++-2.96-69" (in Redhat linux: rpm
-qa | grep std). The examples distributed with the xerces library runs without
problems, but when I compile the source code of any example (for example
DOMCount), I receive "segmentation fault" error.
I suspect about the std c++ library because is there where the segmentation
fault occurs in createReader member of ReaderMgr class.
Which version are you using?
Is this the correct version?
Someone is using the same version of stdlib?

Thank you very much.

PD: Here I give you more details:

Command to compile:   g++ -I../xerces-c1_4_0-linux/include/
-L../xerces-c1_4_0-linux/lib  -o salida -licu-uc -licudata -lxerces\-c1_4
DOMCount.cpp

---- gdb "where" command dump (gdb salida core) ----
#0  0x0 in ?? ()
#1  0x408f6568 in __user_type_info::dyncast (this=0x409125a0, boff=0,
    target=@0x409125fc, objptr=0x408c6164, subtype=@0x4091258c,
subptr=0x408c6164)
   from /usr/lib/libstdc++-libc6.2-2.so.3
#2  0x408f8013 in __dynamic_cast_2 (
    from=0x40aa7810 <__si_type_info type_info function>,
    to=0x40907510 <__pointer_type_info type_info function>, boff=0,
    address=0x408c6164, sub=0x40aa7aac <type_info type_info function>,
    subptr=0x408c6164) from /usr/lib/libstdc++-libc6.2-2.so.3
#3  0x408f7dd3 in __is_pointer (p=0x408c6164)
   from /usr/lib/libstdc++-libc6.2-2.so.3
#4  0x408f7426 in __cp_pop_exception (p=0x80717e8)
   from /usr/lib/libstdc++-libc6.2-2.so.3
#5  0x408412eb in ReaderMgr::createReader ()
   from /home/harald/xerces-c1_4_0-linux/lib/libxerces-c1_4.so
#6  0x4081dfc3 in DTDValidator::scanDocTypeDecl ()
   from /home/harald/xerces-c1_4_0-linux/lib/libxerces-c1_4.so
#7  0x4081a78e in DTDValidator::scanDTD ()
   from /home/harald/xerces-c1_4_0-linux/lib/libxerces-c1_4.so
#8  0x408576df in XMLScanner::scanProlog ()
   from /home/harald/xerces-c1_4_0-linux/lib/libxerces-c1_4.so
#9  0x40854829 in XMLScanner::scanDocument ()
   from /home/harald/xerces-c1_4_0-linux/lib/libxerces-c1_4.so
#10 0x408545b0 in XMLScanner::scanDocument ()
   from /home/harald/xerces-c1_4_0-linux/lib/libxerces-c1_4.so
#11 0x40854789 in XMLScanner::scanDocument ()
   from /home/harald/xerces-c1_4_0-linux/lib/libxerces-c1_4.so
#12 0x4080e2a8 in DOMParser::parse ()
   from /home/harald/xerces-c1_4_0-linux/lib/libxerces-c1_4.so
#13 0x8049497 in main ()
#14 0x4094ff31 in __libc_start_main (main=0x804917c <main>, argc=2,
    ubp_av=0xbffff8c4, init=0x8048d54 <_init>, fini=0x804a264 <_fini>,
    rtld_fini=0x4000e274 <_dl_fini>, stack_end=0xbffff8bc)
    at ../sysdeps/generic/libc-start.c:129



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

Reply via email to