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

remote_ls segfault error #264

Open
jarodmeng opened this issue Nov 17, 2016 · 2 comments
Open

remote_ls segfault error #264

jarodmeng opened this issue Nov 17, 2016 · 2 comments

Comments

@jarodmeng
Copy link

When I tried to use remote_ls, it incurred a segfault error.

> library(git2r); sessionInfo(); remote_ls("https://github.com/ropensci/git2r")
R version 3.2.2 (2015-08-14)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.5 LTS

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] git2r_0.15.0

loaded via a namespace (and not attached):
[1] gmotd_1.0

 *** caught segfault ***
address 0x2, cause 'memory not mapped'

Traceback:
 1: .Call(git2r_remote_ls, name, repo, credentials)
 2: remote_ls("https://github.com/ropensci/git2r")
 3: remote_ls("https://github.com/ropensci/git2r")

Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
@stewid
Copy link
Member

stewid commented Nov 20, 2016

@jarodmeng Thanks for reporting the issue. I'm not able to reproduce it on my machine, and have therefore not found the reason for the segfault yet. What's the output from libgit2_features() on your machine?

Output on my machine

library(git2r); sessionInfo(); remote_ls("https://github.com/ropensci/git2r")
R version 3.3.2 (2016-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04 LTS

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=sv_SE.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=sv_SE.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=sv_SE.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] git2r_0.15.0
                                      HEAD 
"618a930ef2acb800112baf2c32acb1712a5ea74b" 
            refs/heads/add_gitstamp_method 
"737703b8856882be50fb75e8f7a0370d8b073c1c" 
                     refs/heads/fr_commits 
"2bb1d1c95d3461f7ef6984829553b2ccf176e56d" 
                         refs/heads/master 
"618a930ef2acb800112baf2c32acb1712a5ea74b" 
   refs/heads/respect_http_sslverify_false 
"244e10392cf518183017ad3803977c2e3ba453f3" 
                        refs/pull/102/head 
"0a5816e799e7c0e70023ed58f7344dc7dc8892a6" 
                       refs/pull/102/merge 
"c58bec7e4b8a0ad710a22c8170918be6e2e8947b" 
                        refs/pull/104/head 
"a71940f7a1b02b55a87fc31b3afcb86a2bcce03f" 
                        refs/pull/136/head 
"9fae57114a9d489fcbba9c8df0cc20a364cb6a10" 
                       refs/pull/136/merge 
"0ee0b3ff3a291f5479b057a4a128619dc9c4ce1a" 
                        refs/pull/143/head 
"03c62b8f4bc13091d7b747d5c456c5ed0d79c2b7" 
                        refs/pull/146/head 
"901f0aeadbc6361e4496e86e5ec212b077c2a7c2" 
                        refs/pull/163/head 
"94ac9fea4a7029a9e0a497fe14018ef575749cfc" 
                         refs/pull/17/head 
"c9c41af0eb74e574fbf0bf4fc98dabe412041efa" 
                        refs/pull/171/head 
"9c2a1ac901ab8a623eeeb3a168d5ea549099f193" 
                        refs/pull/172/head 
"5b2067d355affdbc9ca6530332fedde0d811e008" 
                        refs/pull/175/head 
"5730cec0ceeeab03a3c81c9d759950fa623efcee" 
                        refs/pull/184/head 
"7414c11333f479d33e9fa62a47875adc25f59308" 
                        refs/pull/189/head 
"803119ac4cc8c23e987f7d264a5b829d72249b17" 
                        refs/pull/190/head 
"b68891a3a156a7381e6d5f56d199c57612f3fe5e" 
                        refs/pull/194/head 
"aa7954353252ab5a1fd379f10fc2fe071b2178f7" 
                        refs/pull/196/head 
"25e40589cab5c3733ba3bd3e73047bac723e6916" 
                        refs/pull/199/head 
"dea5a48c99853aae2f996429a46c0f23addd61eb" 
                         refs/pull/20/head 
"dd2ce0fc6f12064c5ba2a9422bd14178aa3e2617" 
                        refs/pull/210/head 
"107d7ac82f75b931e550b8bd8a0d1894738873ed" 
                        refs/pull/211/head 
"305817840d743d62ce9892006f9d5c6953cc60aa" 
                        refs/pull/225/head 
"b009a6b5e5a98dd0b265f326f14a80043f7a96d4" 
                        refs/pull/226/head 
"0683c6f20af80094ec6c49b590187f36a8ef0f84" 
                        refs/pull/228/head 
