免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 6062 | 回复: 0
打印 上一主题 下一主题

[C] 我在使用tcmalloc, 遇到这个什么问题,是tcmalloc的 bug吗? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-10-27 12:10 |只看该作者 |倒序浏览
  1. warning: Can't read pathname for load map: Input/output error.
  2. [Thread debugging using libthread_db enabled]

  3. Program terminated with signal 11, Segmentation fault.
  4. #0  SLL_Next (t=0xc) at src/linked_list.h:44
  5. 44        return *(reinterpret_cast<void**>(t));
  6. (gdb) bt
  7. #0  SLL_Next (t=0xc) at src/linked_list.h:44
  8. #1  SLL_Pop (list=<optimized out>) at src/linked_list.h:58
  9. #2  Pop (this=0x1040958) at src/thread_cache.h:209
  10. #3  Allocate (cl=7, size=Cannot access memory at address 0x38
  11. ) at src/thread_cache.h:345
  12. #4  do_malloc (size=Cannot access memory at address 0x38
  13. ) at src/tcmalloc.cc:1009
  14. #5  do_malloc_or_cpp_alloc (size=88) at src/tcmalloc.cc:946
  15. #6  tc_malloc (size=88) at src/tcmalloc.cc:1425
  16. #7  0x0000000000404246 in zcmalloc (size=88) at zmalloc.c:96
  17. #9  0x0000000000403228 in acceptTcpHandler () at server.c:317
  18. #10 0x00007ffe3132ad60 in start_thread () from /lib/libpthread.so.0
  19. #11 0x00007ffe31613e2d in clone () from /lib/libc.so.6
  20. #12 0x0000000000000000 in ?? ()
  21. (gdb) list
  22. 39      #include <stddef.h>
  23. 40
  24. 41      namespace tcmalloc {
  25. 42
  26. 43      inline void *SLL_Next(void *t) {
  27. 44        return *(reinterpret_cast<void**>(t));
  28. 45      }
  29. 46
  30. 47      inline void SLL_SetNext(void *t, void *n) {
  31. 48        *(reinterpret_cast<void**>(t)) = n;
复制代码
写了server端,运行一段时间出现了这个问题。 大家帮我看看 是什么问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP