https://bugs.kde.org/show_bug.cgi?id=435493
            Bug ID: 435493
           Summary: Cannot create 'R_TempDir' under
                    valgrind-3.17.0.GIT-lbmacos
           Product: valgrind
           Version: unspecified
          Platform: Homebrew (macOS)
                OS: macOS
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: memcheck
          Assignee: jsew...@acm.org
          Reporter: wan...@live.unc.edu
  Target Milestone: ---

Created attachment 137422
  --> https://bugs.kde.org/attachment.cgi?id=137422&action=edit
Detailed check results

SUMMARY

I am trying to check my R package with valgrind and get a Fatal error: cannot
create 'R_TempDir'. I have checked that the /tmp is not full and I have changed
TMP to a folder where Everyone has full control in .Renviron. I tried several
packages available on CRAN without errors but the problem always exists.



* using log directory ‘XXX’
* using R version 4.0.2 (2020-06-22)
* using platform: x86_64-apple-darwin17.0 (64-bit)
* using session charset: UTF-8
* using options ‘--use-valgrind --as-cran’
* checking for file ‘BET/DESCRIPTION’ ... OK
* checking extension type ... Package
* this is package ‘BET’ version ‘0.3.4’
* package encoding: UTF-8
* checking CRAN incoming feasibility ... WARNING
Maintainer: ‘Wan Zhang <wan...@live.unc.edu>’

Insufficient package version (submitted: 0.3.4, existing: 0.3.5)

Days since last update: 5
Number of updates in past 6 months: 8
* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for executable files ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking for sufficient/correct file permissions ... OK
* checking whether package ‘BET’ can be installed ... OK
* checking installed package size ... OK
* checking package directory ... OK
* checking for future file timestamps ... OK
* checking DESCRIPTION meta-information ... OK
* checking top-level files ... OK
* checking for left-over files ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking R files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* checking whether the package can be loaded ... OK
* checking whether the package can be loaded with stated dependencies ... OK
* checking whether the package can be unloaded cleanly ... OK
* checking whether the namespace can be loaded with stated dependencies ... OK
* checking whether the namespace can be unloaded cleanly ... OK
* checking use of S3 registration ... OK
* checking dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... OK
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd line widths ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... OK
* checking contents of ‘data’ directory ... OK
* checking data for non-ASCII characters ... OK
* checking data for ASCII and uncompressed saves ... OK
* checking line endings in C/C++/Fortran sources/headers ... OK
* checking line endings in Makefiles ... OK
* checking compilation flags in Makevars ... OK
* checking for GNU extensions in Makefiles ... OK
* checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
* checking use of PKG_*FLAGS in Makefiles ... OK
* checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK
* checking pragmas in C/C++ headers and code ... OK
* checking compilation flags used ... OK
* checking compiled code ... OK
* checking examples ... ERROR
Running examples in ‘BET-Ex.R’ failed
The error occurred in:

==69341== Memcheck, a memory error detector
==69341== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==69341== Using Valgrind-3.17.0.GIT-lbmacos and LibVEX; rerun with -h for
copyright info
==69341== Command: /Library/Frameworks/R.framework/Resources/bin/exec/R
--vanilla --encoding=UTF-8
==69341== 
==69341== Warning: set address range perms: large range [0x7fff200d3000,
0x80001fed3000) (defined)
==69341== Warning: set address range perms: large range [0x7fff200d3000,
0x7fff7fd8b000) (defined)
==69341== Warning: set address range perms: large range [0x7fff8e03f000,
0x7fffc00d3000) (noaccess)
==69341== Warning: set address range perms: large range [0x7fffc00d3000,
0x7fffe2363000) (defined)
==69341== Warning: set address range perms: large range [0x7fffe2363000,
0x7fffffe00000) (noaccess)
--69341-- WARNING: unhandled amd64-darwin syscall: unix:475
--69341-- You may be able to write your own handler.
--69341-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
--69341-- Nevertheless we consider this a bug.  Please report
--69341-- it at http://valgrind.org/support/bug_reports.html.
Fatal error: cannot create 'R_TempDir'
==69341== 
==69341== HEAP SUMMARY:
==69341==     in use at exit: 0 bytes in 0 blocks
==69341==   total heap usage: 0 allocs, 0 frees, 0 bytes allocated
==69341== 
==69341== All heap blocks were freed -- no leaks are possible
==69341== 
==69341== For lists of detected and suppressed errors, rerun with: -s
==69341== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
* checking PDF version of manual ... OK
* checking for non-standard things in the check directory ... OK
* checking for detritus in the temp directory ... OK
* DONE
Status: 1 ERROR, 1 WARNING



STEPS TO REPRODUCE
1. R CMD check --as-cran --use-valgrind BET_0.3.4.tar.gz
2. 
3. 

OBSERVED RESULT
--69341-- WARNING: unhandled amd64-darwin syscall: unix:475
--69341-- You may be able to write your own handler.
--69341-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
--69341-- Nevertheless we consider this a bug.  Please report
--69341-- it at http://valgrind.org/support/bug_reports.html.
Fatal error: cannot create 'R_TempDir'


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: Big Sur Version 11.2.3
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to