title: CRAN Solaris: caught segfault *** address cause 'invalid permissions'
body: <p>In my package {bigstatsr}, I get this error for CRAN checkings when testing on Solaris (see <a href="https://www.r-project.org/nosvn/R.check/r-patched-solaris-x86/bigstatsr-00check.html" rel="noreferrer">https://www.r-project.org/nosvn/R.check/r-patched-solaris-x86/bigstatsr-00check.html</a>).</p>
  
  <p>I managed to reproduce this issue using <code>rhub::check_on_solaris()</code>.
  By default the files created were with permissions <code>644</code> because umask was set to <code>22</code>.</p>
  
  <p>Then, I tried to change umask to be <code>0</code>, which worked and I got file permissions as <code>666</code> (see <a href="https://builder.r-hub.io/status/bigstatsr_1.0.0.tar.gz-a15ab823b9e44e6ca790ee9a143ebadb#L5816" rel="noreferrer">https://builder.r-hub.io/status/bigstatsr_1.0.0.tar.gz-a15ab823b9e44e6ca790ee9a143ebadb#L5816</a>).</p>
  
  <p>How I can get this error with file permissions while having permissions on this file at <code>666</code>?</p>