Skip to content

no_server_test fails under ASAN #331

@ctiller

Description

@ctiller

Blocks #318

==2413==ERROR: LeakSanitizer: detected memory leaks

Indirect leak of 114 byte(s) in 1 object(s) allocated from:
#0 0x473971 in malloc (/usr/local/google/home/ctiller/grpc-ct2/bins/asan/no_server_test+0x473971)
#1 0x4d2ac8 in gpr_malloc /usr/local/google/home/ctiller/grpc-ct2/src/core/support/alloc.c:40
#2 0x4b2bff in grpc_mdstr_from_buffer /usr/local/google/home/ctiller/grpc-ct2/src/core/transport/metadata.c:310
#3 0x490697 in grpc_call_cancel_with_status /usr/local/google/home/ctiller/grpc-ct2/src/core/surface/call.c:315
#4 0x494726 in call_alarm /usr/local/google/home/ctiller/grpc-ct2/src/core/surface/call.c:964
#5 0x4c2862 in run_some_expired_alarms /usr/local/google/home/ctiller/grpc-ct2/src/core/iomgr/alarm.c:349
#6 0x4b105f in background_callback_executor /usr/local/google/home/ctiller/grpc-ct2/src/core/iomgr/iomgr.c:74
#7 0x4d87bc in thread_body /usr/local/google/home/ctiller/grpc-ct2/src/core/support/thd_posix.c:57
#8 0x7f10fa5e0181 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x8181)

Indirect leak of 104 byte(s) in 1 object(s) allocated from:
#0 0x473971 in malloc (/usr/local/google/home/ctiller/grpc-ct2/bins/asan/no_server_test+0x473971)
#1 0x4d2ac8 in gpr_malloc /usr/local/google/home/ctiller/grpc-ct2/src/core/support/alloc.c:40
#2 0x4b2453 in grpc_mdctx_create_with_seed /usr/local/google/home/ctiller/grpc-ct2/src/core/transport/metadata.c:140
#3 0x494b8f in grpc_channel_create /usr/local/google/home/ctiller/grpc-ct2/src/core/surface/channel_create.c:190
#4 0x48c793 in main /usr/local/google/home/ctiller/grpc-ct2/test/core/end2end/no_server_test.c:58
#5 0x7f10f9c07ec4 (/lib/x86_64-linux-gnu/libc.so.6+0x21ec4)

Indirect leak of 32 byte(s) in 1 object(s) allocated from:
#0 0x473971 in malloc (/usr/local/google/home/ctiller/grpc-ct2/bins/asan/no_server_test+0x473971)
#1 0x4d2ac8 in gpr_malloc /usr/local/google/home/ctiller/grpc-ct2/src/core/support/alloc.c:40
#2 0x4b24bf in grpc_mdctx_create_with_seed /usr/local/google/home/ctiller/grpc-ct2/src/core/transport/metadata.c:145
#3 0x494b8f in grpc_channel_create /usr/local/google/home/ctiller/grpc-ct2/src/core/surface/channel_create.c:190
#4 0x48c793 in main /usr/local/google/home/ctiller/grpc-ct2/test/core/end2end/no_server_test.c:58
#5 0x7f10f9c07ec4 (/lib/x86_64-linux-gnu/libc.so.6+0x21ec4)

Indirect leak of 32 byte(s) in 1 object(s) allocated from:
#0 0x473971 in malloc (/usr/local/google/home/ctiller/grpc-ct2/bins/asan/no_server_test+0x473971)
#1 0x4d2ac8 in gpr_malloc /usr/local/google/home/ctiller/grpc-ct2/src/core/support/alloc.c:40
#2 0x4b2574 in grpc_mdctx_create_with_seed /usr/local/google/home/ctiller/grpc-ct2/src/core/transport/metadata.c:149
#3 0x494b8f in grpc_channel_create /usr/local/google/home/ctiller/grpc-ct2/src/core/surface/channel_create.c:190
#4 0x48c793 in main /usr/local/google/home/ctiller/grpc-ct2/test/core/end2end/no_server_test.c:58
#5 0x7f10f9c07ec4 (/lib/x86_64-linux-gnu/libc.so.6+0x21ec4)

SUMMARY: AddressSanitizer: 282 byte(s) leaked in 4 allocation(s).
FAILED: bins/asan/no_server_test [ret=23]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions