运行程序死掉 找不到原因啊。。gdb 跟踪与堆栈信息 贴出来了 麻烦大佬们看一下,给个回复,不胜感激!!(个人总结:可能处理大量数据时候会出现,特别偶现。)
Core was generated by `./scene_s0037 10037'.
Program terminated with signal 11, Segmentation fault.
#0 GetStackTraceWithContext (result=0x7ffeb02f9d78, max_depth=63, skip_count=0, ucp=<value optimized out>) at src/stacktrace_x86-inl.h:325
325 if (*(sp+1) == reinterpret_cast<void *>(0)) {
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.212.el6.x86_64 libgcc-4.4.7-23.el6.x86_64 libidn-1.18-2.el6.x86_64 libstdc++-4.4.7-23.el6.x86_64 zlib-1.2.3-29.el6.x86_64
(gdb) bt
#0 GetStackTraceWithContext (result=0x7ffeb02f9d78, max_depth=63, skip_count=0, ucp=<value optimized out>) at src/stacktrace_x86-inl.h:325
#1 0x00007f013834906c in CpuProfiler::prof_handler (sig=<value optimized out>, signal_ucontext=0x7ffeb02fa000, cpu_profiler=0x7f0138551de0) at src/profiler.cc:357
#2 0x00007f0138349e93 in ProfileHandler::SignalHandler (sig=27, sinfo=0x7ffeb02fa130, ucontext=0x7ffeb02fa000) at src/profile-handler.cc:501
#3 <signal handler called>
#4 0x00007f01369ac920 in free () from /lib64/libc.so.6
#5 0x00007f013697503b in vfprintf () from /lib64/libc.so.6
#6 0x00007f01369a0632 in vsnprintf () from /lib64/libc.so.6
#7 0x00007f01371ddb4f in ?? () from /usr/lib64/libstdc++.so.6
#8 0x00007f01371dff23 in std::ostreambuf_iterator<char, std::char_traits<char> > std::num_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >::_M_insert_float<double>(std::ostreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, char, double) const () from /usr/lib64/libstdc++.so.6
#9 0x00007f01371e0249 in std::num_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >::do_put(std::ostreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, double) const () from /usr/lib64/libstdc++.so.6
#10 0x00007f01371f387f in std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<double>(double) () from /usr/lib64/libstdc++.so.6
#11 0x00000000017c1240 in mars::OModuleConsume::Increase (this=0x1a350c28, eMType=eaCrossSceneExploit, val=0.10000000000000001, eGType=Gain_CrossTaskAddjungong, bCanDec=false)
at /home/build/Supernova_TaiWan_20190307/newserver/scenesrv/object_module/OModuleConsume.cpp:135
#12 0x000000000179b7eb in mars::Monster::OnDeath (this=0x1af42e00, killer=0x1a347d80, skillID=2000001) at /home/build/Supernova_TaiWan_20190307/newserver/scenesrv/object/Monster.cpp:176
#13 0x00000000018a0bdc in mars::OModuleCombat::OnKillBy (this=0x1af42ec8, killer=0x1a347d80, skillID=2000001) at /home/build/Supernova_TaiWan_20190307/newserver/scenesrv/object_module/OModuleCombat.cpp:551