Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segfault in Core Analyzer #7

Closed
den818 opened this issue Nov 15, 2016 · 2 comments
Closed

segfault in Core Analyzer #7

den818 opened this issue Nov 15, 2016 · 2 comments

Comments

@den818
Copy link

den818 commented Nov 15, 2016

I try to analyze dump witch was created by gcore. And Core Analyzer crushed

{ "signal": 11
, "executable": "/home/korden/core_analyzer-2.17.0/app/Linux/core_analyzer"
, "stacktrace":
[ { "crash_thread": true
, "frames":
[ { "address": 4242143
, "build_id": "d4eced4303dcf56ece60431a2702f7a48a26c422"
, "build_id_offset": 47839
, "function_name": "walk_inuse_blocks(inuse_block*, unsigned long*)"
, "file_name": "/home/korden/core_analyzer-2.17.0/app/Linux/core_analyzer"
}
, { "address": 4228774
, "build_id": "d4eced4303dcf56ece60431a2702f7a48a26c422"
, "build_id_offset": 34470
, "function_name": "build_inuse_heap_blocks(unsigned long*)"
, "file_name": "/home/korden/core_analyzer-2.17.0/app/Linux/core_analyzer"
}
, { "address": 4229154
, "build_id": "d4eced4303dcf56ece60431a2702f7a48a26c422"
, "build_id_offset": 34850
, "function_name": "display_heap_leak_candidates()"
, "file_name": "/home/korden/core_analyzer-2.17.0/app/Linux/core_analyzer"
}
, { "address": 4202550
, "build_id": "d4eced4303dcf56ece60431a2702f7a48a26c422"
, "build_id_offset": 8246
, "function_name": "main"
, "file_name": "/home/korden/core_analyzer-2.17.0/app/Linux/core_analyzer"
} ]
} ]
}

#0 0x000000000040badf in walk_inuse_blocks (opBlocks=, opCount=0x7ffc52656438) at ../heap_ptmalloc.cpp:643
#1 0x00000000004086a6 in build_inuse_heap_blocks (opCount=0x7ffc526564a8) at ../heap.cpp:555
#2 0x0000000000408822 in display_heap_leak_candidates () at ../heap.cpp:1132
#3 0x0000000000402036 in main (argc=, argv=) at ../main.cpp:256

(gdb)
638 {
639 struct ca_heap* heap = g_sorted_heaps[heap_index];
640 union ca_malloc_chunk achunk;
641
642 // For mmap heap, there is only one block and in-use
643 if (heap->mArena->mType == ENUM_HEAP_MMAP_BLOCK)
644 {
645 if (!read_memory_wrapper(NULL, heap->mStartAddr - size_t_sz, &achunk, mchunk_sz))
646 continue;
647 (*opCount)++;
(gdb) p *heap
$1 = {mArena = 0x7f5f852e9770, mpNext = 0x1f3ecb0, mSegment = 0x7f5fa763da00, mStartAddr = 139714547941416, mEndAddr = 139714550190080, mChunks = 0x0, mNumChunks = 0, mCorrupted = 0, mResearved = 0}
(gdb) p heap->mArena
$2 = (ca_arena *) 0x7f5f852e9770
(gdb) p *(heap->mArena)
Cannot access memory at address 0x7f5f852e9770

@yanqi27
Copy link
Owner

yanqi27 commented Nov 16, 2016

I am not sure why the arena object is invalid. @den818 If it is possible, you can send the core file to me and I should be able to reproduce it locally.

@yanqi27
Copy link
Owner

yanqi27 commented May 13, 2018

Close it unless more data is available.

@yanqi27 yanqi27 closed this as completed May 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants