glibc detected *** corrupted double-linked list:错误的原因有如下三种可能
2013-07-09 18:28
1016 查看
一个多线程的大程序运行的时候崩掉了,屏幕上打出这个:
*** glibc detected *** corrupted double-linked list: 0xb78381d8 ***
======= Backtrace: =========
/usr/lib/libc.so.6[0xb7781d3b]
/usr/lib/libc.so.6[0xb7781e77]
/usr/lib/libc.so.6[0xb7782d50]
/usr/lib/libc.so.6(malloc+0x71)[0xb7783f2c]
后面的call stack是自己程序的函数调用
两个原因
1.
int* a = new int(10);
delete a;
delete a; // <---- 这个
2. int* a;
delete a; // <---- 这个
还有一个
char s[10];
int* a = new int(10);
sprintf(s, "1234567890");
delete a; // a 被前面的给覆盖了
*** glibc detected *** corrupted double-linked list: 0xb78381d8 ***
======= Backtrace: =========
/usr/lib/libc.so.6[0xb7781d3b]
/usr/lib/libc.so.6[0xb7781e77]
/usr/lib/libc.so.6[0xb7782d50]
/usr/lib/libc.so.6(malloc+0x71)[0xb7783f2c]
后面的call stack是自己程序的函数调用
两个原因
1.
int* a = new int(10);
delete a;
delete a; // <---- 这个
2. int* a;
delete a; // <---- 这个
还有一个
char s[10];
int* a = new int(10);
sprintf(s, "1234567890");
delete a; // a 被前面的给覆盖了
相关文章推荐
- *** glibc detected *** /home/app: corrupted double-linked list: 0x08b08918 ***
- *** glibc detected *** mainwindow: malloc(): smallbin double linked list corrupted: 0x01a73ab8 ***
- 对*** glibc detected *** ./avdecc_ctl: corrupted double-linked list: 0xb520072的问题的解决
- centos启动错误:Inodes that were part of a corrupted orphan linked list found.
- linux下C语言编程 一个堆栈错误的原因:*** glibc detected *** ./test: free(): invalid pointer:
- 提示如下错误:No space left ondevice,通过 df -h 查看磁盘空间,发现没满,请问可能原因是什么?
- linux C 一个堆栈错误的原因:*** glibc detected *** ./test: free():invalid pointer:
- 定位错误:glibc detected :double free or corruption (!prev): 0x08a03b88
- 段错误:smallbin double linked list corrupted
- *** glibc detected *** double free or corruption: 0x0937d008 *** 错误
- smallbin double linked list corrupted
- python错误--'list' object is not callable可能的原因之一
- *** glibc detected *** double free or corruption: 0x0937d008 *** 错误
- 当idea上传和下载按钮不见时,其中一种情况可能是如下原因引起
- Double linked list structure
- *** glibc detected *** double free or corruption (fasttop)
- “ScriptManager”不是已知元素。原因可能是网站中存在编译错误。
- GConf 错误:联系配置服务器失败;某些可能原因是需要为 ORBit 启用 TCP/IP 联网
- 收藏:java常见错误以及可能原因集锦
- I/O error reading PNG header!错误的一种可能原因