sxbwjl 2016-05-09 01:32
浏览 1173

ostream 最后卡在__write_nocancel

有一个十分让人不愉快的问题,最近程序运行经常卡在日志输出的地方。日志输出用了ostream流。最开始怀疑是 libc库和pthread库冲突的问题,显示加上了libc,但是还是没解决问题。
比如ostream< #0 0x00007f68239a5650 in **__write_nocancel ()** from /lib64/libc.so.6
#1 0x00007f682393bd53 in _IO_new_file_write () from /lib64/libc.so.6
#2 0x00007f682393d305 in _IO_new_do_write () from /lib64/libc.so.6
#3 0x00007f682393b9cd in _IO_new_file_xsputn () from /lib64/libc.so.6
#4 0x00007f6823931ccd in fwrite () from /lib64/libc.so.6
#5 0x00007f6823f73935 in std::basic_ostream >& std::__ostream_insert >(std::basic_ostream >&, char const*, long) () from /usr/lib64/libstdc++.so.6
#6 0x00007f682693a0a3 in es::DateLayout::format (this=0x1b1e6c0, output=..., msg=...) at /data/eshorebill/es/src/util/log/DateLayout.cpp:75
#7 0x00007f682692e22d in es::WriterAppender::doAppend (this=0x1b82960, msg=...) at /data/eshorebill/es/src/util/log/WriterAppender.cpp:33
#8 0x00007f682692caf4 in es::Appender::append (this=0x1b82960, msg=...) at /data/eshorebill/es/src/util/log/Appender.cpp:101

  • 写回答

0条回答

    报告相同问题?

    悬赏问题

    • ¥15 arduino控制ps2手柄一直报错
    • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
    • ¥85 maple软件,solve求反函数,出现rootof怎么办?
    • ¥15 求chat4.0解答一道线性规划题,用lingo编程运行,第一问要求写出数学模型和lingo语言编程模型,第二问第三问解答就行,我的ddl要到了谁来求了
    • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
    • ¥50 树莓派安卓APK系统签名
    • ¥65 汇编语言除法溢出问题
    • ¥15 Visual Studio问题
    • ¥20 求一个html代码,有偿
    • ¥100 关于使用MATLAB中copularnd函数的问题