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

AddressSanitizer failed to allocate 0x7d7d7d7d7d7d3000 bytes #1317

Open
magicsupery opened this issue Sep 16, 2020 · 3 comments
Open

AddressSanitizer failed to allocate 0x7d7d7d7d7d7d3000 bytes #1317

magicsupery opened this issue Sep 16, 2020 · 3 comments

Comments

@magicsupery
Copy link

i write a lua c module test.so, which static link grpc.a, i build the test.so with asan, but not build it with grpc. when i run my lua script,i got this error, do i need to build the grpc.a with asan static?

i am sure that the version with no asan malloc size is not that big!

here is the full info

==1896==WARNING: AddressSanitizer failed to allocate 0x7d7d7d7d7d7d3000 bytes
==1896==AddressSanitizer's allocator is terminating the process instead of returning 0
==1896==If you don't like this behavior set allocator_may_return_null=1
==1896==AddressSanitizer CHECK failed: ../../../../libsanitizer/sanitizer_common/sanitizer_allocator.cc:218 "((0)) != (0)" (0x0, 0x0)
#0 0x7fb492caf952 (/lib64/libasan.so.4+0xe9952)
#1 0x7fb492cce2e5 in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) (/lib64/libasan.so.4+0x1082e5)
#2 0x7fb492cb5092 (/lib64/libasan.so.4+0xef092)
#3 0x7fb492bedb96 (/lib64/libasan.so.4+0x27b96)
#4 0x7fb492ca486a in malloc (/lib64/libasan.so.4+0xde86a)
#5 0x7fb48d8d6dec in gpr_malloc /data/work/phonest_core/3rdparty/source/grpc/src/core/lib/gpr/alloc.cc:32
#6 0x7fb48d76842b in grpc::CoreCodegen::gpr_malloc(unsigned long) /data/work/phonest_core/3rdparty/source/grpc/src/cpp/common/core_codegen.cc:77
#7 0x7fb48cd240f5 in grpc::internal::FillMetadataArray(std::multimap<std::string, std::string, std::lessstd::string, std::allocator<std::pair<std::string const, std::string> > > const&, unsigned long*, std::string const&) /data/work/phonest_core/3rdparty/install/include/grpcpp/impl/codegen/call_op_set.h:62
#8 0x7fb48cd24d7d in grpc::internal::CallOpSendInitialMetadata::AddOp(grpc_op*, unsigned long*) /data/work/phonest_core/3rdparty/install/include/grpcpp/impl/codegen/call_op_set.h:243

============================================

@ramosian-glider
Copy link
Member

You may want to take a look at grpc/grpc#21838

@magicsupery
Copy link
Author

You may want to take a look at grpc/grpc#21838

thanks a lot!! i will rebuild grpc with sanitize=address

@wxzcyy
Copy link

wxzcyy commented Mar 24, 2021

You may want to take a look at grpc/grpc#21838

thanks a lot!! i will rebuild grpc with sanitize=address

Do you solve the problem? I had the same problem and I rebuild grpc with santize=address. However, it doest't work.

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

3 participants