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

CRAN clang-san error from cli #745

Closed
jayhesselberth opened this issue Jan 8, 2025 · 2 comments
Closed

CRAN clang-san error from cli #745

jayhesselberth opened this issue Jan 8, 2025 · 2 comments

Comments

@jayhesselberth
Copy link

We are updating a package on CRAN that imports cli and this error is thrown during the pre-check:

File: valr-Ex.Rout
cleancall.c:110:46: runtime error: call to function cb_progress_done through pointer to incorrect function type 'void (*)(void *)'

File: tests/testthat.Rout
cleancall.c:110:46: runtime error: call to function cb_progress_done through pointer to incorrect function type 'void (*)(void *)'

We don't use progress bar functionality directly in valr.

rnabioco/valr#423 (comment)

This doesn't appear to have come up before in the cli issues. Any idea how to address? Maybe with a standlone (we only use cli_abort() and cli_warn())?

@jayhesselberth jayhesselberth changed the title CRAN ASAN error from cli CRAN clang-san error from cli Jan 8, 2025
@gaborcsardi
Copy link
Member

This doesn't appear to have come up before in the cli issues.

There is no cb_progress_done function in cli, so I am not sure why you think it is coming from there.

@jayhesselberth
Copy link
Author

Ah I was confused. Looks like it's actually from purrr:

https://github.com/tidyverse/purrr/blob/700ce1973aa2dac714b7fbbbc619ead0fe946b0d/src/map.c#L15-L18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants