DynamoRIO / DynamoRIO/drmemory
-no_callstack_use_top_fp results in missing stack frames for some apps
- Dominant language
- C
- Stars
- 2.7k
- Forks
- 290
- PR merge metrics
- No merged PRs in 30d
Description
_From [bruen...@google.com](https://code.google.com/u/109494838902877177630/) on March 30, 2014 14:38:28_
-delay_frees_stack:
Error `#1`: UNADDRESSABLE ACCESS: reading 4 byte(s)
#0 Table<>::print [./table.h:56]
#1 main [homework3.cpp:23]
Note: refers to memory that was freed here:
Note: # 0 replace_operator_delete_array [/drmemory_package/common/alloc_replace.c:2548]
Note: # 1 Table<>::pop_back_row [./table.h:142]
Note: # 2 main [homework3.cpp:21]
-no_callstack_use_top_fp -delay_free_stack:
Error `#1`: UNADDRESSABLE ACCESS: reading 0x005294b8-0x005294bc 4 byte(s)
#0 Table<>::print [./table.h:56]
Note: @0:00:00.548 in thread 320667
Note: next higher malloc: 0x00529548-0x00529558
Note: prev lower malloc: 0x005293c8-0x005293d8
Note: 0x005294b8-0x005294bc overlaps memory 0x005294b8-0x005294c8 that was freed here:
Note: # 0 replace_operator_delete_array [/drmemory_package/common/alloc_replace.c:2548]
Note: instruction: mov (%esi,%edx,4) -> %edx
verbosity for latter:
Error `#1`: UNADDRESSABLE ACCESS: reading 0x007424b8-0x007424bc 4 byte(s)
#0 Table<>::print [./table.h:56](0x00081dfc ) modid:0
#1 dyld!_qsort+0x732 (0x8fe9f7ed ) modid:0
#2 dyld!qsort+0x30 (0x8fe9f0b4 ) modid:0
#3 dyld!dyld::notifyBatchPartial+0x192 (0x8fe844b7 ) modid:0
#4 dyld!dyld::notifyBatch+0x16 (0x8fe80a9c ) modid:0
print_callstack: pc=0xc007e328 => FP=0xc007e338, RA=0x8fe80a9c
find_next_fp 0xc007e330 b/c not walking fp, or skips 0xc007e368
check_retaddr_targets_frame: checking does 0x8fe8e272 => 0x8fe80a9c
find_next_fp 0xc007e330 => 0xc007e338, ra=0x8fe8e272
print_callstack: pc=0xc007e338 => FP=0xc007e368, RA=0x8fe8e272
set lowest frame to 0xc007e338
so we have a too-high lowest frame -- we should query the stack, which we can't do at thread init for 1st thread. we should do it later.
_Original issue: http://code.google.com/p/drmemory/issues/detail?id=1495_
Contributor guide
Assessment
This issue has not been assessed yet.