Repository navigation
Bump wheel from 0.45.1 to 0.46.2 in /paddle/scripts in the pip group across 1 directory - #4
Open
dependabot[bot] wants to merge 1 commit into
Open
dependabot[bot] wants to merge 1 commit into
dependabot[bot] wants to merge 1 commit into
Conversation
Bumps the pip group with 1 update in the /paddle/scripts directory: [wheel](https://github.com/pypa/wheel). Updates `wheel` from 0.45.1 to 0.46.2 - [Release notes](https://github.com/pypa/wheel/releases) - [Changelog](https://github.com/pypa/wheel/blob/main/docs/news.rst) - [Commits](pypa/wheel@0.45.1...0.46.2) --- updated-dependencies: - dependency-name: wheel dependency-version: 0.46.2 dependency-type: direct:production dependency-group: pip ... Signed-off-by: dependabot[bot] <support@github.com>
youge325
pushed a commit
that referenced
this pull request
Oct 16, 2026
…addlePaddle#79861) * [Distributed] Remove glog calls from libuv TCPStore teardown callbacks The libuv TCPStore master daemon polls its uv loop on a background thread whose lifetime is bounded by ~TCPStore. When something still holds a reference to the global TCPStore (returned as a shared_ptr by CreateOrGetGlobalTCPStore) at the time exit() starts running handlers, ~TCPStore does not run, the daemon is never stopped or joined, and the loop keeps polling while static destructors tear down libpaddle's statically linked glog, destroying its internal mutexes. A peer rank closing its socket after that point lands in LibUVClient::readCallback. The VLOG sites in its EOF and error branches are only ever reached at teardown, so their glog one-time per-call-site initialization (google::InitVLOG3__) runs for the first time right there and locks google::vmodule_lock, which pthread_mutex_destroy has already invalidated. The lock returns EINVAL and glog's SAFE_PTHREAD macro calls abort() without emitting anything, so the process dies with exit code -6 and an empty log. The same applies to the write-failure callbacks, which are triggered by the same event. Observed on a single node, 8 ranks, after training and evaluation had fully completed and all metrics were already published: #4 __GI_abort PaddlePaddle#5 ?? () from libpaddle.so PaddlePaddle#6 phi::distributed::detail::LibUVClient::readCallback(uv_stream_s*, long, uv_buf_t const*) PaddlePaddle#7..PaddlePaddle#10 uv_run internals PaddlePaddle#11 uv_run PaddlePaddle#12 phi::distributed::detail::LibUVMasterDaemon::run Frame PaddlePaddle#5 is the out-of-line error path of google::InitVLOG3__, which is a bare `call abort@plt`, and &google::vmodule_lock reads __kind == -1 at that point, confirming it had already been destroyed. This removes the glog calls from the libuv callbacks that only execute during connection teardown. It does not address the underlying lifetime problem (a background thread outliving static destruction is undefined behaviour regardless), but it removes the trigger that currently turns a clean run into a non-zero exit code. * [Distributed] Keep the teardown diagnostics, write them to stderr Follow-up on the previous commit: instead of dropping the messages in the libuv teardown callbacks, route them through a small stderr helper so the diagnostics survive. The constraint is that these callbacks can run after glog's static state has been destroyed, so they cannot touch glog. Writing to stderr avoids that: - FLAGS_v is a plain int32 with no destructor, so reading it stays valid for the whole lifetime of the process. Gating on it keeps the default behaviour unchanged, these paths stay silent unless the user already asked for that verbosity level. - stderr is unbuffered, so the ordering relative to the rest of the log is preserved and nothing depends on a flush at exit time. A fully buffered stream such as std::cout would hold the lines until _IO_cleanup and emit them at the very end of the process, detached from their context. Verified with a standalone probe that reproduces the same ordering (static destructors run, then a long exit handler, with a background thread writing the whole time): locking a destroyed glog-style mutex aborts 5/5 runs, while both stderr and std::cout complete 5/5 with every line accounted for. * [Distributed] Add tests for the libuv TCPStore teardown diagnostics Covers the three call sites introduced in the previous commit by driving a real LibUVMasterDaemon through the disconnect paths with a raw socket and capturing fd 2: - ReportsPeerDisconnectWhenVerbose: a clean close (FIN) reaches the UV_EOF branch and reports at verbosity 5. - SilentOnPeerDisconnectByDefault: the same path prints nothing at the default verbosity, pinning down that replacing VLOG with the stderr helper is not a behaviour change. - ReportsReadErrorWhenVerbose: SO_LINGER with a zero timeout turns close() into an RST, reaching the nread < 0 branch. - ReportsMalformedMessageWhenVerbose: a SET command declaring a key longer than MAX_KEY_LEN makes SegmentedDataStream::readKey throw, which is caught in readCallback and reported at verbosity 2. The tests go through detail::create_libuv_tcpstore, which is already declared in tcp_store.h, so the test target does not need the libuv headers. Helpers redirect fd 2 to a temporary file, save and restore FLAGS_v, and poll for the expected output with a three second budget instead of sleeping blindly. The two write-failure call sites in WriteUVContent are not covered. Driving them requires the peer to vanish exactly while the server is replying, which cannot be arranged reliably enough for a test that runs in CI. * [Distributed] Use PRId64 for the ssize_t read error code Review feedback. The read error branch printed a value cast to int64_t with %ld. On LP64 that happens to match, because int64_t is long there, which is why it compiled clean with -Wformat. On LLP64 it does not: long is 32 bits while int64_t is 64, so the specifier and the argument disagree. That is undefined behaviour and MSVC diagnoses it. tcp_store_libuv.cc is listed unconditionally in STORE_COMMON_SRCS, so it is built on Windows too, and the new tests sit under #ifndef _WIN32 and cannot catch it. Switch to the width independent PRId64 from <cinttypes>, which is already used elsewhere in the tree. * [Distributed] Cover the libuv write-failure path and skip the tests on macOS - Add ReportsWriteFailureWhenVerbose: queue a GET and an RST before the daemon starts, so the reply fails and WriteUVContent::writeDone reports it. - Skip the LibUVMasterDaemon tests on macOS. The test executable and the phi dylib each link a static glog, and two-level namespaces keep their FLAGS_v apart, so raising the verbosity from the test never reaches phi. - Probe free ports on INADDR_ANY to match the daemon's 0.0.0.0 listener; a port free only on loopback could make the daemon's bind fail.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps the pip group with 1 update in the /paddle/scripts directory: wheel.
Updates
wheelfrom 0.45.1 to 0.46.2Release notes
Sourced from wheel's releases.
Changelog
Sourced from wheel's changelog.
... (truncated)
Commits
eba4036Updated the version number for v0.46.2557fb54Created a new release7a7d2deFixed security issue around wheel unpack (#675)41418faFixed test failures due to metadata normalization changesc1d442b[pre-commit.ci] pre-commit autoupdate (#674)0bac882Update github actions environments (#673)be9f45b[pre-commit.ci] pre-commit autoupdate (#667)6244f08Update pre-commit ruff legacy alias (#668)15b7577PEP 639 compliance (#670)fc8cb41Revert "Removed redundant Python version from the publish workflow (#666)"You can trigger a rebase of this PR by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)@dependabot ignore <dependency name> minor versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)@dependabot ignore <dependency name>will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)@dependabot unignore <dependency name>will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>will remove the ignore condition of the specified dependency and ignore conditionsYou can disable automated security fix PRs for this repo from the Security Alerts page.