Skip to content

[ci] [R-package] re-enable 'rchk' checks - #6713

Merged
StrikerRUS merged 5 commits into
masterfrom
ci/restore-rchk
Nov 5, 2024
Merged

StrikerRUS merged 5 commits into
masterfrom
ci/restore-rchk

Conversation

@jameslamb

@jameslamb jameslamb commented Nov 3, 2024 •

Copy link
Copy Markdown
Member

Follow-up to #6545

Proposes re-enabling the rchk checks, now that that tool can successfully check lightgbm's source code: kalibera/rchk#35 (comment)

How I tested this

Intentionally caused a stack imbalance by reducing the count in an Rf_UNPROTECT() call by 1: https://github.com/microsoft/LightGBM/pull/6713/files#diff-effa19f4965843414974b8ad1ddcf65710b25c978e203317ce409749841da338

Saw rchk catch it!

Function make_altrepped_raw_vec(void*)
  [PB] has possible protection stack imbalance /__w/LightGBM/LightGBM/lightgbm/src/lightgbm_R.cpp:71
Analyzed 66521 functions, traversed 184251 states.
------------------------------------------------------
rchk found issues
image

(build link)

Then reverted that, and saw rchk exit normally and not report any issues:

Analyzed 66521 functions, traversed 184251 states.
------------------------------------------------------
rchk did not find any issues

(build link)

@jameslamb jameslamb changed the title WIP: [ci] [R-package] re-enable 'rchk' checks [ci] [R-package] re-enable 'rchk' checks Nov 4, 2024
@jameslamb
jameslamb marked this pull request as ready for review November 4, 2024 03:45

@StrikerRUS StrikerRUS left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Thank you so much for going to the end with rchk!

@StrikerRUS
StrikerRUS merged commit 5151fe8 into master Nov 5, 2024
@StrikerRUS
StrikerRUS deleted the ci/restore-rchk branch November 5, 2024 12:04
@github-actions

github-actions Bot commented Nov 6, 2025

Copy link
Copy Markdown
Contributor

This pull request has been automatically locked since there has not been any recent activity since it was closed.
To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants