list相关死机

本文通过分析core文件堆栈,发现死机发生在`std::list`的操作中。通过查看寄存器状态和反汇编指令,推测可能是多线程并发访问`list`导致的问题。进一步检查代码中对`m_queue`的修改,以确定问题源头。
摘要由CSDN通过智能技术生成

老方法,打开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

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值