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

UNADDR in __from_strstr_to_strchr in ipc_tests #617

Closed
derekbruening opened this issue Nov 28, 2014 · 2 comments
Closed

UNADDR in __from_strstr_to_strchr in ipc_tests #617

derekbruening opened this issue Nov 28, 2014 · 2 comments

Comments

@derekbruening
Copy link
Contributor

From bruen...@google.com on October 06, 2011 19:11:54

split from issue #613 un-replaced optimized string routine unaddr seen when run with this particular ends-up-as-no-test gtest filter, in either cygwin or cmd:
% PATH=/c/src/chromium/depot_tools:$PATH tools/valgrind/chrome_tests.bat --build_dir build/Release -t ipc --tool drmemory_full --gtest_filter="IPCSyncChannelTest.Simple"
UNADDRESSABLE ACCESS: reading 0x00f4f04b-0x00f4f04c 1 byte(s) within 0x00f4f048-0x00f4f04c
#0 __from_strstr_to_strchr [f:\dd\vctools\crt_bld\SELF_X86\crt\src\INTEL\strchr.asm:142]
#1 testing::internal::UnitTestOptions::FilterMatchesTest [testing\gtest\src\gtest.cc:501]
Note: @0:00:03.426 in thread 5388
Note: next higher malloc: 0x00f4f858-0x00f4f868
Note: refers to 1 byte(s) beyond last valid byte in prior malloc
Note: prev lower malloc: 0x00f4f030-0x00f4f04b
Note: instruction: mov 0xfffffffc(%edx) -> %eax

Original issue: http://code.google.com/p/drmemory/issues/detail?id=617

@derekbruening
Copy link
Contributor Author

From zhao...@google.com on October 06, 2011 17:15:00

__from_strstr_to_strchr is part of strchr

ipc_tests!strchr:
01017270 33c0 xor eax,eax
01017272 8a442408 mov al,[esp+0x8]
ipc_tests!__from_strstr_to_strchr:
01017276 53 push ebx
01017277 8bd8 mov ebx,eax
01017279 c1e008 shl eax,0x8
0101727c 8b542408 mov edx,[esp+0x8]
01017280 f7c203000000 test edx,0x3

It looks like there are multiple strchr but DrMem only replaced one.

01017270 ipc_tests!strchr (unsigned char_, unsigned char)
010339b0 ipc_tests!strchr (char_, int)

@derekbruening
Copy link
Contributor Author

From zhao...@google.com on November 01, 2011 08:51:19

This issue was closed by revision r582 .

Status: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant