-
Notifications
You must be signed in to change notification settings - Fork 3.7k
GH-46394: [C++][R] gcc-UBSAN errors on CRAN #46397
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
Conversation
|
479dbdd
to
db2d59a
Compare
@github-actions crossbow submit test-r-linux-sanitizers This should fail with the new rhub/gcc-asan job |
Revision: cbc67be Submitted crossbow builds: ursacomputing/crossbow @ actions-faacd3047b
|
@github-actions crossbow submit test-r-linux-sanitizers And this one intializes the quoted variable |
Revision: f261c56 Submitted crossbow builds: ursacomputing/crossbow @ actions-b0ff1d4e40
|
: values_size_(0), values_capacity_(values_capacity), status_(Status::OK()) { | ||
: values_size_(0), | ||
values_capacity_(values_capacity), | ||
quoted_(false), | ||
saved_values_size_(0), | ||
status_(Status::OK()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quoted_(false)
and saved_values_size_(0)
are the only additions here (the rest is whitespace)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great change, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
dev/tasks/tasks.yml
Outdated
R_PRUNE_DEPS: TRUE | ||
image: r-clang-asan | ||
|
||
test-r-clang-ubsan: | ||
ci: github | ||
template: docker-tests/github.linux.yml | ||
params: | ||
env: | ||
R_PRUNE_DEPS: TRUE | ||
image: r-clang-ubsan | ||
R_ORG: "rhub" | ||
R_IMAGE: "{{ '${{ matrix.config.r_image }}' }}" | ||
R_TAG: "latest" | ||
ARROW_R_DEV: "TRUE" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you move this env:
to github.linux.sanitizers.yml
?
We don't need to customize them in tasks.yml
, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can, yeah. I was following other jobs here, but you're right that none of this varies at the tasks level.
@github-actions crossbow submit test-r-linux-sanitizers |
Revision: 45fcdd1 Submitted crossbow builds: ursacomputing/crossbow @ actions-6c92c64390
|
After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 12424cd. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 27 possible false positives for unstable benchmarks that are known to sometimes produce them. |
### Rationale for this change Fix gcc-UBSAN CI job to be correctly running, then fix the UBSAN error. ### What changes are included in this PR? * Generalize our sanitizer jobs and use rhub's containers for this. wch/r-debug looks like it's out of date (hence why we didn't catch this), and it's easier to use a matrix of images with rhubarb anyway. * Initialize the `_quoted` variable — we could also cast it to boolean where the UBSAN popped, but this seems to be enough. ### Are these changes tested? Yes ### Are there any user-facing changes? No * GitHub Issue: #46394 Authored-by: Jonathan Keane <jkeane@gmail.com> Signed-off-by: Jacob Wujciak-Jens <jacob@wujciak.de>
Rationale for this change
Fix gcc-UBSAN CI job to be correctly running, then fix the UBSAN error.
What changes are included in this PR?
_quoted
variable — we could also cast it to boolean where the UBSAN popped, but this seems to be enough.Are these changes tested?
Yes
Are there any user-facing changes?
No