已损坏的双重链接列表

时间:2015-06-03 03:34:06

标签: r ggplot2 parallel-processing

我在R中并行运行分析。分析本身运行没有问题。我最近添加了一个参数来确定在每个节点中,代码是否在每次分析迭代结束时生成图形。这引入了一个新错误:

Error in unserialize(socklist[[n]]) : error reading from connection

每个节点的日志文件表示在绘图期间发生此错误。我尝试了对代码的轻微修改,但随着工作的出现,出现了更多的错误。

*** Error in `/usr/lib/R/bin/exec/R': free(): invalid pointer: 0x0000000000a9eaa8 ***
*** Error in `/usr/lib/R/bin/exec/R': corrupted double-linked list: 0x00007f5c3338f5e0 ***
*** Error in `/usr/lib/R/bin/exec/R': free(): invalid pointer: 0x000000000070daa8 ***
*** Error in `/usr/lib/R/bin/exec/R': double free or corruption (!prev): 0x00007f365231d220 ***    

谷歌搜索表明这些错误与ggplot2函数底层的C ++代码有关,但我不知道如何开始调试R引用的编译C ++代码。

目前,我无法使用最小的示例复制错误。这个要点提供了我正在做什么/密谋的想法:https://gist.github.com/ElizabethAB/9dfc377eb7b2773c3d6e

请参阅下面的会话信息。

> sessionInfo()
R version 3.2.0 (2015-04-16)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.2 LTS

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               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    LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

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

other attached packages:
 [1] GGally_0.5.0        ggmap_2.4           boot_1.3-15         snow_0.3-13         MASS_7.3-40         caret_6.0-47       
 [7] ggplot2_1.0.1       lattice_0.20-31     rgdal_0.9-3         sp_1.1-0            reshape2_1.4.1.9000 dplyr_0.4.1.9000   
[13] plyr_1.8.2.9000     stringr_1.0.0.9000 

loaded via a namespace (and not attached):
 [1] Rcpp_0.11.6         nloptr_1.0.4        iterators_1.0.7     tools_3.2.0         digest_0.6.8        lme4_1.1-7         
 [7] nlme_3.1-120        gtable_0.1.2        mgcv_1.8-6          png_0.1-7           Matrix_1.2-0        foreach_1.4.2      
[13] DBI_0.3.1           mapproj_1.2-2       brglm_0.5-9         SparseM_1.6         proto_0.3-10        BradleyTerry2_1.0-6
[19] maps_2.3-9          RgoogleMaps_1.2.0.7 gtools_3.5.0        grid_3.2.0          nnet_7.3-9          reshape_0.8.5      
[25] R6_2.0.1            jpeg_0.1-8          RJSONIO_1.3-0       minqa_1.2.4         car_2.0-25          magrittr_1.5       
[31] scales_0.2.4        codetools_0.2-11    splines_3.2.0       assertthat_0.1      pbkrtest_0.4-2      geosphere_1.3-13   
[37] colorspace_1.2-6    labeling_0.3        quantreg_5.11       stringi_0.4-1       lazyeval_0.1.10     munsell_0.4.2      
[43] rjson_0.2.15       

我的解决方案

我卸载了ggplot2并从源代码重新安装。这解决了这个问题。

0 个答案:

没有答案