"bfcee03c400547c35027957d14c61d93dc66d188" 
                        refs/pull/231/head 
"2a8cb7dd5c1df40331de33f4e22f9a6bb58658f0" 
                        refs/pull/243/head 
"453de6358dc29ee653d47d9391c688c1861cb05d" 
                        refs/pull/254/head 
"139b62b7a65809c7446bb5d6b5a3c950445c23ac" 
                         refs/pull/30/head 
"ba7466f836816ade63cdcc8fc69df7c3fd6ad414" 
                         refs/pull/33/head 
"9af6f69d04ed912a7747a9c3c74853935e14304d" 
                         refs/pull/34/head 
"0dc11040dbfb103bf98f80564f8dbe0b2422b516" 
                         refs/pull/36/head 
"1cd37760f5c0512ad12d18d2b85561f323fed9c1" 
                          refs/pull/4/head 
"9089f6d756e27d89771f59cc5e5c2cd4cd759f3f" 
                         refs/pull/41/head 
"14b0bae91eaea3e3f926a20acd1eeed06c856bee" 
                         refs/pull/46/head 
"7e50bbbf48f123981e04cab891ad2494c1037741" 
                          refs/pull/5/head 
"1dda04a0f375669c3bdd218a844ad51622d2a375" 
                          refs/pull/6/head 
"384d3a74504e96f5a828bc2d124cac5164968167" 
                         refs/pull/60/head 
"617ffe1440db98ad1e212059f1330a9540108979" 
                         refs/pull/66/head 
"19510531c805acda38374ef64a4fe0457d252f94" 
                         refs/pull/72/head 
"49411129137cd9518688aa5125c19b6fd07a6229" 
                         refs/pull/73/head 
"6f87a03b87f4242c1fb3f58ef8ee7348ffaaada3" 
                          refs/pull/9/head 
"a64614001e87dbb31fc253be830cbd87151e666d" 
                         refs/tags/v0.10.1 
"499b29d237ad42fc83633d442f1d766ec11e8b20" 
                      refs/tags/v0.10.1^{} 
"7c99aa2e0e039832c11f421a53e64e0977bc6356" 
                         refs/tags/v0.11.0 
"a566441390ceb87c1e21157d6981b316fd2539ce" 
                      refs/tags/v0.11.0^{} 
"dfdde1abb44064de577ad9fe02700e83fb21faae" 
                         refs/tags/v0.12.1 
"0d816f768e0305e2552ffcf8f977a96b3f497cf0" 
                      refs/tags/v0.12.1^{} 
"f698f3d530a8f01a2723b53b62be9ab8faf81779" 
                         refs/tags/v0.13.1 
"6984ed7cbd541c261b7ac8d7010456879b76417d" 
                      refs/tags/v0.13.1^{} 
"e05b13d58f0de0dcc03da7a7f0271faea49fd485" 
                         refs/tags/v0.14.0 
"f4bf345e7d4aa102432532358974ff30a011655d" 
                      refs/tags/v0.14.0^{} 
"b72faeb85542ef6a886cad96210d7b60b7022985" 
                         refs/tags/v0.15.0 
"fbf060b13d0f6cfee16a728b11435319dca2c829" 
                      refs/tags/v0.15.0^{} 
"8606d1706884d7aff4b8c68911f69ee2d17254c1" 
                            refs/tags/v0.6 
"1581219057c2a7d0d8556d388cb03d3f00eb99b3" 
                         refs/tags/v0.6^{} 
"3cef389bf6b3daca4cf939d1ab7fa628ef6e1a8f" 
                            refs/tags/v0.7 
"0db38e8631045370e61cb33516e5421101b9e477" 
                         refs/tags/v0.7^{} 
"63be9f2f8711401817ef9ffb94dc63e5f367e54f"

@jarodmeng
Copy link
Author

I tried re-install zlib, but the error still occurred.

> library(git2r)
> libgit2_features()
$threads
[1] FALSE

$https
[1] TRUE

$ssh
[1] FALSE

> sessionInfo()
R version 3.2.2 (2015-08-14)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.5 LTS

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] git2r_0.16.0   switchr_0.11.0

loaded via a namespace (and not attached):
[1] tools_3.2.2

> remote_ls("https://github.com/ropensci/git2r")

 *** caught segfault ***
address 0x2, cause 'memory not mapped'

Traceback:
 1: .Call(git2r_remote_ls, name, repo, credentials)
 2: remote_ls("https://github.com/ropensci/git2r")
 3: remote_ls("https://github.com/ropensci/git2r")

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