<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Test getline_nohang.cc in fact hangs"
   href="https://bugs.llvm.org/show_bug.cgi?id=39664">39664</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Test getline_nohang.cc in fact hangs
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>compiler-rt
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>tsan
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>greened@obbligato.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I am seeing the tsan test getline_nohang.cc hang quite frequently on Linux SLES
12, on both X86_64 and AArch64.  The backtrace indicates it's stuck waiting on
an I/O lock which is exactly the behavior the test is testing for.  So it seems
the fix for this test isn't enough for some Linux variants.

(gdb) bt
#0  0x00007fb3e26cd13b in __lll_lock_wait_private () from /lib64/libc.so.6
#1  0x00007fb3e264cdc2 in __GI__IO_flush_all () from /lib64/libc.so.6
#2  0x00007fb3e264cebf in _IO_cleanup () from /lib64/libc.so.6
#3  0x00007fb3e260e0eb in __run_exit_handlers () from /lib64/libc.so.6
#4  0x00007fb3e260e185 in exit () from /lib64/libc.so.6
#5  0x00007fb3e25f76ec in __libc_start_main () from /lib64/libc.so.6
#6  0x0000000000420639 in _start () at ../sysdeps/x86_64/start.S:118</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>