Fix CSA core.NullDereference in grid_sample_bilinear_program_factory#38828
Closed
Fix CSA core.NullDereference in grid_sample_bilinear_program_factory#38828
Conversation
Co-authored-by: blozano-tt <[email protected]>
Copilot
AI
changed the title
[WIP] Fix null dereference issue in grid sample program
Fix CSA core.NullDereference in grid_sample_bilinear_program_factory
Feb 28, 2026
blozano-tt
added a commit
that referenced
this pull request
Mar 1, 2026
The workflow has been reporting failures since Feb 26 when the GitHub Actions runner image updated from gh CLI 2.86.0 to 2.87.3. gh CLI v2.87.0 introduced API version pinning (X-GitHub-Api-Version: 2022-11-28) which broke the Copilot API (CAPI) log streaming endpoint (cli/cli#12729, cli/cli#12730). The fix in cli/cli#12731 corrected the API version for CAPI requests, but the --follow flag still exits non-zero with 'not found' when streaming session logs. Crucially, the agent task itself succeeds — every 'failing' run since Feb 26 actually created a PR: Feb 26 06:20 → #38614 Feb 26 08:18 → #38615 Feb 27 06:16 → #38710 Feb 27 08:17 → #38723 Feb 28 08:09 → #38828 But because of 'set -euo pipefail', the non-zero --follow exit code killed the script before the PR labeling code could run. Fix: tolerate --follow failures with '|| echo warning', allowing the script to continue to extract the PR number and apply labels.
Contributor
|
Closing, because null dereference is not the same as an uninitalized value. I think the agent didn’t have enough context. We can circle back to this violation in the future. |
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.
Ticket
N/A
Problem description
Clang Static Analyzer flagged
core.NullDereferenceat line 171. Multi-variable declarationKernelHandle reader0_kernel_id, reader1_kernel_id = 0;only initialized the second variable, leavingreader0_kernel_iduninitialized.What's changed
Changed line 171 to value-initialize both variables:
tt::tt_metal::KernelHandle reader0_kernel_id{}, reader1_kernel_id{};Follows pattern used in layernorm ops (tt-train) and throughout codebase for handle types.
Checklist
Model tests
If your changes cover model-related code, you should run tests corresponding to affected models and platforms (Single card, T3K, Galaxy). "Choose your pipeline" workflows facilitate running multiple kinds of tests in a single run. Each offers
models-mandatoryandmodels-extendedpresets.The former includes a minimal set of tests, to be run always. The latter extends that with additional ones - use your best judgement in deciding which is the most appropriate for your PR.
models-mandatorypreset (runs: Device perf regressions and Frequent model and ttnn tests)models-extendedpreset (runs: the mandatory tests, plus Demo and Model perf tests)models-mandatorypreset (runs: Unit tests)models-extendedpreset (runs: the mandatory tests, plus Demo and Model perf tests)models-mandatorypreset (runs: Quick tests)models-extendedpreset (runs: the mandatory tests, plus Demo and Model perf tests)Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.