From: Frederick H. <fw...@cs...> - 2005-11-16 23:36:19
|
Hi, I'm trying to use libxml++ 2.6 from Debian Sarge (stable), and I'm getting a segfault from the DOM parser example program. g++ 4.0.2, libxml++ 2.6.1... I'm not getting any warnings when compiling. Any suggestions on this? (gdb) run mcp-config.xml Starting program: /home/fwph/code/role/src/robot/mcp/temp/parser mcp-config.xml [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 14190)] Node name = mcp-config Node name = mcp-config line = 4 Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 14190)] 0x40dcab6e in __gnu_cxx::__pool<true>::_M_reclaim_block () from /usr/lib/libstdc++.so.6 (gdb) bt #0 0x40dcab6e in __gnu_cxx::__pool<true>::_M_reclaim_block () from /usr/lib/libstdc++.so.6 #1 0x0804ac30 in __gnu_cxx::__mt_alloc<std::_List_node<xmlpp::Node*>, __gnu_cxx::__common_pool_policy<__gnu_cxx::__pool, true> >::deallocate ( this=0xbffff764, __p=0x80efd20, __n=1) at mt_allocator.h:717 #2 0x0804ac5c in std::_List_base<xmlpp::Node*, std::allocator<xmlpp::Node*> >::_M_put_node (this=0xbffff764, __p=0x80efd20) at stl_list.h:317 #3 0x0804acd5 in std::_List_base<xmlpp::Node*, std::allocator<xmlpp::Node*> >::_M_clear (this=0xbffff764) at list.tcc:78 #4 0x40b47d4c in xmlpp::Node::get_children () from /usr/lib/libxml++-2.6.so.1 #5 0x40b48393 in xmlpp::Node::get_children () from /usr/lib/libxml++-2.6.so.1 #6 0x0804a126 in print_node (node=0x80a4178, indentation=0) at main2.cpp:84 #7 0x0804a358 in main (argc=2, argv=0xbffff944) at main2.cpp:110 (gdb) (fwph) -- Frederick Heckel <fw...@cs...> || <fw...@sc...> ======================================================== fortune sez: Intolerance is the last defense of the insecure. |