- 论坛徽章:
- 0
|
- warning: Can't read pathname for load map: Input/output error.
- [Thread debugging using libthread_db enabled]
- Program terminated with signal 11, Segmentation fault.
- #0 SLL_Next (t=0xc) at src/linked_list.h:44
- 44 return *(reinterpret_cast<void**>(t));
- (gdb) bt
- #0 SLL_Next (t=0xc) at src/linked_list.h:44
- #1 SLL_Pop (list=<optimized out>) at src/linked_list.h:58
- #2 Pop (this=0x1040958) at src/thread_cache.h:209
- #3 Allocate (cl=7, size=Cannot access memory at address 0x38
- ) at src/thread_cache.h:345
- #4 do_malloc (size=Cannot access memory at address 0x38
- ) at src/tcmalloc.cc:1009
- #5 do_malloc_or_cpp_alloc (size=88) at src/tcmalloc.cc:946
- #6 tc_malloc (size=88) at src/tcmalloc.cc:1425
- #7 0x0000000000404246 in zcmalloc (size=88) at zmalloc.c:96
- #9 0x0000000000403228 in acceptTcpHandler () at server.c:317
- #10 0x00007ffe3132ad60 in start_thread () from /lib/libpthread.so.0
- #11 0x00007ffe31613e2d in clone () from /lib/libc.so.6
- #12 0x0000000000000000 in ?? ()
- (gdb) list
- 39 #include <stddef.h>
- 40
- 41 namespace tcmalloc {
- 42
- 43 inline void *SLL_Next(void *t) {
- 44 return *(reinterpret_cast<void**>(t));
- 45 }
- 46
- 47 inline void SLL_SetNext(void *t, void *n) {
- 48 *(reinterpret_cast<void**>(t)) = n;
复制代码 写了server端,运行一段时间出现了这个问题。 大家帮我看看 是什么问题 |
|