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

Env vars don't work on macos M1, go version go1.18.4 darwin/arm64 #373

Closed
infiniteregrets opened this issue Sep 8, 2022 · 3 comments
Closed
Assignees
Labels
blocked bug Something isn't working

Comments

@infiniteregrets
Copy link
Contributor

Bug Description

it seems like runtime.goenvs_unix is not hooked for go version go1.18.4 darwin/arm64 on macos M1 and we end up with no envs loaded into the go process

Steps to Reproduce

  1. go build
  2. RUST_LOG=debug target/debug/mirrord exec -c --override-env-vars-include="*" --pod-name py-serv-deployment-5c57fbdc98-kqgrz tests/go-e2e/go-e2e

Backtrace

No response

Relevant Logs

2022-09-08T13:35:43.706605Z  INFO mirrord: Launching "tests/go-e2e/go-e2e" with arguments []
2022-09-08T13:35:43.939378Z DEBUG mirrord: Extracted library file to "/tmp/dtbrabduse-libmirrord_layer.dylib"
2022-09-08T13:35:44.494796Z  INFO mirrord_layer: Initializing mirrord-layer!
2022-09-08T13:35:44.495690Z  INFO mirrord_layer: Using port `44202` for communication
2022-09-08T13:35:44.505333Z  WARN mirrord_layer::pod_api: Accepting invalid certificates
2022-09-08T13:35:44.683344Z  INFO mirrord_layer::pod_api: No container name specified, defaulting to first container found
2022-09-08T13:35:44.793135Z DEBUG mirrord_layer::pod_api: Pod Phase = "Pending"
2022-09-08T13:35:44.826802Z DEBUG mirrord_layer::pod_api: Pod Phase = "Pending"
2022-09-08T13:35:46.171338Z DEBUG mirrord_layer::pod_api: Pod Phase = "Running"
2022-09-08T13:35:46.607445Z TRACE mirrord_layer: replace -> hooking "close"
2022-09-08T13:35:46.608999Z TRACE mirrord_layer: replace -> hooked "close" true
2022-09-08T13:35:46.609133Z TRACE mirrord_layer::socket::hooks: replace -> hooking "socket"
2022-09-08T13:35:46.609363Z TRACE mirrord_layer::socket::hooks: replace -> hooked "socket" true
2022-09-08T13:35:46.609392Z TRACE mirrord_layer::socket::hooks: replace -> hooking "bind"
2022-09-08T13:35:46.609573Z TRACE mirrord_layer::socket::hooks: replace -> hooked "bind" true
2022-09-08T13:35:46.609598Z TRACE mirrord_layer::socket::hooks: replace -> hooking "listen"
2022-09-08T13:35:46.609778Z TRACE mirrord_layer::socket::hooks: replace -> hooked "listen" true
2022-09-08T13:35:46.609824Z TRACE mirrord_layer::socket::hooks: replace -> hooking "connect"
2022-09-08T13:35:46.610009Z TRACE mirrord_layer::socket::hooks: replace -> hooked "connect" true
2022-09-08T13:35:46.610032Z TRACE mirrord_layer::socket::hooks: replace -> hooking "fcntl"
2022-09-08T13:35:46.610380Z TRACE mirrord_layer::socket::hooks: replace -> hooked "fcntl" true
2022-09-08T13:35:46.610413Z TRACE mirrord_layer::socket::hooks: replace -> hooking "dup"
2022-09-08T13:35:46.610606Z TRACE mirrord_layer::socket::hooks: replace -> hooked "dup" true
2022-09-08T13:35:46.610652Z TRACE mirrord_layer::socket::hooks: replace -> hooking "dup2"
2022-09-08T13:35:46.610844Z TRACE mirrord_layer::socket::hooks: replace -> hooked "dup2" true
2022-09-08T13:35:46.610870Z TRACE mirrord_layer::socket::hooks: replace -> hooking "getpeername"
2022-09-08T13:35:46.611057Z TRACE mirrord_layer::socket::hooks: replace -> hooked "getpeername" true
2022-09-08T13:35:46.611082Z TRACE mirrord_layer::socket::hooks: replace -> hooking "getsockname"
2022-09-08T13:35:46.611274Z TRACE mirrord_layer::socket::hooks: replace -> hooked "getsockname" true
2022-09-08T13:35:46.611324Z TRACE mirrord_layer::socket::hooks: replace -> hooking "accept"
2022-09-08T13:35:46.611509Z TRACE mirrord_layer::socket::hooks: replace -> hooked "accept" true
2022-09-08T13:35:46.611794Z  INFO mirrord_layer::go_env: replace -> hooking "runtime.goenvs_unix"
2022-09-08T13:35:46.614094Z  INFO mirrord_layer::go_env: replace -> hooked "runtime.goenvs_unix" false
2022-09-08T13:35:46.650872Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse {
    "NGINX_PORT": "tcp://10.0.192.115:80",
    "KUBERNETES_SERVICE_PORT": "443",
    "PYTHON_VERSION": "3.9.13",
    "HTTP_ECHO_A3UJ4JA_SERVICE_HOST": "10.0.42.138",
    "KUBERNETES_SERVICE_PORT_HTTPS": "443",
    "USER_SERVICE_SERVICE_PORT": "8091",
    "HTTP_ECHO_A3UJ4JA_SERVICE_PORT": "80",
    "HTTP_ECHO_CROETNR_PORT": "tcp://10.0.115.140:80",
    "PY_SERV_SERVICE_HOST": "10.0.72.80",
    "HTTP_ECHO_A3UJ4JA_PORT_80_TCP_PROTO": "tcp",
    "GPG_KEY": "E3FF2839C048B25C084DEBE9B26995E310250568",
    "USER_SERVICE_SERVICE_HOST": "10.0.14.197",
    "USER_SERVICE_PORT_8091_TCP": "tcp://10.0.14.197:8091",
    "METALBEAR_USERS_PORT": "tcp://10.0.181.121:80",
    "METALBEAR_USERS_PORT_80_TCP_ADDR": "10.0.181.121",
    "HTTP_ECHO_CROETNR_PORT_80_TCP_PROTO": "tcp",
    "PY_SERV_PORT": "tcp://10.0.72.80:80",
    "PYTHON_GET_PIP_SHA256": "ba3ab8267d91fd41c58dbce08f76db99f747f716d85ce1865813842bb035524d",
    "USER_SERVICE_PORT": "tcp://10.0.14.197:8091",
    "PYTHON_PIP_VERSION": "22.0.4",
    "KUBERNETES_PORT_443_TCP": "tcp://10.0.0.1:443",
    "NGINX_SERVICE_HOST": "10.0.192.115",
    "HTTP_ECHO_CROETNR_PORT_80_TCP": "tcp://10.0.115.140:80",
    "NGINX_SERVICE_PORT": "80",
    "METALBEAR_USERS_PORT_80_TCP_PROTO": "tcp",
    "HTTP_ECHO_CROETNR_PORT_80_TCP_ADDR": "10.0.115.140",
    "NGINX_DEPLOYMENT_PORT_80_TCP_PORT": "80",
    "METALBEAR_USERS_SERVICE_PORT": "80",
    "KUBERNETES_PORT": "tcp://10.0.0.1:443",
    "USER_SERVICE_PORT_8091_TCP_PORT": "8091",
    "METALBEAR_USERS_PORT_80_TCP": "tcp://10.0.181.121:80",
    "PYTHON_SETUPTOOLS_VERSION": "58.1.0",
    "LANG": "C.UTF-8",
    "PY_SERV_PORT_80_TCP_ADDR": "10.0.72.80",
    "HTTP_ECHO_A3UJ4JA_PORT_80_TCP": "tcp://10.0.42.138:80",
    "PYTHON_GET_PIP_URL": "https://github.com/pypa/get-pip/raw/6ce3639da143c5d79b44f94b04080abf2531fd6e/public/get-pip.py",
    "NGINX_PORT_80_TCP_PORT": "80",
    "HTTP_ECHO_A3UJ4JA_PORT_80_TCP_ADDR": "10.0.42.138",
    "NGINX_DEPLOYMENT_PORT_80_TCP": "tcp://10.0.188.93:80",
    "USER_SERVICE_PORT_8091_TCP_ADDR": "10.0.14.197",
    "NGINX_DEPLOYMENT_SERVICE_HOST": "10.0.188.93",
    "PY_SERV_PORT_80_TCP_PORT": "80",
    "HTTP_ECHO_CROETNR_PORT_80_TCP_PORT": "80",
    "HTTP_ECHO_A3UJ4JA_PORT": "tcp://10.0.42.138:80",
    "HTTP_ECHO_CROETNR_SERVICE_PORT": "80",
    "NGINX_PORT_80_TCP": "tcp://10.0.192.115:80",
    "NGINX_DEPLOYMENT_PORT_80_TCP_ADDR": "10.0.188.93",
    "HOSTNAME": "py-serv-deployment-5c57fbdc98-kqgrz",
    "NGINX_DEPLOYMENT_PORT_80_TCP_PROTO": "tcp",
    "NGINX_PORT_80_TCP_ADDR": "10.0.192.115",
    "NGINX_DEPLOYMENT_SERVICE_PORT": "80",
    "KUBERNETES_PORT_443_TCP_PORT": "443",
    "MIRRORD_FAKE_VAR_SECOND": "7777",
    "HTTP_ECHO_A3UJ4JA_PORT_80_TCP_PORT": "80",
    "USER_SERVICE_PORT_8091_TCP_PROTO": "tcp",
    "PY_SERV_SERVICE_PORT": "80",
    "PY_SERV_PORT_80_TCP": "tcp://10.0.72.80:80",
    "PY_SERV_PORT_80_TCP_PROTO": "tcp",
    "KUBERNETES_PORT_443_TCP_PROTO": "tcp",
    "KUBERNETES_PORT_443_TCP_ADDR": "10.0.0.1",
    "MIRRORD_FAKE_VAR_FIRST": "mirrord.is.running",
    "NGINX_PORT_80_TCP_PROTO": "tcp",
    "HTTP_ECHO_CROETNR_SERVICE_HOST": "10.0.115.140",
    "METALBEAR_USERS_SERVICE_HOST": "10.0.181.121",
    "KUBERNETES_SERVICE_HOST": "10.0.0.1",
    "METALBEAR_USERS_PORT_80_TCP_PORT": "80",
    "NGINX_DEPLOYMENT_PORT": "tcp://10.0.188.93:80",
}!
2022-09-08T13:35:46.651610Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "NGINX_PORT" value "tcp://10.0.192.115:80"
2022-09-08T13:35:46.651639Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "KUBERNETES_SERVICE_PORT" value "443"
2022-09-08T13:35:46.651648Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "PYTHON_VERSION" value "3.9.13"
2022-09-08T13:35:46.651655Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "HTTP_ECHO_A3UJ4JA_SERVICE_HOST" value "10.0.42.138"
2022-09-08T13:35:46.651662Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "KUBERNETES_SERVICE_PORT_HTTPS" value "443"
2022-09-08T13:35:46.651669Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "USER_SERVICE_SERVICE_PORT" value "8091"
2022-09-08T13:35:46.651676Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "HTTP_ECHO_A3UJ4JA_SERVICE_PORT" value "80"
2022-09-08T13:35:46.651683Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "HTTP_ECHO_CROETNR_PORT" value "tcp://10.0.115.140:80"
2022-09-08T13:35:46.651690Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "PY_SERV_SERVICE_HOST" value "10.0.72.80"
2022-09-08T13:35:46.651697Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "HTTP_ECHO_A3UJ4JA_PORT_80_TCP_PROTO" value "tcp"
2022-09-08T13:35:46.651704Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "GPG_KEY" value "E3FF2839C048B25C084DEBE9B26995E310250568"
2022-09-08T13:35:46.651711Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "USER_SERVICE_SERVICE_HOST" value "10.0.14.197"
2022-09-08T13:35:46.651718Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "USER_SERVICE_PORT_8091_TCP" value "tcp://10.0.14.197:8091"
2022-09-08T13:35:46.651725Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "METALBEAR_USERS_PORT" value "tcp://10.0.181.121:80"
2022-09-08T13:35:46.651732Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "METALBEAR_USERS_PORT_80_TCP_ADDR" value "10.0.181.121"
2022-09-08T13:35:46.651740Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "HTTP_ECHO_CROETNR_PORT_80_TCP_PROTO" value "tcp"
2022-09-08T13:35:46.651747Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "PY_SERV_PORT" value "tcp://10.0.72.80:80"
2022-09-08T13:35:46.651754Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "PYTHON_GET_PIP_SHA256" value "ba3ab8267d91fd41c58dbce08f76db99f747f716d85ce1865813842bb035524d"
2022-09-08T13:35:46.651761Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "USER_SERVICE_PORT" value "tcp://10.0.14.197:8091"
2022-09-08T13:35:46.651860Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "PYTHON_PIP_VERSION" value "22.0.4"
2022-09-08T13:35:46.651897Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "KUBERNETES_PORT_443_TCP" value "tcp://10.0.0.1:443"
2022-09-08T13:35:46.651920Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "NGINX_SERVICE_HOST" value "10.0.192.115"
2022-09-08T13:35:46.651941Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "HTTP_ECHO_CROETNR_PORT_80_TCP" value "tcp://10.0.115.140:80"
2022-09-08T13:35:46.651964Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "NGINX_SERVICE_PORT" value "80"
2022-09-08T13:35:46.651986Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "METALBEAR_USERS_PORT_80_TCP_PROTO" value "tcp"
2022-09-08T13:35:46.652008Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "HTTP_ECHO_CROETNR_PORT_80_TCP_ADDR" value "10.0.115.140"
2022-09-08T13:35:46.652029Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "NGINX_DEPLOYMENT_PORT_80_TCP_PORT" value "80"
2022-09-08T13:35:46.652051Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "METALBEAR_USERS_SERVICE_PORT" value "80"
2022-09-08T13:35:46.652074Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "KUBERNETES_PORT" value "tcp://10.0.0.1:443"
2022-09-08T13:35:46.652096Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "USER_SERVICE_PORT_8091_TCP_PORT" value "8091"
2022-09-08T13:35:46.652134Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "METALBEAR_USERS_PORT_80_TCP" value "tcp://10.0.181.121:80"
2022-09-08T13:35:46.652145Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "PYTHON_SETUPTOOLS_VERSION" value "58.1.0"
2022-09-08T13:35:46.652152Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "LANG" value "C.UTF-8"
2022-09-08T13:35:46.652158Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "PY_SERV_PORT_80_TCP_ADDR" value "10.0.72.80"
2022-09-08T13:35:46.652165Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "HTTP_ECHO_A3UJ4JA_PORT_80_TCP" value "tcp://10.0.42.138:80"
2022-09-08T13:35:46.652172Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "PYTHON_GET_PIP_URL" value "https://github.com/pypa/get-pip/raw/6ce3639da143c5d79b44f94b04080abf2531fd6e/public/get-pip.py"
2022-09-08T13:35:46.652198Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "NGINX_PORT_80_TCP_PORT" value "80"
2022-09-08T13:35:46.652205Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "HTTP_ECHO_A3UJ4JA_PORT_80_TCP_ADDR" value "10.0.42.138"
2022-09-08T13:35:46.652212Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "NGINX_DEPLOYMENT_PORT_80_TCP" value "tcp://10.0.188.93:80"
2022-09-08T13:35:46.652219Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "USER_SERVICE_PORT_8091_TCP_ADDR" value "10.0.14.197"
2022-09-08T13:35:46.652226Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "NGINX_DEPLOYMENT_SERVICE_HOST" value "10.0.188.93"
2022-09-08T13:35:46.652232Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "PY_SERV_PORT_80_TCP_PORT" value "80"
2022-09-08T13:35:46.652273Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "HTTP_ECHO_CROETNR_PORT_80_TCP_PORT" value "80"
2022-09-08T13:35:46.652285Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "HTTP_ECHO_A3UJ4JA_PORT" value "tcp://10.0.42.138:80"
2022-09-08T13:35:46.652293Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "HTTP_ECHO_CROETNR_SERVICE_PORT" value "80"
2022-09-08T13:35:46.652301Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "NGINX_PORT_80_TCP" value "tcp://10.0.192.115:80"
2022-09-08T13:35:46.652309Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "NGINX_DEPLOYMENT_PORT_80_TCP_ADDR" value "10.0.188.93"
2022-09-08T13:35:46.652316Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "HOSTNAME" value "py-serv-deployment-5c57fbdc98-kqgrz"
2022-09-08T13:35:46.652324Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "NGINX_DEPLOYMENT_PORT_80_TCP_PROTO" value "tcp"
2022-09-08T13:35:46.652332Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "NGINX_PORT_80_TCP_ADDR" value "10.0.192.115"
2022-09-08T13:35:46.652339Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "NGINX_DEPLOYMENT_SERVICE_PORT" value "80"
2022-09-08T13:35:46.652391Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "KUBERNETES_PORT_443_TCP_PORT" value "443"
2022-09-08T13:35:46.652399Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "MIRRORD_FAKE_VAR_SECOND" value "7777"
2022-09-08T13:35:46.652406Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "HTTP_ECHO_A3UJ4JA_PORT_80_TCP_PORT" value "80"
2022-09-08T13:35:46.652414Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "USER_SERVICE_PORT_8091_TCP_PROTO" value "tcp"
2022-09-08T13:35:46.652421Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "PY_SERV_SERVICE_PORT" value "80"
2022-09-08T13:35:46.652427Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "PY_SERV_PORT_80_TCP" value "tcp://10.0.72.80:80"
2022-09-08T13:35:46.652445Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "PY_SERV_PORT_80_TCP_PROTO" value "tcp"
2022-09-08T13:35:46.652452Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "KUBERNETES_PORT_443_TCP_PROTO" value "tcp"
2022-09-08T13:35:46.652459Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "KUBERNETES_PORT_443_TCP_ADDR" value "10.0.0.1"
2022-09-08T13:35:46.652465Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "MIRRORD_FAKE_VAR_FIRST" value "mirrord.is.running"
2022-09-08T13:35:46.652472Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "NGINX_PORT_80_TCP_PROTO" value "tcp"
2022-09-08T13:35:46.652480Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "HTTP_ECHO_CROETNR_SERVICE_HOST" value "10.0.115.140"
2022-09-08T13:35:46.652489Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "METALBEAR_USERS_SERVICE_HOST" value "10.0.181.121"
2022-09-08T13:35:46.652496Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "KUBERNETES_SERVICE_HOST" value "10.0.0.1"
2022-09-08T13:35:46.652503Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "METALBEAR_USERS_PORT_80_TCP_PORT" value "80"
2022-09-08T13:35:46.652510Z DEBUG mirrord_layer: DaemonMessage::GetEnvVarsResponse set key "NGINX_DEPLOYMENT_PORT" value "tcp://10.0.188.93:80"
2022-09-08T13:35:46.653125Z TRACE mirrord_layer: close_detour -> fd 13
2022-09-08T13:35:46.653174Z TRACE mirrord_layer: close_detour -> fd 13
2022-09-08T13:35:46.654199Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> fd 0 | cmd 3
2022-09-08T13:35:46.654232Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> result 65538
2022-09-08T13:35:46.654252Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> fd 1 | cmd 3
2022-09-08T13:35:46.654259Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> result 65538
2022-09-08T13:35:46.654264Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> fd 2 | cmd 3
2022-09-08T13:35:46.654270Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> result 65538
Server listening on port 80
2022-09-08T13:35:46.658636Z TRACE mirrord_layer::socket::hooks: socket_detour -> domain 2 | type:1 | protocol 6
2022-09-08T13:35:46.658654Z TRACE mirrord_layer::socket::ops: socket -> domain 2 | type:1 | protocol 6
2022-09-08T13:35:46.658692Z DEBUG mirrord_layer::socket::ops: socket -> socket_fd 13 | new_socket UserSocket {
    domain: 2,
    type_: 1,
    protocol: 6,
    state: Initialized,
}
2022-09-08T13:35:46.658719Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> fd 13 | cmd 2
2022-09-08T13:35:46.658728Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> result 0
2022-09-08T13:35:46.658734Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> fd 13 | cmd 3
2022-09-08T13:35:46.658739Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> result 2
2022-09-08T13:35:46.658745Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> fd 13 | cmd 4
2022-09-08T13:35:46.658751Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> result 0
2022-09-08T13:35:46.658758Z TRACE mirrord_layer: close_detour -> fd 13
2022-09-08T13:35:46.658778Z TRACE mirrord_layer::socket::hooks: socket_detour -> domain 30 | type:1 | protocol 6
2022-09-08T13:35:46.658784Z TRACE mirrord_layer::socket::ops: socket -> domain 30 | type:1 | protocol 6
2022-09-08T13:35:46.658795Z DEBUG mirrord_layer::socket::ops: socket -> socket_fd 13 | new_socket UserSocket {
    domain: 30,
    type_: 1,
    protocol: 6,
    state: Initialized,
}
2022-09-08T13:35:46.658803Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> fd 13 | cmd 2
2022-09-08T13:35:46.658810Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> result 0
2022-09-08T13:35:46.658815Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> fd 13 | cmd 3
2022-09-08T13:35:46.658820Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> result 2
2022-09-08T13:35:46.658826Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> fd 13 | cmd 4
2022-09-08T13:35:46.658831Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> result 0
2022-09-08T13:35:46.658854Z TRACE mirrord_layer::socket::hooks: bind_detour -> sockfd 13 | raw_address sockaddr {
    sa_len: 28,
    sa_family: 30,
    sa_data: [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
    ],
}
2022-09-08T13:35:46.658869Z TRACE mirrord_layer::socket::ops: bind -> sockfd 13 | address SockAddr {
    ss_len: 28,
    ss_family: 30,
    len: 28,
}
2022-09-08T13:35:46.658882Z  WARN mirrord_layer::socket::hooks: bind_detour -> bypassed with BypassedPort(
    0,
)
2022-09-08T13:35:46.658901Z TRACE mirrord_layer::socket::hooks: socket_detour -> domain 30 | type:1 | protocol 6
2022-09-08T13:35:46.658906Z TRACE mirrord_layer::socket::ops: socket -> domain 30 | type:1 | protocol 6
2022-09-08T13:35:46.658918Z DEBUG mirrord_layer::socket::ops: socket -> socket_fd 14 | new_socket UserSocket {
    domain: 30,
    type_: 1,
    protocol: 6,
    state: Initialized,
}
2022-09-08T13:35:46.658926Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> fd 14 | cmd 2
2022-09-08T13:35:46.658932Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> result 0
2022-09-08T13:35:46.658937Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> fd 14 | cmd 3
2022-09-08T13:35:46.659053Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> result 2
2022-09-08T13:35:46.659090Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> fd 14 | cmd 4
2022-09-08T13:35:46.659112Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> result 0
2022-09-08T13:35:46.659154Z TRACE mirrord_layer::socket::hooks: bind_detour -> sockfd 14 | raw_address sockaddr {
    sa_len: 28,
    sa_family: 30,
    sa_data: [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
    ],
}
2022-09-08T13:35:46.659201Z TRACE mirrord_layer::socket::ops: bind -> sockfd 14 | address SockAddr {
    ss_len: 28,
    ss_family: 30,
    len: 28,
}
2022-09-08T13:35:46.659254Z  WARN mirrord_layer::socket::hooks: bind_detour -> bypassed with BypassedPort(
    0,
)
2022-09-08T13:35:46.659311Z TRACE mirrord_layer: close_detour -> fd 14
2022-09-08T13:35:46.659365Z TRACE mirrord_layer: close_detour -> fd 13
2022-09-08T13:35:46.659397Z TRACE mirrord_layer::socket::hooks: socket_detour -> domain 30 | type:1 | protocol 0
2022-09-08T13:35:46.659417Z TRACE mirrord_layer::socket::ops: socket -> domain 30 | type:1 | protocol 0
2022-09-08T13:35:46.659457Z DEBUG mirrord_layer::socket::ops: socket -> socket_fd 13 | new_socket UserSocket {
    domain: 30,
    type_: 1,
    protocol: 0,
    state: Initialized,
}
2022-09-08T13:35:46.659487Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> fd 13 | cmd 2
2022-09-08T13:35:46.659508Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> result 0
2022-09-08T13:35:46.659530Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> fd 13 | cmd 3
2022-09-08T13:35:46.659548Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> result 2
2022-09-08T13:35:46.659569Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> fd 13 | cmd 4
2022-09-08T13:35:46.659589Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> result 0
2022-09-08T13:35:46.659658Z TRACE mirrord_layer::socket::hooks: bind_detour -> sockfd 13 | raw_address sockaddr {
    sa_len: 28,
    sa_family: 30,
    sa_data: [
        0,
        80,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
    ],
}
2022-09-08T13:35:46.659720Z TRACE mirrord_layer::socket::ops: bind -> sockfd 13 | address SockAddr {
    ss_len: 28,
    ss_family: 30,
    len: 28,
}
2022-09-08T13:35:46.659778Z DEBUG mirrord_layer::socket::ops: bind -> unbound_address SockAddr {
    ss_len: 0,
    ss_family: 30,
    len: 28,
}
2022-09-08T13:35:46.659824Z DEBUG mirrord_layer::socket::hooks: listen_detour -> sockfd 13 | backlog 128
2022-09-08T13:35:46.659833Z DEBUG mirrord_layer::socket::ops: listen -> sockfd 13 | backlog 128
2022-09-08T13:35:46.659880Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> fd 14 | cmd 2
2022-09-08T13:35:46.659888Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> result 0
2022-09-08T13:35:46.659898Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> fd 15 | cmd 2
2022-09-08T13:35:46.659904Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> result 0
2022-09-08T13:35:46.659910Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> fd 15 | cmd 3
2022-09-08T13:35:46.659915Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> result 0
2022-09-08T13:35:46.659920Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> fd 15 | cmd 4
2022-09-08T13:35:46.659926Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> result 0
2022-09-08T13:35:46.659931Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> fd 16 | cmd 2
2022-09-08T13:35:46.659937Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> result 0
2022-09-08T13:35:46.659943Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> fd 16 | cmd 3
2022-09-08T13:35:46.659948Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> result 1
2022-09-08T13:35:46.659942Z TRACE mirrord_layer: Layer::handle_hook_message -> hook_message Tcp(Listen(Listen { mirror_port: 57531, requested_port: 80, ipv6: true, fd: 13 }))
2022-09-08T13:35:46.659953Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> fd 16 | cmd 4
2022-09-08T13:35:46.659999Z DEBUG mirrord_layer::tcp_mirror: handle_listen -> listen Listen {
    mirror_port: 57531,
    requested_port: 80,
    ipv6: true,
    fd: 13,
}
2022-09-08T13:35:46.660006Z TRACE mirrord_layer::socket::hooks: fcntl_detour -> result 0
2022-09-08T13:35:46.660020Z TRACE mirrord_layer::socket::hooks: getsockname_detour -> sockfd 13
2022-09-08T13:35:46.660038Z TRACE mirrord_layer::socket::ops: getsockname -> sockfd 13
2022-09-08T13:35:46.660046Z DEBUG mirrord_layer::socket::ops: getsockname -> local_address [::]:57531
2022-09-08T13:35:46.660087Z TRACE mirrord_layer::socket::hooks: accept_detour -> sockfd 13
2022-09-08T13:35:46.694485Z DEBUG mirrord_layer::tcp: handle_incoming_message -> message Subscribed
2022-09-08T13:35:46.694523Z DEBUG mirrord_layer::tcp: daemon subscribed
2022-09-08T13:35:46.694530Z DEBUG mirrord_layer::tcp: handle_incoming_message -> handled Ok(
    (),
)

Your operating system and version

mehularora@Mehuls-MacBook-Air mirrord % uname -a Darwin Mehuls-MacBook-Air.local 21.4.0 Darwin Kernel Version 21.4.0: Mon Feb 21 20:36:53 PST 2022; root:xnu-8020.101.4~2/RELEASE_ARM64_T8101 arm64 mehularora@Mehuls-MacBook-Air mirrord %

Local process

mehularora@Mehuls-MacBook-Air mirrord % file tests/go-e2e/go-e2e tests/go-e2e/go-e2e: Mach-O 64-bit executable arm64

Local process version

No response

Additional Info

No response

@infiniteregrets infiniteregrets added the bug Something isn't working label Sep 8, 2022
@aviramha aviramha added this to the MVP+1 milestone Sep 8, 2022
@aviramha aviramha removed this from the MVP+1 milestone Sep 8, 2022
@aviramha
Copy link
Member

aviramha commented Sep 8, 2022

blocked by frida/frida-gum#677

@eyalb181
Copy link
Member

We should come back to this when #611 is done - it would probably open up new possible solutions.

@aviramha
Copy link
Member

aviramha commented Jan 1, 2023

Fixed with #849

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants