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

[Dep] Upgrading Protobuf to v27.2 #36753

Closed
wants to merge 8 commits into from
Closed

Conversation

veblush
Copy link
Contributor

@veblush veblush commented May 29, 2024

No description provided.

@veblush veblush added the release notes: yes Indicates if PR needs to be in release notes label May 29, 2024
@veblush veblush requested a review from eugeneo May 29, 2024 16:48
@veblush veblush requested a review from gnossen as a code owner May 29, 2024 16:48
copybara-service bot pushed a commit that referenced this pull request May 29, 2024
#36753 has this ASAN test failure with the following error which doesn't seem to make sense. ([full log](https://btx.cloud.google.com/invocations/a587e5cc-ca1e-46ed-a3c3-199c581583db/targets))

```
Executing tests from //test/cpp/util:grpc_tool_test@poller=epoll1
-----------------------------------------------------------------------------
=================================================================
==15==ERROR: AddressSanitizer: odr-violation (0x7fcfa2961400):
  [1] size=66 'typeinfo name for google::protobuf::compiler::java::ImmutableExtensionLiteGenerator' external/com_google_protobuf/src/google/protobuf/compiler/java/lite/extension.cc in /b/f/w/bazel-out/k8-fastbuild/bin/test/cpp/util/grpc_tool_test@poller=epoll1.runfiles/com_github_grpc_grpc/test/cpp/util/../../../_solib_k8/libexternal_Scom_Ugoogle_Uprotobuf_Ssrc_Sgoogle_Sprotobuf_Scompiler_Sjava_Slite_Sliblite.so
  [2] size=66 'typeinfo name for google::protobuf::compiler::java::ImmutableExtensionLiteGenerator' external/com_google_protobuf/src/google/protobuf/compiler/java/lite/extension.cc in /b/f/w/bazel-out/k8-fastbuild/bin/test/cpp/util/grpc_tool_test@poller=epoll1.runfiles/com_github_grpc_grpc/test/cpp/util/../../../_solib_k8/libexternal_Scom_Ugoogle_Uprotobuf_Ssrc_Sgoogle_Sprotobuf_Scompiler_Sjava_Slite_Slibfield_Ugenerators.so
These globals were registered at these points:
  [1]:
    #0 0x5626b4ea1488 in __asan_register_globals /tmp/clang-build/src/compiler-rt/lib/asan/asan_globals.cpp:369:3
    #1 0x5626b4ea2559 in __asan_register_elf_globals /tmp/clang-build/src/compiler-rt/lib/asan/asan_globals.cpp:352:3
    #2 0x7fcfa3fa4b99  (/lib64/ld-linux-x86-64.so.2+0x11b99) (BuildId: 7ae2aaae1a0e5b262df913ee0885582d2e327982)

  [2]:
    #0 0x5626b4ea1488 in __asan_register_globals /tmp/clang-build/src/compiler-rt/lib/asan/asan_globals.cpp:369:3
    #1 0x5626b4ea2559 in __asan_register_elf_globals /tmp/clang-build/src/compiler-rt/lib/asan/asan_globals.cpp:352:3
    #2 0x7fcfa3fa4b99  (/lib64/ld-linux-x86-64.so.2+0x11b99) (BuildId: 7ae2aaae1a0e5b262df913ee0885582d2e327982)

==15==HINT: if you don't care about these errors you may set ASAN_OPTIONS=detect_odr_violation=0
SUMMARY: AddressSanitizer: odr-violation: global 'typeinfo name for google::protobuf::compiler::java::ImmutableExtensionLiteGenerator' at external/com_google_protobuf/src/google/protobuf/compiler/java/lite/extension.cc in /b/f/w/bazel-out/k8-fastbuild/bin/test/cpp/util/grpc_tool_test@poller=epoll1.runfiles/com_github_grpc_grpc/test/cpp/util/../../../_solib_k8/libexternal_Scom_Ugoogle_Uprotobuf_Ssrc_Sgoogle_Sprotobuf_Scompiler_Sjava_Slite_Sliblite.so
==15==ABORTING
```

This turned out to be a known issue described at google/sanitizers#1017 and there is much to do other than disabling the ODR test. I gave a try to "-mllvm -asan-use-private-alias=1" option but it didn't change the result so I turned into this way.

Closes #36756

COPYBARA_INTEGRATE_REVIEW=#36756 from veblush:asan-workaround 622581e
PiperOrigin-RevId: 638421967
@veblush
Copy link
Contributor Author

veblush commented Jun 4, 2024

All Python errors are expected to be fixed once our test script begins to use a new version of python-api-core with googleapis/python-api-core#644. Currently blocked on its release.

@veblush veblush changed the title [Dep] Upgrading Protobuf to v27.0 [Dep] Upgrading Protobuf to v27.2 Jun 28, 2024
eugeneo added a commit to eugeneo/grpc that referenced this pull request Jul 1, 2024
copybara-service bot pushed a commit that referenced this pull request Jul 2, 2024
This reverts commit 0ffab55.

Closes #37125

PiperOrigin-RevId: 648750887
veblush added a commit to veblush/grpc that referenced this pull request Jul 8, 2024
veblush added a commit to veblush/grpc that referenced this pull request Jul 8, 2024
copybara-service bot pushed a commit that referenced this pull request Jul 8, 2024
alto-ruby added a commit to alto-ruby/grpc that referenced this pull request Jul 11, 2024
alto-ruby added a commit to alto-ruby/grpc that referenced this pull request Jul 11, 2024
alto-ruby added a commit to alto-ruby/grpc that referenced this pull request Jul 11, 2024
eugeneo pushed a commit to eugeneo/grpc that referenced this pull request Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants