<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:seth.cantrell@gmail.com" title="Seth <seth.cantrell@gmail.com>"> <span class="fn">Seth</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - sig 11 sometimes when accessing std::cout from multiple threads."
   href="http://llvm.org/bugs/show_bug.cgi?id=12158">bug 12158</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>RESOLVED
           </td>
           <td>REOPENED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>FIXED
           </td>
           <td>---
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - sig 11 sometimes when accessing std::cout from multiple threads."
   href="http://llvm.org/bugs/show_bug.cgi?id=12158#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - sig 11 sometimes when accessing std::cout from multiple threads."
   href="http://llvm.org/bugs/show_bug.cgi?id=12158">bug 12158</a>
              from <span class="vcard"><a class="email" href="mailto:seth.cantrell@gmail.com" title="Seth <seth.cantrell@gmail.com>"> <span class="fn">Seth</span></a>
</span></b>
        <pre>I've updated and rebuilt libcxx (r185275, git commit 02786c613), but the
example program still crashes sometimes.

I ran the program using the following bash command:

for i in {1..100}; do ./a.out > /dev/null; done

and the result with r185275 was:

Segmentation fault: 11
Segmentation fault: 11
Abort trap: 6
Segmentation fault: 11
Segmentation fault: 11
Segmentation fault: 11
Segmentation fault: 11
Segmentation fault: 11
Killed: 9
Segmentation fault: 11
Segmentation fault: 11
Segmentation fault: 11
Segmentation fault: 11
Segmentation fault: 11
Segmentation fault: 11
Abort trap: 6
Segmentation fault: 11

summary:
14 segmentation faults, two aborts, one hang (I killed the process from
Activity Monitor.app after several seconds).

Below are the command lines I used.

to update and build libc++:
git svn fetch && git merge git-svn; (cd lib;
CXX=~/Programming/llvm-ninja-build/bin/clang++ TRIPLE=-apple- ./buildit)

To compile:
/Users/socantre/Programming/llvm-ninja-build/bin/clang++ -nostdinc++ -I
~/Programming/libcxx/include -std=c++11 -c main.cpp

To link:
/Users/socantre/Programming/llvm-ninja-build/bin/clang++ -nostdlib -L
~/Programming/libcxx/lib -lc++ -lpthread main.o</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>