问题描述
- GDB 跟踪出来的效果如下!~麻烦大神看一下
-
GDB 跟踪出来的效果如下!~麻烦大神看一下#0 0x47f23c7c in _int_malloc () from /lib/libc.so.6
#1 0x47f25fb7 in malloc () from /lib/libc.so.6
#2 0x48729af7 in operator new(unsigned int) () from /usr/lib/libstdc++.so.6
#3 0x4870513b in std::string::_Rep::_S_create(unsigned int, unsigned int, std::allocator const&) () from /usr/lib/libstdc++.so.6
#4 0x48705cd8 in std::string::_Rep::_M_clone(std::allocator const&, unsigned int) () from /usr/lib/libstdc++.so.6
#5 0x48706888 in std::string::reserve(unsigned int) () from /usr/lib/libstdc++.so.6
#6 0x486ff543 in std::basic_stringbuf, std::allocator >::overflow(int) () from /usr/lib/libstdc++.so.6
#7 0x48704311 in std::basic_streambuf >::xsputn(char const*, int) () from /usr/lib/libstdc++.so.6
#8 0x486f1fcd in std::ostreambuf_iterator > std::num_put > >::_M_insert_int(std::ostreambuf_iterator >, std::ios_base&, char, unsigned long) const () from /usr/lib/libstdc++.so.6
#9 0x486f22b0 in std::num_put > >::do_put(std::ostreambuf_iterator >, std::ios_base&, char, unsigned long) const () from /usr/lib/libstdc++.so.6
#10 0x486f926d in std::ostream::operator<<(unsigned long) () from /usr/lib/libstdc++.so.6
#11 0xb7fc6c86 in log4cplus::thread::getCurrentThreadName () at src/threads.cxx:107
#12 0xb7fa7cb6 in getThread (this=) at ./include/log4cplus/spi/loggingevent.h:155
#13 log4cplus::spi::InternalLoggingEvent::gatherThreadSpecificData (this=0x82037b0) at src/loggingevent.cxx:251
#14 0xb7fba41f in log4cplus::thread::Queue::put_event (this=0x807da88, ev=...) at src/queue.cxx:56
#15 0xb7f85d98 in log4cplus::AsyncAppender::append (this=0x807c848, ev=...) at src/asyncappender.cxx:171
#16 0xb7f82df5 in log4cplus::Appender::doAppend (this=0x807c848, event=...) at src/appender.cxx:287
#17 0xb7f7fe49 in log4cplus::helpers::AppenderAttachableImpl::appendLoopOnAppenders (this=0x806c178, event=...) at src/appenderattachableimpl.cxx:164
#18 0xb7fa7556 in log4cplus::spi::LoggerImpl::callAppenders (this=0x806c178, event=...) at src/loggerimpl.cxx:60
#19 0xb7fa71d8 in log4cplus::spi::LoggerImpl::forcedLog (this=0x806c178, ev=...) at src/loggerimpl.cxx:179
#20 0xb7fa670b in log4cplus::Logger::forcedLog (this=0xb7fe1c6c, ev=...) at src/logger.cxx:272
#21 0xb7faae46 in log4cplus::detail::macro_forced_log (logger=..., log_level=20000, msg=..., filename=0xaf5d15d4 "MessageMq.cpp", line=111, func=0x806582c "OnMessageReciveTradeMq",
servname=0x8065603 "mpay_third", chainid=0x8065602 "") at src/loggingmacros.cxx:96
#22 0xb7faea63 in MyLogger_log (LogLevel=LL_INFO, LogInfo=0xaf5d1747 "0000000000", pServiceName=0x8065603 "mpay_third", pInvokedChainID=0x8065602 "",
pFileName=0x80655c8 "/mnt/hgfs/MPAY344270211346234237/service/mpay_third/src/MessageMq.cpp", LineNum=111, pFunName=0x806582c "OnMessageReciveTradeMq") at src/mylogger.cxx:74
#23 0x0805a8d0 in OnMessageReciveTradeMq (pRecvMsg=0xaf5d7048) at /mnt/hgfs/MPAY涓../service/mpay_third/src/MessageMq.cpp:111
#24 0xb7029273 in ProducterAndConsumer::onMessage (this=0x81f7f98, message=0x82032a8) at /mnt/hgfs/MPAY涓../public/common/src/producter-and-consumer.cpp:262
#25 0xb78f9190 in activemq::core::kernels::ActiveMQConsumerKernel::dispatch (this=0xaf60ea28, dispatch=...) at activemq/core/kernels/ActiveMQConsumerKernel.cpp:1535
#26 0xb78a1b8a in activemq::core::ActiveMQSessionExecutor::dispatch (this=0xaf60db18, dispatch=...) at activemq/core/ActiveMQSessionExecutor.cpp:156
#27 0xb78a20f0 in activemq::core::ActiveMQSessionExecutor::iterate (this=0xaf60db18) at activemq/core/ActiveMQSessionExecutor.cpp:181
#28 0xb79f9f97 in activemq::threads::DedicatedTaskRunner::run (this=0xaf60f468) at activemq/threads/DedicatedTaskRunner.cpp:141
#29 0xb7be30fa in decaf::lang::Thread::run (this=0xaf60f570) at decaf/lang/Thread.cpp:141
#30 0xb7ba5407 in (anonymous namespace)::runCallback (arg=0xaf60f7a8) at decaf/internal/util/concurrent/Threading.cpp:266
#31 0xb7ba5c5b in (anonymous namespace)::threadEntryMethod (arg=0xaf60f7a8) at decaf/internal/util/concurrent/Threading.cpp:254
#32 0x48062852 in start_thread () from /lib/libpthread.so.0
#33 0x47f8c84e in clone () from /lib/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind further
解决方案
core了这么一大屏,还是core在STL里的,源代码你又不给,大神都救不了你。
解决方案二:
先看是否有你自己的代码,定位的位置看看