https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112014-10-02T03:12:08ZRuby Issue Tracking SystemRuby master - Bug #10313: Randomly build failure on Travis container.https://bugs.ruby-lang.org/issues/10313?journal_id=491642014-10-02T03:12:08Znormalperson (Eric Wong)normalperson@yhbt.net
<ul></ul><p><a href="mailto:shibata.hiroshi@gmail.com" class="email">shibata.hiroshi@gmail.com</a> wrote:</p>
<blockquote>
<p>We tested ruby trunk every commits, but it failed randomly with linux container on travis.</p>
<p>build log is here: <a href="https://s3.amazonaws.com/archive.travis-ci.org/jobs/36822816/log.txt" class="external">https://s3.amazonaws.com/archive.travis-ci.org/jobs/36822816/log.txt</a></p>
<p>It's caused by fadvice(2). it details is following:</p>
<pre><code># make test-all
TestIO#test_advise:
Errno::EINVAL: Invalid argument - /tmp/test_io20141001-24823-10d6utc (0, 0, willneed)
</code></pre>
</blockquote>
<p>This seems to be a problem on old Linux kernels (2.6.32 from what Travis<br>
log says) and tmpfs.</p>
<p>Which Linux kernels do you hit successful builds on?<br>
Are they using tmpfs for /tmp?</p>
<p>kosaki fixed it in<br>
Linux kernel commit 3d3727cdb07ff17ddc3c551ef8d03d37b60a0372<br>
"mm, fadvise: don't return -EINVAL when filesystem cannot implement fadvise()"<br>
(but old kernels will be around for many more years)</p>
<blockquote>
<p>Is there workaround this?</p>
</blockquote>
<p>I think we need to accept EINVAL in our tests, unless there is a way<br>
to force the test to run on a regular FS.</p> Ruby master - Bug #10313: Randomly build failure on Travis container.https://bugs.ruby-lang.org/issues/10313?journal_id=491842014-10-03T09:52:29Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset r47771.</p>
<hr>
<ul>
<li>test/ruby/test_io.rb (TestIO#test_advise): added workaround of fadvise(2)<br>
with tmpfs and old linux kernel. <a href="/issues/10313">[ruby-core:65355]</a>[Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Randomly build failure on Travis container. (Closed)" href="https://bugs.ruby-lang.org/issues/10313">#10313</a>]</li>
</ul>