捕获的段错误地址0xee6aff,导致RJDBC包上的“内存未映射”

时间:2018-09-21 16:55:03

标签: r jdbc rjdbc

最近将我的r版本从3.3.0更新到了3.5.1。我有一个用RMarkdown编写的报告,当我尝试运行选定的代码时遇到了这个问题。但是编织时不会显示任何错误。在R studio中,它只会显示R会话已中止,但是在R控制台中,它会显示以下错误。 我加载库(RJDBC)后运行的代码

drv<-JDBC("com.microsoft.sqlserver.jdbc.SQLServerDriver", "1_jars/mssql-jdbc-6.4.0.jre9.jar", identifier.quote = "'")

错误

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

Traceback:
1: .jinit(classPath)
2: JDBC("com.microsoft.sqlserver.jdbc.SQLServerDriver", "1_jars/mssql->  jdbc-6.4.0.jre9.jar",     identifier.quote = "'")

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

sessioninfo的附件如下(在库(RJDBC)之前)

sessionInfo()

R version 3.5.1 (2018-07-02)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Sierra 10.12.6

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
>LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

loaded via a namespace (and not attached):
[1] compiler_3.5.1 tools_3.5.1    yaml_2.2.0  

加载库后的会话信息

library(RJDBC)
Loading required package: DBI
Loading required package: rJava
sessionInfo()

R version 3.5.1 (2018-07-02)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Sierra 10.12.6

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

other attached packages:
[1] RJDBC_0.2-7.1 rJava_0.9-10  DBI_1.0.0    

loaded via a namespace (and not attached):
[1] compiler_3.5.1 tools_3.5.1    yaml_2.2.0 

0 个答案:

没有答案