Hi, I now compile a testing class for parsing an xml using xerces-c1_7_0-linux7.2 in my main(). When I don't link to the rest of my own *.o files. It's fine. But when I link with the rest of my *.o files (but without actually using them in my main( ) nor including them. just linking and that's all), it cause segmentation fault when doing the parser->parse(...) . I do gdb and backtrace, it shows:
Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 9684)] 0x08080335 in Ptr<SharedXcharMap<unsigned char> >::~Ptr () at ConfigParser.cc:114 114 } (gdb) backtrace #0 0x08080335 in Ptr<SharedXcharMap<unsigned char> >::~Ptr () at ConfigParser.cc:114 #1 0x080cefcd in InputSource::~InputSource () at ConfigParser.cc:114 #2 0x4015d537 in LocalFileInputSource::~LocalFileInputSource () from /home/khho9/devel/html2wml/lib/xerces-c1_7_0-linux7.2/lib/libxerces-c1_7_0.so #3 0x401f2106 in Janitor<InputSource>::reset () from /home/khho9/devel/html2wml/lib/xerces-c1_7_0-linux7.2/lib/libxerces-c1_7_0.so #4 0x401f1b2e in Janitor<InputSource>::~Janitor () from /home/khho9/devel/html2wml/lib/xerces-c1_7_0-linux7.2/lib/libxerces-c1_7_0.so #5 0x401d00c6 in XMLScanner::scanDocument () from /home/khho9/devel/html2wml/lib/xerces-c1_7_0-linux7.2/lib/libxerces-c1_7_0.so #6 0x401d02b8 in XMLScanner::scanDocument () from /home/khho9/devel/html2wml/lib/xerces-c1_7_0-linux7.2/lib/libxerces-c1_7_0.so #7 0x40120ce7 in DOMParser::parse () from /home/khho9/devel/html2wml/lib/xerces-c1_7_0-linux7.2/lib/libxerces-c1_7_0.so #8 0x0807b44f in ConfigParser::initParser (this=0x819bbe8, xmlFile=0x8142ed1 "config.xml") at ConfigParser.cc:74 #9 0x08050b50 in main (argc=1, argv=0xbffff924) at Main.cc:100 #10 0x405e7627 in __libc_start_main (main=0x8050b24 <main>, argc=1, ubp_av=0xbffff924, init=0x804a754 <_init>, fini=0x811bd5c <_fini>, rtld_fini=0x4000dcc4 <_dl_fini>, stack_end=0xbffff91c) at ../sysdeps/generic/libc-start.c:129 Does anyone know what's going on ? Thanks for help _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]