免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1473 | 回复: 0
打印 上一主题 下一主题

请教cout怎么会coredump呢? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-10-16 12:00 |只看该作者 |倒序浏览
非常郁闷!我写的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是
  1. cout << m_pCurrCallDetail->service_id << " " << m_pCurrCallDetail->call_date << endl;
复制代码

[ 本帖最后由 Cion 于 2007-10-16 12:02 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP