Skip to content

Crash on macOS with invalid DNS name #16021

Closed

Description

@codefromthecrypt

Title:
Crash on macOS with invalid DNS name

Description:
I worked on a change that involved updating Envoy to latest 1.17.1. On my host machine, I found a crash noted below which was using test data and a bad hostname.

[2021-04-14 15:50:52.613][8367287][info][main] [external/envoy/source/server/server.cc:731] starting main dispatch loop
[2021-04-14 15:50:57.615][8367287][critical][assert] [external/envoy/source/common/network/apple_dns_impl.cc:304] assert failure: interface_index == 0. Details: unexpected interface_index=4294967295
[2021-04-14 15:50:57.615][8367287][critical][backtrace] [bazel-out/darwin-opt/bin/external/envoy/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:104] Caught Abort trap: 6, suspect faulting address 0x7fff20435462
[2021-04-14 15:50:57.615][8367287][critical][backtrace] [bazel-out/darwin-opt/bin/external/envoy/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:91] Backtrace (use tools/stack_decode.py to get line numbers):
[2021-04-14 15:50:57.615][8367287][critical][backtrace] [bazel-out/darwin-opt/bin/external/envoy/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:92] Envoy version: d6a4496e712d7a2335b26e2f76210d5904002c26/1.17.1/clean-getenvoy-bb8060d-envoy/RELEASE/BoringSSL

Repro steps:
I used a bad hostname for endpoint socket address on this platform:

Darwin MacBook-Pro.local 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64

Config:
image

Logs:

[2021-04-14 15:50:52.613][8367287][info][main] [external/envoy/source/server/server.cc:731] starting main dispatch loop
[2021-04-14 15:50:57.615][8367287][critical][assert] [external/envoy/source/common/network/apple_dns_impl.cc:304] assert failure: interface_index == 0. Details: unexpected interface_index=4294967295
[2021-04-14 15:50:57.615][8367287][critical][backtrace] [bazel-out/darwin-opt/bin/external/envoy/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:104] Caught Abort trap: 6, suspect faulting address 0x7fff20435462
[2021-04-14 15:50:57.615][8367287][critical][backtrace] [bazel-out/darwin-opt/bin/external/envoy/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:91] Backtrace (use tools/stack_decode.py to get line numbers):
[2021-04-14 15:50:57.615][8367287][critical][backtrace] [bazel-out/darwin-opt/bin/external/envoy/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:92] Envoy version: d6a4496e712d7a2335b26e2f76210d5904002c26/1.17.1/clean-getenvoy-bb8060d-envoy/RELEASE/BoringSSL

Activity

  1. added
    triage
    on Apr 15, 2021
  2. added and removed
    triage
    on Apr 16, 2021
  3. htuch commented on Apr 16, 2021

    @htuch
    Member

    @junr03 this is using the Apple DNS resolver.

  4. added a commit that references this issue on Apr 26, 2021
    f40e279
  5. added a commit that references this issue on May 6, 2021
    489d66c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions