<div dir="ltr"><div>Hi,</div><div><br></div>The test fails without output. So it either SIGSEGVs or OOM-killed. SIGSEGV can happen if mmap/pthread_create fail (probably with ENOMEM); or on first access to allocated memory if system allows overcommit.<div>I've added error checking to the test:<div><div><a href="http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/mmap_stress.cc?r1=257585&r2=257584&pathrev=257585">http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/mmap_stress.cc?r1=257585&r2=257584&pathrev=257585</a><br></div><div>Let's see if any of these show up in output.</div><div><br></div><div><br></div><div><br></div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 13, 2016 at 12:23 AM, Chris Matthews <span dir="ltr"><<a href="mailto:chris.matthews@apple.com" target="_blank">chris.matthews@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">I’m running this on green-dragon-03 which is running OSX 10.10.5.<div><br></div><div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)">/Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace\@2/clang-build/bin/clang++ ../llvm/projects/compiler-rt/test/tsan/mmap_stress.cc -lpthread </div><span class=""><div style="margin:0px;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)">while true; do for((i=0;i<10;i++)); do ./a.out || echo ===============FAILED================ & done ; wait; done</div></span></div><div><br></div><div>Seems like it is getting about 225 runs a minute, so it will take about 8 hours to complete 100k runs.</div><div><br><div><blockquote type="cite"><div><div class="h5"><div>On Jan 12, 2016, at 1:28 PM, Tobias Grosser via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:</div><br></div></div><div><div><div><div class="h5">On 01/12/2016 10:26 PM, Kostya Serebryany wrote:<br><blockquote type="cite">Hi Tobias,<br><br>What machine is that?<br>We have seen this and similar tests be flaky on older Linux kernels due<br>to kernel bug(s).<br>May I ask you to run the same test (just built with clang) on the same<br>machine for ~100000 times and see if it ever crashes?<br><br>clang++ ~/llvm/projects/compiler-rt/test/tsan/mmap_stress.cc -lpthread<br>while true; do for((i=0;i<10;i++)); do ./a.out || echo<br>===============FAILED================ & done ; wait; done<br></blockquote><br>Add Michael again (who might have access to this Machine).<br><br>Tobias<br></div></div><span class="">_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br></span></div></div></blockquote></div><br></div></div></blockquote></div><br></div>