Valgrind/R is not working: “Fatal error: cannot create 'R_TempDir'”











up vote
1
down vote

favorite












First of all, I'm not really skilled with these kind of stuff, so I may write stupid question, please be kind ;-)



I have an R code that call a c++ code. Unfortunately, there is a problem with my code, probably memory not mapped, and i would like to use valgrind to try to understand where the error is.



I already use it a couple of years ago, but now it seems to not work. When I lunch the following command



R -d valgrind



I get this output



==69495== Memcheck, a memory error detector
==69495== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==69495== Using Valgrind-3.14.0.GIT and LibVEX; rerun with -h for copyright info
==69495== Command: /Library/Frameworks/R.framework/Resources/bin/exec/R
==69495==
==69495== Conditional jump or move depends on uninitialised value(s)
==69495== at 0x101472F31: ccaes_vng_ctr_crypt (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x101476D88: bcc_update (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x101476E2C: df_bcc_update (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x101476A15: df (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x101476631: nistctr_init (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x10147607B: init (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x101623C9E: arc4_init (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x101623B59: arc4random (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
==69495==
==69495== Conditional jump or move depends on uninitialised value(s)
==69495== at 0x101472F31: ccaes_vng_ctr_crypt (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x101476D88: bcc_update (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x101476EBC: df_bcc_update (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x101476A15: df (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x101476631: nistctr_init (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x10147607B: init (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x101623C9E: arc4_init (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x101623B59: arc4random (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
==69495==
==69495== Conditional jump or move depends on uninitialised value(s)
==69495== at 0x101472F31: ccaes_vng_ctr_crypt (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x101476D88: bcc_update (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x101476A6E: df (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x101476631: nistctr_init (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x10147607B: init (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x101623C9E: arc4_init (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x101623B59: arc4random (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
==69495==
==69495== Conditional jump or move depends on uninitialised value(s)
==69495== at 0x101472F31: ccaes_vng_ctr_crypt (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x101476B30: df (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x101476631: nistctr_init (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x10147607B: init (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x101623C9E: arc4_init (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x101623B59: arc4random (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
==69495==
==69495== Conditional jump or move depends on uninitialised value(s)
==69495== at 0x101476CBC: drbg_update (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x1014766AA: nistctr_init (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x10147607B: init (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x101623C9E: arc4_init (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x101623B59: arc4random (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
==69495==
==69495== Conditional jump or move depends on uninitialised value(s)
==69495== at 0x101472F31: ccaes_vng_ctr_crypt (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x10147621E: generate (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x101623B92: arc4random (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
==69495==
==69495== Conditional jump or move depends on uninitialised value(s)
==69495== at 0x101472F31: ccaes_vng_ctr_crypt (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x101476C3F: drbg_update (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x101476269: generate (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x101623B92: arc4random (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
==69495==
==69495== Conditional jump or move depends on uninitialised value(s)
==69495== at 0x101476C5C: drbg_update (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x101476269: generate (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x101623B92: arc4random (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
==69495==
==69495== Conditional jump or move depends on uninitialised value(s)
==69495== at 0x101476CBC: drbg_update (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x101476269: generate (in /usr/lib/system/libcorecrypto.dylib)
==69495== by 0x101623B92: arc4random (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
==69495==
==69495== Conditional jump or move depends on uninitialised value(s)
==69495== at 0x101623F86: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
==69495==
==69495== Use of uninitialised value of size 8
==69495== at 0x10163E768: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
==69495==
==69495== Conditional jump or move depends on uninitialised value(s)
==69495== at 0x10163E8BD: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
==69495==
--69495-- WARNING: unhandled amd64-darwin syscall: unix:475
--69495-- You may be able to write your own handler.
--69495-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
--69495-- Nevertheless we consider this a bug. Please report
--69495-- it at http://valgrind.org/support/bug_reports.html.
Fatal error: cannot create 'R_TempDir'
==69495==
==69495== HEAP SUMMARY:
==69495== in use at exit: 189,122 bytes in 408 blocks
==69495== total heap usage: 530 allocs, 122 frees, 504,429 bytes allocated
==69495==
==69495== LEAK SUMMARY:
==69495== definitely lost: 1,664 bytes in 26 blocks
==69495== indirectly lost: 0 bytes in 0 blocks
==69495== possibly lost: 456 bytes in 10 blocks
==69495== still reachable: 130,172 bytes in 237 blocks
==69495== suppressed: 56,830 bytes in 135 blocks
==69495== Rerun with --leak-check=full to see details of leaked memory
==69495==
==69495== For counts of detected and suppressed errors, rerun with: -v
==69495== Use --track-origins=yes to see where uninitialised values come from
==69495== ERROR SUMMARY: 30 errors from 12 contexts (suppressed: 1 from 1)


and R is then not loaded. I don't know how to solve it.
I know that the error "Fatal error: cannot create 'R_TempDir'" could mean that there is no more space on the hard drive, but this is not the case.



I'm on macbook pro, with High Sierra, and R 3.5.0










share|improve this question


























    up vote
    1
    down vote

    favorite












    First of all, I'm not really skilled with these kind of stuff, so I may write stupid question, please be kind ;-)



    I have an R code that call a c++ code. Unfortunately, there is a problem with my code, probably memory not mapped, and i would like to use valgrind to try to understand where the error is.



    I already use it a couple of years ago, but now it seems to not work. When I lunch the following command



    R -d valgrind



    I get this output



    ==69495== Memcheck, a memory error detector
    ==69495== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
    ==69495== Using Valgrind-3.14.0.GIT and LibVEX; rerun with -h for copyright info
    ==69495== Command: /Library/Frameworks/R.framework/Resources/bin/exec/R
    ==69495==
    ==69495== Conditional jump or move depends on uninitialised value(s)
    ==69495== at 0x101472F31: ccaes_vng_ctr_crypt (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x101476D88: bcc_update (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x101476E2C: df_bcc_update (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x101476A15: df (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x101476631: nistctr_init (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x10147607B: init (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x101623C9E: arc4_init (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x101623B59: arc4random (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
    ==69495==
    ==69495== Conditional jump or move depends on uninitialised value(s)
    ==69495== at 0x101472F31: ccaes_vng_ctr_crypt (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x101476D88: bcc_update (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x101476EBC: df_bcc_update (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x101476A15: df (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x101476631: nistctr_init (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x10147607B: init (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x101623C9E: arc4_init (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x101623B59: arc4random (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
    ==69495==
    ==69495== Conditional jump or move depends on uninitialised value(s)
    ==69495== at 0x101472F31: ccaes_vng_ctr_crypt (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x101476D88: bcc_update (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x101476A6E: df (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x101476631: nistctr_init (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x10147607B: init (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x101623C9E: arc4_init (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x101623B59: arc4random (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
    ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
    ==69495==
    ==69495== Conditional jump or move depends on uninitialised value(s)
    ==69495== at 0x101472F31: ccaes_vng_ctr_crypt (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x101476B30: df (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x101476631: nistctr_init (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x10147607B: init (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x101623C9E: arc4_init (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x101623B59: arc4random (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
    ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
    ==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
    ==69495==
    ==69495== Conditional jump or move depends on uninitialised value(s)
    ==69495== at 0x101476CBC: drbg_update (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x1014766AA: nistctr_init (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x10147607B: init (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x101623C9E: arc4_init (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x101623B59: arc4random (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
    ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
    ==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
    ==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
    ==69495==
    ==69495== Conditional jump or move depends on uninitialised value(s)
    ==69495== at 0x101472F31: ccaes_vng_ctr_crypt (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x10147621E: generate (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x101623B92: arc4random (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
    ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
    ==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
    ==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
    ==69495==
    ==69495== Conditional jump or move depends on uninitialised value(s)
    ==69495== at 0x101472F31: ccaes_vng_ctr_crypt (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x101476C3F: drbg_update (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x101476269: generate (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x101623B92: arc4random (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
    ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
    ==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
    ==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
    ==69495==
    ==69495== Conditional jump or move depends on uninitialised value(s)
    ==69495== at 0x101476C5C: drbg_update (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x101476269: generate (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x101623B92: arc4random (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
    ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
    ==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
    ==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
    ==69495==
    ==69495== Conditional jump or move depends on uninitialised value(s)
    ==69495== at 0x101476CBC: drbg_update (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x101476269: generate (in /usr/lib/system/libcorecrypto.dylib)
    ==69495== by 0x101623B92: arc4random (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
    ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
    ==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
    ==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
    ==69495==
    ==69495== Conditional jump or move depends on uninitialised value(s)
    ==69495== at 0x101623F86: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
    ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
    ==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
    ==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
    ==69495==
    ==69495== Use of uninitialised value of size 8
    ==69495== at 0x10163E768: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
    ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
    ==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
    ==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
    ==69495==
    ==69495== Conditional jump or move depends on uninitialised value(s)
    ==69495== at 0x10163E8BD: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
    ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
    ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
    ==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
    ==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
    ==69495==
    --69495-- WARNING: unhandled amd64-darwin syscall: unix:475
    --69495-- You may be able to write your own handler.
    --69495-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
    --69495-- Nevertheless we consider this a bug. Please report
    --69495-- it at http://valgrind.org/support/bug_reports.html.
    Fatal error: cannot create 'R_TempDir'
    ==69495==
    ==69495== HEAP SUMMARY:
    ==69495== in use at exit: 189,122 bytes in 408 blocks
    ==69495== total heap usage: 530 allocs, 122 frees, 504,429 bytes allocated
    ==69495==
    ==69495== LEAK SUMMARY:
    ==69495== definitely lost: 1,664 bytes in 26 blocks
    ==69495== indirectly lost: 0 bytes in 0 blocks
    ==69495== possibly lost: 456 bytes in 10 blocks
    ==69495== still reachable: 130,172 bytes in 237 blocks
    ==69495== suppressed: 56,830 bytes in 135 blocks
    ==69495== Rerun with --leak-check=full to see details of leaked memory
    ==69495==
    ==69495== For counts of detected and suppressed errors, rerun with: -v
    ==69495== Use --track-origins=yes to see where uninitialised values come from
    ==69495== ERROR SUMMARY: 30 errors from 12 contexts (suppressed: 1 from 1)


    and R is then not loaded. I don't know how to solve it.
    I know that the error "Fatal error: cannot create 'R_TempDir'" could mean that there is no more space on the hard drive, but this is not the case.



    I'm on macbook pro, with High Sierra, and R 3.5.0










    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      First of all, I'm not really skilled with these kind of stuff, so I may write stupid question, please be kind ;-)



      I have an R code that call a c++ code. Unfortunately, there is a problem with my code, probably memory not mapped, and i would like to use valgrind to try to understand where the error is.



      I already use it a couple of years ago, but now it seems to not work. When I lunch the following command



      R -d valgrind



      I get this output



      ==69495== Memcheck, a memory error detector
      ==69495== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
      ==69495== Using Valgrind-3.14.0.GIT and LibVEX; rerun with -h for copyright info
      ==69495== Command: /Library/Frameworks/R.framework/Resources/bin/exec/R
      ==69495==
      ==69495== Conditional jump or move depends on uninitialised value(s)
      ==69495== at 0x101472F31: ccaes_vng_ctr_crypt (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476D88: bcc_update (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476E2C: df_bcc_update (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476A15: df (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476631: nistctr_init (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x10147607B: init (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101623C9E: arc4_init (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x101623B59: arc4random (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
      ==69495==
      ==69495== Conditional jump or move depends on uninitialised value(s)
      ==69495== at 0x101472F31: ccaes_vng_ctr_crypt (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476D88: bcc_update (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476EBC: df_bcc_update (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476A15: df (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476631: nistctr_init (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x10147607B: init (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101623C9E: arc4_init (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x101623B59: arc4random (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
      ==69495==
      ==69495== Conditional jump or move depends on uninitialised value(s)
      ==69495== at 0x101472F31: ccaes_vng_ctr_crypt (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476D88: bcc_update (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476A6E: df (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476631: nistctr_init (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x10147607B: init (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101623C9E: arc4_init (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x101623B59: arc4random (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
      ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
      ==69495==
      ==69495== Conditional jump or move depends on uninitialised value(s)
      ==69495== at 0x101472F31: ccaes_vng_ctr_crypt (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476B30: df (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476631: nistctr_init (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x10147607B: init (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101623C9E: arc4_init (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x101623B59: arc4random (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
      ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
      ==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
      ==69495==
      ==69495== Conditional jump or move depends on uninitialised value(s)
      ==69495== at 0x101476CBC: drbg_update (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x1014766AA: nistctr_init (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x10147607B: init (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101623C9E: arc4_init (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x101623B59: arc4random (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
      ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
      ==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
      ==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
      ==69495==
      ==69495== Conditional jump or move depends on uninitialised value(s)
      ==69495== at 0x101472F31: ccaes_vng_ctr_crypt (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x10147621E: generate (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101623B92: arc4random (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
      ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
      ==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
      ==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
      ==69495==
      ==69495== Conditional jump or move depends on uninitialised value(s)
      ==69495== at 0x101472F31: ccaes_vng_ctr_crypt (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476C3F: drbg_update (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476269: generate (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101623B92: arc4random (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
      ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
      ==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
      ==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
      ==69495==
      ==69495== Conditional jump or move depends on uninitialised value(s)
      ==69495== at 0x101476C5C: drbg_update (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476269: generate (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101623B92: arc4random (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
      ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
      ==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
      ==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
      ==69495==
      ==69495== Conditional jump or move depends on uninitialised value(s)
      ==69495== at 0x101476CBC: drbg_update (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476269: generate (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101623B92: arc4random (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
      ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
      ==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
      ==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
      ==69495==
      ==69495== Conditional jump or move depends on uninitialised value(s)
      ==69495== at 0x101623F86: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
      ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
      ==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
      ==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
      ==69495==
      ==69495== Use of uninitialised value of size 8
      ==69495== at 0x10163E768: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
      ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
      ==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
      ==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
      ==69495==
      ==69495== Conditional jump or move depends on uninitialised value(s)
      ==69495== at 0x10163E8BD: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
      ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
      ==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
      ==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
      ==69495==
      --69495-- WARNING: unhandled amd64-darwin syscall: unix:475
      --69495-- You may be able to write your own handler.
      --69495-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
      --69495-- Nevertheless we consider this a bug. Please report
      --69495-- it at http://valgrind.org/support/bug_reports.html.
      Fatal error: cannot create 'R_TempDir'
      ==69495==
      ==69495== HEAP SUMMARY:
      ==69495== in use at exit: 189,122 bytes in 408 blocks
      ==69495== total heap usage: 530 allocs, 122 frees, 504,429 bytes allocated
      ==69495==
      ==69495== LEAK SUMMARY:
      ==69495== definitely lost: 1,664 bytes in 26 blocks
      ==69495== indirectly lost: 0 bytes in 0 blocks
      ==69495== possibly lost: 456 bytes in 10 blocks
      ==69495== still reachable: 130,172 bytes in 237 blocks
      ==69495== suppressed: 56,830 bytes in 135 blocks
      ==69495== Rerun with --leak-check=full to see details of leaked memory
      ==69495==
      ==69495== For counts of detected and suppressed errors, rerun with: -v
      ==69495== Use --track-origins=yes to see where uninitialised values come from
      ==69495== ERROR SUMMARY: 30 errors from 12 contexts (suppressed: 1 from 1)


      and R is then not loaded. I don't know how to solve it.
      I know that the error "Fatal error: cannot create 'R_TempDir'" could mean that there is no more space on the hard drive, but this is not the case.



      I'm on macbook pro, with High Sierra, and R 3.5.0










      share|improve this question













      First of all, I'm not really skilled with these kind of stuff, so I may write stupid question, please be kind ;-)



      I have an R code that call a c++ code. Unfortunately, there is a problem with my code, probably memory not mapped, and i would like to use valgrind to try to understand where the error is.



      I already use it a couple of years ago, but now it seems to not work. When I lunch the following command



      R -d valgrind



      I get this output



      ==69495== Memcheck, a memory error detector
      ==69495== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
      ==69495== Using Valgrind-3.14.0.GIT and LibVEX; rerun with -h for copyright info
      ==69495== Command: /Library/Frameworks/R.framework/Resources/bin/exec/R
      ==69495==
      ==69495== Conditional jump or move depends on uninitialised value(s)
      ==69495== at 0x101472F31: ccaes_vng_ctr_crypt (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476D88: bcc_update (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476E2C: df_bcc_update (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476A15: df (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476631: nistctr_init (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x10147607B: init (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101623C9E: arc4_init (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x101623B59: arc4random (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
      ==69495==
      ==69495== Conditional jump or move depends on uninitialised value(s)
      ==69495== at 0x101472F31: ccaes_vng_ctr_crypt (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476D88: bcc_update (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476EBC: df_bcc_update (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476A15: df (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476631: nistctr_init (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x10147607B: init (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101623C9E: arc4_init (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x101623B59: arc4random (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
      ==69495==
      ==69495== Conditional jump or move depends on uninitialised value(s)
      ==69495== at 0x101472F31: ccaes_vng_ctr_crypt (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476D88: bcc_update (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476A6E: df (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476631: nistctr_init (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x10147607B: init (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101623C9E: arc4_init (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x101623B59: arc4random (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
      ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
      ==69495==
      ==69495== Conditional jump or move depends on uninitialised value(s)
      ==69495== at 0x101472F31: ccaes_vng_ctr_crypt (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476B30: df (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476631: nistctr_init (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x10147607B: init (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101623C9E: arc4_init (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x101623B59: arc4random (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
      ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
      ==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
      ==69495==
      ==69495== Conditional jump or move depends on uninitialised value(s)
      ==69495== at 0x101476CBC: drbg_update (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x1014766AA: nistctr_init (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x10147607B: init (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101623C9E: arc4_init (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x101623B59: arc4random (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
      ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
      ==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
      ==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
      ==69495==
      ==69495== Conditional jump or move depends on uninitialised value(s)
      ==69495== at 0x101472F31: ccaes_vng_ctr_crypt (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x10147621E: generate (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101623B92: arc4random (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
      ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
      ==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
      ==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
      ==69495==
      ==69495== Conditional jump or move depends on uninitialised value(s)
      ==69495== at 0x101472F31: ccaes_vng_ctr_crypt (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476C3F: drbg_update (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476269: generate (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101623B92: arc4random (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
      ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
      ==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
      ==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
      ==69495==
      ==69495== Conditional jump or move depends on uninitialised value(s)
      ==69495== at 0x101476C5C: drbg_update (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476269: generate (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101623B92: arc4random (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
      ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
      ==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
      ==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
      ==69495==
      ==69495== Conditional jump or move depends on uninitialised value(s)
      ==69495== at 0x101476CBC: drbg_update (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101476269: generate (in /usr/lib/system/libcorecrypto.dylib)
      ==69495== by 0x101623B92: arc4random (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x101623F7D: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
      ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
      ==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
      ==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
      ==69495==
      ==69495== Conditional jump or move depends on uninitialised value(s)
      ==69495== at 0x101623F86: arc4random_uniform (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163E765: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
      ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
      ==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
      ==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
      ==69495==
      ==69495== Use of uninitialised value of size 8
      ==69495== at 0x10163E768: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
      ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
      ==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
      ==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
      ==69495==
      ==69495== Conditional jump or move depends on uninitialised value(s)
      ==69495== at 0x10163E8BD: find_temp_path (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x10163EABF: mkdtemp (in /usr/lib/system/libsystem_c.dylib)
      ==69495== by 0x1002418CE: R_reInitTempDir (sysutils.c:1662)
      ==69495== by 0x1001B29AE: setup_Rmainloop (main.c:841)
      ==69495== by 0x1001B3558: Rf_mainloop (main.c:1088)
      ==69495== by 0x100000F5A: main (in /Library/Frameworks/R.framework/Resources/bin/exec/R)
      ==69495==
      --69495-- WARNING: unhandled amd64-darwin syscall: unix:475
      --69495-- You may be able to write your own handler.
      --69495-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
      --69495-- Nevertheless we consider this a bug. Please report
      --69495-- it at http://valgrind.org/support/bug_reports.html.
      Fatal error: cannot create 'R_TempDir'
      ==69495==
      ==69495== HEAP SUMMARY:
      ==69495== in use at exit: 189,122 bytes in 408 blocks
      ==69495== total heap usage: 530 allocs, 122 frees, 504,429 bytes allocated
      ==69495==
      ==69495== LEAK SUMMARY:
      ==69495== definitely lost: 1,664 bytes in 26 blocks
      ==69495== indirectly lost: 0 bytes in 0 blocks
      ==69495== possibly lost: 456 bytes in 10 blocks
      ==69495== still reachable: 130,172 bytes in 237 blocks
      ==69495== suppressed: 56,830 bytes in 135 blocks
      ==69495== Rerun with --leak-check=full to see details of leaked memory
      ==69495==
      ==69495== For counts of detected and suppressed errors, rerun with: -v
      ==69495== Use --track-origins=yes to see where uninitialised values come from
      ==69495== ERROR SUMMARY: 30 errors from 12 contexts (suppressed: 1 from 1)


      and R is then not loaded. I don't know how to solve it.
      I know that the error "Fatal error: cannot create 'R_TempDir'" could mean that there is no more space on the hard drive, but this is not the case.



      I'm on macbook pro, with High Sierra, and R 3.5.0







      r debugging valgrind osx-high-sierra






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 19 at 11:42









      niandra82

      15610




      15610
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Valgrind produces an error message telling that the unix:475 syscall is not handled.



          In such a case, it reports to the guest application that the syscall failed,
          with errno ENOSYS.



          Syscall 475 on darwin is the mkdirat syscall. I guess that when this syscall fails,
          R then reports the fatal error that it cannot create R_Tempdir.



          As indicated in the error message, you should file a bug report on valgrind bugzilla.



          You could also try to fix this : it might be a trivial change in the valgrind file
          m_syswrap/priv_syswrap-darwin.h, to make something similar to e.g. the line
          readlinkat a few lines above.






          share|improve this answer





















            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53373903%2fvalgrind-r-is-not-working-fatal-error-cannot-create-r-tempdir%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            Valgrind produces an error message telling that the unix:475 syscall is not handled.



            In such a case, it reports to the guest application that the syscall failed,
            with errno ENOSYS.



            Syscall 475 on darwin is the mkdirat syscall. I guess that when this syscall fails,
            R then reports the fatal error that it cannot create R_Tempdir.



            As indicated in the error message, you should file a bug report on valgrind bugzilla.



            You could also try to fix this : it might be a trivial change in the valgrind file
            m_syswrap/priv_syswrap-darwin.h, to make something similar to e.g. the line
            readlinkat a few lines above.






            share|improve this answer

























              up vote
              0
              down vote













              Valgrind produces an error message telling that the unix:475 syscall is not handled.



              In such a case, it reports to the guest application that the syscall failed,
              with errno ENOSYS.



              Syscall 475 on darwin is the mkdirat syscall. I guess that when this syscall fails,
              R then reports the fatal error that it cannot create R_Tempdir.



              As indicated in the error message, you should file a bug report on valgrind bugzilla.



              You could also try to fix this : it might be a trivial change in the valgrind file
              m_syswrap/priv_syswrap-darwin.h, to make something similar to e.g. the line
              readlinkat a few lines above.






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                Valgrind produces an error message telling that the unix:475 syscall is not handled.



                In such a case, it reports to the guest application that the syscall failed,
                with errno ENOSYS.



                Syscall 475 on darwin is the mkdirat syscall. I guess that when this syscall fails,
                R then reports the fatal error that it cannot create R_Tempdir.



                As indicated in the error message, you should file a bug report on valgrind bugzilla.



                You could also try to fix this : it might be a trivial change in the valgrind file
                m_syswrap/priv_syswrap-darwin.h, to make something similar to e.g. the line
                readlinkat a few lines above.






                share|improve this answer












                Valgrind produces an error message telling that the unix:475 syscall is not handled.



                In such a case, it reports to the guest application that the syscall failed,
                with errno ENOSYS.



                Syscall 475 on darwin is the mkdirat syscall. I guess that when this syscall fails,
                R then reports the fatal error that it cannot create R_Tempdir.



                As indicated in the error message, you should file a bug report on valgrind bugzilla.



                You could also try to fix this : it might be a trivial change in the valgrind file
                m_syswrap/priv_syswrap-darwin.h, to make something similar to e.g. the line
                readlinkat a few lines above.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 20 at 20:48









                phd

                1,72766




                1,72766






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53373903%2fvalgrind-r-is-not-working-fatal-error-cannot-create-r-tempdir%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

                    Alcedinidae

                    RAC Tourist Trophy