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

Segfault when loading rcdk #37

Closed
eduardszoecs opened this issue Nov 15, 2016 · 5 comments
Closed

Segfault when loading rcdk #37

eduardszoecs opened this issue Nov 15, 2016 · 5 comments

Comments

@eduardszoecs
Copy link

eduardszoecs commented Nov 15, 2016

Using r-devel version I get a segfault when loading rcdk.
See also the CRAN checks.

sessionInfo()
R Under development (unstable) (2016-11-14 r71659)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.1 LTS

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

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

other attached packages:
[1] clisymbols_1.0.0 prompt_1.0.0     gitty_1.0.0     

loaded via a namespace (and not attached):
[1] compiler_3.4.0 parr_3.3.0     whisker_0.3-2  crayon_1.3.2   memuse_3.0-1 

Note, that there are no problems under current R:

❯ library(rcdk)
Loading required package: fingerprint

❯ sessionInfo()
R version 3.3.2 (2016-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.1 LTS

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

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

other attached packages:
[1] rcdk_3.3.6        fingerprint_3.5.4 clisymbols_1.0.0  prompt_1.0.0     
[5] gitty_1.0.0      

loaded via a namespace (and not attached):
 [1] parr_3.3.0      parallel_3.3.2  whisker_0.3-2   crayon_1.3.2   
 [5] rcdklibs_1.5.13 memuse_3.0-1    iterators_1.0.8 itertools_0.1-3
 [9] rJava_0.9-8     png_0.1-7      

I don't see this, when running on Travis-CI, which runs R-devel on Ubuntu 12.04 LTS.
Maybe it something with my installation... Investigating...
Maybe a different jdk version
openjdk version "1.8.0_111"
vs
oraclejdk8

Nope. Segfault also with oracle.

@eduardszoecs
Copy link
Author

eduardszoecs commented Nov 18, 2016

Running r-dev as sudo works...

@eduardszoecs
Copy link
Author

eduardszoecs commented Nov 18, 2016

Problems arises from .jinit used in .onLoad. Checking rJava now.
.jinit seems to work?!

@eduardszoecs
Copy link
Author

eduardszoecs commented Nov 20, 2016

Maybe it's a problem with my R-devel...

@rajarshi
Copy link
Collaborator

I don't have an extra machine available to test out r-devel, but it sounds like a combination of a local java issue and an r-devel issue. Have you tried rerunning sudo R CMD javareconf and reinstalling rJava and see if that resolved the problem?

@eduardszoecs
Copy link
Author

eduardszoecs commented Nov 25, 2016 via email

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