-
Notifications
You must be signed in to change notification settings - Fork 60
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
Segfault with NULLs #438
Comments
This may have to do with the fact I'm running on a docker image, so I think when |
Same as #264 |
Fixed in wget https://github.com/libgit2/libgit2/archive/refs/tags/v1.3.0.tar.gz
mkdir build && cd build
cmake ..
cmake --build .
sudo make install
R -e 'install.packages("git2r", type = "source")'
path = "~/targets-minimal-original/"
git2r::libgit2_features()
#> $threads
#> [1] TRUE
#>
#> $https
#> [1] TRUE
#>
#> $ssh
#> [1] TRUE
git2r::libgit2_version()
#> $major
#> [1] 1
#>
#> $minor
#> [1] 3
#>
#> $rev
#> [1] 0
ssh_cred = git2r::cred_ssh_key()
repo = git2r::init(path = path)
git2r::remote_ls("origin", repo = repo)
#> HEAD
#> "f699789c97a350c1106a661a524672fc6816a4c2"
#> refs/heads/main
#> "f699789c97a350c1106a661a524672fc6816a4c2"
#> refs/heads/targets-runs
#> "00c523c790332bfd9ebf3690889cc2e124e653f5"
#> refs/pull/5/head
#> "d358f04517b2a2b66a7d39c1f798515359e6b98c"
#> refs/pull/6/head
#> "aa0b0e7f34bd16479065e524b571f84107aff006"
#> refs/tags/0.0.1
#> "3a2269f707a9dbfeb9ff8eddd41b63efcf643b15" Created on 2022-02-10 by the reprex package (v2.0.1) Session infosessioninfo::session_info()
#> Warning in system("timedatectl", intern = TRUE): running command 'timedatectl'
#> had status 1
#> ─ Session info ───────────────────────────────────────────────────────────────
#> setting value
#> version R version 4.1.2 (2021-11-01)
#> os Debian GNU/Linux 10 (buster)
#> system x86_64, linux-gnu
#> ui X11
#> language (EN)
#> collate C.UTF-8
#> ctype C.UTF-8
#> tz Etc/UTC
#> date 2022-02-10
#> pandoc 2.14.0.3 @ /usr/lib/rstudio-server/bin/pandoc/ (via rmarkdown)
#>
#> ─ Packages ───────────────────────────────────────────────────────────────────
#> package * version date (UTC) lib source
#> cli 3.1.1.9000 2022-02-09 [1] Github (r-lib/cli@00d1770)
#> digest 0.6.29 2021-12-01 [1] CRAN (R 4.1.2)
#> evaluate 0.14 2019-05-28 [1] CRAN (R 4.1.2)
#> fastmap 1.1.0 2021-01-25 [1] CRAN (R 4.1.2)
#> fs 1.5.2 2021-12-08 [1] CRAN (R 4.1.2)
#> git2r 0.29.0 2021-11-22 [1] CRAN (R 4.1.2)
#> glue 1.6.1 2022-01-22 [1] CRAN (R 4.1.2)
#> highr 0.9 2021-04-16 [1] CRAN (R 4.1.2)
#> htmltools 0.5.2 2021-08-25 [1] CRAN (R 4.1.0)
#> knitr 1.37 2021-12-16 [1] CRAN (R 4.1.2)
#> lifecycle 1.0.1 2021-09-24 [1] CRAN (R 4.1.0)
#> magrittr 2.0.2 2022-01-26 [1] CRAN (R 4.1.2)
#> reprex 2.0.1 2021-08-05 [1] CRAN (R 4.1.0)
#> rlang 1.0.1 2022-02-03 [1] CRAN (R 4.1.2)
#> rmarkdown 2.11 2021-09-14 [1] CRAN (R 4.1.0)
#> rstudioapi 0.13 2020-11-12 [1] CRAN (R 4.1.2)
#> sessioninfo 1.2.2.9000 2022-02-10 [1] Github (r-lib/sessioninfo@6c683ac)
#> stringi 1.7.6 2021-11-29 [1] CRAN (R 4.1.0)
#> stringr 1.4.0.9000 2021-12-14 [1] xgit ([email protected]:tidyverse/stringr.git@dd909b7)
#> vctrs 0.3.8 2021-04-29 [1] CRAN (R 4.1.2)
#> withr 2.4.3 2021-11-30 [1] CRAN (R 4.1.0)
#> xfun 0.29 2021-12-14 [1] CRAN (R 4.1.2)
#> yaml 2.2.2 2022-01-25 [1] CRAN (R 4.1.2)
#>
#> [1] /home/jupyter/.R/library
#> [2] /usr/local/lib/R/site-library
#> [3] /usr/lib/R/site-library
#> [4] /usr/lib/R/library
#>
#> ────────────────────────────────────────────────────────────────────────────── |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't know why I get a segault here exactly, but I boiled it down to the case where you have a URL and
NULL
for credentials and repo. I ran into this when usingremotes::install_bioc
test.Libgit2 version
Created on 2022-02-10 by the reprex package (v2.0.1)
Session info
Code that segfaults
Output of Segfault
This reprex appears to crash R.
See standard output and standard error for more details.
Standard output and error
The text was updated successfully, but these errors were encountered: