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

Some tests fail consistently with dyld: Symbol not found: _program_invocation_name #10478

Closed
MeenaAlfons opened this issue Mar 22, 2020 · 6 comments
Labels
area/build stale stalebot believes this issue/PR has not been touched recently

Comments

@MeenaAlfons
Copy link

I'm new to envoy. I've read the documentation and the developer guides to build and test envoy. I'm using mac. Some tests fail with the same reason. I'll put the output of multiple ones here, not all of them.

Command:

bazel test //test/...

OR

./ci/mac_ci_steps.sh

Logs

Executing tests from //test/config_test:example_configs_test
-----------------------------------------------------------------------------
dyld: Symbol not found: _program_invocation_name
  Referenced from: /private/var/tmp/_bazel_meenaalfons/09b592829e2b29a5247680bd998ac77f/sandbox/darwin-sandbox/388/execroot/envoy/bazel-out/darwin-fastbuild/bin/test/config_test/example_configs_test.runfiles/envoy/test/config_test/example_configs_test
  Expected in: flat namespace
 in /private/var/tmp/_bazel_meenaalfons/09b592829e2b29a5247680bd998ac77f/sandbox/darwin-sandbox/388/execroot/envoy/bazel-out/darwin-fastbuild/bin/test/config_test/example_configs_test.runfiles/envoy/test/config_test/example_configs_test
external/bazel_tools/tools/test/test-setup.sh: line 310: 16380 Abort trap: 6           "${TEST_PATH}" "$@" 2>&1
Executing tests from //test/exe:version_out_test
-----------------------------------------------------------------------------
dyld: Symbol not found: _program_invocation_name
  Referenced from: /private/var/tmp/_bazel_meenaalfons/09b592829e2b29a5247680bd998ac77f/sandbox/darwin-sandbox/13/execroot/envoy/bazel-out/darwin-fastbuild/bin/test/exe/version_out_test.runfiles/envoy/source/exe/envoy-static
  Expected in: flat namespace
 in /private/var/tmp/_bazel_meenaalfons/09b592829e2b29a5247680bd998ac77f/sandbox/darwin-sandbox/13/execroot/envoy/bazel-out/darwin-fastbuild/bin/test/exe/version_out_test.runfiles/envoy/source/exe/envoy-static
Executing tests from //test/extensions/filters/network/mysql_proxy:mysql_command_tests
-----------------------------------------------------------------------------
dyld: Symbol not found: _program_invocation_name
  Referenced from: /private/var/tmp/_bazel_meenaalfons/09b592829e2b29a5247680bd998ac77f/sandbox/darwin-sandbox/106/execroot/envoy/bazel-out/darwin-fastbuild/bin/test/extensions/filters/network/mysql_proxy/mysql_command_tests.runfiles/envoy/test/extensions/filters/network/mysql_proxy/mysql_command_tests
  Expected in: flat namespace
 in /private/var/tmp/_bazel_meenaalfons/09b592829e2b29a5247680bd998ac77f/sandbox/darwin-sandbox/106/execroot/envoy/bazel-out/darwin-fastbuild/bin/test/extensions/filters/network/mysql_proxy/mysql_command_tests.runfiles/envoy/test/extensions/filters/network/mysql_proxy/mysql_command_tests
external/bazel_tools/tools/test/test-setup.sh: line 310: 13379 Abort trap: 6           "${TEST_PATH}" "$@" 2>&1

I need help regarding what does that mean and how to fix it.

Thank you.

@SpecialYang
Copy link
Contributor

I have the same issue on mac. After I built envoy by the command that is bazel build //source/exe:envoy-static, I run the output file envoy-static. The same error is following:

dyld: Symbol not found: _program_invocation_name
  Referenced from: /private/var/tmp/_bazel_special.fy/cf864797fed3e461f31b298711eee9f9/execroot/envoy/bazel-out/darwin-fastbuild/bin/source/exe/./envoy-static
  Expected in: flat namespace
 in /private/var/tmp/_bazel_special.fy/cf864797fed3e461f31b298711eee9f9/execroot/envoy/bazel-out/darwin-fastbuild/bin/source/exe/./envoy-static
[1]    7546 abort      ./envoy-static

version

  • Mac: Mojave 10.14.5
  • bazel: 1.1.0

@chadm-sq
Copy link
Contributor

See also envoyproxy/envoy-filter-example#121

@SpecialYang
Copy link
Contributor

On mac, the App Xcode is required to be installed. If you already have Xcode. Run the following commands.

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -license

The above method works for me.

@stale
Copy link

stale bot commented May 22, 2020

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.

@stale stale bot added the stale stalebot believes this issue/PR has not been touched recently label May 22, 2020
@stale
Copy link

stale bot commented May 30, 2020

This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions.

@rainingmaster
Copy link
Contributor

So sad, I have fix dyld: Symbol not found: _program_invocation_name by install XCode, but Abort trap: 6 still exists. Do you fix it? @MeenaAlfons

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build stale stalebot believes this issue/PR has not been touched recently
Projects
None yet
Development

No branches or pull requests

5 participants