- 论坛徽章:
- 0
|
非常郁闷!我写的C++程序最近总莫名其妙的coredump。
请高手给指点一下!
[/arrayindb/app/home/indbexe/income]gdb -c core
Detected 64-bit corefile.
Invoking /opt/langtools/bin/gdb64.
HP gdb 3.3 for PA-RISC 2.0 (wide), HP-UX 11.00.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 3.3 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.
Reading symbols from CallComparator...done.
Core was generated by `CallComparator'.
Program terminated with signal 11, Segmentation fault.
warning: The shared libraries were not privately mapped; setting a
breakpoint in a shared library will not work until you rerun the program.
warning: section .data not found in /arrayindb/app/oracle/app/oracle9/product/9.2.0/lib/libwtc9.sl
#0 0x40000000001c8dbc in std::codecvt<char,char,mbstate_t>::always_noconv (this=0x80000001000646f
at /opt/aCC/include_std/rw/codecvt:233
233 return do_always_noconv ();
(gdb) where
#0 0x40000000001c8dbc in std::codecvt<char,char,mbstate_t>::always_noconv (this=0x80000001000646f
at /opt/aCC/include_std/rw/codecvt:233
#1 0x4000000000108bec in std::basic_filebuf<char,std::char_traits<char>>: verflow (this=0x800003ffbff14c08, __c=-1)
at /opt/aCC/include_std/fstream.cc:341
#2 0x40000000001095a0 in std::basic_filebuf<char,std::char_traits<char>>::sync (this=0x800003ffbff14c0
at /opt/aCC/include_std/fstream.cc:572
#3 0x40000000000f79d0 in std::basic_ostream<char,std::char_traits<char>>::sentry::~sentry+0x1b0 ()
#4 0x40000000000f6e00 in __rw<char,std::char_traits<char>,char const>::__rw_insert+0x530 ()
#5 0x4000000000128108 in CBaseComparator::CompSelf2Counter (this=0x8000000100075b20) at ./Comparator/BaseComparator.cpp:298
#6 0x4000000000105bb0 in CApplication::Run (this=0x800003ffbfff0cd0) at Application.cpp:652
#7 0x40000000001068cc in main (argc=4, argv=0x800003ffbfff09b0) at Application.cpp:736
(gdb) shell
我查看了一下:
./Comparator/BaseComparator.cpp:298是
- cout << m_pCurrCallDetail->service_id << " " << m_pCurrCallDetail->call_date << endl;
复制代码
[ 本帖最后由 Cion 于 2007-10-16 12:02 编辑 ] |
|