老方法,打开core文件查看堆栈
GNU gdb (Hisilicon_v300) 7.4.50.20120716-cvs
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i386-redhat-linux --target=arm-hisiv300-linux-uclibcgnueabi".
For bug reporting instructions, please see:
<http://www.hisilicon.com/cn/service/claim.html>...
Reading symbols from /home05/18635/test/Challenge_Debug...done.
(gdb) core-file core-Challenge_Debug-1168-1483697572
(gdb) bt
#0 operator++ (this=<synthetic pointer>)
at /opt/hisi-linux/x86-arm/arm-hisiv300-linux/arm-hisiv300-linux-uclibcgnueabi/include/c++/4.8.3/bits/stl_list.h:235
#1 __distance<std::_List_const_iterator<CEvents::EVENT_STATE> > (__last=..., __first=...)
at /opt/hisi-linux/x86-arm/arm-hisiv300-linux/arm-hisiv300-linux-uclibcgnueabi/include/c++/4.8.3/bits/stl_iterator_base_funcs.h:82
#2 distance<std::_List_const_iterator<CEvents::EVENT_STATE> > (__last=..., __first=...)
at /opt/hisi-linux/x86-arm/arm-hisiv300-linux/arm-hisiv300-linux-uclibcgnueabi/include/c++/4.8.3/bits/stl_iterator_base_funcs.h:118
#3 size (this=0x5f7b8a4) at /opt/hisi-linux/x86-arm/arm-hisiv300-linux/arm-hisiv300-linux-uclibcgnueabi/include/c++/4.8.3
list相关死机
最新推荐文章于 2023-05-18 22:00:00 发布
本文通过分析core文件堆栈,发现死机发生在`std::list`的操作中。通过查看寄存器状态和反汇编指令,推测可能是多线程并发访问`list`导致的问题。进一步检查代码中对`m_queue`的修改,以确定问题源头。
摘要由CSDN通过智能技术生成