<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 --- - LLDB crashes on exit"
   href="http://llvm.org/bugs/show_bug.cgi?id=20933">20933</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LLDB crashes on exit
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </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>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>octoploid@yandex.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>e.g.: 
~ % gdb --args lldb ./a.out
Reading symbols from lldb...(no debugging symbols found)...done.
(gdb) set follow-fork-mode parent
(gdb) run
Starting program: /usr/local/bin/lldb ./a.out
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
[New Thread 0x7ffff2a56700 (LWP 24683)]
(lldb) target create "./a.out"
Current executable set to './a.out' (x86_64).
[Thread 0x7ffff2a56700 (LWP 24683) exited]
[New Thread 0x7ffff2a56700 (LWP 24684)]
(lldb) b foo
Breakpoint 1: where = a.out`foo + 4 at anon_namesp.cpp:1, address =
0x000000000040058a
(lldb) run
[New Thread 0x7ffff1e40700 (LWP 24691)]
[New Thread 0x7ffff163f700 (LWP 24693)]
[New Thread 0x7ffff0e3e700 (LWP 24694)]
Process 24692 launching
[New Thread 0x7fffe3fff700 (LWP 24695)]
Process 24692 launched: './a.out' (x86_64)
Process 24692 stopped
* thread #1: tid = 24692, 0x00007ffff7ddbc80, name = 'a.out', stop reason =
trace
    frame #0: 0x00007ffff7ddbc80
-> 0x7ffff7ddbc80:  movq   %rsp, %rdi
   0x7ffff7ddbc83:  callq  0x7ffff7ddfb00
   0x7ffff7ddbc88:  movq   %rax, %r12
   0x7ffff7ddbc8b:  movl   0x2210df(%rip), %eax
Process 24692 stopped
* thread #1: tid = 24692, 0x000000000040058a a.out`foo + 4 at
anon_namesp.cpp:1, name = 'a.out', stop reason = breakpoint 1.1
    frame #0: 0x000000000040058a a.out`foo + 4 at anon_namesp.cpp:1
-> 1    namespace { int foo (void) { return 0; } } int main() { return foo ();
}

error: No auto repeat.
(lldb) q
Quitting LLDB will kill one or more processes. Do you really want to proceed:
[Y/n] 
[Thread 0x7ffff2a56700 (LWP 24684) exited]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff47ce520 in pthread_join () from /lib/libpthread.so.0
(gdb) bt
#0  0x00007ffff47ce520 in pthread_join () from /lib/libpthread.so.0
#1  0x00007ffff76aede1 in lldb_private::HostThreadPosix::Join(void**) () from
/usr/local/bin/../lib/liblldb.so.3.6.0
#2  0x00007ffff76acc0d in lldb_private::HostThread::Join(void**) () from
/usr/local/bin/../lib/liblldb.so.3.6.0
#3  0x00007ffff77fece3 in
lldb_private::Process::ControlPrivateStateThread(unsigned int) () from
/usr/local/bin/../lib/liblldb.so.3.6.0
#4  0x00007ffff78095f6 in lldb_private::Process::Destroy() () from
/usr/local/bin/../lib/liblldb.so.3.6.0
#5  0x00007ffff780cd73 in lldb_private::Process::Finalize() () from
/usr/local/bin/../lib/liblldb.so.3.6.0
#6  0x00007ffff79ca8c9 in ProcessPOSIX::Finalize() () from
/usr/local/bin/../lib/liblldb.so.3.6.0
#7  0x00007ffff76b8511 in lldb_private::Debugger::Clear() () from
/usr/local/bin/../lib/liblldb.so.3.6.0
#8  0x00007ffff76b85fb in
lldb_private::Debugger::Destroy(std::shared_ptr<lldb_private::Debugger>&) ()
from /usr/local/bin/../lib/liblldb.so.3.6.0
#9  0x00007ffff7956a9f in lldb::SBDebugger::Destroy(lldb::SBDebugger&) () from
/usr/local/bin/../lib/liblldb.so.3.6.0
#10 0x0000000000403ca0 in Driver::MainLoop() ()
#11 0x000000000040300e in main ()</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>