[R-SIG-Mac] ast2ast: bus error on r-oldrel-macos-x86_64 only, not reproducible

Prof Brian Ripley r|p|eybd @end|ng |rom |c|oud@com
Tue Oct 27 08:38:21 CET 2026


On 27/10/2026 05:26, Konrad Krämer via R-SIG-Mac wrote:
> Dear all,
> the CRAN checks of ast2ast 1.1.1 show a bus error on r-oldrel-macos-x86_64 only. All other flavors are OK, including both arm64 flavors. The crash happens in inst/tinytest/test_range_type.R, inside a function compiled at test time:
>    f <- function(n) {
>      argtypes(n |> type(int))
>      i <- 1L:n
>      s <- 0L
>      for (r in 1L:3L) {
>        for (v in i) s <- s + v
>        i <- i + 1L
>      }
>      return(s)
>    }
>    fcpp <- ast2ast::translate(f)
>    fcpp(4L)
>    *** caught bus error ***
>    address 0x7ff811a46993, cause 'non-existent physical address'
> 
> What I tried, without being able to reproduce it:
>    - ASan/UBSan (local Ubuntu, R-hub), valgrind, clang + libc++
>    - GitHub Actions macos-15-intel (Xcode 16.4, Apple clang 17), R 4.5.3 and R release: the full test suite and R CMD check --as-cran both pass The mac builder only offers R-devel, so I can't test the oldrel x86_64 setup there.

As far as I am aware macbuilder is only for arm64 Macs, and the 
submission page does say

"same setup and available packages as the CRAN M1 build machine."
> Does anybody have advice on how I could set up a test environment to reproduce the error?It would also be helpful to know which macOS/Xcode version the r-oldrel-macos-x86_64 machine is using.

It would be helpful if people read the documentation we provide!

Click on the hyperlink on that line on the results page, which leads you to
https://cran.r-project.org/web/checks/check_flavors.html#r-oldrel-macos-x86_64

-- 
Brian D. Ripley,                  ripleybd using icloud.com
Emeritus Professor of Applied Statistics, University of Oxford



More information about the R-SIG-Mac mailing list